Interface IFacadeContainer


public interface IFacadeContainer
Used Internally. not intended for implementation.
  • Method Details

    • canAddFacade

      boolean canAddFacade(IFacadePart a)
      Checks if the IFacadePart can be added to the given side.
      Returns:
      true if the facade can be successfully added.
    • addFacade

      boolean addFacade(IFacadePart a)
      Attempts to add the IFacadePart to the given side.
      Returns:
      true if the facade as successfully added.
    • removeFacade

      void removeFacade(IPartHost host, net.minecraft.core.Direction side)
      Removed the facade on the given side, or does nothing.
    • getFacade

      @Nullable @Nullable IFacadePart getFacade(net.minecraft.core.Direction s)
      Returns:
      the IFacadePart for a given side, or null.
    • writeToNBT

      void writeToNBT(net.minecraft.nbt.CompoundTag data)
      write nbt data
      Parameters:
      data - to be written data
    • readFromStream

      boolean readFromStream(net.minecraft.network.FriendlyByteBuf data)
      read from stream
      Parameters:
      data - to be read data
      Returns:
      true if it was readable
    • readFromNBT

      void readFromNBT(net.minecraft.nbt.CompoundTag data)
      read from NBT
      Parameters:
      data - to be read data
    • writeToStream

      void writeToStream(net.minecraft.network.FriendlyByteBuf data)
      write to stream
      Parameters:
      data - to be written data
    • isEmpty

      boolean isEmpty()
      Returns:
      true if there are no facades.