Class EnergyStorageAttachment
java.lang.Object
dev.latvian.mods.kubejs.block.entity.EnergyStorageAttachment
- All Implemented Interfaces:
BlockEntityAttachment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal net.minecraft.core.Direction[]static final BlockEntityAttachmentType -
Constructor Summary
ConstructorsConstructorDescriptionEnergyStorageAttachment(KubeBlockEntity entity, int capacity, int maxReceive, int maxExtract, int autoOutput, net.minecraft.core.Direction[] autoOutputDirections) -
Method Summary
Modifier and TypeMethodDescription<CAP,SRC> CAP getCapability(net.neoforged.neoforge.capabilities.BlockCapability<CAP, SRC> capability) voidMethods 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
deserialize, onRemove, serialize
-
Field Details
-
TYPE
-
energyStorage
-
autoOutput
public final int autoOutput -
autoOutputDirections
public final net.minecraft.core.Direction[] autoOutputDirections
-
-
Constructor Details
-
EnergyStorageAttachment
public EnergyStorageAttachment(KubeBlockEntity entity, int capacity, int maxReceive, int maxExtract, int autoOutput, net.minecraft.core.Direction[] autoOutputDirections)
-
-
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
-
serverTick
public void serverTick()- Specified by:
serverTickin interfaceBlockEntityAttachment
-