Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getComponentType()
- getWorldUuid()
- setWorldUuid(UUID)
- getTransform()
- setTransform(Transform)
- getRelativeMask()
- setRelativeMask(byte)
- getWarp()
- setWarp(String)
- getOwnedWarp()
- setOwnedWarp(String)
- hasOwnedWarp()
- setWarpNameWordListKey(String)
- isCustomName()
- setIsCustomName(boolean)
- getWarpNameWordListKey()
- getWarpNameWordList()
- isValid()
- clone()
- toTeleport(Vector3d, Rotation3f, Vector3i)
- validateWarp(Store, Teleporter, BlockModule.BlockStateInfo)
Class Teleporter
java.lang.Object
com.hypixel.hytale.builtin.adventure.teleporter.component.Teleporter
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final BuilderCodec<Teleporter> static final Stringstatic final StringFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<ChunkStore, Teleporter> bytegetWarp()booleanbooleanbooleanisValid()voidsetIsCustomName(boolean customName) voidsetOwnedWarp(String ownedWarp) voidsetRelativeMask(byte relativeMask) voidsetTransform(Transform transform) voidvoidsetWarpNameWordListKey(String warpNameWordListKey) voidsetWorldUuid(UUID worldUuid) toTeleport(org.joml.Vector3d currentPosition, Rotation3f currentRotation, org.joml.Vector3i blockPosition) static Teleporter.ValidationResultvalidateWarp(Store<ChunkStore> store, Teleporter teleporter, BlockModule.BlockStateInfo blockstate) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
-
CREATOR_IDENTIFIER
- See Also:
-
ACTIVATE_STATE
- See Also:
-
INACTIVE_STATE
- See Also:
-
-
Constructor Details
-
Teleporter
public Teleporter()
-
-
Method Details
-
getComponentType
-
getWorldUuid
-
setWorldUuid
-
getTransform
-
setTransform
-
getRelativeMask
public byte getRelativeMask() -
setRelativeMask
public void setRelativeMask(byte relativeMask) -
getWarp
-
setWarp
-
getOwnedWarp
-
setOwnedWarp
-
hasOwnedWarp
public boolean hasOwnedWarp() -
setWarpNameWordListKey
-
isCustomName
public boolean isCustomName() -
setIsCustomName
public void setIsCustomName(boolean customName) -
getWarpNameWordListKey
-
getWarpNameWordList
-
isValid
public boolean isValid() -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-
toTeleport
@Nullable public Teleport toTeleport(@Nonnull org.joml.Vector3d currentPosition, @Nonnull Rotation3f currentRotation, @Nonnull org.joml.Vector3i blockPosition) -
validateWarp
public static Teleporter.ValidationResult validateWarp(@Nonnull Store<ChunkStore> store, @Nonnull Teleporter teleporter, @Nonnull BlockModule.BlockStateInfo blockstate)
-