CreateWarpWhenTeleporterPlacedSystem

public class CreateWarpWhenTeleporterPlacedSystem extends RefChangeSystem

System for handling createwarpwhenteleporterplaced mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > RefChangeSystem > CreateWarpWhenTeleporterPlacedSystem

Field Summary

world

final World world

Field world.

entityStore

final EntityStore entityStore

Field entityStore.

whoPlacedUuid

final UUID whoPlacedUuid

Field whoPlacedUuid.

whoPlacedRef

final Ref whoPlacedRef

Field whoPlacedRef.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

language

final String language

Field language.

blockStateInfoComponent

final BlockModule.BlockStateInfo blockStateInfoComponent

Field blockStateInfoComponent.

chunkRef

final Ref chunkRef

Field chunkRef.

worldChunk

final WorldChunk worldChunk

Field worldChunk.

cannedName

final String cannedName

Field cannedName.

teleporterComponent

final Teleporter teleporterComponent

Field teleporterComponent.

chunkBlockX

final int chunkBlockX

Field chunkBlockX.

chunkBlockZ

final int chunkBlockZ

Field chunkBlockZ.

index

final int index

Field index.

x

final int x

Field x.

y

final int y

Field y.

z

final int z

Field z.

blockChunkComponent

final BlockChunk blockChunkComponent

Field blockChunkComponent.

section

final BlockSection section

Field section.

rotationIndex

final int rotationIndex

Field rotationIndex.

rotationTuple

final RotationTuple rotationTuple

Field rotationTuple.

rotationYaw

final Rotation rotationYaw

Field rotationYaw.

rotationTupleAxis

final Vector3i rotationTupleAxis

Field rotationTupleAxis.

offset

final Vector3d offset

Field offset.

warpRotationYaw

final float warpRotationYaw

Field warpRotationYaw.

warpPosition

final Vector3d warpPosition

Field warpPosition.

warpId

final String warpId

Field warpId.

Method Detail

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final PlacedByInteractionComponent placedBy, @Nonnull final Store chunkStore, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final PlacedByInteractionComponent placedBy
@Nonnull final Store chunkStore
@Nonnull final CommandBuffer commandBuffer

createWarp

static void createWarp (@Nonnull final WorldChunk worldChunk, @Nonnull final BlockModule.BlockStateInfo blockStateInfo, @Nonnull final String name)

Method createWarp.

Parameters:
@Nonnull final WorldChunk worldChunk
@Nonnull final BlockModule.BlockStateInfo blockStateInfo
@Nonnull final String name

Vector3d

public new Vector3d (CreateWarpWhenTeleporterPlacedSystem.WARP_OFFSET.getX()

Method Vector3d.

Parameters:
CreateWarpWhenTeleporterPlacedSystem.WARP_OFFSET.getX( CreateWarpWhenTeleporterPlacedSystem.WARP_OFFSET.getX(

Warp

public new Warp (warpPosition.getX()

Method Warp.

Parameters:
warpPosition.getX( warpPosition.getX(

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final PlacedByInteractionComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final PlacedByInteractionComponent component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

componentType

public PlacedByInteractionComponent> componentType ()

Method componentType.

getQuery

public Query getQuery ()

Method getQuery.