public class WorldSupport
Class WorldSupport. Provides worldsupport functionality for the Hytale server.
java.lang.Object > WorldSupport
Field Summary
blockSensorCachedTargets
Field blockSensorCachedTargets.
searchRayCachedPositions
Field searchRayCachedPositions.
blockToPlace
Field blockToPlace.
attitudeView
Field attitudeView.
attitudeCache
Field attitudeCache.
attitudeOverrideMemory
Field attitudeOverrideMemory.
nextAttitudeCacheClear
Field nextAttitudeCacheClear.
newPathRequested
Field newPathRequested.
changeCount
Field changeCount.
environmentIdChangeCount
Field environmentIdChangeCount.
cachedEnvironmentId
Field cachedEnvironmentId.
weatherChangeCount
Field weatherChangeCount.
cachedWeatherIndex
Field cachedWeatherIndex.
iterator
Field iterator.
entry
Field entry.
blackboardBlockSets
Field blackboardBlockSets.
cachedTargets
Field cachedTargets.
it
Field it.
next
Field next.
attitudeMap
Field attitudeMap.
requested
Field requested.
transformComponent
Field transformComponent.
chunkRef
Field chunkRef.
world
Field world.
chunkStore
Field chunkStore.
blockChunkComponent
Field blockChunkComponent.
weatherResource
Field weatherResource.
environmentId
Field environmentId.
npcComponent
Field npcComponent.
groups
Field groups.
tagSet
Field tagSet.
index
Field index.
Method Detail
WorldSupport
public
WorldSupport
(final NPCEntity parent, @Nonnull final BuilderRole builder, @Nonnull final BuilderSupport support)
Method WorldSupport.
- Parameters:
final NPCEntityparent@Nonnull final BuilderRolebuilder@Nonnull final BuilderSupportsupport
tick
void
tick
(final float dt)
Method tick.
- Parameters:
final floatdt
BlockTarget
new
BlockTarget
()
Method BlockTarget.
getCachedBlockTarget
Method getCachedBlockTarget.
- Parameters:
final intblockSet
resetBlockSensorFoundBlock
void
resetBlockSensorFoundBlock
(final int blockSet)
Method resetBlockSensorFoundBlock.
- Parameters:
final intblockSet
resetAllBlockSensors
void
resetAllBlockSensors
()
Method resetAllBlockSensors.
getCachedSearchRayPosition
Method getCachedSearchRayPosition.
- Parameters:
final intid
resetCachedSearchRayPosition
void
resetCachedSearchRayPosition
(final int id)
Method resetCachedSearchRayPosition.
- Parameters:
final intid
resetAllCachedSearchRayPositions
void
resetAllCachedSearchRayPositions
()
Method resetAllCachedSearchRayPositions.
setBlockToPlace
void
setBlockToPlace
(final String block)
Method setBlockToPlace.
- Parameters:
final Stringblock
getBlockToPlace
String
getBlockToPlace
()
Method getBlockToPlace.
getDefaultPlayerAttitude
Method getDefaultPlayerAttitude.
getAttitudeGroup
int
getAttitudeGroup
()
Method getAttitudeGroup.
getItemAttitudeGroup
int
getItemAttitudeGroup
()
Method getItemAttitudeGroup.
getAttitude
Attitude
getAttitude
(@Nonnull final Ref ref, @Nonnull final Ref targetRef, @Nonnull final ComponentAccessor componentAccessor)
Method getAttitude.
- Parameters:
@Nonnull final Refref@Nonnull final ReftargetRef@Nonnull final ComponentAccessorcomponentAccessor
overrideAttitude
Method overrideAttitude.
- Parameters:
final Reftargetfinal Attitudeattitudefinal doubleduration
AttitudeMemoryEntry
new
AttitudeMemoryEntry
(attitude, duration)
Method AttitudeMemoryEntry.
- Parameters:
attitudeattitudedurationduration
requireAttitudeCache
void
requireAttitudeCache
()
Method requireAttitudeCache.
requestNewPath
void
requestNewPath
()
Method requestNewPath.
hasRequestedNewPath
boolean
hasRequestedNewPath
()
Method hasRequestedNewPath.
consumeNewPathRequested
boolean
consumeNewPathRequested
()
Method consumeNewPathRequested.
getEnvironmentId
Method getEnvironmentId.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor
getCurrentWeatherIndex
Method getCurrentWeatherIndex.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor
hasTagInGroup
boolean
hasTagInGroup
(final int group, final int tag)
Method hasTagInGroup.
- Parameters:
final intgroupfinal inttag
isGroupMember
boolean
isGroupMember
(final int parentRoleIndex, @Nonnull final Ref ref, @Nullable final int[] groups, @Nonnull final ComponentAccessor componentAccessor)
Method isGroupMember.
- Parameters:
final intparentRoleIndex@Nonnull final Refref@Nullable final int[]groups@Nonnull final ComponentAccessorcomponentAccessor
createTagSetIndexArray
int[]
createTagSetIndexArray
(@Nullable final String[] tagSets)
Method createTagSetIndexArray.
- Parameters:
@Nullable final String[]tagSets
unloaded
void
unloaded
()
Method unloaded.