Record Class GeyserBlockPlacerImpl
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.custom.impl.GeyserBlockPlacerImpl
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserBlockPlacer
public record GeyserBlockPlacerImpl(org.geysermc.geyser.api.util.Identifier block, boolean useBlockIcon)
extends Record
implements org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserBlockPlacer
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGeyserBlockPlacerImpl(org.geysermc.geyser.api.util.Identifier block, boolean useBlockIcon) Creates an instance of aGeyserBlockPlacerImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.geysermc.geyser.api.util.Identifierblock()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.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseBlockIconrecord component.
-
Constructor Details
-
GeyserBlockPlacerImpl
public GeyserBlockPlacerImpl(org.geysermc.geyser.api.util.Identifier block, boolean useBlockIcon) Creates an instance of aGeyserBlockPlacerImplrecord class.- Parameters:
block- the value for theblockrecord componentuseBlockIcon- the value for theuseBlockIconrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
block
public org.geysermc.geyser.api.util.Identifier block()Returns the value of theblockrecord component.- Specified by:
blockin interfaceorg.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserBlockPlacer- Returns:
- the value of the
blockrecord component
-
useBlockIcon
public boolean useBlockIcon()Returns the value of theuseBlockIconrecord component.- Specified by:
useBlockIconin interfaceorg.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserBlockPlacer- Returns:
- the value of the
useBlockIconrecord component
-