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 Type
    Method
    Description
    default void
     
    default org.joml.Vector3d
     
    default org.joml.Vector3d
     
    default @NotNull org.bukkit.entity.ItemDisplay
     
    default boolean
    setFluid(double amount)
     
    default void
    setFluidType(@Nullable io.github.pylonmc.rebar.fluid.RebarFluid fluid)
     

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarBreakHandler

    postBreak, preBreak

    Methods 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, whenHeldRebarEntityLoads

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidBlock

    createFluidPoint, createFluidPoint, createFluidPoint, createFluidPoint, getFluidPointDisplay, getFluidPointDisplayOrThrow, onBreak

    Methods 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:
      setFluidType in interface io.github.pylonmc.rebar.block.base.RebarFluidTank
    • setFluid

      default boolean setFluid(double amount)
      Specified by:
      setFluid in interface io.github.pylonmc.rebar.block.base.RebarFluidTank
    • fluidDisplayTranslation

      default org.joml.Vector3d fluidDisplayTranslation()
    • fluidDisplayScale

      default org.joml.Vector3d fluidDisplayScale()