Uses of Interface
wbs.utils.util.entities.state.EntityState
Packages that use EntityState
-
Uses of EntityState in wbs.utils.util.entities.state
Methods in wbs.utils.util.entities.state with type parameters of type EntityStateModifier and TypeMethodDescriptionstatic <T extends EntityState<?>>
voidRegister anEntityStatethat can be deserialized, with the function provided.
If a class is registered beforeJavaPlugin.onEnable()(such as inJavaPlugin.onLoad()) in the WbsUtils main instance, it will be automatically registered inConfigurationSerialization.Methods in wbs.utils.util.entities.state that return EntityStateModifier and TypeMethodDescriptionstatic @Nullable EntityState<?>EntityStateManager.deserialize(String escapedClassName, Map<String, Object> map) Converts the given map to the class represented by the class name (escaped for use in serialization)Methods in wbs.utils.util.entities.state that return types with arguments of type EntityStateModifier and TypeMethodDescription@NotNull Set<Class<? extends EntityState<?>>>EntityState.restoreAfter()Used to build a graph of captured states, allowing states to be restored in the appropriate order, such as restoringAllowFlightStateafterGameModeState, to prevent a change toGameMode.SURVIVALfrom overriding thePlayer.getAllowFlight()state.Methods in wbs.utils.util.entities.state with parameters of type EntityStateModifier and TypeMethodDescriptionSavedEntityState.track(EntityState<? super T> toTrack) Add a new state to track.SavedEntityState.trackIfAbsent(EntityState<? super T> toTrack) Add a new state to track, only if another of the same class has not been added.Method parameters in wbs.utils.util.entities.state with type arguments of type EntityStateModifier and TypeMethodDescriptionSavedEntityState.track(Collection<EntityState<? super T>> toTrack) Add multiple states to track.Constructor parameters in wbs.utils.util.entities.state with type arguments of type EntityState -
Uses of EntityState in wbs.utils.util.entities.state.tracker
Classes in wbs.utils.util.entities.state.tracker that implement EntityStateModifier and TypeClassDescriptionclassAnEntityStatethat captures aPlayer's ability to fly, but not whether they were flying when the state was captured.classAnEntityStatethat captures anEntity's current distance fallen, used for damage calculations (among other uses).classAnEntityStatethat captures how much longer (in ticks) anEntitywill be on fire for.classAnEntityStatethat captures whether or not anPlayeris currently flying.classAnEntityStatethat captures the game mode aPlayeris currently in.classAnEntityStatethat captures aLivingEntity's current health.classAnEntityStatethat captures aPlayer's current hunger level.classclassAnEntityStatethat captures whether or not anEntityis currently invulnerable.classAnEntityStatethat captures anEntity's current location.classAnEntityStatethat captures aLivingEntity's currently active potion effects.classAnEntityStatethat captures aLivingEntity's remaining air, used to determine when it will start drowning.classAnEntityStatethat captures aPlayer's current saturation level.classclassAnEntityStatethat captures anEntity's current velocity.classAnEntityStatethat captures aPlayer's current XP level.Methods in wbs.utils.util.entities.state.tracker that return types with arguments of type EntityStateModifier and TypeMethodDescription@NotNull Set<Class<? extends EntityState<?>>>AllowFlightState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>FallDistanceState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>FireTicksState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>FlyingState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>GameModeState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>HealthState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>HungerState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>InventoryState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>InvulnerableState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>LocationState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>PotionEffectsState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>RemainingAirState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>SaturationState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>ScoreboardState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>VelocityState.restoreAfter()@NotNull Set<Class<? extends EntityState<?>>>XPState.restoreAfter()