Record Class DebugBeeInfo
java.lang.Object
java.lang.Record
net.minecraft.util.debug.DebugBeeInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theblacklistedHivesrecord component.The field for theflowerPosrecord component.The field for thehivePosrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, DebugBeeInfo> private final intThe field for thetravelTicksrecord 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.final inthashCode()Returns a hash code value for this object.booleanhivePos()Returns the value of thehivePosrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetravelTicksrecord component.
-
Field Details
-
hivePos
-
flowerPos
-
travelTicks
private final int travelTicksThe field for thetravelTicksrecord component. -
blacklistedHives
-
STREAM_CODEC
-
-
Constructor Details
-
DebugBeeInfo
public DebugBeeInfo(Optional<BlockPos> hivePos, Optional<BlockPos> flowerPos, int travelTicks, List<BlockPos> blacklistedHives) Creates an instance of aDebugBeeInforecord class.- Parameters:
hivePos- the value for thehivePosrecord componentflowerPos- the value for theflowerPosrecord componenttravelTicks- the value for thetravelTicksrecord componentblacklistedHives- the value for theblacklistedHivesrecord component
-
-
Method Details
-
hasHive
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
hivePos
-
flowerPos
-
travelTicks
public int travelTicks()Returns the value of thetravelTicksrecord component.- Returns:
- the value of the
travelTicksrecord component
-
blacklistedHives
-