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.
-
Method Summary
Modifier and TypeMethodDescriptionreadFromNbt
(PartDefinition definition, MultipartHolder holder, NbtCompound nbt) Reads the pipe pluggable from NBT.
-
Method Details
-
readFromNbt
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.
-