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

Method BlockCrops

src/main/java/net/minecraft/block/BlockCrops.java:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 public static final PropertyInteger AGE = PropertyInteger.create("age", 0, 7);
20
21 protected BlockCrops()
22 {
23 this.setDefaultState(this.blockState.getBaseState().withProperty(AGE, 0));
24 this.setTickRandomly(true);
25 float f = 0.5F;
26 this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f);
27 this.setCreativeTab(null);
28 this.setHardness(0.0F);
29 this.setStepSound(soundTypeGrass);
30 this.disableStats();
31 }
32
33 /**
34 * is the block grass, dirt or farmland

Callers

nothing calls this directly

Calls 9

setDefaultStateMethod · 0.80
getBaseStateMethod · 0.80
setTickRandomlyMethod · 0.80
setBlockBoundsMethod · 0.80
setHardnessMethod · 0.80
setStepSoundMethod · 0.80
disableStatsMethod · 0.80
withPropertyMethod · 0.65
setCreativeTabMethod · 0.45

Tested by

no test coverage detected