public class MountSystems
Class MountSystems. Provides mountsystems functionality for the Hytale server.
java.lang.Object > MountSystems
Field Summary
mountedToEntity
Field mountedToEntity.
mountedBy
Field mountedBy.
mountedToBlock
Field mountedToBlock.
chunkStore
Field chunkStore.
seatComponent
Field seatComponent.
visible
Field visible.
mounted
Field mounted.
ref
Field ref.
update
Field update.
offset
Field offset.
netOffset
Field netOffset.
mountedToNetworkId
Field mountedToNetworkId.
blockMountComponent
Field blockMountComponent.
occupiedSeat
Field occupiedSeat.
blockType
Field blockType.
position
Field position.
rotationEuler
Field rotationEuler.
blockMount
Field blockMount.
visibleComponent
Field visibleComponent.
target
Field target.
input
Field input.
mountRef
Field mountRef.
mountNetworkId
Field mountNetworkId.
by
Field by.
blockSeatComponent
Field blockSeatComponent.
world
Field world.
controller
Field controller.
targetRef
Field targetRef.
queue
Field queue.
q
Field q.
states
Field states.
movementStatesComponent
Field movementStatesComponent.
transform
Field transform.
minecartComponent
Field minecartComponent.
currentTime
Field currentTime.
source2
Field source2.
playerComponent
Field playerComponent.
drop
Field drop.
Method Detail
handleMountedRemoval
void
handleMountedRemoval
(final Ref ref, @Nonnull final CommandBuffer commandBuffer, @Nonnull final MountedComponent component)
Method handleMountedRemoval.
- Parameters:
final Refref@Nonnull final CommandBuffercommandBuffer@Nonnull final MountedComponentcomponent
TrackerUpdate
public
TrackerUpdate
()
Method TrackerUpdate.
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
else
if
(!visible.newlyVisibleTo.isEmpty()
Method if.
- Parameters:
!visible.newlyVisibleTo.isEmpty(!visible.newlyVisibleTo.isEmpty(
queueUpdatesFor
void
queueUpdatesFor
(@Nonnull final Ref ref, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo, @Nonnull final MountedComponent component)
Method queueUpdatesFor.
- Parameters:
@Nonnull final Refref@Nonnull final Map, EntityTrackerSystems.EntityViewer>visibleTo@Nonnull final MountedComponentcomponent
MountedUpdate
new
MountedUpdate
(mountedToNetworkId, netOffset, component.getControllerType()
Method MountedUpdate.
- Parameters:
mountedToNetworkIdmountedToNetworkIdnetOffsetnetOffsetcomponent.getControllerType(component.getControllerType(
BlockMount
new
BlockMount
(blockMountComponent.getType()
Method BlockMount.
- Parameters:
blockMountComponent.getType(blockMountComponent.getType(
componentType
MountedComponent>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final MountedComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final MountedComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
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 Refreffinal MountedComponentoldComponent@Nonnull final MountedComponentnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final MountedComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final MountedComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
PlayerMount
public
PlayerMount
()
Method PlayerMount.
HandleMountInput
public
HandleMountInput
()
Method HandleMountInput.
SystemDependency
new
SystemDependency
(Order.BEFORE, PlayerSystems.ProcessPlayerInput.class)
Method SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFOREPlayerSystems.ProcessPlayerInput.classPlayerSystems.ProcessPlayerInput.class
getDependencies
Set>
getDependencies
()
Method getDependencies.
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
NetworkId
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
handle
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 intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final Damagedamage
ItemStack
new
ItemStack
(minecartComponent.getSourceItem()
Method ItemStack.
- Parameters:
minecartComponent.getSourceItem(minecartComponent.getSourceItem(
SystemGroupDependency
new
SystemGroupDependency
(Order.AFTER, DamageModule.get()
Method SystemGroupDependency.
- Parameters:
Order.AFTEROrder.AFTERDamageModule.get(DamageModule.get(