diff options
author | Linnea Gräf <nea@nea.moe> | 2025-01-30 20:11:37 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-01-30 20:11:37 +0100 |
commit | 8e386bcf8d10784fc7784333be9e4470598c71d4 (patch) | |
tree | f0bd83c41bd083b6708703d420fe466b5f66111a /mod/src/main/java/moe | |
parent | e51a59636129c35b58dbdda83b141b539a87e6fe (diff) | |
download | LocalTransactionLedger-nightly.tar.gz LocalTransactionLedger-nightly.tar.bz2 LocalTransactionLedger-nightly.zip |
Diffstat (limited to 'mod/src/main/java/moe')
-rw-r--r-- | mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerDispenser.java | 12 | ||||
-rw-r--r-- | mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerHopper.java | 13 |
2 files changed, 25 insertions, 0 deletions
diff --git a/mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerDispenser.java b/mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerDispenser.java new file mode 100644 index 0000000..a3d32c4 --- /dev/null +++ b/mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerDispenser.java @@ -0,0 +1,12 @@ +package moe.nea.ledger.mixin; + +import net.minecraft.inventory.ContainerDispenser; +import net.minecraft.inventory.IInventory; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.gen.Accessor; + +@Mixin(ContainerDispenser.class) +public interface AccessorContainerDispenser { + @Accessor("dispenserInventory") + IInventory getDispenserInventory_ledger(); +} diff --git a/mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerHopper.java b/mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerHopper.java new file mode 100644 index 0000000..ee29d4f --- /dev/null +++ b/mod/src/main/java/moe/nea/ledger/mixin/AccessorContainerHopper.java @@ -0,0 +1,13 @@ +package moe.nea.ledger.mixin; + +import net.minecraft.inventory.ContainerDispenser; +import net.minecraft.inventory.ContainerHopper; +import net.minecraft.inventory.IInventory; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.gen.Accessor; + +@Mixin(ContainerHopper.class) +public interface AccessorContainerHopper { + @Accessor("hopperInventory") + IInventory getHopperInventory_ledger(); +} |