Class RenderedItem

java.lang.Object
wbs.utils.util.effects.RenderedItem

public class RenderedItem extends Object
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 Classes
    Modifier and Type
    Class
    Description
    static enum 
    Represents a specific implementation of ItemRenderer
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenderedItem(org.bukkit.Location location)
    Create a new rendered item in the world, defaulting to using a HeadRenderer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove this item
    void
    Recalculate the position and facing of the item.
    void
    setFacing(org.bukkit.util.Vector facing)
    Change the direction the item is facing
    void
    setLocation(org.bukkit.Location location)
    Change this items location (direction ignored; use setFacing(Vector)
    void
    setMaterial(org.bukkit.Material material)
    Set the type of item to render
    void
    Change which renderer to use by using a RenderType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RenderedItem

      public RenderedItem(org.bukkit.Location location)
      Create a new rendered item in the world, defaulting to using a HeadRenderer
      Parameters:
      location - The location to render the item
  • Method Details

    • setRenderType

      public void setRenderType(RenderedItem.RenderType renderType)
      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; use setFacing(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.