Class SlotMixin

java.lang.Object
com.petrolpark.mixin.SlotMixin

public abstract class SlotMixin extends Object
If an Item is removed from a Barrel, it should stop ageing. This mixin is to ensure that happens even when the Item is quick-swapped to a hotbar slot.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.world.Container
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotMixin(net.minecraft.world.Container container)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    wrapOnTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, com.llamalad7.mixinextras.injector.wrapoperation.Operation<Void> operation)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • container

      public final net.minecraft.world.Container container
  • Constructor Details

    • SlotMixin

      public SlotMixin(net.minecraft.world.Container container)
  • Method Details

    • wrapOnTake

      public void wrapOnTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, com.llamalad7.mixinextras.injector.wrapoperation.Operation<Void> operation)