Package net.minecraft
Record Class class_10707
java.lang.Object
java.lang.Record
net.minecraft.class_10707
- Record Components:
blockDelaySeconds-disableCooldownScale-damageReductions-itemDamage-blockSound-disableSound-
public record class_10707(float blockDelaySeconds, float disableCooldownScale, List<class_10707.class_10708> damageReductions, class_10707.class_10709 itemDamage, Optional<RegistryEntry<SoundEvent>> blockSound, Optional<RegistryEntry<SoundEvent>> disableSound)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10707intermediary net/minecraft/class_10707official datnamed blockDelaySecondsintermediary comp_3586official cnamed disableCooldownScaleintermediary comp_3587official dnamed damageReductionsintermediary comp_3588official enamed itemDamageintermediary comp_3589official fnamed blockSoundintermediary comp_3590official gnamed disableSoundintermediary comp_3591official h
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theblockDelaySecondsrecord component.private final Optional<RegistryEntry<SoundEvent>> The field for theblockSoundrecord component.private final List<class_10707.class_10708> The field for thedamageReductionsrecord component.private final floatThe field for thedisableCooldownScalerecord component.private final Optional<RegistryEntry<SoundEvent>> The field for thedisableSoundrecord component.static final com.mojang.serialization.Codec<class_10707> static final PacketCodec<RegistryByteBuf, class_10707> private final class_10707.class_10709The field for theitemDamagerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10707(float float2, float float3, List<class_10707.class_10708> list, class_10707.class_10709 class_10709, Optional<RegistryEntry<SoundEvent>> optional, Optional<RegistryEntry<SoundEvent>> optional2) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theblockDelaySecondsrecord component.Returns the value of theblockSoundrecord component.Returns the value of thedamageReductionsrecord component.floatReturns the value of thedisableCooldownScalerecord component.Returns the value of thedisableSoundrecord component.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 theitemDamagerecord component.intprivate intmethod_67198(float float2) voidmethod_67199(ServerWorld serverWorld, LivingEntity livingEntity) voidmethod_67200(ServerWorld serverWorld, LivingEntity livingEntity, float float2, ItemStack itemStack) floatmethod_67202(DamageSource damageSource, float float2) voidmethod_67204(World world, ItemStack itemStack, LivingEntity livingEntity, Hand hand, float float2) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockDelaySeconds
private final float blockDelaySecondsThe field for theblockDelaySecondsrecord component. -
disableCooldownScale
private final float disableCooldownScaleThe field for thedisableCooldownScalerecord component. -
damageReductions
The field for thedamageReductionsrecord component. -
itemDamage
The field for theitemDamagerecord component. -
blockSound
The field for theblockSoundrecord component. -
disableSound
The field for thedisableSoundrecord component. -
field_56301
- Mappings:
Namespace Name Mixin selector named field_56301Lnet/minecraft/class_10707;field_56301:Lcom/mojang/serialization/Codec;intermediary field_56301Lnet/minecraft/class_10707;field_56301:Lcom/mojang/serialization/Codec;official aLdat;a:Lcom/mojang/serialization/Codec;
-
field_56302
- Mappings:
Namespace Name Mixin selector named field_56302Lnet/minecraft/class_10707;field_56302:Lnet/minecraft/network/codec/PacketCodec;intermediary field_56302Lnet/minecraft/class_10707;field_56302:Lnet/minecraft/class_9139;official bLdat;b:Lyu;
-
-
Constructor Details
-
class_10707
public class_10707(float float2, float float3, List<class_10707.class_10708> list, class_10707.class_10709 class_10709, Optional<RegistryEntry<SoundEvent>> optional, Optional<RegistryEntry<SoundEvent>> optional2)
-
-
Method Details
-
method_67199
- Mappings:
Namespace Name Mixin selector named method_67199Lnet/minecraft/class_10707;method_67199(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Vintermediary method_67199Lnet/minecraft/class_10707;method_67199(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Vofficial aLdat;a(Laro;Lbwz;)V
-
method_67200
public void method_67200(ServerWorld serverWorld, LivingEntity livingEntity, float float2, ItemStack itemStack) - Mappings:
Namespace Name Mixin selector named method_67200Lnet/minecraft/class_10707;method_67200(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;FLnet/minecraft/item/ItemStack;)Vintermediary method_67200Lnet/minecraft/class_10707;method_67200(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;FLnet/minecraft/class_1799;)Vofficial aLdat;a(Laro;Lbwz;FLcys;)V
-
method_67204
public void method_67204(World world, ItemStack itemStack, LivingEntity livingEntity, Hand hand, float float2) - Mappings:
Namespace Name Mixin selector named method_67204Lnet/minecraft/class_10707;method_67204(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;F)Vintermediary method_67204Lnet/minecraft/class_10707;method_67204(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;F)Vofficial aLdat;a(Ldip;Lcys;Lbwz;Lbtx;F)V
-
method_67198
private int method_67198(float float2) - Mappings:
Namespace Name Mixin selector named method_67198Lnet/minecraft/class_10707;method_67198(F)Iintermediary method_67198Lnet/minecraft/class_10707;method_67198(F)Iofficial aLdat;a(F)I
-
method_67197
public int method_67197()- Mappings:
Namespace Name Mixin selector named method_67197Lnet/minecraft/class_10707;method_67197()Iintermediary method_67197Lnet/minecraft/class_10707;method_67197()Iofficial aLdat;a()I
-
method_67202
- Mappings:
Namespace Name Mixin selector named method_67202Lnet/minecraft/class_10707;method_67202(Lnet/minecraft/entity/damage/DamageSource;F)Fintermediary method_67202Lnet/minecraft/class_10707;method_67202(Lnet/minecraft/class_1282;F)Fofficial aLdat;a(Lbup;F)F
-
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 '=='. -
blockDelaySeconds
public float blockDelaySeconds()Returns the value of theblockDelaySecondsrecord component.- Returns:
- the value of the
blockDelaySecondsrecord component
-
disableCooldownScale
public float disableCooldownScale()Returns the value of thedisableCooldownScalerecord component.- Returns:
- the value of the
disableCooldownScalerecord component
-
damageReductions
Returns the value of thedamageReductionsrecord component.- Returns:
- the value of the
damageReductionsrecord component
-
itemDamage
Returns the value of theitemDamagerecord component.- Returns:
- the value of the
itemDamagerecord component
-
blockSound
Returns the value of theblockSoundrecord component.- Returns:
- the value of the
blockSoundrecord component
-
disableSound
Returns the value of thedisableSoundrecord component.- Returns:
- the value of the
disableSoundrecord component
-