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

Method Block

src/main/java/net/minecraft/block/Block.java:288–302  ·  view source on GitHub ↗
(Material p_i46399_1_, MapColor p_i46399_2_)

Source from the content-addressed store, hash-verified

286 }
287
288 public Block(Material p_i46399_1_, MapColor p_i46399_2_)
289 {
290 this.enableStats = true;
291 this.stepSound = soundTypeStone;
292 this.blockParticleGravity = 1.0F;
293 this.slipperiness = 0.6F;
294 this.blockMaterial = p_i46399_1_;
295 this.field_181083_K = p_i46399_2_;
296 this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
297 this.fullBlock = this.isOpaqueCube();
298 this.lightOpacity = this.isOpaqueCube() ? 255 : 0;
299 this.translucent = !p_i46399_1_.blocksLight();
300 this.blockState = this.createBlockState();
301 this.setDefaultState(this.blockState.getBaseState());
302 }
303
304 protected Block(Material materialIn)
305 {

Callers

nothing calls this directly

Calls 7

setBlockBoundsMethod · 0.95
isOpaqueCubeMethod · 0.95
createBlockStateMethod · 0.95
setDefaultStateMethod · 0.95
getBaseStateMethod · 0.80
getMaterialMapColorMethod · 0.80
blocksLightMethod · 0.45

Tested by

no test coverage detected