Class FluidTank

java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.fluid.FluidTank
All Implemented Interfaces:
FluidTankWithDisplayEntity, io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarDirectionalBlock, io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock, io.github.pylonmc.rebar.block.base.RebarFluidBlock, io.github.pylonmc.rebar.block.base.RebarFluidTank, io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder, io.github.pylonmc.rebar.block.base.RebarMultiblock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class FluidTank extends io.github.pylonmc.rebar.block.RebarBlock implements io.github.pylonmc.rebar.block.base.RebarMultiblock, FluidTankWithDisplayEntity, io.github.pylonmc.rebar.block.base.RebarDirectionalBlock, io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.block.RebarBlock

    io.github.pylonmc.rebar.block.RebarBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarDirectionalBlock

    io.github.pylonmc.rebar.block.base.RebarDirectionalBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidTank

    io.github.pylonmc.rebar.block.base.RebarFluidTank.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder

    io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder.Companion, io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder.GhostBlock<E>, io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder.GhostBlockHitbox, io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder.RebarGhostBlock, io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder.VanillaGhostBlock
  • Field Summary

    Fields inherited from class io.github.pylonmc.rebar.block.RebarBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarDirectionalBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidTank

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarGhostBlockHolder

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    FluidTank(@NotNull org.bukkit.block.Block block, @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context)
     
    FluidTank(@NotNull org.bukkit.block.Block block, @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.joml.Vector3d
     
    @NotNull Set<io.github.pylonmc.rebar.util.position.ChunkPosition>
     
    @NotNull io.github.pylonmc.rebar.waila.WailaDisplay
    getWaila(@NotNull org.bukkit.entity.Player player)
     
    boolean
    isAllowedFluid(@NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid)
     
    boolean
    isPartOfMultiblock(@NotNull org.bukkit.block.Block otherBlock)
     
    void
     
    void
     
    void
    onMultiblockUnformed(boolean partUnloaded)
     

    Methods inherited from class io.github.pylonmc.rebar.block.RebarBlock

    getBlock, getBlockTextureEntity, getBlockTextureItem, getBlockTextureProperties, getDefaultItem, getDefaultWailaTranslationKey, getDisableBlockTextureEntity, getDropItem, getKey, getLoreTranslationKey, getNameTranslationKey, getPickItem, getRebarBlock, getRebarBlockKeyKey, getRebarBlockPositionKey, getRebarBlockTextureEntityKey, getSchema, getSettings, isVanillaBlock, postInitialise, postLoad, refreshBlockTextureItem, register, scheduleBlockTextureItemRefresh, setDisableBlockTextureEntity, setupBlockTexture, write, writeDebugInfo

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    getKey, key

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

    postBreak, preBreak

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

    getFacing, setFacing

    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, onFluidAdded, onFluidRemoved, removeFluid, setCapacity

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

    addGhostBlock, getGhostBlockHitbox, getRebarGhostBlockDisplay, getVanillaGhostBlockDisplay, hasGhostBlockAt, removeGhostBlock

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

    getBlock, isFormedAndFullyLoaded
  • Constructor Details

    • FluidTank

      public FluidTank(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context)
    • FluidTank

      public FluidTank(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
  • Method Details

    • getChunksOccupied

      @NotNull public @NotNull Set<io.github.pylonmc.rebar.util.position.ChunkPosition> getChunksOccupied()
      Specified by:
      getChunksOccupied in interface io.github.pylonmc.rebar.block.base.RebarMultiblock
    • checkFormed

      public boolean checkFormed()
      Specified by:
      checkFormed in interface io.github.pylonmc.rebar.block.base.RebarMultiblock
    • onMultiblockFormed

      public void onMultiblockFormed()
      Specified by:
      onMultiblockFormed in interface io.github.pylonmc.rebar.block.base.RebarMultiblock
    • onMultiblockRefreshed

      public void onMultiblockRefreshed()
      Specified by:
      onMultiblockRefreshed in interface io.github.pylonmc.rebar.block.base.RebarMultiblock
    • onMultiblockUnformed

      public void onMultiblockUnformed(boolean partUnloaded)
      Specified by:
      onMultiblockUnformed in interface io.github.pylonmc.rebar.block.base.RebarMultiblock
    • isPartOfMultiblock

      public boolean isPartOfMultiblock(@NotNull @NotNull org.bukkit.block.Block otherBlock)
      Specified by:
      isPartOfMultiblock in interface io.github.pylonmc.rebar.block.base.RebarMultiblock
    • isAllowedFluid

      public boolean isAllowedFluid(@NotNull @NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid)
      Specified by:
      isAllowedFluid in interface io.github.pylonmc.rebar.block.base.RebarFluidTank
    • fluidDisplayScale

      public org.joml.Vector3d fluidDisplayScale()
      Specified by:
      fluidDisplayScale in interface FluidTankWithDisplayEntity
    • getWaila

      @NotNull public @NotNull io.github.pylonmc.rebar.waila.WailaDisplay getWaila(@NotNull @NotNull org.bukkit.entity.Player player)
      Overrides:
      getWaila in class io.github.pylonmc.rebar.block.RebarBlock