Class NPC.Builder
java.lang.Object
eu.cloudnetservice.modules.npc.NPC.Builder
- All Implemented Interfaces:
eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder, eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder.Mutable<NPC.Builder>, eu.cloudnetservice.driver.document.property.DocPropertyHolder, eu.cloudnetservice.driver.document.property.DocPropertyHolder.Mutable<NPC.Builder>
- Enclosing class:
NPC
public static final class NPC.Builder
extends Object
implements eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder.Mutable<NPC.Builder>
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder
eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder.Mutable<S>Nested classes/interfaces inherited from interface eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder.Mutable
eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder.Mutable.WithDirectModifier<S>Nested classes/interfaces inherited from interface eu.cloudnetservice.driver.document.property.DocPropertyHolder
eu.cloudnetservice.driver.document.property.DocPropertyHolder.Mutable<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Stringprivate booleanprivate booleanprivate Stringprivate booleanprivate Stringprivate NPC.ClickActionprivate eu.cloudnetservice.modules.bridge.WorldPositionprivate booleanprivate NPC.NPCTypeprivate final eu.cloudnetservice.driver.document.Document.Mutableprivate NPC.ClickActionprivate booleanprivate booleanprivate Stringprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()burning(boolean burning) entityType(@NonNull String entityType) floatingItem(@Nullable String floatingItem) flyingWithElytra(boolean flyingWithElytra) glowing(boolean glowing) glowingColor(@NonNull String glowingColor) imitatePlayer(boolean imitatePlayer) inventoryName(@Nullable String inventoryName) leftClickAction(@NonNull NPC.ClickAction leftClickAction) lookAtPlayer(boolean lookAtPlayer) profileProperties(@NonNull Set<NPC.ProfileProperty> profileProperties) @NonNull eu.cloudnetservice.driver.document.Document.MutablerightClickAction(@NonNull NPC.ClickAction rightClickAction) showFullServices(boolean showFullServices) showIngameServices(boolean showIngameServices) targetGroup(@NonNull String targetGroup) usePlayerSkin(boolean usePlayerSkin) Methods 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, readPropertyOrThrowMethods inherited from interface eu.cloudnetservice.driver.document.property.DefaultedDocPropertyHolder.Mutable
removeProperty, writeProperty, writePropertyIfAbsent, writePropertyIfAbsent, writePropertyIfPresent, writePropertyIfPresent
-
Field Details
-
properties
private final eu.cloudnetservice.driver.document.Document.Mutable properties -
npcType
-
targetGroup
-
inventoryName
-
infoLines
-
location
private eu.cloudnetservice.modules.bridge.WorldPosition location -
lookAtPlayer
private boolean lookAtPlayer -
imitatePlayer
private boolean imitatePlayer -
usePlayerSkin
private boolean usePlayerSkin -
showIngameServices
private boolean showIngameServices -
showFullServices
private boolean showFullServices -
glowing
private boolean glowing -
glowingColor
-
flyingWithElytra
private boolean flyingWithElytra -
burning
private boolean burning -
floatingItem
-
leftClickAction
-
rightClickAction
-
items
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
entityType
-
profileProperties
@NonNull public @NonNull NPC.Builder profileProperties(@NonNull @NonNull Set<NPC.ProfileProperty> profileProperties) -
usePlayerSkin
-
targetGroup
-
inventoryName
-
infoLines
-
location
@NonNull public @NonNull NPC.Builder location(@NonNull @NonNull eu.cloudnetservice.modules.bridge.WorldPosition location) -
lookAtPlayer
-
imitatePlayer
-
showIngameServices
-
showFullServices
-
glowing
-
glowingColor
-
flyingWithElytra
-
burning
-
floatingItem
-
leftClickAction
@NonNull public @NonNull NPC.Builder leftClickAction(@NonNull @NonNull NPC.ClickAction leftClickAction) -
rightClickAction
@NonNull public @NonNull NPC.Builder rightClickAction(@NonNull @NonNull NPC.ClickAction rightClickAction) -
items
-
build
-
propertyHolder
- Specified by:
propertyHolderin interfaceeu.cloudnetservice.driver.document.property.DocPropertyHolder- Specified by:
propertyHolderin interfaceeu.cloudnetservice.driver.document.property.DocPropertyHolder.Mutable<NPC.Builder>
-