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
Field world.
entityStore
Field entityStore.
whoPlacedUuid
Field whoPlacedUuid.
whoPlacedRef
Field whoPlacedRef.
playerRefComponent
Field playerRefComponent.
language
Field language.
blockStateInfoComponent
Field blockStateInfoComponent.
chunkRef
Field chunkRef.
worldChunk
Field worldChunk.
cannedName
Field cannedName.
teleporterComponent
Field teleporterComponent.
chunkBlockX
Field chunkBlockX.
chunkBlockZ
Field chunkBlockZ.
index
Field index.
x
Field x.
y
Field y.
z
Field z.
blockChunkComponent
Field blockChunkComponent.
section
Field section.
rotationIndex
Field rotationIndex.
rotationTuple
Field rotationTuple.
rotationYaw
Field rotationYaw.
rotationTupleAxis
Field rotationTupleAxis.
offset
Field offset.
warpRotationYaw
Field warpRotationYaw.
warpPosition
Field warpPosition.
warpId
Field warpId.
Method Detail
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final PlacedByInteractionComponent placedBy, @Nonnull final Store chunkStore, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final PlacedByInteractionComponentplacedBy@Nonnull final StorechunkStore@Nonnull final CommandBuffercommandBuffer
createWarp
void
createWarp
(@Nonnull final WorldChunk worldChunk, @Nonnull final BlockModule.BlockStateInfo blockStateInfo, @Nonnull final String name)
Method createWarp.
- Parameters:
@Nonnull final WorldChunkworldChunk@Nonnull final BlockModule.BlockStateInfoblockStateInfo@Nonnull final Stringname
Vector3d
new
Vector3d
(CreateWarpWhenTeleporterPlacedSystem.WARP_OFFSET.getX()
Method Vector3d.
- Parameters:
CreateWarpWhenTeleporterPlacedSystem.WARP_OFFSET.getX(CreateWarpWhenTeleporterPlacedSystem.WARP_OFFSET.getX(
Warp
new
Warp
(warpPosition.getX()
Method Warp.
- Parameters:
warpPosition.getX(warpPosition.getX(
onComponentSet
void
onComponentSet
(@Nonnull final Ref ref, @Nullable final PlacedByInteractionComponent oldComponent, @Nonnull final PlacedByInteractionComponent newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentSet.
- Parameters:
@Nonnull final Refref@Nullable final PlacedByInteractionComponentoldComponent@Nonnull final PlacedByInteractionComponentnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final PlacedByInteractionComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final PlacedByInteractionComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
componentType
PlacedByInteractionComponent>
componentType
()
Method componentType.