Interface FluidTankWithDisplayEntity
- All Superinterfaces:
io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock, io.github.pylonmc.rebar.block.base.RebarFluidBlock, io.github.pylonmc.rebar.block.base.RebarFluidTank
- All Known Implementing Classes:
Crucible, FluidTank, MixingPot, PortableFluidTank
public interface FluidTankWithDisplayEntity
extends io.github.pylonmc.rebar.block.base.RebarFluidTank
Represents a fluid tank block which displays its contents as an item display.
Examples: fluid tanks, crucible, mixing pot.
`createFluidDisplay` must be called in your constructor.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidTank
io.github.pylonmc.rebar.block.base.RebarFluidTank.Companion -
Field Summary
Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidTank
Companion -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault org.joml.Vector3ddefault org.joml.Vector3ddefault @NotNull org.bukkit.entity.ItemDisplaydefault booleansetFluid(double amount) default voidsetFluidType(@Nullable io.github.pylonmc.rebar.fluid.RebarFluid fluid) Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarBreakHandler
postBreak, preBreakMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock
addEntity, addEntity, areAllHeldEntitiesLoaded, getBlock, getHeldEntities, getHeldEntity, getHeldEntity, getHeldEntityOrThrow, getHeldEntityOrThrow, getHeldEntityUuid, getHeldEntityUuidOrThrow, getHeldRebarEntity, getHeldRebarEntity, getHeldRebarEntityOrThrow, isHeldEntityPresent, tryRemoveAllEntities, tryRemoveEntity, whenHeldRebarEntityLoads, whenHeldRebarEntityLoadsMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidBlock
createFluidPoint, createFluidPoint, createFluidPoint, createFluidPoint, getFluidPointDisplay, getFluidPointDisplayOrThrow, onBreakMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidTank
addFluid, canAddFluid, canAddFluid, canSetFluid, fluidAmountRequested, getFluidAmount, getFluidCapacity, getFluidSpaceRemaining, getFluidType, getSuppliedFluids, isAllowedFluid, onFluidAdded, onFluidRemoved, removeFluid, setCapacity
-
Method Details
-
createFluidDisplay
default void createFluidDisplay() -
getFluidDisplay
@NotNull default @NotNull org.bukkit.entity.ItemDisplay getFluidDisplay() -
setFluidType
default void setFluidType(@Nullable @Nullable io.github.pylonmc.rebar.fluid.RebarFluid fluid) - Specified by:
setFluidTypein interfaceio.github.pylonmc.rebar.block.base.RebarFluidTank
-
setFluid
default boolean setFluid(double amount) - Specified by:
setFluidin interfaceio.github.pylonmc.rebar.block.base.RebarFluidTank
-
fluidDisplayTranslation
default org.joml.Vector3d fluidDisplayTranslation() -
fluidDisplayScale
default org.joml.Vector3d fluidDisplayScale()
-