Package appeng.api.parts
Interface IFacadeContainer
public interface IFacadeContainer
Used Internally.
not intended for implementation.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAttempts to add theIFacadePartto the given side.booleanChecks if theIFacadePartcan be added to the given side.@Nullable IFacadePartgetFacade(net.minecraft.core.Direction s) booleanisEmpty()voidreadFromNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries) read from NBTbooleanreadFromStream(net.minecraft.network.RegistryFriendlyByteBuf data) read from streamvoidremoveFacade(IPartHost host, net.minecraft.core.Direction side) Removed the facade on the given side, or does nothing.voidwriteToNBT(net.minecraft.nbt.CompoundTag data, net.minecraft.core.HolderLookup.Provider registries) write nbt datavoidwriteToStream(net.minecraft.network.RegistryFriendlyByteBuf data) write to stream
-
Method Details
-
canAddFacade
Checks if theIFacadePartcan be added to the given side.- Returns:
- true if the facade can be successfully added.
-
addFacade
Attempts to add theIFacadePartto 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
IFacadePartfor 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.
-