Package net.minecraft.component.type
Class LubricationComponent
java.lang.Object
net.minecraft.component.type.LubricationComponent
- All Implemented Interfaces:
TooltipAppender
- Mappings:
Namespace Name official driintermediary net/minecraft/class_9576named net/minecraft/component/type/LubricationComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LubricationComponent> private final intprivate final floatstatic final PacketCodec<ByteBuf, LubricationComponent> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddLubricationLevel(ItemStack stack) voidappendTooltip(Consumer<Text> textConsumer, TooltipContext context) booleanintgetLevel()private static floatgetLubricationFactor(int level) inthashCode()booleanfloatmethod_59187(float float2)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLdri;a:Lcom/mojang/serialization/Codec;intermediary field_50955Lnet/minecraft/class_9576;field_50955:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/type/LubricationComponent;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official bLdri;b:Lzc;intermediary field_50956Lnet/minecraft/class_9576;field_50956:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/component/type/LubricationComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
level
private final int level- Mappings:
Namespace Name Mixin selector official cLdri;c:Iintermediary field_50957Lnet/minecraft/class_9576;field_50957:Inamed levelLnet/minecraft/component/type/LubricationComponent;level:I
-
lubricationFactor
private final float lubricationFactor- Mappings:
Namespace Name Mixin selector official dLdri;d:Fintermediary field_50958Lnet/minecraft/class_9576;field_50958:Fnamed lubricationFactorLnet/minecraft/component/type/LubricationComponent;lubricationFactor:F
-
-
Constructor Details
-
LubricationComponent
public LubricationComponent(int level) - Mappings:
Namespace Name Mixin selector official <init>Ldri;<init>(I)Vintermediary <init>Lnet/minecraft/class_9576;<init>(I)Vnamed <init>Lnet/minecraft/component/type/LubricationComponent;<init>(I)V
-
-
Method Details
-
isLubricated
public boolean isLubricated()- Mappings:
Namespace Name Mixin selector official aLdri;a()Zintermediary method_59186Lnet/minecraft/class_9576;method_59186()Znamed isLubricatedLnet/minecraft/component/type/LubricationComponent;isLubricated()Z
-
getLevel
public int getLevel()- Mappings:
Namespace Name Mixin selector official bLdri;b()Iintermediary method_59192Lnet/minecraft/class_9576;method_59192()Inamed getLevelLnet/minecraft/component/type/LubricationComponent;getLevel()I
-
appendTooltip
- Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector official aLcxx;a(Ljava/util/function/Consumer;Lcwi;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)Vnamed appendTooltipLnet/minecraft/item/TooltipAppender;appendTooltip(Ljava/util/function/Consumer;Lnet/minecraft/client/item/TooltipContext;)V
-
getLubricationFactor
private static float getLubricationFactor(int level) - Mappings:
Namespace Name Mixin selector official aLdri;a(I)Fintermediary method_59188Lnet/minecraft/class_9576;method_59188(I)Fnamed getLubricationFactorLnet/minecraft/component/type/LubricationComponent;getLubricationFactor(I)F
-
method_59187
public float method_59187(float float2) - Mappings:
Namespace Name Mixin selector official aLdri;a(F)Fintermediary method_59187Lnet/minecraft/class_9576;method_59187(F)Fnamed method_59187Lnet/minecraft/component/type/LubricationComponent;method_59187(F)F
-
equals
-
hashCode
public int hashCode() -
addLubricationLevel
- Mappings:
Namespace Name Mixin selector official aLdri;a(Lcuh;)Vintermediary method_59190Lnet/minecraft/class_9576;method_59190(Lnet/minecraft/class_1799;)Vnamed addLubricationLevelLnet/minecraft/component/type/LubricationComponent;addLubricationLevel(Lnet/minecraft/item/ItemStack;)V
-