Package ac.boar.geyser.mappings.item
Record Class GeyserItem
java.lang.Object
java.lang.Record
ac.boar.geyser.mappings.item.GeyserItem
- All Implemented Interfaces:
ac.boar.anticheat.util.Referenced<ac.boar.mappings.item.Item>,ac.boar.mappings.item.Item
public record GeyserItem(org.geysermc.geyser.item.type.Item handle)
extends Record
implements ac.boar.mappings.item.Item
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserItem(org.geysermc.geyser.item.type.Item handle) Creates an instance of aGeyserItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.org.geysermc.geyser.item.type.Itemhandle()Returns the value of thehandlerecord component.inthashCode()Returns a hash code value for this object.booleanis(ac.boar.anticheat.util.Reference<ac.boar.mappings.item.Item> reference) booleanis(ac.boar.mappings.item.Item item) booleanisBlock()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserItem
public GeyserItem(org.geysermc.geyser.item.type.Item handle) Creates an instance of aGeyserItemrecord class.- Parameters:
handle- the value for thehandlerecord component
-
-
Method Details
-
is
public boolean is(ac.boar.mappings.item.Item item) - Specified by:
isin interfaceac.boar.anticheat.util.Referenced<ac.boar.mappings.item.Item>
-
is
public boolean is(ac.boar.anticheat.util.Reference<ac.boar.mappings.item.Item> reference) - Specified by:
isin interfaceac.boar.anticheat.util.Referenced<ac.boar.mappings.item.Item>
-
isBlock
public boolean isBlock()- Specified by:
isBlockin interfaceac.boar.mappings.item.Item
-
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.item.type.Item handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-