Package ac.boar.geyser.mappings.entity
Record Class GeyserEntityType
java.lang.Object
java.lang.Record
ac.boar.geyser.mappings.entity.GeyserEntityType
- All Implemented Interfaces:
ac.boar.anticheat.util.Referenced<ac.boar.mappings.entity.EntityType>,ac.boar.mappings.entity.EntityType
public record GeyserEntityType(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType handle)
extends Record
implements ac.boar.mappings.entity.EntityType
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserEntityType(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType handle) Creates an instance of aGeyserEntityTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityTypehandle()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.entity.EntityType> reference) booleanis(ac.boar.mappings.entity.EntityType type) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserEntityType
public GeyserEntityType(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType handle) Creates an instance of aGeyserEntityTyperecord class.- Parameters:
handle- the value for thehandlerecord component
-
-
Method Details
-
is
public boolean is(ac.boar.mappings.entity.EntityType type) - Specified by:
isin interfaceac.boar.anticheat.util.Referenced<ac.boar.mappings.entity.EntityType>
-
is
public boolean is(ac.boar.anticheat.util.Reference<ac.boar.mappings.entity.EntityType> reference) - Specified by:
isin interfaceac.boar.anticheat.util.Referenced<ac.boar.mappings.entity.EntityType>
-
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.mcprotocollib.protocol.data.game.entity.type.EntityType handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-