- All Superinterfaces:
Agent
, ArmorEquipable
, AttributeHolder
, CopyableDataHolder
, Creature
, DataHolder
, DataHolder.Mutable
, DataSerializable
, Entity
, EntityProjectileSource
, Equipable
, Hostile
, HoverEventSource<HoverEvent.ShowEntity>
, Identifiable
, Living
, Locatable
, Monster
, ProjectileSource
, RandomProvider
, SerializableDataHolder
, SerializableDataHolder.Mutable
, Sound.Emitter
, TeamMember
, ValueContainer
- All Known Subinterfaces:
Evoker
, Illager
, Illusioner
, Pillager
, Raider
, Ravager
, Spellcaster
, Vindicator
, Witch
public interface Patroller
extends Monster
-
-
Method Summary
void
Instructs the patroller to find a new patrol target.
Methods inherited from interface org.spongepowered.api.item.inventory.ArmorEquipable
chest, feet, head, itemInHand, itemInHand, legs, setChest, setFeet, setHead, setItemInHand, setItemInHand, setLegs
Methods inherited from interface org.spongepowered.api.data.DataHolder.Mutable
copyFrom, copyFrom, offer, offer, offer, offer, offerAll, offerAll, offerAll, offerAll, offerAll, offerAll, offerSingle, offerSingle, offerSingle, offerSingle, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeKey, removeKey, removeSingle, removeSingle, transform, transform, tryOffer, tryOffer, tryOffer, undo
Methods inherited from interface org.spongepowered.api.entity.Entity
age, asHoverEvent, baseSize, baseVehicle, boundingBox, canSee, copy, createArchetype, createSnapshot, creator, customName, customNameVisible, damage, damage, direction, displayName, eyeHeight, eyePosition, fallDistance, fireImmuneTicks, fireTicks, frozenTime, glowing, gravityAffected, height, invisible, invulnerabilityTicks, invulnerable, isLoaded, isRemoved, isTransient, lookAt, maxAir, maxFrozenTime, nearbyEntities, nearbyEntities, notifier, onGround, passengers, position, remainingAir, remove, rotation, scale, scoreboardTags, setLocation, setLocationAndRotation, setLocationAndRotation, setPosition, setRotation, setScale, setTransform, silent, sneaking, sprinting, swiftness, transferToWorld, transferToWorld, transform, type, vanishState, vehicle, velocity, wet
Methods inherited from interface org.spongepowered.api.entity.living.Living
absorption, activeItem, bodyRotations, canGrief, chestRotation, elytraFlying, headDirection, headRotation, health, lastAttacker, lastDamageReceived, maxHealth, potionEffects, stuckArrows, walkingSpeed
Methods inherited from interface org.spongepowered.api.data.value.ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, supports, supports
-
Method Details
-
targetPosition
- Returns:
- The target position for a patrol
-
leader
- Returns:
- Whether this is the leader of a patrol
-
patrolling
- Returns:
- Whether this patroller is patrolling
-
findPatrolTarget
void findPatrolTarget()