Record Class BeeDebugPayload.BeeInfo
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BeeDebugPayload.BeeInfo
- Enclosing class:
BeeDebugPayload
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theblacklistedHivesrecord component.private final BlockPosThe field for theflowerPosrecord component.The field for thegoalsrecord component.private final BlockPosThe field for thehivePosrecord component.private final intThe field for theidrecord component.private final PathThe field for thepathrecord component.private final Vec3The field for theposrecord component.private final intThe field for thetravelTicksrecord component.private final UUIDThe field for theuuidrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblacklistedHivesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflowerPosrecord component.goals()Returns the value of thegoalsrecord component.final inthashCode()Returns a hash code value for this object.booleanhivePos()Returns the value of thehivePosrecord component.intid()Returns the value of theidrecord component.path()Returns the value of thepathrecord component.pos()Returns the value of theposrecord component.toString()Returns a string representation of this record class.intReturns the value of thetravelTicksrecord component.uuid()Returns the value of theuuidrecord component.voidwrite(FriendlyByteBuf p_294673_)
-
Field Details
-
uuid
The field for theuuidrecord component. -
id
private final int idThe field for theidrecord component. -
pos
The field for theposrecord component. -
path
The field for thepathrecord component. -
hivePos
The field for thehivePosrecord component. -
flowerPos
The field for theflowerPosrecord component. -
travelTicks
private final int travelTicksThe field for thetravelTicksrecord component. -
goals
The field for thegoalsrecord component. -
blacklistedHives
The field for theblacklistedHivesrecord component.
-
-
Constructor Details
-
BeeInfo
-
BeeInfo
public BeeInfo(UUID uuid, int id, Vec3 pos, @Nullable Path path, @Nullable BlockPos hivePos, @Nullable BlockPos flowerPos, int travelTicks, Set<String> goals, List<BlockPos> blacklistedHives) Creates an instance of aBeeInforecord class.- Parameters:
uuid- the value for theuuidrecord componentid- the value for theidrecord componentpos- the value for theposrecord componentpath- the value for thepathrecord componenthivePos- the value for thehivePosrecord componentflowerPos- the value for theflowerPosrecord componenttravelTicks- the value for thetravelTicksrecord componentgoals- the value for thegoalsrecord componentblacklistedHives- the value for theblacklistedHivesrecord component
-
-
Method Details
-
write
-
hasHive
-
generateName
-
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 '=='. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
hivePos
Returns the value of thehivePosrecord component.- Returns:
- the value of the
hivePosrecord component
-
flowerPos
Returns the value of theflowerPosrecord component.- Returns:
- the value of the
flowerPosrecord component
-
travelTicks
public int travelTicks()Returns the value of thetravelTicksrecord component.- Returns:
- the value of the
travelTicksrecord component
-
goals
Returns the value of thegoalsrecord component.- Returns:
- the value of the
goalsrecord component
-
blacklistedHives
Returns the value of theblacklistedHivesrecord component.- Returns:
- the value of the
blacklistedHivesrecord component
-