mirror of
https://github.com/TibiNonEst/cauldron-dyeing.git
synced 2025-05-05 23:54:09 -05:00
Update to 1.19.4
This commit is contained in:
parent
a847ba5615
commit
1577d06067
5 changed files with 15 additions and 15 deletions
|
@ -5,7 +5,7 @@ import me.tibinonest.mods.cauldron_dyeing.CauldronDyeing;
|
|||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.nbt.NbtCompound;
|
||||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.packet.Packet;
|
||||
import net.minecraft.network.listener.ClientPlayPacketListener;
|
||||
import net.minecraft.network.packet.s2c.play.BlockEntityUpdateS2CPacket;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
|
@ -16,7 +16,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
import java.util.Arrays;
|
||||
|
||||
public class WaterCauldronBlockEntity extends BlockEntity {
|
||||
private final int[] NULL_COLOR = new int[] {-1, -1, -1};
|
||||
private static final int[] NULL_COLOR = new int[] {-1, -1, -1};
|
||||
private int[] color = NULL_COLOR;
|
||||
|
||||
public WaterCauldronBlockEntity(BlockPos pos, BlockState state) {
|
||||
|
|
|
@ -26,7 +26,7 @@ import java.util.Map;
|
|||
@Mixin(CauldronBehavior.class)
|
||||
public interface CauldronBehaviorMixin {
|
||||
@SuppressWarnings("target")
|
||||
@Inject(method = "m_ducbhfos(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/ActionResult;", at = @At("HEAD"), cancellable = true)
|
||||
@Inject(method = "method_32209", at = @At("HEAD"), cancellable = true)
|
||||
private static void cauldron_dyeing$injectCleanDyeableItem(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
|
||||
var blockEntity = world.getBlockEntity(pos);
|
||||
var item = stack.getItem();
|
||||
|
@ -43,7 +43,7 @@ public interface CauldronBehaviorMixin {
|
|||
}
|
||||
|
||||
@SuppressWarnings("target")
|
||||
@Inject(method = "m_xrdlazrh(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/ActionResult;", at = @At(value = "TAIL"))
|
||||
@Inject(method = "method_32217", at = @At(value = "TAIL"))
|
||||
private static void cauldron_dyeing$injectFillWithWater(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
|
||||
var blockEntity = world.getBlockEntity(pos);
|
||||
if (blockEntity instanceof WaterCauldronBlockEntity waterCauldron) {
|
||||
|
|
|
@ -24,11 +24,11 @@
|
|||
"cauldron-dyeing.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"minecraft": ">=1.19.3",
|
||||
"minecraft": ">=1.19.4",
|
||||
"fabricloader": ">=0.12.0",
|
||||
"fabric-object-builder-api-v1": ">=0.1"
|
||||
},
|
||||
"breaks": {
|
||||
"sodium": "<0.4.9"
|
||||
"sodium": "<0.4.10"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue