Package dev.latvian.mods.kubejs.block
Record Class BlockModificationKubeEvent.BlockModifications
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.block.BlockModificationKubeEvent.BlockModifications
- Enclosing class:
BlockModificationKubeEvent
public static record BlockModificationKubeEvent.BlockModifications(net.minecraft.world.level.block.Block block)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockModifications(net.minecraft.world.level.block.Block block) Creates an instance of aBlockModificationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Blockblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidsetDestroySpeed(float v) voidsetExplosionResistance(float v) voidsetFriction(float v) voidsetHasCollision(boolean v) voidsetIsRandomlyTicking(boolean v) voidsetJumpFactor(float v) voidsetLightEmission(int v) voidsetNameKey(String key) voidsetRandomTickCallback(Consumer<RandomTickCallback> callback) voidsetRequiresTool(boolean v) voidsetSoundType(net.minecraft.world.level.block.SoundType v) voidsetSpeedFactor(float v) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockModifications
public BlockModifications(net.minecraft.world.level.block.Block block) Creates an instance of aBlockModificationsrecord class.- Parameters:
block- the value for theblockrecord component
-
-
Method Details
-
setHasCollision
public void setHasCollision(boolean v) -
setExplosionResistance
public void setExplosionResistance(float v) -
setIsRandomlyTicking
public void setIsRandomlyTicking(boolean v) -
setRandomTickCallback
-
setSoundType
public void setSoundType(net.minecraft.world.level.block.SoundType v) -
setFriction
public void setFriction(float v) -
setSpeedFactor
public void setSpeedFactor(float v) -
setJumpFactor
public void setJumpFactor(float v) -
setNameKey
-
setDestroySpeed
public void setDestroySpeed(float v) -
setLightEmission
public void setLightEmission(int v) -
setRequiresTool
public void setRequiresTool(boolean v) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
block
public net.minecraft.world.level.block.Block block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-