Package net.minecraft.item.consume
Record Class TeleportRandomlyConsumeEffect
java.lang.Object
java.lang.Record
net.minecraft.item.consume.TeleportRandomlyConsumeEffect
- Record Components:
diameter-
- All Implemented Interfaces:
ConsumeEffect
- Mappings:
Namespace Name named net/minecraft/item/consume/TeleportRandomlyConsumeEffectintermediary net/minecraft/class_10138official debnamed diameterintermediary comp_3100official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.item.consume.ConsumeEffect
ConsumeEffect.Type<T extends ConsumeEffect> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TeleportRandomlyConsumeEffect> private static final floatprivate final floatThe field for thediameterrecord component.static final PacketCodec<RegistryByteBuf, TeleportRandomlyConsumeEffect> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatdiameter()Returns the value of thediameterrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.booleanonConsume(World world, ItemStack stack, LivingEntity user) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
diameter
private final float diameterThe field for thediameterrecord component. -
DEFAULT_DIAMETER
private static final float DEFAULT_DIAMETER- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DIAMETERLnet/minecraft/item/consume/TeleportRandomlyConsumeEffect;DEFAULT_DIAMETER:Fintermediary field_53821Lnet/minecraft/class_10138;field_53821:Fofficial fLdeb;f:F
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/consume/TeleportRandomlyConsumeEffect;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_53819Lnet/minecraft/class_10138;field_53819:Lcom/mojang/serialization/MapCodec;official aLdeb;a:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/item/consume/TeleportRandomlyConsumeEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_53820Lnet/minecraft/class_10138;field_53820:Lnet/minecraft/class_9139;official bLdeb;b:Lze;
-
-
Constructor Details
-
TeleportRandomlyConsumeEffect
public TeleportRandomlyConsumeEffect() -
TeleportRandomlyConsumeEffect
public TeleportRandomlyConsumeEffect(float float2)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceConsumeEffect- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/item/consume/ConsumeEffect;getType()Lnet/minecraft/item/consume/ConsumeEffect$Type;intermediary method_62864Lnet/minecraft/class_10134;method_62864()Lnet/minecraft/class_10134$class_10135;official aLddy;a()Lddy$a;
-
onConsume
- Specified by:
onConsumein interfaceConsumeEffect- Mappings:
Namespace Name Mixin selector named onConsumeLnet/minecraft/item/consume/ConsumeEffect;onConsume(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)Zintermediary method_62866Lnet/minecraft/class_10134;method_62866(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;)Zofficial aLddy;a(Ldkj;Ldak;Lbyf;)Z
-
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 with '=='. -
diameter
public float diameter()Returns the value of thediameterrecord component.- Returns:
- the value of the
diameterrecord component
-