类的使用
org.bukkit.util.BlockVector
程序包
说明
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.Classes related to creating or using
structures
without creating Structure
blocks
in the world.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit.block中BlockVector的使用
修饰符和类型方法说明Structure.getRelativePosition()
基于此结构方块位置的(以其为原点的)结构轮廓相对位置.Structure.getStructureSize()
(结构原点)与结构对角之间的距离.修饰符和类型方法说明void
Structure.setRelativePosition
(@NotNull BlockVector vector) 设置结构方块基于原点的相对位置 (起始位置).void
Structure.setStructureSize
(@NotNull BlockVector vector) 设置此结构自原点的最大尺寸. -
org.bukkit.structure中BlockVector的使用
修饰符和类型方法说明void
Structure.fill
(@NotNull Location origin, @NotNull BlockVector size, boolean includeEntities) Fills the Structure from an area in a world, starting at the specified origin and extending in each axis according to the specified size vector.void
Structure.place
(@NotNull RegionAccessor regionAccessor, @NotNull BlockVector location, boolean includeEntities, @NotNull StructureRotation structureRotation, @NotNull Mirror mirror, int palette, float integrity, @NotNull Random random) Place a structure in the world.void
Structure.place
(@NotNull RegionAccessor regionAccessor, @NotNull BlockVector location, boolean includeEntities, @NotNull StructureRotation structureRotation, @NotNull Mirror mirror, int palette, float integrity, @NotNull Random random, @NotNull Collection<BlockTransformer> blockTransformers, @NotNull Collection<EntityTransformer> entityTransformers) Place a structure in the world. -
org.bukkit.util中BlockVector的使用
修饰符和类型方法说明BlockVector.clone()
克隆生成新的方块向量.static @NotNull BlockVector
BlockVector.deserialize
(@NotNull Map<String, Object> args) Vector.toBlockVector()
获取这个向量所在的方块的向量.