Class HubPortalInteraction
java.lang.Object
com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction
com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction
com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInstantInteraction
com.hypixel.hytale.builtin.creativehub.interactions.HubPortalInteraction
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,,IndexedLookupTableAssetMap<String, Interaction>> NetworkSerializable<Interaction>,Operation
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation
Operation.NestedOperation -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<HubPortalInteraction> private Stringprivate static final com.hypixel.hytale.logger.HytaleLoggerprivate Stringprivate StringFields inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction
failed, nextFields inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction
ABSTRACT_CODEC, camera, cancelOnItemChange, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, CONTEXT_META_REGISTRY, DAMAGE, data, effects, HIT_DETAIL, HIT_LOCATION, horizontalSpeedMultiplier, id, META_REGISTRY, rules, runTime, settings, TARGET_BLOCK, TARGET_BLOCK_RAW, TARGET_ENTITY, TARGET_SLOT, TIME_SHIFT, unknown, VALIDATOR_CACHE, viewDistance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfirstRun(InteractionType type, InteractionContext context, CooldownHandler cooldownHandler) private voidteleportToLoadedWorld(Ref<EntityStore> playerRef, ComponentAccessor<EntityStore> componentAccessor, World targetWorld, Player playerComponent) private voidteleportToLoadingWorld(Ref<EntityStore> playerRef, ComponentAccessor<EntityStore> componentAccessor, CompletableFuture<World> worldFuture, World originalWorld, Player playerComponent) Methods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInstantInteraction
simulateFirstRun, simulateTick0, tick0, toStringMethods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.SimpleInteraction
compile, configurePacket, generatePacket, needsRemoteSync, walkMethods inherited from class com.hypixel.hytale.server.core.modules.interaction.interaction.config.Interaction
failed, getAnimationDuration, getAssetMap, getAssetStore, getEffects, getHorizontalSpeedMultiplier, getId, getInteractionIdOrUnknown, getInteractionOrUnknown, getRules, getRunTime, getSettings, getViewDistance, handle, isCancelOnItemChange, isUnknown, mapForkChain, needsRemoteSync, simulateTick, tick, toPacketMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.core.modules.interaction.interaction.operation.Operation
getInnerOperation, getTags
-
Field Details
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
CODEC
-
worldName
-
worldGenType
-
instanceTemplate
-
-
Constructor Details
-
HubPortalInteraction
public HubPortalInteraction()
-
-
Method Details
-
getWaitForDataFrom
- Specified by:
getWaitForDataFromin interfaceOperation- Overrides:
getWaitForDataFromin classSimpleInteraction
-
firstRun
protected void firstRun(@Nonnull InteractionType type, @Nonnull InteractionContext context, @Nonnull CooldownHandler cooldownHandler) - Specified by:
firstRunin classSimpleInstantInteraction
-
teleportToLoadedWorld
private void teleportToLoadedWorld(@Nonnull Ref<EntityStore> playerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull World targetWorld, @Nonnull Player playerComponent) -
teleportToLoadingWorld
private void teleportToLoadingWorld(@Nonnull Ref<EntityStore> playerRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull CompletableFuture<World> worldFuture, @Nonnull World originalWorld, @Nonnull Player playerComponent)
-