Package wbs.utils.util.effects
Class RenderedItem
java.lang.Object
wbs.utils.util.effects.RenderedItem
Represents an item that gets rendered in the world with a given
type, to allow for smooth transitions between different
ItemRenderers.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents a specific implementation ofItemRenderer -
Constructor Summary
ConstructorsConstructorDescriptionRenderedItem(org.bukkit.Location location) Create a new rendered item in the world, defaulting to using aHeadRenderer -
Method Summary
Modifier and TypeMethodDescriptionvoidremove()Remove this itemvoidRecalculate the position and facing of the item.voidsetFacing(org.bukkit.util.Vector facing) Change the direction the item is facingvoidsetLocation(org.bukkit.Location location) Change this items location (direction ignored; usesetFacing(Vector)voidsetMaterial(org.bukkit.Material material) Set the type of item to rendervoidsetRenderType(RenderedItem.RenderType renderType) Change which renderer to use by using a RenderType
-
Constructor Details
-
RenderedItem
public RenderedItem(org.bukkit.Location location) Create a new rendered item in the world, defaulting to using aHeadRenderer- Parameters:
location- The location to render the item
-
-
Method Details
-
setRenderType
Change which renderer to use by using a RenderType- Parameters:
renderType- The type of renderer to change to
-
setMaterial
public void setMaterial(org.bukkit.Material material) Set the type of item to render- Parameters:
material- The item type to render
-
setLocation
public void setLocation(org.bukkit.Location location) Change this items location (direction ignored; usesetFacing(Vector)- Parameters:
location- The new position of this item
-
setFacing
public void setFacing(org.bukkit.util.Vector facing) Change the direction the item is facing- Parameters:
facing- The new facing direction
-
remove
public void remove()Remove this item -
reposition
public void reposition()Recalculate the position and facing of the item.
-