Class FluidVoider
java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.fluid.FluidVoider
- All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarEntityHolderBlock, io.github.pylonmc.rebar.block.base.RebarFluidBlock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public class FluidVoider
extends io.github.pylonmc.rebar.block.RebarBlock
implements io.github.pylonmc.rebar.block.base.RebarFluidBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.rebar.block.RebarBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidBlock
io.github.pylonmc.rebar.block.base.RebarFluidBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublefinal org.bukkit.Materialfinal doubleFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidBlock
Companion -
Constructor Summary
ConstructorsConstructorDescriptionFluidVoider(@NotNull org.bukkit.block.Block block, @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) FluidVoider(@NotNull org.bukkit.block.Block block, @NotNull org.bukkit.persistence.PersistentDataContainer pdc) -
Method Summary
Modifier and TypeMethodDescriptiondoublefluidAmountRequested(@NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid) voidonFluidAdded(@NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid, double amount) voidMethods 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, getWaila, isVanillaBlock, postLoad, refreshBlockTextureItem, register, scheduleBlockTextureItemRefresh, setDisableBlockTextureEntity, setupBlockTexture, write, writeDebugInfoMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods 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, getSuppliedFluids, onBreak, onFluidRemoved
-
Field Details
-
mainMaterial
public final org.bukkit.Material mainMaterial -
voidRate
public final double voidRate -
mainDisplaySize
public final double mainDisplaySize
-
-
Constructor Details
-
FluidVoider
public FluidVoider(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) -
FluidVoider
public FluidVoider(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
-
-
Method Details
-
postInitialise
public void postInitialise()- Overrides:
postInitialisein classio.github.pylonmc.rebar.block.RebarBlock
-
fluidAmountRequested
public double fluidAmountRequested(@NotNull @NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid) - Specified by:
fluidAmountRequestedin interfaceio.github.pylonmc.rebar.block.base.RebarFluidBlock
-
onFluidAdded
public void onFluidAdded(@NotNull @NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid, double amount) - Specified by:
onFluidAddedin interfaceio.github.pylonmc.rebar.block.base.RebarFluidBlock
-