FluidPipe

An item that represents a fluid pipe. All the logic regarding placing the pipe is handled automatically.

Expects the pipe's config to contain a material, a fluid-per-second, and optionally a allowed-temperatures value. If allowed-temperatures is not set, any fluid will be allowed through. To override this behaviour, override canPass.

You should generally not need to extend this class. Instead, simply register an item with class FluidPipe.class to create a new pipe type.

Constructors

Link copied to clipboard
constructor(stack: ItemStack)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "respectCooldown")
open val respectCooldown: Boolean
Link copied to clipboard

Additional data about the item's type.

Link copied to clipboard

Functions

Link copied to clipboard
open fun canPass(fluid: PylonFluid): Boolean

Returns whether the pipe is capable of moving the given fluid through it.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getKey(): NamespacedKey
Link copied to clipboard
open override fun getPlaceholders(): List<PylonArgument>

Returns the list of placeholders to be substituted into the item's lore.

Link copied to clipboard

Returns settings associated with the item.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun key(): @NotNull Key
Link copied to clipboard
open override fun onUsedToRightClick(event: PlayerInteractEvent)

Called when a player right clicks with the item in either main or off hand.

Link copied to clipboard

Called when a player right clicks an entity while holding the item.

Link copied to clipboard
open fun place(context: BlockCreateContext): PylonBlock?

Places the block associated with this item, if it exists.