Class BlockEntityUtil

java.lang.Object
net.tearpelato.deco_lib.api.util.BlockEntityUtil

public class BlockEntityUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    sendUpdate(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    Invia l'update packet creato da BlockEntity#getUpdatePacket()
    static void
    sendUpdatePacket(net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.nbt.CompoundTag tag)
    Invia un pacchetto con CompoundTag custom (aggiunge automaticamente id e pos).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockEntityUtil

      public BlockEntityUtil()
  • Method Details

    • sendUpdate

      public static void sendUpdate(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Invia l'update packet creato da BlockEntity#getUpdatePacket()
    • sendUpdatePacket

      public static void sendUpdatePacket(net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.nbt.CompoundTag tag)
      Invia un pacchetto con CompoundTag custom (aggiunge automaticamente id e pos).