Package net.minecraft
Record Class class_9699
java.lang.Object
java.lang.Record
net.minecraft.class_9699
- Record Components:
itemStack-inSlot-owner-onBreak-
public record class_9699(ItemStack itemStack, @Nullable EquipmentSlot inSlot, @Nullable LivingEntity owner, Runnable onBreak)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_9699intermediary net/minecraft/class_9699official czinamed itemStackintermediary comp_2682official anamed inSlotintermediary comp_2683official bnamed ownerintermediary comp_2684official cnamed onBreakintermediary comp_2685official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable EquipmentSlotThe field for theinSlotrecord component.private final ItemStackThe field for theitemStackrecord component.private final RunnableThe field for theonBreakrecord component.private final @Nullable LivingEntityThe field for theownerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9699(ItemStack itemStack, @Nullable EquipmentSlot equipmentSlot, @Nullable LivingEntity livingEntity, Runnable runnable) class_9699(ItemStack itemStack, EquipmentSlot equipmentSlot, LivingEntity livingEntity) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inSlot()Returns the value of theinSlotrecord component.Returns the value of theitemStackrecord component.onBreak()Returns the value of theonBreakrecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_9699
-
class_9699
public class_9699(ItemStack itemStack, @Nullable @Nullable EquipmentSlot equipmentSlot, @Nullable @Nullable LivingEntity livingEntity, Runnable runnable)
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
itemStack
Returns the value of theitemStackrecord component.- Returns:
- the value of the
itemStackrecord component
-
inSlot
Returns the value of theinSlotrecord component.- Returns:
- the value of the
inSlotrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
onBreak
Returns the value of theonBreakrecord component.- Returns:
- the value of the
onBreakrecord component
-