Class DieselHammerHead
java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.diesel.machines.DieselHammerHead
- All Implemented Interfaces:
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.RebarFluidBufferBlock, io.github.pylonmc.rebar.block.base.RebarInventoryBlock, io.github.pylonmc.rebar.block.base.RebarLogisticBlock, io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock, io.github.pylonmc.rebar.block.base.RebarProcessor, io.github.pylonmc.rebar.block.base.RebarTickingBlock, io.github.pylonmc.rebar.block.base.RebarVanillaInventoryBlock, io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public class DieselHammerHead
extends io.github.pylonmc.rebar.block.RebarBlock
implements io.github.pylonmc.rebar.block.base.RebarTickingBlock, io.github.pylonmc.rebar.block.base.RebarInventoryBlock, io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock, io.github.pylonmc.rebar.block.base.RebarFluidBufferBlock, io.github.pylonmc.rebar.block.base.RebarProcessor, io.github.pylonmc.rebar.block.base.RebarDirectionalBlock, io.github.pylonmc.rebar.block.base.RebarLogisticBlock
-
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.RebarDirectionalBlock
io.github.pylonmc.rebar.block.base.RebarDirectionalBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidBufferBlock
io.github.pylonmc.rebar.block.base.RebarFluidBufferBlock.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.RebarLogisticBlock
io.github.pylonmc.rebar.block.base.RebarLogisticBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarProcessor
io.github.pylonmc.rebar.block.base.RebarProcessor.Companion, io.github.pylonmc.rebar.block.base.RebarProcessor.ProcessorDataNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
io.github.pylonmc.rebar.block.base.RebarTickingBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal io.github.pylonmc.rebar.item.builder.ItemStackBuilderfinal doublefinal doublefinal intfinal io.github.pylonmc.rebar.item.builder.ItemStackBuilderfinal io.github.pylonmc.rebar.item.builder.ItemStackBuilderfinal io.github.pylonmc.rebar.item.builder.ItemStackBuilderfinal doublefinal intFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarDirectionalBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidBufferBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarProcessor
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
Companion -
Constructor Summary
ConstructorsConstructorDescriptionDieselHammerHead(@NotNull org.bukkit.block.Block block, @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) DieselHammerHead(@NotNull org.bukkit.block.Block block, @NotNull org.bukkit.persistence.PersistentDataContainer pdc) -
Method Summary
Modifier and TypeMethodDescription@NotNull xyz.xenondevs.invui.gui.Gui@NotNull org.bukkit.entity.ItemDisplay@NotNull org.bukkit.entity.ItemDisplaystatic @NotNull org.joml.Matrix4fgetHeadTransformation(double translationY) static @NotNull org.joml.Matrix4fgetTipTransformation(double translationY) @Nullable io.github.pylonmc.rebar.waila.WailaDisplaygetWaila(@NotNull org.bukkit.entity.Player player) voidonBreak(@NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) voidvoidtick()voidupdateHammerTip(org.bukkit.inventory.ItemStack newItem) 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, 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
getKey, keyMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarBreakHandler
postBreak, preBreakMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarDirectionalBlock
getFacing, setFacingMethods 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, getFluidPointDisplayOrThrowMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarFluidBufferBlock
addFluid, canSetFluid, createFluidBuffer, deleteFluidBuffer, fluidAmount, fluidAmountRequested, fluidCapacity, fluidSpaceRemaining, getSuppliedFluids, hasFluid, onFluidAdded, onFluidRemoved, removeFluid, setFluid, setFluidCapacityMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock
getGuiTitleMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
createLogisticGroup, createLogisticGroup, createLogisticGroup, createLogisticGroup, getBlock, getLogisticGroup, getLogisticGroupOrThrow, getLogisticGroupsMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock
onInventoryOpen, onItemMoveFrom, onItemMoveToMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarProcessor
finishProcess, getProcessProgressItem, getProcessTicksRemaining, getProcessTimeTicks, isProcessing, onProcessFinished, progressProcess, setProcessProgressItem, startProcess, stopProcessMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
getTickInterval, isAsync, setAsync, setTickInterval
-
Field Details
-
goDownTimeTicks
public final int goDownTimeTicks -
speed
public final double speed -
dieselPerCraft
public final double dieselPerCraft -
dieselBuffer
public final double dieselBuffer -
tickInterval
public final int tickInterval -
hammerStack
public final io.github.pylonmc.rebar.item.builder.ItemStackBuilder hammerStack -
sideStack1
public final io.github.pylonmc.rebar.item.builder.ItemStackBuilder sideStack1 -
sideStack2
public final io.github.pylonmc.rebar.item.builder.ItemStackBuilder sideStack2 -
chimneyStack
public final io.github.pylonmc.rebar.item.builder.ItemStackBuilder chimneyStack
-
-
Constructor Details
-
DieselHammerHead
public DieselHammerHead(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) -
DieselHammerHead
public DieselHammerHead(@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
-
updateHammerTip
public void updateHammerTip(org.bukkit.inventory.ItemStack newItem) -
tick
public void tick()- Specified by:
tickin interfaceio.github.pylonmc.rebar.block.base.RebarTickingBlock
-
createGui
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui createGui()- Specified by:
createGuiin interfaceio.github.pylonmc.rebar.block.base.RebarInventoryBlock
-
onBreak
public void onBreak(@NotNull @NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) - Specified by:
onBreakin interfaceio.github.pylonmc.rebar.block.base.RebarBreakHandler- Specified by:
onBreakin interfaceio.github.pylonmc.rebar.block.base.RebarFluidBlock- Specified by:
onBreakin interfaceio.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
-
getHammerHead
@NotNull public @NotNull org.bukkit.entity.ItemDisplay getHammerHead() -
getHammerTip
@NotNull public @NotNull org.bukkit.entity.ItemDisplay getHammerTip() -
getHeadTransformation
@NotNull public static @NotNull org.joml.Matrix4f getHeadTransformation(double translationY) -
getTipTransformation
@NotNull public static @NotNull org.joml.Matrix4f getTipTransformation(double translationY) -
getWaila
@Nullable public @Nullable io.github.pylonmc.rebar.waila.WailaDisplay getWaila(@NotNull @NotNull org.bukkit.entity.Player player) - Overrides:
getWailain classio.github.pylonmc.rebar.block.RebarBlock
-
getVirtualInventories
-