Class NPC
java.lang.Object
eu.cloudnetservice.modules.npc.NPC
- All Implemented Interfaces:
eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder, eu.cloudnetservice.driver.document.property.DocPropertyHolder
public final class NPC
extends Object
implements eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumstatic enumstatic final recordNested classes/interfaces inherited from interface eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder
eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder.Mutable<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final Typeprivate final Stringprivate final booleanprivate final booleanprivate final Stringprivate final booleanprivate final Stringprivate final NPC.ClickActionprivate final eu.cloudnetservice.modules.bridge.WorldPositionprivate final booleanprivate final NPC.NPCTypeprivate final eu.cloudnetservice.driver.document.Documentprivate static final Typeprivate final NPC.ClickActionprivate final booleanprivate final booleanprivate final Stringprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNPC(@NonNull NPC.NPCType npcType, @NonNull String targetGroup, @Nullable String inventoryName, @NonNull List<String> infoLines, @NonNull eu.cloudnetservice.modules.bridge.WorldPosition location, boolean lookAtPlayer, boolean imitatePlayer, boolean usePlayerSkin, boolean showIngameServices, boolean showFullServices, boolean glowing, @NonNull String glowingColor, boolean flyingWithElytra, boolean burning, @Nullable String floatingItem, @NonNull NPC.ClickAction leftClickAction, @NonNull NPC.ClickAction rightClickAction, @NonNull Map<Integer, String> items, @NonNull eu.cloudnetservice.driver.document.Document properties) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull NPC.Builderbuilder()static @NonNull NPC.Builderbooleanburning()booleanbooleanglowing()booleanitems()@NonNull eu.cloudnetservice.modules.bridge.WorldPositionlocation()booleannpcType()@NonNull eu.cloudnetservice.driver.document.DocumentbooleanbooleanbooleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder
propertyAbsent, propertyPresent, readProperty, readPropertyOrDefault, readPropertyOrGet, readPropertyOrThrow, readPropertyOrThrow
-
Field Details
-
COLLECTION_NPC
-
PROPERTIES
-
npcType
-
targetGroup
-
inventoryName
-
infoLines
-
location
private final eu.cloudnetservice.modules.bridge.WorldPosition location -
lookAtPlayer
private final boolean lookAtPlayer -
imitatePlayer
private final boolean imitatePlayer -
usePlayerSkin
private final boolean usePlayerSkin -
showIngameServices
private final boolean showIngameServices -
showFullServices
private final boolean showFullServices -
glowing
private final boolean glowing -
glowingColor
-
flyingWithElytra
private final boolean flyingWithElytra -
burning
private final boolean burning -
floatingItem
-
leftClickAction
-
rightClickAction
-
items
-
properties
private final eu.cloudnetservice.driver.document.Document properties
-
-
Constructor Details
-
NPC
private NPC(@NonNull @NonNull NPC.NPCType npcType, @NonNull @NonNull String targetGroup, @Nullable @Nullable String inventoryName, @NonNull @NonNull List<String> infoLines, @NonNull @NonNull eu.cloudnetservice.modules.bridge.WorldPosition location, boolean lookAtPlayer, boolean imitatePlayer, boolean usePlayerSkin, boolean showIngameServices, boolean showFullServices, boolean glowing, @NonNull @NonNull String glowingColor, boolean flyingWithElytra, boolean burning, @Nullable @Nullable String floatingItem, @NonNull @NonNull NPC.ClickAction leftClickAction, @NonNull @NonNull NPC.ClickAction rightClickAction, @NonNull @NonNull Map<Integer, String> items, @NonNull @NonNull eu.cloudnetservice.driver.document.Document properties)
-
-
Method Details
-
builder
-
builder
-
entityType
-
profileProperties
-
npcType
-
targetGroup
-
inventoryName
-
infoLines
-
location
-
lookAtPlayer
public boolean lookAtPlayer() -
imitatePlayer
public boolean imitatePlayer() -
usePlayerSkin
public boolean usePlayerSkin() -
showIngameServices
public boolean showIngameServices() -
showFullServices
public boolean showFullServices() -
glowing
public boolean glowing() -
glowingColor
-
flyingWithElytra
public boolean flyingWithElytra() -
burning
public boolean burning() -
floatingItem
-
leftClickAction
-
rightClickAction
-
items
-
propertyHolder
-