BuilderToolsUserDataSystem
Package: com.hypixel.hytale.builtin.buildertools
public class BuilderToolsUserDataSystem extends HolderSystem<EntityStore>An EntityStore holder system that ensures every player entity has a BuilderToolsUserData component. Registered during BuilderToolsPlugin setup.
@Nonnull@Overridepublic Query<EntityStore> getQuery()Returns a compound query matching entities that have a Player component but do not have a BuilderToolsUserData component: Query.and(Player.getComponentType(), Query.not(BuilderToolsUserData.getComponentType())).
Lifecycle Callbacks
Section titled “Lifecycle Callbacks”onEntityAdd
Section titled “onEntityAdd”@Overridepublic void onEntityAdd(@Nonnull Holder<EntityStore> holder, @Nonnull AddReason reason, @Nonnull Store<EntityStore> store)Ensures the BuilderToolsUserData component exists on the entity by calling holder.ensureComponent(BuilderToolsUserData.getComponentType()).
onEntityRemoved
Section titled “onEntityRemoved”@Overridepublic void onEntityRemoved(@Nonnull Holder<EntityStore> holder, @Nonnull RemoveReason reason, @Nonnull Store<EntityStore> store)No-op implementation. The component is not removed on entity removal.
Related Types
Section titled “Related Types”- BuilderToolsUserData — the component this system ensures
- BuilderToolsSystems.EnsureBuilderTools — companion system that ensures builder tool items
- BuilderToolsPlugin — registers this system during setup
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.