Package net.minecraft.util.debug
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
The field for thehivePosrecord component. -
flowerPos
The field for theflowerPosrecord component. -
travelTicks
private final int travelTicksThe field for thetravelTicksrecord component. -
blacklistedHives
The field for theblacklistedHivesrecord component. -
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
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 '=='. -
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
-
blacklistedHives
Returns the value of theblacklistedHivesrecord component.- Returns:
- the value of the
blacklistedHivesrecord component
-