Class PylonFluid
-
- All Implemented Interfaces:
-
net.kyori.adventure.key.Keyed
,org.bukkit.Keyed
public class PylonFluid implements Keyed
Fluids aren't necessarily just liquids, they can also be gases or other substances that can flow
-
-
Constructor Summary
Constructors Constructor Description PylonFluid(NamespacedKey key, Material material, PylonFluidTag tags)
PylonFluid(NamespacedKey key, Component name, Material material, List<PylonFluidTag> tags)
-
Method Summary
Modifier and Type Method Description final Component
getName()
final Material
getMaterial()
Used to display the fluid in fluid tanks final PylonFluid
addTag(PylonFluidTag tag)
final Boolean
hasTag(Class<out PylonFluidTag> type)
final <T extends PylonFluidTag> Boolean
hasTag()
final <T extends PylonFluidTag> T
getTag(Class<T> type)
final <T extends PylonFluidTag> T
getTag()
final Unit
removeTag(PylonFluidTag tag)
final Unit
register()
final ItemStackBuilder
getItem()
NamespacedKey
getKey()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
-
-
Constructor Detail
-
PylonFluid
PylonFluid(NamespacedKey key, Material material, PylonFluidTag tags)
-
PylonFluid
PylonFluid(NamespacedKey key, Component name, Material material, List<PylonFluidTag> tags)
-
-
Method Detail
-
getMaterial
final Material getMaterial()
Used to display the fluid in fluid tanks
-
addTag
final PylonFluid addTag(PylonFluidTag tag)
-
hasTag
final Boolean hasTag(Class<out PylonFluidTag> type)
-
hasTag
final <T extends PylonFluidTag> Boolean hasTag()
-
getTag
final <T extends PylonFluidTag> T getTag(Class<T> type)
-
getTag
final <T extends PylonFluidTag> T getTag()
-
removeTag
final Unit removeTag(PylonFluidTag tag)
-
getItem
final ItemStackBuilder getItem()
-
getKey
NamespacedKey getKey()
-
-
-
-