Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.kasetoatz.infinityshulkerbox;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
public class Infinityshulkerbox implements ModInitializer {
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.kasetoatz.infinityshulkerbox.mixin;
|
||||
|
||||
import net.minecraft.item.BlockItem;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(BlockItem.class)
|
||||
public class BlockItemMixin
|
||||
{
|
||||
@Inject(method="canBeNested", at=@At("HEAD"), cancellable=true)
|
||||
public void canBeNested(CallbackInfoReturnable<Boolean> cir)
|
||||
{
|
||||
cir.setReturnValue(true);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.kasetoatz.infinityshulkerbox.mixin;
|
||||
|
||||
import net.minecraft.block.entity.ShulkerBoxBlockEntity;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(ShulkerBoxBlockEntity.class)
|
||||
public class ShulkerBoxBlockEntityMixin
|
||||
{
|
||||
@Inject(method="canInsert", at=@At("HEAD"), cancellable=true)
|
||||
public void canInsert(CallbackInfoReturnable<Boolean> cir)
|
||||
{
|
||||
cir.setReturnValue(true);
|
||||
}
|
||||
}
|
||||
24
src/main/resources/fabric.mod.json
Normal file
24
src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "infinityshulkerbox",
|
||||
"version": "${version}",
|
||||
"name": "InfinityShulkerBox",
|
||||
"description": "",
|
||||
"authors": [],
|
||||
"contact": {},
|
||||
"license": "MIT",
|
||||
"environment": "server",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"com.kasetoatz.infinityshulkerbox.Infinityshulkerbox"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"infinityshulkerbox.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=${loader_version}",
|
||||
"fabric": "*",
|
||||
"minecraft": "${minecraft_version}"
|
||||
}
|
||||
}
|
||||
18
src/main/resources/infinityshulkerbox.mixins.json
Normal file
18
src/main/resources/infinityshulkerbox.mixins.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "com.kasetoatz.infinityshulkerbox.mixin",
|
||||
"compatibilityLevel": "JAVA_21",
|
||||
"mixins": [
|
||||
"BlockItemMixin",
|
||||
"ShulkerBoxBlockEntityMixin"
|
||||
],
|
||||
"client": [
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
},
|
||||
"overwrites": {
|
||||
"requireAnnotations": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user