mirror of
https://github.com/TibiNonEst/cauldron-dyeing.git
synced 2025-04-29 13:04:08 -05:00
Move to Quilt Mappings
This commit is contained in:
parent
5e49440291
commit
ac4e748820
5 changed files with 15 additions and 6 deletions
|
@ -79,13 +79,13 @@ public class WaterCauldronBlockEntity extends BlockEntity {
|
|||
|
||||
@Override
|
||||
public NbtCompound toInitialChunkDataNbt() {
|
||||
return createNbt();
|
||||
return toNbt();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Packet<ClientPlayPacketListener> toUpdatePacket() {
|
||||
return BlockEntityUpdateS2CPacket.create(this);
|
||||
return BlockEntityUpdateS2CPacket.of(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.Map;
|
|||
|
||||
@Mixin(CauldronBehavior.class)
|
||||
public interface CauldronBehaviorMixin {
|
||||
@Inject(method = "method_32209", at = @At("HEAD"), cancellable = true)
|
||||
@Inject(method = "m_ducbhfos", at = @At("HEAD"), cancellable = true)
|
||||
private static void 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();
|
||||
|
@ -41,7 +41,7 @@ public interface CauldronBehaviorMixin {
|
|||
}
|
||||
}
|
||||
|
||||
@Inject(method = "method_32217", at = @At(value = "TAIL"))
|
||||
@Inject(method = "m_xrdlazrh", at = @At(value = "TAIL"))
|
||||
private static void 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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue