MountSystems

public class MountSystems

Class MountSystems. Provides mountsystems functionality for the Hytale server.

java.lang.Object > MountSystems

Field Summary

mountedToEntity

final Ref mountedToEntity

Field mountedToEntity.

mountedBy

final MountedByComponent mountedBy

Field mountedBy.

mountedToBlock

final Ref mountedToBlock

Field mountedToBlock.

chunkStore

final Store chunkStore

Field chunkStore.

seatComponent

final BlockMountComponent seatComponent

Field seatComponent.

visible

final EntityTrackerSystems.Visible visible

Field visible.

mounted

final MountedComponent mounted

Field mounted.

ref

final Ref ref

Field ref.

update

final ComponentUpdate update

Field update.

offset

final com.hypixel.hytale.math.vector.Vector3f offset

Field offset.

netOffset

final Vector3f netOffset

Field netOffset.

mountedToNetworkId

final int mountedToNetworkId

Field mountedToNetworkId.

blockMountComponent

final BlockMountComponent blockMountComponent

Field blockMountComponent.

occupiedSeat

final BlockMountPoint occupiedSeat

Field occupiedSeat.

blockType

final BlockType blockType

Field blockType.

position

final com.hypixel.hytale.math.vector.Vector3f position

Field position.

rotationEuler

final com.hypixel.hytale.math.vector.Vector3f rotationEuler

Field rotationEuler.

blockMount

final BlockMount blockMount

Field blockMount.

visibleComponent

final EntityTrackerSystems.Visible visibleComponent

Field visibleComponent.

target

final Ref target

Field target.

input

final PlayerInput input

Field input.

mountRef

final Ref mountRef

Field mountRef.

mountNetworkId

final int mountNetworkId

Field mountNetworkId.

by

final MountedByComponent by

Field by.

blockSeatComponent

final BlockMountComponent blockSeatComponent

Field blockSeatComponent.

world

final World world

Field world.

controller

final MountController controller

Field controller.

targetRef

final Ref targetRef

Field targetRef.

queue

final List queue

Field queue.

q

final PlayerInput.InputUpdate q

Field q.

states

final MovementStates states

Field states.

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

transform

final TransformComponent transform

Field transform.

minecartComponent

final MinecartComponent minecartComponent

Field minecartComponent.

currentTime

final Instant currentTime

Field currentTime.

source2

final Damage.Source source2

Field source2.

playerComponent

final Player playerComponent

Field playerComponent.

drop

final Holder drop

Field drop.

Method Detail

handleMountedRemoval

static void handleMountedRemoval (final Ref ref, @Nonnull final CommandBuffer commandBuffer, @Nonnull final MountedComponent component)

Method handleMountedRemoval.

Parameters:
final Ref ref
@Nonnull final CommandBuffer commandBuffer
@Nonnull final MountedComponent component

TrackerUpdate

public public TrackerUpdate ()

Method TrackerUpdate.

getGroup

public SystemGroup getGroup ()

Method getGroup.

getQuery

public Query getQuery ()

Method getQuery.

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

if

public else if (!visible.newlyVisibleTo.isEmpty()

Method if.

Parameters:
!visible.newlyVisibleTo.isEmpty( !visible.newlyVisibleTo.isEmpty(

queueUpdatesFor

static void queueUpdatesFor (@Nonnull final Ref ref, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo, @Nonnull final MountedComponent component)

Method queueUpdatesFor.

Parameters:
@Nonnull final Ref ref
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo
@Nonnull final MountedComponent component

MountedUpdate

public new MountedUpdate (mountedToNetworkId, netOffset, component.getControllerType()

Method MountedUpdate.

Parameters:
mountedToNetworkId mountedToNetworkId
netOffset netOffset
component.getControllerType( component.getControllerType(

BlockMount

public new BlockMount (blockMountComponent.getType()

Method BlockMount.

Parameters:
blockMountComponent.getType( blockMountComponent.getType(

componentType

public MountedComponent> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final MountedComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

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

onComponentSet

public void onComponentSet (@Nonnull final Ref ref, final MountedComponent oldComponent, @Nonnull final MountedComponent newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentSet.

Parameters:
@Nonnull final Ref ref
final MountedComponent oldComponent
@Nonnull final MountedComponent newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

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

Method onComponentRemoved.

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

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

PlayerMount

public public PlayerMount ()

Method PlayerMount.

HandleMountInput

public public HandleMountInput ()

Method HandleMountInput.

SystemDependency

public new SystemDependency (Order.BEFORE, PlayerSystems.ProcessPlayerInput.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
PlayerSystems.ProcessPlayerInput.class PlayerSystems.ProcessPlayerInput.class

getDependencies

public Set> getDependencies ()

Method getDependencies.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

handle

public void handle (final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final Damage damage)

Method handle.

Parameters:
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Damage damage

ItemStack

public new ItemStack (minecartComponent.getSourceItem()

Method ItemStack.

Parameters:
minecartComponent.getSourceItem( minecartComponent.getSourceItem(

SystemGroupDependency

public new SystemGroupDependency (Order.AFTER, DamageModule.get()

Method SystemGroupDependency.

Parameters:
Order.AFTER Order.AFTER
DamageModule.get( DamageModule.get(