@FunctionalInterface
public static interface PluggableDefinition.IPluggableNbtReader
Modifier and Type | Method and Description |
---|---|
PipePluggable |
readFromNbt(PluggableDefinition definition,
IPipeHolder holder,
net.minecraft.util.EnumFacing side,
net.minecraft.nbt.NBTTagCompound nbt)
Reads the pipe pluggable from NBT.
|
PipePluggable readFromNbt(PluggableDefinition definition, IPipeHolder holder, net.minecraft.util.EnumFacing side, net.minecraft.nbt.NBTTagCompound nbt)
PluggableDefinition.IPluggableNetLoader
(which is allowed to fail and throw an
exception if the wrong data is given) this should make a best effort to read the pluggable from nbt, or fall
back to sensible defaults.