Record Class BeeDebugPayload.BeeInfo
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BeeDebugPayload.BeeInfo
- Enclosing class:
BeeDebugPayload
-
Field Summary
Modifier and TypeFieldDescriptionThe field for theblacklistedHives
record component.private final BlockPos
The field for theflowerPos
record component.The field for thegoals
record component.private final BlockPos
The field for thehivePos
record component.private final int
The field for theid
record component.private final Path
The field for thepath
record component.private final Vec3
The field for thepos
record component.private final int
The field for thetravelTicks
record component.private final UUID
The field for theuuid
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblacklistedHives
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theflowerPos
record component.goals()
Returns the value of thegoals
record component.final int
hashCode()
Returns a hash code value for this object.boolean
hivePos()
Returns the value of thehivePos
record component.int
id()
Returns the value of theid
record component.path()
Returns the value of thepath
record component.pos()
Returns the value of thepos
record component.toString()
Returns a string representation of this record class.int
Returns the value of thetravelTicks
record component.uuid()
Returns the value of theuuid
record component.void
write
(FriendlyByteBuf p_299671_)
-
Field Details
-
uuid
The field for theuuid
record component. -
id
private final int idThe field for theid
record component. -
pos
The field for thepos
record component. -
path
The field for thepath
record component. -
hivePos
The field for thehivePos
record component. -
flowerPos
The field for theflowerPos
record component. -
travelTicks
private final int travelTicksThe field for thetravelTicks
record component. -
goals
The field for thegoals
record component. -
blacklistedHives
The field for theblacklistedHives
record 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 aBeeInfo
record class.- Parameters:
uuid
- the value for theuuid
record componentid
- the value for theid
record componentpos
- the value for thepos
record componentpath
- the value for thepath
record componenthivePos
- the value for thehivePos
record componentflowerPos
- the value for theflowerPos
record componenttravelTicks
- the value for thetravelTicks
record componentgoals
- the value for thegoals
record componentblacklistedHives
- the value for theblacklistedHives
record 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 theuuid
record component.- Returns:
- the value of the
uuid
record component
-
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
hivePos
Returns the value of thehivePos
record component.- Returns:
- the value of the
hivePos
record component
-
flowerPos
Returns the value of theflowerPos
record component.- Returns:
- the value of the
flowerPos
record component
-
travelTicks
public int travelTicks()Returns the value of thetravelTicks
record component.- Returns:
- the value of the
travelTicks
record component
-
goals
Returns the value of thegoals
record component.- Returns:
- the value of the
goals
record component
-
blacklistedHives
Returns the value of theblacklistedHives
record component.- Returns:
- the value of the
blacklistedHives
record component
-