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

Method setLightLevel

src/main/java/net/minecraft/block/Block.java:331–335  ·  view source on GitHub ↗

Sets the light value that the block emits. Returns resulting block instance for constructing convenience. Args: level

(float value)

Source from the content-addressed store, hash-verified

329 * level
330 */
331 protected Block setLightLevel(float value)
332 {
333 this.lightValue = (int)(15.0F * value);
334 return this;
335 }
336
337 /**
338 * Sets the blocks resistance to explosions. Returns the object for convenience in constructing.

Callers 3

registerBlocksMethod · 0.80
BlockRedstoneLightMethod · 0.80
BlockEndPortalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected