MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / BlockBed

Method BlockBed

src/main/java/net/minecraft/block/BlockBed.java:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 public static final PropertyBool OCCUPIED = PropertyBool.create("occupied");
27
28 public BlockBed()
29 {
30 super(Material.cloth);
31 this.setDefaultState(this.blockState.getBaseState().withProperty(PART, BlockBed.EnumPartType.FOOT).withProperty(OCCUPIED, Boolean.FALSE));
32 this.setBedBounds();
33 }
34
35 public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ)
36 {

Callers

nothing calls this directly

Calls 4

setBedBoundsMethod · 0.95
setDefaultStateMethod · 0.80
getBaseStateMethod · 0.80
withPropertyMethod · 0.65

Tested by

no test coverage detected