Record Class GeyserBoarItemStack
java.lang.Object
java.lang.Record
ac.boar.geyser.anticheat.data.inventory.GeyserBoarItemStack
- All Implemented Interfaces:
ac.boar.anticheat.data.inventory.BoarItemStack
public record GeyserBoarItemStack(org.geysermc.geyser.inventory.GeyserItemStack handle)
extends Record
implements ac.boar.anticheat.data.inventory.BoarItemStack
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserBoarItemStack(org.geysermc.geyser.inventory.GeyserItemStack handle) Creates an instance of aGeyserBoarItemStackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.geysermc.geyser.inventory.GeyserItemStackhandle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.booleanis(ac.boar.anticheat.util.Reference<ac.boar.mappings.item.Item> item) booleanis(ac.boar.mappings.item.Item item) booleanisEmpty()ac.boar.mappings.item.Itemitem()org.cloudburstmc.protocol.bedrock.data.inventory.ItemDatatoItemData(ac.boar.api.anticheat.model.NetworkSession session) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserBoarItemStack
public GeyserBoarItemStack(org.geysermc.geyser.inventory.GeyserItemStack handle) Creates an instance of aGeyserBoarItemStackrecord class.- Parameters:
handle- the value for thehandlerecord component
-
-
Method Details
-
item
public ac.boar.mappings.item.Item item()- Specified by:
itemin interfaceac.boar.anticheat.data.inventory.BoarItemStack
-
is
public boolean is(ac.boar.mappings.item.Item item) - Specified by:
isin interfaceac.boar.anticheat.data.inventory.BoarItemStack
-
is
public boolean is(ac.boar.anticheat.util.Reference<ac.boar.mappings.item.Item> item) - Specified by:
isin interfaceac.boar.anticheat.data.inventory.BoarItemStack
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceac.boar.anticheat.data.inventory.BoarItemStack
-
toItemData
public org.cloudburstmc.protocol.bedrock.data.inventory.ItemData toItemData(ac.boar.api.anticheat.model.NetworkSession session) - Specified by:
toItemDatain interfaceac.boar.anticheat.data.inventory.BoarItemStack
-
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). -
handle
public org.geysermc.geyser.inventory.GeyserItemStack handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-