Record Class BeeDebugPayload.BeeInfo
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.BeeDebugPayload.BeeInfo
- Enclosing class:
- BeeDebugPayload
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
uuidThe field for theuuidrecord component.
- 
idprivate final int idThe field for theidrecord component.
- 
posThe field for theposrecord component.
- 
pathThe field for thepathrecord component.
- 
hivePosThe field for thehivePosrecord component.
- 
flowerPosThe field for theflowerPosrecord component.
- 
travelTicksprivate final int travelTicksThe field for thetravelTicksrecord component.
- 
goalsThe field for thegoalsrecord component.
- 
blacklistedHivesThe field for theblacklistedHivesrecord component.
 
- 
- 
Constructor Details- 
BeeInfo
- 
BeeInfopublic 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 the- uuidrecord component
- id- the value for the- idrecord component
- pos- the value for the- posrecord component
- path- the value for the- pathrecord component
- hivePos- the value for the- hivePosrecord component
- flowerPos- the value for the- flowerPosrecord component
- travelTicks- the value for the- travelTicksrecord component
- goals- the value for the- goalsrecord component
- blacklistedHives- the value for the- blacklistedHivesrecord component
 
 
- 
- 
Method Details- 
write
- 
hasHive
- 
generateName
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
uuidReturns the value of theuuidrecord component.- Returns:
- the value of the uuidrecord component
 
- 
idpublic int id()Returns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
pathReturns the value of thepathrecord component.- Returns:
- the value of the pathrecord component
 
- 
hivePosReturns the value of thehivePosrecord component.- Returns:
- the value of the hivePosrecord component
 
- 
flowerPosReturns the value of theflowerPosrecord component.- Returns:
- the value of the flowerPosrecord component
 
- 
travelTickspublic int travelTicks()Returns the value of thetravelTicksrecord component.- Returns:
- the value of the travelTicksrecord component
 
- 
goalsReturns the value of thegoalsrecord component.- Returns:
- the value of the goalsrecord component
 
- 
blacklistedHivesReturns the value of theblacklistedHivesrecord component.- Returns:
- the value of the blacklistedHivesrecord component
 
 
-