Package vazkii.botania.api.item
Interface WireframeCoordinateListProvider
- All Known Implementing Classes:
RingOfLokiItem,ShiftingCrustRodItem
public interface WireframeCoordinateListProvider
An item that implements this will allow for various wireframes to be drawn
around the player. This will be called while the item is in the inventory,
armor slot or bauble slots.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable net.minecraft.core.BlockPosgetSourceWireframe(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Gets a wireframe to draw thicker than the rest.List<net.minecraft.core.BlockPos> getWireframesToDraw(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Returns a list of BlockPos for the wireframes to draw.
-
Method Details
-
getWireframesToDraw
List<net.minecraft.core.BlockPos> getWireframesToDraw(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Returns a list of BlockPos for the wireframes to draw. Will not be null. -
getSourceWireframe
@Nullable default @Nullable net.minecraft.core.BlockPos getSourceWireframe(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Gets a wireframe to draw thicker than the rest. This is useful to indicate the precedence of some position over the others.- Returns:
- The position of a single wireframe to draw thicker than all the others.
-