Class FluidTankAttachment
java.lang.Object
dev.latvian.mods.kubejs.block.entity.FluidTankAttachment
- All Implemented Interfaces:
BlockEntityAttachment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFluidTankAttachment(KubeBlockEntity entity, int capacity, Predicate<net.neoforged.neoforge.fluids.FluidStack> filter) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(net.minecraft.core.HolderLookup.Provider registries, @Nullable net.minecraft.nbt.Tag tag) <CAP,SRC> CAP getCapability(net.neoforged.neoforge.capabilities.BlockCapability<CAP, SRC> capability) @Nullable net.minecraft.nbt.Tagserialize(net.minecraft.core.HolderLookup.Provider registries) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.block.entity.BlockEntityAttachment
onRemove, serverTick
-
Field Details
-
TYPE
-
entity
-
fluidTank
-
-
Constructor Details
-
FluidTankAttachment
public FluidTankAttachment(KubeBlockEntity entity, int capacity, Predicate<net.neoforged.neoforge.fluids.FluidStack> filter)
-
-
Method Details
-
getWrappedObject
- Specified by:
getWrappedObjectin interfaceBlockEntityAttachment
-
getCapability
@Nullable public <CAP,SRC> CAP getCapability(net.neoforged.neoforge.capabilities.BlockCapability<CAP, SRC> capability) - Specified by:
getCapabilityin interfaceBlockEntityAttachment
-
serialize
@Nullable public @Nullable net.minecraft.nbt.Tag serialize(net.minecraft.core.HolderLookup.Provider registries) - Specified by:
serializein interfaceBlockEntityAttachment
-
deserialize
public void deserialize(net.minecraft.core.HolderLookup.Provider registries, @Nullable @Nullable net.minecraft.nbt.Tag tag) - Specified by:
deserializein interfaceBlockEntityAttachment
-