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 TagKey<Item> enabledItemsInStaffTag

Returns the item tag representing the enabled items in the given staff ItemStack.

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
public final static Double STAFF_MODEL_SCALE
Link copied to clipboard
private final static StaffHandler staffHandlerOrFallback

Returns the registered staff handler of the item in the given staff ItemStack if available, StaffHandler.Fallback otherwise.

Functions

Link copied to clipboard
public final static Boolean canUseStaff(Entity $self, RaycastContext.FluidHandling fluidHandling)

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean getIsItemInStaff()
Link copied to clipboard
public final Item getItemInStaff()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public void setMutableItemStackInStaff(ItemStack mutableItemStackInStaff)