Package alexiil.mc.lib.multipart.api
Interface PartDefinition.IPartNbtReader
- Enclosing class:
- PartDefinition
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface PartDefinition.IPartNbtReader
-
Method Summary
Modifier and Type Method Description AbstractPart
readFromNbt(PartDefinition definition, MultipartHolder holder, net.minecraft.nbt.CompoundTag nbt)
Reads the pipe pluggable from NBT.
-
Method Details
-
readFromNbt
AbstractPart readFromNbt(PartDefinition definition, MultipartHolder holder, net.minecraft.nbt.CompoundTag nbt)Reads the pipe pluggable from NBT. UnlikePartDefinition.IPartNetLoader
(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.
-