diff options
author | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-07-27 21:47:43 +0300 |
---|---|---|
committer | RoseGoldIsntGay <yoavkau@gmail.com> | 2022-07-27 21:47:43 +0300 |
commit | 170ccfa42e36f04306820fbc3ef8a8ce3cf75010 (patch) | |
tree | 6728741f9a9befcb71ce1f27262073c984affe9a /src/main/java/rosegoldaddons/mixins/blocksize/MixinChest.java | |
parent | 854c131bf7965cef66d37e80640999242c9e0d65 (diff) | |
download | RGA-master.tar.gz RGA-master.tar.bz2 RGA-master.zip |
imma be real with y'all this is really old changes i never pushed to git so forgive me if the changelog is partial
added an autoclicker that probably gets u banned
added auto leave limbo
added three weirdos auto solver
added block size modifiers for dungeons
i changed a log of stuff probably bug fixes have fun
Diffstat (limited to 'src/main/java/rosegoldaddons/mixins/blocksize/MixinChest.java')
-rw-r--r-- | src/main/java/rosegoldaddons/mixins/blocksize/MixinChest.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/rosegoldaddons/mixins/blocksize/MixinChest.java b/src/main/java/rosegoldaddons/mixins/blocksize/MixinChest.java new file mode 100644 index 0000000..4025a2a --- /dev/null +++ b/src/main/java/rosegoldaddons/mixins/blocksize/MixinChest.java @@ -0,0 +1,28 @@ +package rosegoldaddons.mixins.blocksize; + +import net.minecraft.block.Block; +import net.minecraft.block.BlockChest; +import net.minecraft.block.material.Material; +import net.minecraft.util.BlockPos; +import net.minecraft.world.IBlockAccess; +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.CallbackInfo; +import rosegoldaddons.Main; + +@Mixin(BlockChest.class) +public class MixinChest extends Block { + + public MixinChest(Material materialIn) { + super(materialIn); + } + + @Inject(method = "setBlockBoundsBasedOnState", at = @At("HEAD"), cancellable = true) + private void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos, CallbackInfo ci) { + if(Main.configFile.dungeonBlocksBig) { + this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.875F, 1.0F); + ci.cancel(); + } + } +} |