Package appeng.api.parts
Interface IFacadeContainer
public interface IFacadeContainer
Used Internally.
not intended for implementation.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Attempts to add theIFacadePart
to the given side.boolean
Checks if theIFacadePart
can be added to the given side.@Nullable IFacadePart
getFacade
(net.minecraft.core.Direction s) boolean
isEmpty()
void
readFromNBT
(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries) read from NBTboolean
readFromStream
(net.minecraft.network.RegistryFriendlyByteBuf data) read from streamvoid
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 datavoid
writeToStream
(net.minecraft.network.RegistryFriendlyByteBuf data) write to stream
-
Method Details
-
canAddFacade
Checks if theIFacadePart
can be added to the given side.- Returns:
- true if the facade can be successfully added.
-
addFacade
Attempts to add theIFacadePart
to the given side.- Returns:
- true if the facade as successfully added.
-
removeFacade
Removed the facade on the given side, or does nothing. -
getFacade
- 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 dataregistries
-
-
readFromStream
boolean readFromStream(net.minecraft.network.RegistryFriendlyByteBuf 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 dataregistries
-
-
writeToStream
void writeToStream(net.minecraft.network.RegistryFriendlyByteBuf data) write to stream- Parameters:
data
- to be written data
-
isEmpty
boolean isEmpty()- Returns:
- true if there are no facades.
-