Interface IFacadeContainer


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

    Modifier and Type
    Method
    Description
    boolean
    Attempts to add the IFacadePart to the given side.
    boolean
    Checks if the IFacadePart can be added to the given side.
    @Nullable IFacadePart
    getFacade(net.minecraft.core.Direction s)
     
    boolean
     
    void
    readFromNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries)
    read from NBT
    boolean
    readFromStream(net.minecraft.network.FriendlyByteBuf data)
    read from stream
    void
    removeFacade(IPartHost host, net.minecraft.core.Direction side)
    Removed the facade on the given side, or does nothing.
    void
    writeToNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries)
    write nbt data
    void
    writeToStream(net.minecraft.network.FriendlyByteBuf data)
    write to stream
  • 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, net.minecraft.core.HolderLookup.Provider registries)
      write nbt data
      Parameters:
      data - to be written data
      registries -
    • 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, net.minecraft.core.HolderLookup.Provider registries)
      read from NBT
      Parameters:
      data - to be read data
      registries -
    • 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.