Package vazkii.botania.api.item
Interface SparkEntity
- All Known Subinterfaces:
CorporeaSpark,ManaSpark
- All Known Implementing Classes:
CorporeaSparkEntity,ManaSparkEntity,SparkBaseEntity
public interface SparkEntity
An Entity that implements this is considered a Spark.
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.minecraft.world.entity.Entityentity()net.minecraft.core.BlockPosnet.minecraft.world.item.DyeColorGets the network that this spark is on, or the color it's displaying.voidsetNetwork(net.minecraft.world.item.DyeColor color)
-
Method Details
-
getAttachPos
net.minecraft.core.BlockPos getAttachPos()- Returns:
- The position of the block that this spark is attached to
-
getNetwork
net.minecraft.world.item.DyeColor getNetwork()Gets the network that this spark is on, or the color it's displaying. Sparks may only connect to others of the same network. -
setNetwork
void setNetwork(net.minecraft.world.item.DyeColor color) -
entity
default net.minecraft.world.entity.Entity entity()- Returns:
- this spark as an Entity
-