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 Boolean hasStaffHandler

Returns if the given item has a registered handler when inserted into a 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 final static Item itemInStaff

Gets the item inserted into the given staff item stack.

Link copied to clipboard
private final static ItemStack itemStackInStaff

Gets the item stack inserted into the given staff item stack. The value returned MUST NOT be modified in any way, use mutableItemStackInStaff instead.

Link copied to clipboard

Gets or sets a copy of the item stack inserted into the given staff item stack. The value returned or passed in can be freely modified.

Link copied to clipboard
private final static StaffHandler staffHandler

Returns the registered staff handler of the given item if available.

Link copied to clipboard
private final static StaffHandler staffHandlerOrDefault

Returns the registered staff handler of the given item if available, StaffHandler.Default otherwise.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean getCanUseStaff()
Link copied to clipboard
public final Item getItemInStaff()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean hasStaffHandler()
Link copied to clipboard
public final Boolean isItemInStaff()
Link copied to clipboard
public void setMutableItemStackInStaff(ItemStack mutableItemStackInStaff)