Class ItemStackMixin
java.lang.Object
io.github.xrickastley.sevenelements.mixin.ItemStackMixin
- All Implemented Interfaces:
ComponentHolder,ComponentsAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddInfusionData(Item.TooltipContext context, TooltipDisplayComponent displayComponent, @Nullable PlayerEntity player, TooltipType _type, Consumer<Text> textConsumer, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) private ActionResultfrozenPreventsItemUse(Item instance, World world, PlayerEntity user, Hand hand, com.llamalad7.mixinextras.injector.wrapoperation.Operation<ActionResult> original) abstract ItemgetItem()private TextmodifyName(Text original) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentHolder
contains, get, getComponents, getOrDefault, streamAllMethods inherited from interface net.minecraft.component.ComponentsAccess
getTyped
-
Constructor Details
-
ItemStackMixin
public ItemStackMixin()
-
-
Method Details
-
getItem
-
frozenPreventsItemUse
private ActionResult frozenPreventsItemUse(Item instance, World world, PlayerEntity user, Hand hand, com.llamalad7.mixinextras.injector.wrapoperation.Operation<ActionResult> original) -
modifyName
-
addInfusionData
private void addInfusionData(Item.TooltipContext context, TooltipDisplayComponent displayComponent, @Nullable @Nullable PlayerEntity player, TooltipType _type, Consumer<Text> textConsumer, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
-