类的使用
org.bukkit.util.BlockVector
使用BlockVector的程序包
程序包
说明
用于操作在
世界内的三位像素(方块),包括一些特定的状态.Classes related to creating or using
structures without creating Structure
blocks in the world.提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit.block中BlockVector的使用
返回BlockVector的org.bukkit.block中的方法修饰符和类型方法说明Structure.getRelativePosition()基于此结构方块位置的(以其为原点的)结构轮廓相对位置.Structure.getStructureSize()(结构原点)与结构对角之间的距离.参数类型为BlockVector的org.bukkit.block中的方法修饰符和类型方法说明voidStructure.setRelativePosition(@NotNull BlockVector vector) 设置结构方块基于原点的相对位置 (起始位置).voidStructure.setStructureSize(@NotNull BlockVector vector) 设置此结构自原点的最大尺寸. -
org.bukkit.structure中BlockVector的使用
参数类型为BlockVector的org.bukkit.structure中的方法修饰符和类型方法说明voidStructure.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.voidStructure.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.voidStructure.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的org.bukkit.util中的方法修饰符和类型方法说明BlockVector.clone()克隆生成新的方块向量.static @NotNull BlockVectorBlockVector.deserialize(@NotNull Map<String, Object> args) Vector.toBlockVector()获取这个向量所在的方块的向量.