Package ac.boar.geyser.mappings.block
Record Class GeyserBlock
java.lang.Object
java.lang.Record
ac.boar.geyser.mappings.block.GeyserBlock
- All Implemented Interfaces:
ac.boar.anticheat.util.Referenced<ac.boar.mappings.block.Block>,ac.boar.mappings.block.Block
public record GeyserBlock(org.geysermc.geyser.level.block.type.Block handle)
extends Record
implements ac.boar.mappings.block.Block
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserBlock(org.geysermc.geyser.level.block.type.Block handle) Creates an instance of aGeyserBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionac.boar.anticheat.data.block.BoarBlockStatedefaultBlockState(org.cloudburstmc.math.vector.Vector3i position, int layer) floatbooleanIndicates whether some other object is "equal to" this one.org.geysermc.geyser.level.block.type.Blockhandle()Returns the value of thehandlerecord component.inthashCode()Returns a hash code value for this object.booleanis(ac.boar.anticheat.util.Reference<ac.boar.mappings.block.Block> reference) booleanis(ac.boar.mappings.block.Block block) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserBlock
public GeyserBlock(org.geysermc.geyser.level.block.type.Block handle) Creates an instance of aGeyserBlockrecord class.- Parameters:
handle- the value for thehandlerecord component
-
-
Method Details
-
is
public boolean is(ac.boar.mappings.block.Block block) - Specified by:
isin interfaceac.boar.anticheat.util.Referenced<ac.boar.mappings.block.Block>
-
is
public boolean is(ac.boar.anticheat.util.Reference<ac.boar.mappings.block.Block> reference) - Specified by:
isin interfaceac.boar.anticheat.util.Referenced<ac.boar.mappings.block.Block>
-
destroyTime
public float destroyTime()- Specified by:
destroyTimein interfaceac.boar.mappings.block.Block
-
defaultBlockState
public ac.boar.anticheat.data.block.BoarBlockState defaultBlockState(org.cloudburstmc.math.vector.Vector3i position, int layer) - Specified by:
defaultBlockStatein interfaceac.boar.mappings.block.Block
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
handle
public org.geysermc.geyser.level.block.type.Block handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-