Class SmelteryController
java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.smelting.SmelteryComponent
io.github.pylonmc.pylon.content.machines.smelting.SmelteryController
- All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarInventoryBlock, io.github.pylonmc.rebar.block.base.RebarMultiblock, io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock, io.github.pylonmc.rebar.block.base.RebarTickingBlock, io.github.pylonmc.rebar.block.base.RebarVanillaInventoryBlock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public final class SmelteryController
extends SmelteryComponent
implements io.github.pylonmc.rebar.block.base.RebarInventoryBlock, io.github.pylonmc.rebar.block.base.RebarMultiblock, io.github.pylonmc.rebar.block.base.RebarTickingBlock
-
Nested Class Summary
Nested 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.RebarInventoryBlock
io.github.pylonmc.rebar.block.base.RebarInventoryBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
io.github.pylonmc.rebar.block.base.RebarTickingBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublefinal intstatic final doublestatic final intFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
Companion -
Constructor Summary
ConstructorsConstructorDescriptionSmelteryController(@NotNull org.bukkit.block.Block block, @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) SmelteryController(@NotNull org.bukkit.block.Block block, @NotNull org.bukkit.persistence.PersistentDataContainer pdc) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFluid(@NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid, double amount) boolean@NotNull xyz.xenondevs.invui.gui.Guidouble@NotNull Set<io.github.pylonmc.rebar.util.position.ChunkPosition> doublegetFluidAmount(@NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid) doubledoublevoidheatAsymptotically(double target) booleanisPartOfMultiblock(@NotNull org.bukkit.block.Block otherBlock) booleanvoidvoidvoidonMultiblockUnformed(boolean partUnloaded) voidpostBreak(@NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) voidremoveFluid(@NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid, double amount) voidsetRunning(boolean running) voidtick()voidwrite(@NotNull org.bukkit.persistence.PersistentDataContainer pdc) Methods inherited from class SmelteryComponent
getControllerMethods inherited from class io.github.pylonmc.rebar.block.RebarBlock
getBlock, getBlockTextureEntity, getBlockTextureItem, getDefaultItem, getDefaultWailaTranslationKey, getDisableBlockTextureEntity, getDropItem, getKey, getLoreTranslationKey, getNameTranslationKey, getPickItem, getRebarBlock, getRebarBlockKeyKey, getRebarBlockPositionKey, getRebarBlockTextureEntityKey, getSchema, getSettings, getWaila, isVanillaBlock, postInitialise, postLoad, refreshBlockTextureItem, register, scheduleBlockTextureItemRefresh, setDisableBlockTextureEntity, setupBlockTexture, 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
onBreak, preBreakMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock
getGuiTitleMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarMultiblock
getBlock, isFormedAndFullyLoadedMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock
onInventoryOpen, onItemMoveFrom, onItemMoveToMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
getTickInterval, isAsync, setAsync, setTickInterval
-
Field Details
-
TICK_INTERVAL
public static final int TICK_INTERVAL -
FLUID_REACTION_PER_TICK
public static final double FLUID_REACTION_PER_TICK -
HEATING_FACTOR
public static final double HEATING_FACTOR -
COOLING_FACTOR
public static final double COOLING_FACTOR -
ROOM_TEMPERATURE
public static final double ROOM_TEMPERATURE -
maxHeight
public final int maxHeight
-
-
Constructor Details
-
SmelteryController
public SmelteryController(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) -
SmelteryController
public SmelteryController(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
-
-
Method Details
-
write
public void write(@NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc) - Overrides:
writein classio.github.pylonmc.rebar.block.RebarBlock
-
postBreak
public void postBreak(@NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) - Specified by:
postBreakin interfaceio.github.pylonmc.rebar.block.base.RebarBreakHandler
-
createGui
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui createGui()- Specified by:
createGuiin interfaceio.github.pylonmc.rebar.block.base.RebarInventoryBlock
-
getChunksOccupied
@NotNull public @NotNull Set<io.github.pylonmc.rebar.util.position.ChunkPosition> getChunksOccupied()- Specified by:
getChunksOccupiedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
checkFormed
public boolean checkFormed()- Specified by:
checkFormedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
onMultiblockFormed
public void onMultiblockFormed()- Specified by:
onMultiblockFormedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
onMultiblockRefreshed
public void onMultiblockRefreshed()- Specified by:
onMultiblockRefreshedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
onMultiblockUnformed
public void onMultiblockUnformed(boolean partUnloaded) - Specified by:
onMultiblockUnformedin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
isPartOfMultiblock
public boolean isPartOfMultiblock(@NotNull @NotNull org.bukkit.block.Block otherBlock) - Specified by:
isPartOfMultiblockin interfaceio.github.pylonmc.rebar.block.base.RebarMultiblock
-
addFluid
public void addFluid(@NotNull @NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid, double amount) -
removeFluid
public void removeFluid(@NotNull @NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid, double amount) -
getFluidAmount
public double getFluidAmount(@NotNull @NotNull io.github.pylonmc.rebar.fluid.RebarFluid fluid) -
getTotalFluid
public double getTotalFluid() -
getFluids
-
heatAsymptotically
public void heatAsymptotically(double target) -
tick
public void tick()- Specified by:
tickin interfaceio.github.pylonmc.rebar.block.base.RebarTickingBlock
-
setRunning
public void setRunning(boolean running) -
getBlockTextureProperties
-
isRunning
public boolean isRunning() -
getTemperature
public double getTemperature() -
getCapacity
public double getCapacity()
-