-
Notifications
You must be signed in to change notification settings - Fork 0
P | Utility: EntitySizeUtils
Sartaj Singh edited this page May 31, 2025
·
2 revisions
- 1. Overview
- 2. What is EntitySizeUtils?
- 3. Basic Usage
- 4. API Reference
- 5. Advanced Patterns
- 6. Troubleshooting & Notes
- 7. See Also
EntitySizeUtils is a utility class in FXItems for changing the size of entities or players in-game, if the EntitySize plugin is present.
It provides methods to set an entity's scale or reset them to their default size.
- Allows you to make entities (including players) larger or smaller.
- Depends on the EntitySize plugin for proper operation.
- Commonly used for abilities, effects, or custom items that change a player's visual size.
EntitySizeUtils.setSize(player, 2.0f); // Double the player's sizeEntitySizeUtils.resetSize(player);/**
* Sets the size (scale) of an entity.
*
* @param entity The entity to resize.
* @param scale The scale factor (e.g., 2.0 for double size, 0.5 for half size).
*/
public static void setSize(Entity entity, float scale);
/**
* Resets an entity's size to default.
*
* @param entity The entity to reset.
*/
public static void resetSize(Entity entity);-
Ability Scaling:
Use in custom item or ability logic to temporarily make players larger or smaller. -
Visual Effects:
Combine with particle or sound effects for dramatic transformations. -
Check for Plugin:
Always ensure EntitySize plugin is present before calling these methods.
- If the EntitySize plugin is not installed, these methods may do nothing.
- Scaling can affect hitboxes and interactions, so use carefully in PvP/PvE scenarios.
- Resetting is important after temporary effects to avoid leaving players/entities at the wrong size.
- Home
- A | Getting Started & Plugin Overview
- B | The Registry System: Items, Foods, Commands, Events
- C | Creating Custom Items
- D | Creating Custom Foods
- E | Advanced: Custom Effects in FXItems
- F | Creating Custom Commands
- G | Creating Custom Events & Behaviors
- H | Utility: CooldownUtils
- I | Utility: CustomItemUtils
- J | Utility: EffectUtils
- K | Utility: ManaUtils
- L | Utility: OneTimeCraftUtils
- M | Utility: TeleportUtils
- N | Utility: ProjectileUtils
- O | Utility: GammaUtils
- P | Utility: EntitySizeUtils
- Q | FXItems API (com.noctify.API) & Making Addons
- R | Advanced Techniques, Gotchas & FAQ
- S | Auto-Registration System
- T | Migration Guide (v1.1 → v1.2+)
- U | Changelog