Package net.minecraft.item
Record Class ProjectileItem.Settings
java.lang.Object
java.lang.Record
net.minecraft.item.ProjectileItem.Settings
- Record Components:
positionFunction-uncertainty-power-overrideDispenseEvent-
- Enclosing interface:
ProjectileItem
public static record ProjectileItem.Settings(ProjectileItem.PositionFunction positionFunction, float uncertainty, float power, OptionalInt overrideDispenseEvent)
extends Record
- Mappings:
Namespace Name named net/minecraft/item/ProjectileItem$Settingsintermediary net/minecraft/class_9463$class_9464official cvm$anamed positionFunctionintermediary comp_2544official bnamed uncertaintyintermediary comp_2545official cnamed powerintermediary comp_2546official dnamed overrideDispenseEventintermediary comp_2547official e
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProjectileItem.Settingsprivate final OptionalIntThe field for theoverrideDispenseEventrecord component.private final ProjectileItem.PositionFunctionThe field for thepositionFunctionrecord component.private final floatThe field for thepowerrecord component.private final floatThe field for theuncertaintyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSettings(ProjectileItem.PositionFunction positionFunction, float float2, float float3, OptionalInt optionalInt) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoverrideDispenseEventrecord component.Returns the value of thepositionFunctionrecord component.floatpower()Returns the value of thepowerrecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of theuncertaintyrecord component.
-
Field Details
-
positionFunction
The field for thepositionFunctionrecord component. -
uncertainty
private final float uncertaintyThe field for theuncertaintyrecord component. -
power
private final float powerThe field for thepowerrecord component. -
overrideDispenseEvent
The field for theoverrideDispenseEventrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/item/ProjectileItem$Settings;DEFAULT:Lnet/minecraft/item/ProjectileItem$Settings;intermediary field_50147Lnet/minecraft/class_9463$class_9464;field_50147:Lnet/minecraft/class_9463$class_9464;official aLcvm$a;a:Lcvm$a;
-
-
Constructor Details
-
Settings
public Settings(ProjectileItem.PositionFunction positionFunction, float float2, float float3, OptionalInt optionalInt)
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/item/ProjectileItem$Settings;builder()Lnet/minecraft/item/ProjectileItem$Settings$Builder;intermediary method_58663Lnet/minecraft/class_9463$class_9464;method_58663()Lnet/minecraft/class_9463$class_9464$class_9465;official aLcvm$a;a()Lcvm$a$a;
-
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 '=='. -
positionFunction
Returns the value of thepositionFunctionrecord component.- Returns:
- the value of the
positionFunctionrecord component
-
uncertainty
public float uncertainty()Returns the value of theuncertaintyrecord component.- Returns:
- the value of the
uncertaintyrecord component
-
power
public float power()Returns the value of thepowerrecord component.- Returns:
- the value of the
powerrecord component
-
overrideDispenseEvent
Returns the value of theoverrideDispenseEventrecord component.- Returns:
- the value of the
overrideDispenseEventrecord component
-