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

Method BlockWall

src/main/java/net/minecraft/block/BlockWall.java:31–39  ·  view source on GitHub ↗
(Block modelBlock)

Source from the content-addressed store, hash-verified

29 public static final PropertyEnum<BlockWall.EnumType> VARIANT = PropertyEnum.<BlockWall.EnumType>create("variant", BlockWall.EnumType.class);
30
31 public BlockWall(Block modelBlock)
32 {
33 super(modelBlock.blockMaterial);
34 this.setDefaultState(this.blockState.getBaseState().withProperty(UP, Boolean.FALSE).withProperty(NORTH, Boolean.FALSE).withProperty(EAST, Boolean.FALSE).withProperty(SOUTH, Boolean.FALSE).withProperty(WEST, Boolean.FALSE).withProperty(VARIANT, BlockWall.EnumType.NORMAL));
35 this.setHardness(modelBlock.blockHardness);
36 this.setResistance(modelBlock.blockResistance / 3.0F);
37 this.setStepSound(modelBlock.stepSound);
38 this.setCreativeTab(CreativeTabs.tabBlock);
39 }
40
41 /**
42 * Gets the localized name of this block. Used for the statistics page.

Callers

nothing calls this directly

Calls 7

setDefaultStateMethod · 0.80
getBaseStateMethod · 0.80
setHardnessMethod · 0.80
setResistanceMethod · 0.80
setStepSoundMethod · 0.80
withPropertyMethod · 0.65
setCreativeTabMethod · 0.45

Tested by

no test coverage detected