StaffUtil

public final class StaffUtil

Properties

Link copied to clipboard
private final static Vec3d approximateStaffItemPosition

Gets the approximate position of the item in the staff, when held my an entity.

Link copied to clipboard
private final static Vec3d approximateStaffTipPosition

Gets the approximate position of the staff's tip, when held by an entity.

Link copied to clipboard
private final static Boolean canUseStaff

Checks if the user has sufficient space in front to use the staff.

Link copied to clipboard
private final static StaffItemHandler handlerOfItem

Returns the handler of the given item stack, if available. This item stack is not the staff item stack, but the one can be inserted into the staff.

Link copied to clipboard

Returns the handler of the given item stack, if available, a dummy one if not, and the empty staff handler if the item stack is null. This item stack is not the staff item stack, but the one can be inserted into the staff.

Link copied to clipboard
private final static Boolean hasHandlerOfItem

Returns if the given staff item stack has a registered handler. This item stack is not the staff item stack, but the one can be inserted into the staff.

Link copied to clipboard
private final static Boolean isItemInStaff

Checks if an item is added the given staff item stack.

Link copied to clipboard
private static ItemStack itemInStaff

Gets or sets the item added to the given staff item stack.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean getCanUseStaff()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean hasHandlerOfStaff()
Link copied to clipboard
public final Boolean isItemInStaff()
Link copied to clipboard
public void setItemInStaff(ItemStack itemInStaff)