public class SensorBlock extends SensorBase
Class SensorBlock. Provides sensorblock functionality for the Hytale server.
java.lang.Object > SensorBase > SensorBlock
Field Summary
world
final
World
world
Field world.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
entityPos
final
Vector3d
entityPos
Field entityPos.
npcComponent
final
NPCEntity
npcComponent
Field npcComponent.
target
final
BlockTarget
target
Field target.
position
final
Vector3d
position
Field position.
targetChunk
final
WorldChunk
targetChunk
Field targetChunk.
section
final
BlockSection
section
Field section.
blackboard
final
BlockTypeView
blackboard
Field blackboard.
blockData
final
IBlockPositionData
blockData
Field blockData.
blockTypeId
final
int
blockTypeId
Field blockTypeId.
blockType
final
BlockType
blockType
Field blockType.
resourceView
final
ResourceView
resourceView
Field resourceView.
Method Detail
SensorBlock
public
public
SensorBlock
(@Nonnull final BuilderSensorBlock builder, @Nonnull final BuilderSupport support)
Method SensorBlock.
- Parameters:
@Nonnull final BuilderSensorBlockbuilder@Nonnull final BuilderSupportsupport
matches
public
boolean
matches
(@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)
Method matches.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerolefinal doubledt@Nonnull final Storestore