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$Settings- intermediary - net/minecraft/class_9463$class_9464- official - cxl$a- named - positionFunction- intermediary - comp_2544- official - b- named - uncertainty- intermediary - comp_2545- official - c- named - power- intermediary - comp_2546- official - d- named - overrideDispenseEvent- intermediary - comp_2547- official - e
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionSettings(ProjectileItem.PositionFunction positionFunction, float float2, float float3, OptionalInt optionalInt) 
- 
Method SummaryModifier 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- 
positionFunctionThe field for thepositionFunctionrecord component.
- 
uncertaintyprivate final float uncertaintyThe field for theuncertaintyrecord component.
- 
powerprivate final float powerThe field for thepowerrecord component.
- 
overrideDispenseEventThe field for theoverrideDispenseEventrecord component.
- 
DEFAULT- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT- Lnet/minecraft/item/ProjectileItem$Settings;DEFAULT:Lnet/minecraft/item/ProjectileItem$Settings;- intermediary - field_50147- Lnet/minecraft/class_9463$class_9464;field_50147:Lnet/minecraft/class_9463$class_9464;- official - a- Lcxl$a;a:Lcxl$a;
 
 
- 
- 
Constructor Details- 
Settingspublic Settings(ProjectileItem.PositionFunction positionFunction, float float2, float float3, OptionalInt optionalInt) 
 
- 
- 
Method Details- 
builder- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/item/ProjectileItem$Settings;builder()Lnet/minecraft/item/ProjectileItem$Settings$Builder;- intermediary - method_58663- Lnet/minecraft/class_9463$class_9464;method_58663()Lnet/minecraft/class_9463$class_9464$class_9465;- official - a- Lcxl$a;a()Lcxl$a$a;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
positionFunctionReturns the value of thepositionFunctionrecord component.- Returns:
- the value of the positionFunctionrecord component
 
- 
uncertaintypublic float uncertainty()Returns the value of theuncertaintyrecord component.- Returns:
- the value of the uncertaintyrecord component
 
- 
powerpublic float power()Returns the value of thepowerrecord component.- Returns:
- the value of the powerrecord component
 
- 
overrideDispenseEventReturns the value of theoverrideDispenseEventrecord component.- Returns:
- the value of the overrideDispenseEventrecord component
 
 
-