Uses of Class
cn.nukkit.math.Vector3
Package
Description
与方块实现相关的类,基类
Block
与方块实体(例如TNT方块爆炸时的实体)相关的类
与方块状态相关的类.
与实体相关的类,包含友好生物,敌对生物等.
与物品栏相关的类.
与物品相关的类.
与世界相关的类.
一些数学工具类.
一些关于异步任务和调度器的类,可用于插件实现异步操作.
各种工具类.
-
Uses of Vector3 in cn.nukkit
Modifier and TypeFieldDescriptionprotected Vector3
Player.forceMovement
protected Vector3
Player.lastRightClickPos
protected Vector3
Player.newPosition
protected Vector3
Player.sleeping
protected Vector3
Player.spawnBlockPosition
Player.speed
protected Vector3
Player.teleportPosition
Modifier and TypeMethodDescriptionPlayer.getSpawnBlock()
The block that holds the player respawn position.Modifier and TypeMethodDescriptionboolean
Player.canInteract
(Vector3 pos, double maxDistance) boolean
Player.canInteract
(Vector3 pos, double maxDistance, double maxDiff) void
Player.onBlockChanged
(Vector3 block) void
Player.sendPosition
(Vector3 pos) void
Player.sendPosition
(Vector3 pos, double yaw) void
Player.sendPosition
(Vector3 pos, double yaw, double pitch) void
Player.sendPosition
(Vector3 pos, double yaw, double pitch, int mode) void
Player.sendPosition
(Vector3 pos, double yaw, double pitch, int mode, Player[] targets) boolean
void
void
Player.setSpawnBlock
(Vector3 spawnBlock) Sets the position of the block that holds the player respawn position.boolean
-
Uses of Vector3 in cn.nukkit.block
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Deprecated.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
http://minecraft.gamepedia.com/End_Rodclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Deprecated.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Implements the main logic of all nether vines.class
Properties and behaviour definitions of theBlockID.TWISTING_VINES
block.class
Properties and behaviour definitions of theBlockID.WEEPING_VINES
block.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionBlockDispenser.getDispensePosition()
BlockLiquid.getFlowVector()
Modifier and TypeMethodDescriptionvoid
Block.addVelocityToEntity
(Entity entity, Vector3 vector) void
BlockLava.addVelocityToEntity
(Entity entity, Vector3 vector) void
BlockLiquid.addVelocityToEntity
(Entity entity, Vector3 vector) Block.calculateIntercept
(Vector3 pos1, Vector3 pos2) protected static boolean
BlockRedstoneWire.canConnectUpwardsTo
(Level level, Vector3 pos) protected boolean
BlockRailActivator.canPowered
(Vector3 pos, Rail.Orientation state, int power, boolean relative) protected boolean
BlockRailPowered.canPowered
(Vector3 pos, Rail.Orientation state, int power, boolean relative) protected boolean
BlockRailActivator.checkSurrounding
(Vector3 pos, boolean relative, int power) Check the surrounding of the railprotected int
BlockRedstoneDiode.getPowerOnSide
(Vector3 pos, BlockFace side) boolean
Block.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockAllow.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockBorder.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockDeny.isBreakable
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean setBlockDestroy) boolean
BlockAzalea.isSameType
(Vector3 pos, WoodType type) boolean
BlockSapling.isSameType
(Vector3 pos, int type) Deprecated.boolean
BlockSapling.isSameType
(Vector3 pos, WoodType type) boolean
boolean
boolean
Block.mustSilkTouch
(Vector3 vector, int layer, BlockFace face, Item item, Player player) boolean
BlockBeehive.mustSilkTouch
(Vector3 vector, int layer, BlockFace face, Item item, Player player) boolean
Block.onProjectileHit
(Entity projectile, Position position, Vector3 motion) boolean
BlockBell.onProjectileHit
(Entity projectile, Position position, Vector3 motion) boolean
BlockBigDripleaf.onProjectileHit
(Entity projectile, Position position, Vector3 motion) boolean
BlockCampfire.onProjectileHit
(Entity projectile, Position position, Vector3 motion) boolean
BlockChorusFlower.onProjectileHit
(Entity projectile, Position position, Vector3 motion) boolean
BlockTarget.onProjectileHit
(Entity projectile, Position position, Vector3 motion) boolean
BlockTNT.onProjectileHit
(Entity projectile, Position position, Vector3 motion) protected void
BlockLiquid.triggerLavaMixEffects
(Vector3 pos) -
Uses of Vector3 in cn.nukkit.block.customblock
Modifier and TypeMethodDescriptiondefault Vector3
CustomBlock.getRotation()
以度为单位设置块围绕立方体中心的旋转,旋转顺序为 xyz.角度必须是90的倍数。 -
Uses of Vector3 in cn.nukkit.blockentity
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
This entity allows to manipulate the save state of a nether reactor core, but changing it will cause no visual change.class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionstatic CompoundTag
BlockEntity.getDefaultCompound
(Vector3 pos, String id) -
Uses of Vector3 in cn.nukkit.blockstate
Modifier and TypeMethodDescriptiondefault Block
IBlockState.getBlockRepairing
(Level level, Vector3 pos) default Block
IBlockState.getBlockRepairing
(Level level, Vector3 pos, int layer) -
Uses of Vector3 in cn.nukkit.command.utils
Modifier and TypeMethodDescriptionCommandParser.parseVector3()
CommandParser.parseVector3
(Vector3 bv) CommandParser.parseVector3
(Vector3 bv, boolean moveCursor) Modifier and TypeMethodDescriptionCommandParser.parsePosition
(Vector3 baseVector) CommandParser.parsePosition
(Vector3 baseVector, boolean moveCursor) CommandParser.parseVector3
(Vector3 bv) CommandParser.parseVector3
(Vector3 bv, boolean moveCursor) -
Uses of Vector3 in cn.nukkit.entity
Modifier and TypeClassDescriptionclass
class
class
class
class
class
EntityIntelligent
抽象了一个具有行为组IBehaviorGroup
(也就是具有AI)的实体class
class
Modifier and TypeFieldDescriptionprotected Vector3
EntityIntelligent.lookTarget
protected Vector3
EntityIntelligent.moveDirectionEnd
protected Vector3
EntityIntelligent.moveDirectionStart
protected Vector3
EntityIntelligent.moveTarget
protected final Vector3
EntityPhysical.previousCollideMotion
protected final Vector3
EntityPhysical.previousCurrentMotion
Entity.temporalVector
Modifier and TypeMethodDescriptionEntity.getDataPropertyPos
(int id) Entity.getDirectionVector()
EntityIntelligent.getLookTarget()
Entity.getMotion()
EntityIntelligent.getMoveDirectionEnd()
EntityIntelligent.getMoveDirectionStart()
EntityIntelligent.getMoveTarget()
Modifier and TypeMethodDescriptionfinal void
EntityPhysical.addTmpMoveMotion
(Vector3 tmpMotion) final void
EntityPhysical.addTmpMoveMotionXZ
(Vector3 tmpMotion) static CompoundTag
Entity.getDefaultNBT
(Vector3 pos) static CompoundTag
Entity.getDefaultNBT
(Vector3 pos, Vector3 motion) static CompoundTag
Entity.getDefaultNBT
(Vector3 pos, Vector3 motion, float yaw, float pitch) boolean
Entity.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityCreature.onInteract
(Player player, Item item, Vector3 clickedPos) default boolean
EntityNameable.onInteract
(Player player, Item item, Vector3 clickedPos) void
EntityIntelligent.setLookTarget
(Vector3 lookTarget) boolean
void
EntityIntelligent.setMoveDirectionEnd
(Vector3 moveDirectionEnd) void
EntityIntelligent.setMoveDirectionStart
(Vector3 moveDirectionStart) void
EntityIntelligent.setMoveTarget
(Vector3 moveTarget) boolean
Entity.setPosition
(Vector3 pos) boolean
Entity.setPositionAndRotation
(Vector3 pos, double yaw, double pitch) boolean
Entity.setPositionAndRotation
(Vector3 pos, double yaw, double pitch, double headYaw) boolean
boolean
Entity.teleport
(Vector3 pos, PlayerTeleportEvent.TeleportCause cause) -
Uses of Vector3 in cn.nukkit.entity.ai.evaluator
-
Uses of Vector3 in cn.nukkit.entity.ai.executor
Modifier and TypeFieldDescriptionprotected Vector3
MeleeAttackExecutor.oldTarget
protected Vector3
MoveToTargetExecutor.oldTarget
Modifier and TypeMethodDescriptionMoveToTargetExecutor.getOldTarget()
protected Vector3
RandomRoamExecutor.next
(EntityIntelligent entity) Modifier and TypeMethodDescriptionprotected void
LookAtTargetExecutor.setLookTarget
(EntityIntelligent entity, Vector3 vector3) protected void
MeleeAttackExecutor.setLookTarget
(EntityIntelligent entity, Vector3 vector3) protected void
MoveToTargetExecutor.setLookTarget
(EntityIntelligent entity, Vector3 vector3) protected void
RandomRoamExecutor.setLookTarget
(EntityIntelligent entity, Vector3 vector3) protected void
MeleeAttackExecutor.setRouteTarget
(EntityIntelligent entity, Vector3 vector3) protected void
MoveToTargetExecutor.setRouteTarget
(EntityIntelligent entity, Vector3 vector3) protected void
RandomRoamExecutor.setRouteTarget
(EntityIntelligent entity, Vector3 vector3) -
Uses of Vector3 in cn.nukkit.entity.ai.memory
-
Uses of Vector3 in cn.nukkit.entity.ai.route
Modifier and TypeFieldDescriptionprotected Vector3
SimpleFlatAStarRouteFinder.reachableTarget
protected Vector3
SimpleFlatAStarRouteFinder.start
protected Vector3
SimpleFlatAStarRouteFinder.target
Modifier and TypeMethodDescriptionIRouteFinder.getReachableTarget()
SimpleFlatAStarRouteFinder.getReachableTarget()
IRouteFinder.getStart()
RouteFindingManager.RouteFindingTask.getStart()
SimpleFlatAStarRouteFinder.getStart()
IRouteFinder.getTarget()
RouteFindingManager.RouteFindingTask.getTarget()
SimpleFlatAStarRouteFinder.getTarget()
Modifier and TypeMethodDescriptionprotected int
计算当前点到终点的代价H 默认使用对角线+直线距离protected boolean
指定位置是否可作为一个有效的节点protected boolean
SimpleFlatAStarRouteFinder.existInCloseList
(Vector3 vector2) protected boolean
SimpleFlatAStarRouteFinder.existInOpenList
(Vector3 vector2) protected int
SimpleFlatAStarRouteFinder.getAvailableHorizontalOffset
(Vector3 vector3) protected int
SimpleFlatAStarRouteFinder.getBlockMoveCostAt
(Level level, Vector3 pos) 获取指定位置的方块的移动Costprotected int
SimpleSpaceAStarRouteFinder.getBlockMoveCostAt
(Level level, Vector3 pos) protected Node
SimpleFlatAStarRouteFinder.getCloseNode
(Vector3 vector2) protected Block
SimpleFlatAStarRouteFinder.getHighestUnder
(Vector3 vector3, int limit) 获取目标坐标最高有效点(沿Y轴往下检查)protected Node
SimpleFlatAStarRouteFinder.getNearestNodeFromCloseList
(Vector3 vector3) 获取接近指定坐标的最近的Nodeprotected Node
SimpleFlatAStarRouteFinder.getOpenNode
(Vector3 vector2) protected boolean
SimpleFlatAStarRouteFinder.hasBarrier
(Vector3 pos1, Vector3 pos2) 指定两个Node之间是否有障碍物protected boolean
SimpleFlatAStarRouteFinder.isPositionOverlap
(Vector3 vector2, Vector3 vector2_) 坐标是否重叠了
此方法只会比较坐标的floorX、floorY、floorZvoid
SimpleFlatAStarRouteFinder.setReachableTarget
(Vector3 reachableTarget) void
设置寻路起点,将会导致寻路中断void
void
设置寻路终点,将会导致寻路中断void
Modifier and TypeMethodDescriptionprotected boolean
SimpleFlatAStarRouteFinder.hasBlocksAround
(ArrayList<Vector3> list) protected boolean
SimpleSpaceAStarRouteFinder.hasBlocksAround
(ArrayList<Vector3> list) -
Uses of Vector3 in cn.nukkit.entity.ai.route.data
-
Uses of Vector3 in cn.nukkit.entity.ai.route.posevaluator
Modifier and TypeMethodDescriptionboolean
FlyingPosEvaluator.evalPos
(EntityIntelligent entity, Vector3 vec) default boolean
IPosEvaluator.evalPos
(EntityIntelligent entity, Vector3 pos) 返回目标坐标是否可以作为路径点,通常用于返回非整数坐标点(飞行和游泳)的实体
如果此使用此评估器的寻路器返回非整数坐标点,才需要实现此方法。boolean
SwimmingPosEvaluator.evalPos
(EntityIntelligent entity, Vector3 pos) boolean
WalkingPosEvaluator.evalPos
(EntityIntelligent entity, Vector3 vec) protected boolean
FlyingPosEvaluator.isPassable
(EntityIntelligent entity, Vector3 vector3) 指定实体在指定坐标上能否不发生碰撞 对于空间中的移动做了特别的优化protected boolean
SwimmingPosEvaluator.isPassable
(EntityIntelligent entity, Vector3 vector3) 指定实体在指定坐标上能否不发生碰撞 对于空间中的移动做了特别的优化protected boolean
WalkingPosEvaluator.isPassable
(EntityIntelligent entity, Vector3 vector3) 指定实体在指定坐标上能否不发生碰撞 -
Uses of Vector3 in cn.nukkit.entity.data
-
Uses of Vector3 in cn.nukkit.entity.item
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeMethodDescriptionEntityEndCrystal.getBeamTarget()
EntityMinecartAbstract.getDerailedVelocityMod()
EntityMinecartAbstract.getFlyingVelocityMod()
Modifier and TypeMethodDescriptionboolean
EntityArmorStand.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityBoat.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityChestBoat.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityMinecartAbstract.onInteract
(Player p, Item item, Vector3 clickedPos) boolean
EntityMinecartChest.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityMinecartHopper.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityMinecartTNT.onInteract
(Player player, Item item, Vector3 clickedPos) void
EntityEndCrystal.setBeamTarget
(Vector3 beamTarget) void
EntityMinecartAbstract.setDerailedVelocityMod
(Vector3 derailed) void
EntityMinecartAbstract.setFlyingVelocityMod
(Vector3 flying) -
Uses of Vector3 in cn.nukkit.entity.mob
Modifier and TypeClassDescriptionclass
两栖怪物 (eg: 溺尸)class
class
class
class
class
class
class
class
class
class
空中飞行怪物class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
水中游泳怪物class
class
class
陆地行走怪物class
class
class
class
class
class
class
class
Deprecated.Modifier and TypeMethodDescriptionboolean
EntityCreeper.onInteract
(Player player, Item item, Vector3 clickedPos) -
Uses of Vector3 in cn.nukkit.entity.passive
Modifier and TypeClassDescriptionclass
两栖动物 (eg: turtle)class
class
class
class
class
class
class
class
class
class
空中飞行动物class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
水中游泳动物class
Deprecated.class
class
class
class
Deprecated.class
陆地行走动物class
class
class
Modifier and TypeMethodDescriptionboolean
EntityAnimal.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityNPCEntity.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntitySheep.onInteract
(Player player, Item item, Vector3 clickedPos) boolean
EntityVillager.onInteract
(Player player, Item item, Vector3 clickedPos) void
EntityTurtle.setHomePos
(Vector3 pos) -
Uses of Vector3 in cn.nukkit.entity.projectile
Modifier and TypeClassDescriptionclass
class
class
class
class
class
Modifier and TypeMethodDescriptionprotected void
EntityProjectile.onCollideWithBlock
(Position position, Vector3 motion) protected boolean
EntityProjectile.onCollideWithBlock
(Position position, Vector3 motion, Block collisionBlock) protected void
EntityThrownTrident.onCollideWithBlock
(Position position, Vector3 motion) void
EntityThrownTrident.setCollisionPos
(Vector3 collisionPos) -
Uses of Vector3 in cn.nukkit.entity.weather
-
Uses of Vector3 in cn.nukkit.event.block
-
Uses of Vector3 in cn.nukkit.event.entity
Modifier and TypeMethodDescriptionEntityMotionEvent.getMotion()
EntityMotionEvent.getVector()
Deprecated.ModifierConstructorDescriptionEntityMotionEvent
(Entity entity, Vector3 motion) EntityMoveByPistonEvent
(Entity entity, Vector3 pos) -
Uses of Vector3 in cn.nukkit.event.player
Modifier and TypeFieldDescriptionprotected final Vector3
PlayerInteractEntityEvent.clickedPos
protected final Vector3
PlayerInteractEvent.touchVector
Modifier and TypeMethodDescriptionPlayerInteractEntityEvent.getClickedPos()
PlayerFishEvent.getMotion()
PlayerInteractEvent.getTouchVector()
ModifierConstructorDescriptionPlayerFishEvent
(Player player, EntityFishingHook hook, Item loot, int experience, Vector3 motion) PlayerInteractEntityEvent
(Player player, Entity entity, Item item, Vector3 clickedPos) PlayerInteractEvent
(Player player, Item item, Vector3 block, BlockFace face) PlayerInteractEvent
(Player player, Item item, Vector3 block, BlockFace face, PlayerInteractEvent.Action action) PlayerTeleportEvent
(Player player, Vector3 from, Vector3 to, PlayerTeleportEvent.TeleportCause cause) -
Uses of Vector3 in cn.nukkit.inventory
-
Uses of Vector3 in cn.nukkit.inventory.transaction.data
-
Uses of Vector3 in cn.nukkit.item
Modifier and TypeMethodDescriptionboolean
Item.onClickAir
(Player player, Vector3 directionVector) Called when a player uses the item on air, for example throwing a projectile.boolean
ItemAppleGold.onClickAir
(Player player, Vector3 directionVector) boolean
ItemAppleGoldEnchanted.onClickAir
(Player player, Vector3 directionVector) boolean
ItemArmor.onClickAir
(Player player, Vector3 directionVector) boolean
ItemBow.onClickAir
(Player player, Vector3 directionVector) boolean
ItemBucket.onClickAir
(Player player, Vector3 directionVector) boolean
ItemChorusFruit.onClickAir
(Player player, Vector3 directionVector) boolean
ItemCrossbow.onClickAir
(Player player, Vector3 directionVector) boolean
ItemEdible.onClickAir
(Player player, Vector3 directionVector) boolean
ItemEmptyMap.onClickAir
(Player player, Vector3 directionVector) boolean
ItemFirework.onClickAir
(Player player, Vector3 directionVector) boolean
ItemFishingRod.onClickAir
(Player player, Vector3 directionVector) boolean
ItemHoneyBottle.onClickAir
(Player player, Vector3 directionVector) boolean
ItemPotion.onClickAir
(Player player, Vector3 directionVector) boolean
ItemTrident.onClickAir
(Player player, Vector3 directionVector) boolean
ProjectileItem.onClickAir
(Player player, Vector3 directionVector) -
Uses of Vector3 in cn.nukkit.item.customitem
Modifier and TypeMethodDescriptionboolean
ItemCustomArmor.onClickAir
(Player player, Vector3 directionVector) boolean
ItemCustomEdible.onClickAir
(Player player, Vector3 directionVector) -
Uses of Vector3 in cn.nukkit.level
Modifier and TypeMethodDescriptionLevel.adjustPosToNearbyEntity
(Vector3 pos) static Vector3
Level.getBlockXYZ
(long chunkHash, int blockHash, Level level) static Vector3
Level.getBlockXYZ
(BlockVector3 hash) Location.getDirectionVector()
Modifier and TypeMethodDescriptionvoid
Level.addLevelEvent
(int type, int data, Vector3 pos) void
Level.addLevelEvent
(Vector3 pos, int event) void
Level.addLevelEvent
(Vector3 pos, int event, int data) void
Level.addLevelSoundEvent
(Vector3 pos, int type) Deprecated.void
Level.addLevelSoundEvent
(Vector3 pos, int type, int data) Deprecated.void
Level.addLevelSoundEvent
(Vector3 pos, int type, int data, int entityType) Deprecated.void
Level.addLevelSoundEvent
(Vector3 pos, int type, int data, int entityType, boolean isBaby, boolean isGlobal) Deprecated.void
Level.addLevelSoundEvent
(Vector3 pos, int type, int data, String identifier, boolean isBaby, boolean isGlobal) Deprecated.void
Level.addParticleEffect
(Vector3 pos, ParticleEffect particleEffect) void
Level.addParticleEffect
(Vector3 pos, ParticleEffect particleEffect, long uniqueEntityId) void
Level.addParticleEffect
(Vector3 pos, ParticleEffect particleEffect, long uniqueEntityId, int dimensionId) void
Level.addParticleEffect
(Vector3 pos, ParticleEffect particleEffect, long uniqueEntityId, int dimensionId, Player... players) void
Level.addParticleEffect
(Vector3 pos, ParticleEffect particleEffect, long uniqueEntityId, int dimensionId, Collection<Player> players) void
void
void
void
Level.addSound
(Vector3 pos, Sound sound, float volume, float pitch, Collection<Player> players) Level.adjustPosToNearbyEntity
(Vector3 pos) boolean
Level.canBlockSeeSky
(Vector3 pos) boolean
Level.cancelSheduledUpdate
(Vector3 pos, Block block) Level.dropAndGetItem
(Vector3 source, Item item) Level.dropAndGetItem
(Vector3 source, Item item, Vector3 motion) Level.dropAndGetItem
(Vector3 source, Item item, Vector3 motion, boolean dropAround, int delay) Level.dropAndGetItem
(Vector3 source, Item item, Vector3 motion, int delay) void
Level.dropExpOrb
(Vector3 source, int exp) void
Level.dropExpOrb
(Vector3 source, int exp, Vector3 motion) void
Level.dropExpOrb
(Vector3 source, int exp, Vector3 motion, int delay) Level.dropExpOrbAndGetEntities
(Vector3 source, int exp) Level.dropExpOrbAndGetEntities
(Vector3 source, int exp, Vector3 motion) Level.dropExpOrbAndGetEntities
(Vector3 source, int exp, Vector3 motion, int delay) void
void
void
void
static MovingObjectPosition
Deprecated.static MovingObjectPosition
static Location
Location.fromObject
(Vector3 pos) static Location
Location.fromObject
(Vector3 pos, Level level) static Location
Location.fromObject
(Vector3 pos, Level level, double yaw) static Location
Location.fromObject
(Vector3 pos, Level level, double yaw, double pitch) static Location
Location.fromObject
(Vector3 pos, Level level, double yaw, double pitch, double headYaw) static Position
Position.fromObject
(Vector3 pos) static Position
Position.fromObject
(Vector3 pos, Level level) Level.getBlockAround
(Vector3 pos) Level.getBlockEntity
(Vector3 pos) Level.getBlockEntityIfLoaded
(Vector3 pos) int
Level.getFullLight
(Vector3 pos) int
Level.getRedstonePower
(Vector3 pos, BlockFace face) Level.getSafeSpawn
(Vector3 spawn) Level.getSafeSpawn
(Vector3 spawn, int horizontalMaxOffset) Level.getSafeSpawn
(Vector3 spawn, int horizontalMaxOffset, boolean allowWaterUnder) int
Level.getStrongPower
(Vector3 pos) int
Level.getStrongPower
(Vector3 pos, BlockFace direction) Level.getTickCachedBlock
(Vector3 pos) Level.getTickCachedBlock
(Vector3 pos, boolean load) Level.getTickCachedBlock
(Vector3 pos, int layer) Level.getTickCachedBlock
(Vector3 pos, int layer, boolean load) int
Level.isBlockIndirectlyGettingPowered
(Vector3 pos) boolean
Level.isBlockPowered
(Vector3 pos) boolean
Level.isBlockTickPending
(Vector3 pos, Block block) boolean
Level.isFullBlock
(Vector3 pos) boolean
Level.isInSpawnRadius
(Vector3 vector3) boolean
Level.isSidePowered
(Vector3 pos, BlockFace face) boolean
Level.isUpdateScheduled
(Vector3 pos, Block block) void
ChunkLoader.onBlockChanged
(Vector3 block) void
Level.scheduleUpdate
(Block block, Vector3 pos, int delay) void
Level.scheduleUpdate
(Block block, Vector3 pos, int delay, int priority) void
Level.scheduleUpdate
(Block block, Vector3 pos, int delay, int priority, boolean checkArea) void
Level.scheduleUpdate
(Block block, Vector3 pos, int delay, int priority, boolean checkArea, boolean checkBlockWhenUpdate) void
Level.sendBlocks
(Player[] target, Vector3[] blocks) void
Level.sendBlocks
(Player[] target, Vector3[] blocks, int flags) void
Level.sendBlocks
(Player[] target, Vector3[] blocks, int flags, boolean optimizeRebuilds) void
Level.sendBlocks
(Player[] target, Vector3[] blocks, int flags, int dataLayer) void
Level.sendBlocks
(Player[] target, Vector3[] blocks, int flags, int dataLayer, boolean optimizeRebuilds) boolean
boolean
boolean
boolean
boolean
boolean
Position.setComponents
(Vector3 pos) void
Level.setSpawnLocation
(Vector3 pos) boolean
boolean
void
Level.updateAllLight
(Vector3 pos) void
Level.updateAround
(Vector3 pos) void
Level.updateAroundRedstone
(Vector3 pos, BlockFace face) Deprecated.void
Level.updateComparatorOutputLevel
(Vector3 v) void
Level.updateComparatorOutputLevelSelective
(Vector3 v, boolean observer) Level.useBreakOn
(Vector3 vector) Level.useBreakOn
(Vector3 vector, int layer, BlockFace face, Item item, Player player, boolean createParticles, boolean setBlockDestroy) Level.useBreakOn
(Vector3 vector, Item item) Level.useBreakOn
(Vector3 vector, Item item, Player player) Level.useBreakOn
(Vector3 vector, Item item, Player player, boolean createParticles) Level.useBreakOn
(Vector3 vector, BlockFace face, Item item, Player player, boolean createParticles) Level.useBreakOn
(Vector3 vector, BlockFace face, Item item, Player player, boolean createParticles, boolean setBlockDestroy) Level.useItemOn
(Vector3 vector, Item item, BlockFace face, float fx, float fy, float fz, Player player) Level.useItemOn
(Vector3 vector, Item item, BlockFace face, float fx, float fy, float fz, Player player, boolean playSound) -
Uses of Vector3 in cn.nukkit.level.format
-
Uses of Vector3 in cn.nukkit.level.format.generic
ModifierConstructorDescriptionBaseLevelProvider
(Level level, String path, CompoundTag levelData, Vector3 spawn) -
Uses of Vector3 in cn.nukkit.level.generator
-
Uses of Vector3 in cn.nukkit.level.generator.object
Modifier and TypeMethodDescriptionabstract boolean
BasicGenerator.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) static void
ObjectTallGrass.growGrass
(ChunkManager level, Vector3 pos, NukkitRandom random) static void
ObjectTallGrass.growGrass
(ChunkManager level, Vector3 pos, NukkitRandom random, int count, int radius) static void
ObjectNyliumVegetation.growVegetation
(ChunkManager level, Vector3 pos, NukkitRandom random) protected void
BasicGenerator.setBlock
(ChunkManager level, Vector3 v, Block b) protected void
BasicGenerator.setBlockAndNotifyAdequately
(ChunkManager level, Vector3 pos, Block state) -
Uses of Vector3 in cn.nukkit.level.generator.object.end
Modifier and TypeMethodDescriptionboolean
ObjectChorusTree.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) boolean
ObjectChorusTree.generate
(ChunkManager level, NukkitRandom rand, Vector3 position, int maxSize) boolean
ObjectEndGateway.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) boolean
ObjectEndGateway.generate
(ChunkManager level, NukkitRandom rand, Vector3 position, BlockVector3 exitPortal) boolean
ObjectEndIsland.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) boolean
ObjectEndSpike.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) void
ObjectChorusTree.growImmediately
(ChunkManager level, NukkitRandom random, Vector3 position, int maxSize, int age) ModifierConstructorDescriptionObjectEndSpike
(Vector3 position, int radius, int height, boolean hasIronBars) -
Uses of Vector3 in cn.nukkit.level.generator.object.mushroom
Modifier and TypeMethodDescriptionboolean
BigMushroom.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) -
Uses of Vector3 in cn.nukkit.level.generator.object.tree
Modifier and TypeMethodDescriptionprotected boolean
HugeTreesGenerator.ensureGrowable
(ChunkManager worldIn, NukkitRandom rand, Vector3 treePos, int p_175929_4_) boolean
NewJungleTree.generate
(ChunkManager worldIn, NukkitRandom rand, Vector3 vectorPosition) boolean
ObjectAzaleaTree.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) boolean
ObjectDarkOakTree.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) boolean
ObjectJungleBigTree.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) boolean
ObjectSavannaTree.generate
(ChunkManager level, NukkitRandom rand, Vector3 position) boolean
ObjectSwampTree.generate
(ChunkManager worldIn, NukkitRandom rand, Vector3 vectorPosition) void
TreeGenerator.generateSaplings
(Level level, Random random, Vector3 pos) protected void
HugeTreesGenerator.growLeavesLayer
(ChunkManager worldIn, Vector3 layerCenter, int width) protected void
HugeTreesGenerator.growLeavesLayerStrict
(ChunkManager worldIn, Vector3 layerCenter, int width) protected void
ObjectAzaleaTree.setDirtAt
(ChunkManager level, Vector3 pos) protected void
TreeGenerator.setDirtAt
(ChunkManager level, Vector3 pos) -
Uses of Vector3 in cn.nukkit.level.particle
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
ModifierConstructorDescriptionBlockForceFieldParticle
(Vector3 pos, int scale) BoneMealParticle
(Vector3 pos) BubbleParticle
(Vector3 pos) CloudParticle
(Vector3 pos) CloudParticle
(Vector3 pos, int scale) CriticalParticle
(Vector3 pos) CriticalParticle
(Vector3 pos, int scale) DestroyBlockParticle
(Vector3 pos, Block block) DustParticle
(Vector3 pos, int r, int g, int b) DustParticle
(Vector3 pos, int r, int g, int b, int a) DustParticle
(Vector3 pos, BlockColor blockColor) EnchantParticle
(Vector3 pos) ExplodeParticle
(Vector3 pos) FlameParticle
(Vector3 pos) FloatingTextParticle
(Vector3 pos, String title) FloatingTextParticle
(Vector3 pos, String title, String text) GenericParticle
(Vector3 pos, int id) GenericParticle
(Vector3 pos, int id, int data) HeartParticle
(Vector3 pos) HeartParticle
(Vector3 pos, int scale) InkParticle
(Vector3 pos) InkParticle
(Vector3 pos, int scale) InstantSpellParticle
(Vector3 pos, int data) InstantSpellParticle
(Vector3 pos, int r, int g, int b) InstantSpellParticle
(Vector3 pos, BlockColor blockColor) ItemBreakParticle
(Vector3 pos, Item item) LavaDripParticle
(Vector3 pos) LavaParticle
(Vector3 pos) MobSpawnParticle
(Vector3 pos, float width, float height) PortalParticle
(Vector3 pos) PunchBlockParticle
(Vector3 pos, int blockId, int blockDamage, BlockFace face) PunchBlockParticle
(Vector3 pos, Block block, BlockFace face) RedstoneParticle
(Vector3 pos) RedstoneParticle
(Vector3 pos, int lifetime) ScrapeParticle
(Vector3 pos) SmokeParticle
(Vector3 pos) SmokeParticle
(Vector3 pos, int scale) SpellParticle
(Vector3 pos) SpellParticle
(Vector3 pos, int data) SpellParticle
(Vector3 pos, int r, int g, int b) protected
SpellParticle
(Vector3 pos, int r, int g, int b, int a) SpellParticle
(Vector3 pos, BlockColor blockColor) SplashParticle
(Vector3 pos) SporeParticle
(Vector3 pos) TerrainParticle
(Vector3 pos, Block block) WaterDripParticle
(Vector3 pos) WaterParticle
(Vector3 pos) WaxOffParticle
(Vector3 pos) WaxOnParticle
(Vector3 pos) -
Uses of Vector3 in cn.nukkit.math
Modifier and TypeMethodDescriptionVector3.abs()
BlockVector3.add
(double x) BlockVector3.add
(double x, double y) BlockVector3.add
(double x, double y, double z) Vector3.add
(double x) Vector3.add
(double x, double y) Vector3.add
(double x, double y, double z) BlockVector3.asVector3()
Vector3f.asVector3()
Vector3.ceil()
Vector3.clone()
Calculates the cross product of this Vector and the given VectorVector3.divide
(double number) Vector3.down()
Vector3.down
(int step) Vector3.east()
Vector3.east
(int step) Vector3.floor()
Vector3.getIntermediateWithXValue
(Vector3 v, double x) Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.Vector3.getIntermediateWithYValue
(Vector3 v, double y) Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.Vector3.getIntermediateWithZValue
(Vector3 v, double z) Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.Vector3.getSideVec
(BlockFace face) BlockFace.getUnitVector()
Get the unit vector of this BlockFaceVector3.multiply
(double number) Vector3.normalize()
Vector3.north()
Vector3.north
(int step) Vector3.round()
Vector3.setComponents
(double x, double y, double z) Vector3.setComponents
(Vector3 pos) Vector3.setComponentsAdding
(double x, double y, double z, double ax, double ay, double az) Vector3.setComponentsAdding
(Vector3 pos, BlockFace face) Vector3.setX
(double x) Vector3.setY
(double y) Vector3.setZ
(double z) Vector3.south()
Vector3.south
(int step) BlockVector3.subtract
(double x) BlockVector3.subtract
(double x, double y) BlockVector3.subtract
(double x, double y, double z) Vector3.subtract()
Deprecated.Vector3.subtract
(double x) Vector3.subtract
(double x, double y) Vector3.subtract
(double x, double y, double z) Vector3.up()
Vector3.up
(int step) Vector3.west()
Vector3.west
(int step) Modifier and TypeMethodDescriptionstatic BlockFace.Axis
VectorMath.calculateAxis
(Vector3 base, Vector3 side) static BlockFace
VectorMath.calculateFace
(Vector3 base, Vector3 side) default MovingObjectPosition
AxisAlignedBB.calculateIntercept
(Vector3 pos1, Vector3 pos2) Calculates the cross product of this Vector and the given Vectordouble
double
int
Vector3.distanceManhattan
(Vector3 pos) double
BlockVector3.distanceSquared
(Vector3 pos) double
Vector3.distanceSquared
(Vector3 pos) double
Scalar Product of this Vector and the Vector supplied.Vector3.getIntermediateWithXValue
(Vector3 v, double x) Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.Vector3.getIntermediateWithYValue
(Vector3 v, double y) Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.Vector3.getIntermediateWithZValue
(Vector3 v, double z) Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.default boolean
AxisAlignedBB.isVectorInside
(Vector3 vector) default boolean
AxisAlignedBB.isVectorInXY
(Vector3 vector) default boolean
AxisAlignedBB.isVectorInXZ
(Vector3 vector) default boolean
AxisAlignedBB.isVectorInYZ
(Vector3 vector) double
Vector3.maxPlainDistance
(Vector3 x) Vector3.setComponents
(Vector3 pos) BlockVector3.setComponentsAdding
(Vector3 pos, BlockFace face) Vector3.setComponentsAdding
(Vector3 pos, BlockFace face) -
Uses of Vector3 in cn.nukkit.network.protocol
Modifier and TypeMethodDescriptionvoid
PositionTrackingDBServerBroadcastPacket.setPosition
(Vector3 position) -
Uses of Vector3 in cn.nukkit.positiontracking
Modifier and TypeMethodDescriptionPositionTracking.getIntermediateWithYValue
(Vector3 v, double y) PositionTracking.getIntermediateWithZValue
(Vector3 v, double z) Modifier and TypeMethodDescriptionPositionTracking.getIntermediateWithXValue
(Vector3 v, double x) PositionTracking.getIntermediateWithYValue
(Vector3 v, double y) PositionTracking.getIntermediateWithZValue
(Vector3 v, double z) PositionTracking.setComponents
(Vector3 pos) ModifierConstructorDescriptionPositionTracking
(Level level, Vector3 v) PositionTracking
(String levelName, Vector3 v) -
Uses of Vector3 in cn.nukkit.scheduler
Modifier and TypeMethodDescriptionboolean
BlockUpdateScheduler.isBlockTickPending
(Vector3 pos, Block block) boolean
-
Uses of Vector3 in cn.nukkit.utils
Modifier and TypeMethodDescriptionstatic double
Utils.calLinearFunction
(Vector3 pos1, Vector3 pos2, double element, int type) static BVector3
static long
ModifierConstructorDescriptionBlockIterator
(Level level, Vector3 start, Vector3 direction) BlockIterator
(Level level, Vector3 start, Vector3 direction, double yOffset) BlockIterator
(Level level, Vector3 start, Vector3 direction, double yOffset, int maxDistance) BlockUpdateEntry
(Vector3 pos, Block block) BlockUpdateEntry
(Vector3 pos, Block block, long delay, int priority) BlockUpdateEntry
(Vector3 pos, Block block, long delay, int priority, boolean checkBlockWhenUpdate) TickCachedBlockIterator
(Level level, Vector3 start, Vector3 direction) TickCachedBlockIterator
(Level level, Vector3 start, Vector3 direction, double yOffset) TickCachedBlockIterator
(Level level, Vector3 start, Vector3 direction, double yOffset, int maxDistance)