Package net.minecraft.util
Record Class HeldItemContext.Offset
java.lang.Object
java.lang.Record
net.minecraft.util.HeldItemContext.Offset
- Record Components:
owner-offset-
- All Implemented Interfaces:
HeldItemContext
- Enclosing interface:
HeldItemContext
public static record HeldItemContext.Offset(HeldItemContext owner, Vec3d offset)
extends Record
implements HeldItemContext
- Mappings:
Namespace Name named net/minecraft/util/HeldItemContext$Offsetintermediary net/minecraft/class_11566$class_11726official ces$anamed ownerintermediary comp_4597official anamed offsetintermediary comp_4598official b
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.Offset -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatfinal inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Offset
-
-
Method Details
-
getEntityWorld
- Specified by:
getEntityWorldin interfaceHeldItemContext- Mappings:
Namespace Name Mixin selector named getEntityWorldLnet/minecraft/util/HeldItemContext;getEntityWorld()Lnet/minecraft/world/World;intermediary method_73183Lnet/minecraft/class_11566;method_73183()Lnet/minecraft/class_1937;official anLces;an()Ldrq;
-
getEntityPos
- Specified by:
getEntityPosin interfaceHeldItemContext- Mappings:
Namespace Name Mixin selector named getEntityPosLnet/minecraft/util/HeldItemContext;getEntityPos()Lnet/minecraft/util/math/Vec3d;intermediary method_73189Lnet/minecraft/class_11566;method_73189()Lnet/minecraft/class_243;official dDLces;dD()Lfoh;
-
getBodyYaw
public float getBodyYaw()- Specified by:
getBodyYawin interfaceHeldItemContext- Mappings:
Namespace Name Mixin selector named getBodyYawLnet/minecraft/util/HeldItemContext;getBodyYaw()Fintermediary method_73188Lnet/minecraft/class_11566;method_73188()Fofficial dYLces;dY()F
-
getEntity
- Specified by:
getEntityin interfaceHeldItemContext- Mappings:
Namespace Name Mixin selector named getEntityLnet/minecraft/util/HeldItemContext;getEntity()Lnet/minecraft/entity/LivingEntity;intermediary method_72393Lnet/minecraft/class_11566;method_72393()Lnet/minecraft/class_1309;official eoLces;eo()Lcew;
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-