Class CreateWarpWhenTeleporterPlacedSystem
java.lang.Object
com.hypixel.hytale.component.system.System<ChunkStore>
com.hypixel.hytale.component.system.RefChangeSystem<ChunkStore,PlacedByInteractionComponent>
com.hypixel.hytale.builtin.adventure.teleporter.system.CreateWarpWhenTeleporterPlacedSystem
- All Implemented Interfaces:
ISystem<ChunkStore>,QuerySystem<ChunkStore>
public class CreateWarpWhenTeleporterPlacedSystem
extends RefChangeSystem<ChunkStore,PlacedByInteractionComponent>
-
Field Summary
FieldsFields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateWarp(WorldChunk worldChunk, BlockModule.BlockStateInfo blockStateInfo, String name) getQuery()voidonComponentAdded(Ref<ChunkStore> ref, PlacedByInteractionComponent placedBy, Store<ChunkStore> chunkStore, CommandBuffer<ChunkStore> commandBuffer) voidonComponentRemoved(Ref<ChunkStore> ref, PlacedByInteractionComponent component, Store<ChunkStore> store, CommandBuffer<ChunkStore> commandBuffer) voidonComponentSet(Ref<ChunkStore> ref, PlacedByInteractionComponent oldComponent, PlacedByInteractionComponent newComponent, Store<ChunkStore> store, CommandBuffer<ChunkStore> commandBuffer) Methods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface com.hypixel.hytale.component.system.QuerySystem
test
-
Field Details
-
WARP_OFFSET
-
-
Constructor Details
-
CreateWarpWhenTeleporterPlacedSystem
public CreateWarpWhenTeleporterPlacedSystem()
-
-
Method Details
-
onComponentAdded
public void onComponentAdded(@Nonnull Ref<ChunkStore> ref, @Nonnull PlacedByInteractionComponent placedBy, @Nonnull Store<ChunkStore> chunkStore, @Nonnull CommandBuffer<ChunkStore> commandBuffer) - Specified by:
onComponentAddedin classRefChangeSystem<ChunkStore,PlacedByInteractionComponent>
-
createWarp
public static void createWarp(@Nonnull WorldChunk worldChunk, @Nonnull BlockModule.BlockStateInfo blockStateInfo, @Nonnull String name) -
onComponentSet
public void onComponentSet(@Nonnull Ref<ChunkStore> ref, @Nullable PlacedByInteractionComponent oldComponent, @Nonnull PlacedByInteractionComponent newComponent, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> commandBuffer) - Specified by:
onComponentSetin classRefChangeSystem<ChunkStore,PlacedByInteractionComponent>
-
onComponentRemoved
public void onComponentRemoved(@Nonnull Ref<ChunkStore> ref, @Nonnull PlacedByInteractionComponent component, @Nonnull Store<ChunkStore> store, @Nonnull CommandBuffer<ChunkStore> commandBuffer) - Specified by:
onComponentRemovedin classRefChangeSystem<ChunkStore,PlacedByInteractionComponent>
-
componentType
- Specified by:
componentTypein classRefChangeSystem<ChunkStore,PlacedByInteractionComponent>
-
getQuery
-