All Classes and Interfaces

Class
Description
 
 
 
 
AbstractBehavior包含一个BehaviorState属性以及它的Getter/Setter
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
全部行为评估通过才执行的一个评估器.
 
 
 
包含一个实体动画的信息的记录类
用于AnimateEntityPacket网络包
 
 
 
 
 
 
 
 
 
 
 
Describes an API element.
Enum constant for API definition.
Enum constant for API usage.
 
 
 
 
 
 
 
 
属性是作用于Entity上一个的增益/减益系统。
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The base concrete class for non-terminal Nodes
 
 
 
 
 
 
 
单个的行为对象,包含一个执行器和一个评估器,行为对象委托了它们的方法
标准行为组实现
 
描述一个ChunkSection的位置
表示一个行为的状态
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
方块创造栏分类.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
http://minecraft.wiki/w/End_Rod
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated, for removal: This API element is subject to removal in a future version.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
表达一个能被命名的事物的接口。
An interface describes an object that can be named.
This entity allows to manipulate the save state of a nether reactor core, but changing it will cause no visual change.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
实现了此接口的方块可以放入花盆中
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
解析对应参数为Block
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
PowerNukkitX Project 2023/7/15
 
 
Deprecated.
Use BlockPistonEvent
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
StoneSlab2Type
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
保存着从BlockState -> runtimeid 的注册表
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Implements the main logic of all nether vines.
Properties and behaviour definitions of the BlockID.TWISTING_VINES block.
Properties and behaviour definitions of the BlockID.WEEPING_VINES block.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
解析对应参数为Boolean
 
 
 
 
 
 
 
 
A BufferedRandomAccessFile is like a RandomAccessFile, but it uses a private buffer so that most operations do not require a disk access.
Project nukkit
向量计算工具,同时整合了yaw和pitch与坐标空间的转换功能
 
 
 
 
 
 
 
 
CachedSimpleSelectorArgument类似,但是适用于过滤器模式。此处不做过多解释
可缓存的目标选择器参数基类
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
洞穴生物群系 eq: 繁茂洞穴
ExecuteCommand命令的链命令节点
 
 
 
Server-bound packet to change the properties of a mob.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ClientChainData is a container of chain data sent from clients.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
Deprecated.
Deprecated.
Deprecated.
 
 
 
 
 
 
 
 
CommandEnumConstraintData is sent in the AvailableCommandsPacket to limit what values of an enum may be used taking in account things such as whether cheats are enabled.
 
能监听命令执行的类实现的接口。
An interface what can be implemented by classes which listens command executing.
 
 
 
将全部剩余的参数以空格为分隔符合并,解析为String
 
 
 
CommandOutputPacket 负载消息的容器,支持同时发送多条消息
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
能发送命令的对象.
可以是一个玩家或者一个控制台或者一个实体或者其他.
 
 
 
负责解析ExecuteCommand中的比较操作,解析为String
Represents a 16 direction compass rose.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
An auto-resizing table of longs, supporting low-contention CAS operations.
An auto-resizing table of longs, supporting low-contention CAS operations.
 
 
并行路径查找抽象类
实现了此类的寻路器应当提供完整的异步寻路支持
PNX中未使用此寻路方案,但保留以提供API
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
args like x,y,z.
 
这个接口用来标识服务端内部实现的命令,原版不存在的命令。
核心使用到的记忆类型枚举
 
 
 
Deprecated.
 
 
 
 
用于管理合成配方
 
 
 
 
 
 
 
 
 
 
 
 
An enum to specify the type of spawning
 
An enum to specify the cause of the change in power
 
 
 
 
 
继承这个类实现自定义方块,重写Block中的方法控制方块属性
CustomBlockDefinition用于获得发送给客户端的方块行为包数据。CustomBlockDefinition.Builder中提供的方法都是控制发送给客户端数据,如果需要控制服务端部分行为,请覆写Block中的方法。
 
 
 
 
 
 
 
 
继承这个类实现自定义物品,重写Item中的方法控制方块属性
CustomBlockDefinition用于获得发送给客户端的物品行为包数据。CustomItemDefinition.SimpleBuilder中提供的方法都是控制发送给客户端数据,如果需要控制服务端部分行为,请覆写Item中的方法。
 
 
 
 
 
 
 
 
DataPacketManager is a static class to manage DataPacketProcessors and process DataPackets.
A DataPacketProcessor is used to handle a specific type of DataPacket.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Describe the deprecation with more details.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
计分板显示槽位枚举
下潜运动控制器,使实体下潜
DoNotModify is used to indicate that the return value of method, variables, etc.
 
 
 
 
解析为Double
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
用于未实现AI的实体,作为占位符使用
Deprecated.
 
 
 
 
 
An enchantment that can be to applied to an item.
How rare an enchantment is.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Defines the interface for energy holders.
 
定义一个能源种类 Define an energy type.
 
 
 
 
解析为List<Entity>
 
 
存放一些AI框架的全局参数
 
 
可生气实体
 
 
 
 
 
 
 
该方法将被异步并行调用,用于实体进行tick无关的操作
 
 
 
 
 
 
 
 
 
代表可以攻击其他实体的实体.
可坐下实体接口
 
 
 
 
 
 
 
 
 
继承了此接口的接口为一个实体组件
实体组件的实现使用default方法承载逻辑,相关值则使用记忆存储器存储
封装了一些涉及控制器的方法.
一些通用的实体运动控制方法
 
实体生物
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
所有鱼的基类
 
 
实现了此接口的实体可飞行
 
 
 
 
 
 
 
 
实体可通过喂食食物被治疗
 
 
 
 
 
从mc标准实体标识符获取Nukkit的实体网络IDEntity.getNetworkId() Link LEGACY_IDS
EntityIntelligent抽象了一个具有行为组IBehaviorGroup(也就是具有AI)的实体
用来提供给插件基础,以方便的使用带有智能的EntityHuman
 
 
 
 
 
 
 
 
 
 
 
 
 
实现这个接口的实体拥有次要变种属性
 
 
 
 
 
 
 
 
 
 
 
实体移动到主人身边.(只对实现了接口 EntityOwnable 的实体有效)
 
An entity which can be named by name tags.
 
 
 
实现这个接口的实体可以被驯服
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
实体创建的时候会被调用
 
 
 
 
 
 
 
 
目标选择器API
实体可剪切
 
 
 
 
 
 
 
 
 
这个接口代表亡灵类的怪物实体
 
 
 
 
 
 
 
实现了此接口的生物可游泳
 
Deprecated.
 
 
 
 
实现这个接口的实体拥有变种属性
 
 
 
 
 
 
 
实现了此接口的实体可行走
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
解析为String
 
 
描述服务器中可能发生的事情的类。
Describes things that happens in the server.
 
 
定义一个事件的处理器的注解。
Annotation that defines a handler.
 
 
Project nukkit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
假方块API,通过发送数据包欺骗客户端在指定位置存在某方块及其方块实体
 
一个抽象的方块实体UI,提供了一些inventory方法的默认实现
这个Inventory是一个hack实现,用来实现EntityIntelligentHuman的背包实现,它无法被open 和 close,因为虚拟人类不会自己打开物品栏
这个Inventory是一个hack实现,用来实现EntityIntelligentHuman的背包实现,它无法被open 和 close,因为虚拟人类不会自己打开物品栏
这个Inventory是一个hack实现,用来实现EntityIntelligentHuman的背包实现,它无法被open 和 close,因为虚拟人类不会自己打开物品栏
 
 
 
Simple, fast byte-array output stream that exposes the backing array.
 
 
 
 
 
 
A FixedMetadataValue is a special case metadata item that contains the same value forever after initialization.
 
 
 
 
 
 
 
解析为Float
验证是否为浮点坐标并解析为Position
 
 
控制实体在水中扑腾的控制器
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
FreezableArrayManager负责管理所有AutoFreezable的ByteArrayWrapper
这包括计算温度,冻结和解冻
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
此接口抽象了一个行为对象,作为行为组IBehaviorGroup的组成部分.
此接口抽象了一个行为评估器
决定是否激活与其绑定的执行器
行为执行器
在实体上执行具体的行为
对于每个实例化的实体,此对象应只会实例化一次,且一直伴随实体不会改变
行为组是一个基本的、独立的AI单元
它由若干个(核心)行为IBehavior、控制器IController、传感器ISensor以及一个寻路器IRouteFinder和记忆存储器IMemoryStorage组成br> 注:核心行为指的是不会被行为优先级影响的行为,其激活状态只取决于其自身的评估器br>
 
 
语义接口,实现了此接口的方块都是木头方块,可以使得自然生成的树叶不凋零。
Semantic interface, blocks that implement this interface are wood blocks, which can make naturally generated leaves not decay.
 
 
 
 
控制器是用来控制实体的行为的,比如移动、跳跃、攻击等等的具体实现。
对于不同实体,可以提供不同的控制器,以实现上述行为的特殊实现。
命名空间标识符
 
 
 
记忆编解码器
记忆存储器
 
ImmutableCollection is used to mark a collection as immutable.
 
 
 
 
 
 
 
 
A lock-free alternate implementation of ConcurrentHashMap with primitive int keys, better scaling properties and generally lower costs.
 
 
 
 
 
 
 
 
描述一个可以被中断的线程的接口。
An interface to describe a thread that can be interrupted.
 
 
解析为Integer
 
 
 
验证是否为整数坐标并将参数解析为Position
 
Deprecated.
 
 
 
 
 
 
 
 
Token subclass to represent lexically invalid input
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
代表一个抽象的命令节点,类型T对应节点解析结果类型
用来描述一个玩家和获得这个玩家相应信息的接口。
An interface to describe a player and get its information.
解析为List<IPlayer>
坐标评估器用于寻路器评估坐标
通过编写特定的坐标评估器,可以自定义寻路器的寻路策略
验证IP地址并解析为String
此接口抽象了一个寻路器
计分板对象 可被发送到任何实现了IScoreboardViewer接口的对象上
计分板上的单个行
IScorer和分数组成
管理,储存一批计分板
此接口面向/scoreboard命令,若只是想要显示信息,请直接操作scoreboard对象
计分板存储器接口
计分板观察者 (eg: Player) 此接口用于抽象服务端到客户端的协议层方法
计分板追踪对象
此接口描述了一个选择器参数
此接口抽象了一个传感器
传感器用于搜集环境信息并向记忆存储器IMemoryStorage写入一个记忆MemoryType
 
 
 
 
 
 
 
物品锁定在玩家的物品栏 LOCK_IN_SLOT 阻止该物品被从玩家物品栏的该槽位移动、移除、丢弃或用于合成 LOCK_IN_INVENTORY 阻止该物品被从玩家的物品栏移除、丢弃或用于合成
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
控制自定义物品在创造栏的大分类,例如建材栏,材料栏
可选值:1 CONSTRUCTOR 2 NATURE 3 EQUIPMENT 4 ITEMS 5 NONE
Controls the major group of custom items in the creative inventory.
 
 
继承这个类实现自定义物品,重写Item中的方法控制方块属性
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Items that implement this interface can take damage and break.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
物品展示框被使用的事件,会在放置物品,旋转物品,掉落物品时调用
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
解析对应参数为Item
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
此类描述了放在jar插件文件内assets/resource_pack目录的资源包相关文件
 
 
 
 
 
 
PowerNukkitX Project 2023/7/12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The LazyMetadataValue class implements a type of metadata that is not computed until another plugin asks for it.
Describes possible caching strategies for metadata.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
为飞行生物提供升力的运动控制器
 
 
 
 
 
 
 
所有的监听事件的类必须实现的接口。
An interface implemented by all classes that handles events.
 
ListTag<T extends Tag>
 
 
 
 
 
 
 
提供部分实用方法封装
Provide some utility method encapsulation
 
 
 
 
A lock-free alternate implementation of ConcurrentHashMap with primitive long keys, better scaling properties and generally lower costs.
 
 
 
 
实体看向最近携带食物的玩家
此执行器与 LookAtTargetExecutor 最大的一点不同是,它会设置实体的DATA_FLAG_INTERESTED为true
 
处理实体Pitch/Yaw/HeadYaw
 
 
 
 
 
 
 
 
 
 
用于将方块的face(面)映射到实际的材质实例,并且设置渲染方法和参数
渲染方法枚举
 
 
 
 
 
通用近战攻击执行器.
 
 
 
记忆存储器标准实现
实体记忆是一个存储实体数据的类,同时如果实现了IMemoryCodec,实体记忆还可以被持久化存储以及链接实体元数据
 
 
 
 
 
 
 
解析全部剩余参数拼接为String
 
A MetadataEvaluationException is thrown any time a LazyMetadataValue fails to evaluate its value due to an exception.
 
 
Optional base class for facilitating MetadataValue implementations.
 
bStats collects some data for plugin authors.
Represents a custom advanced bar chart.
Represents a custom advanced pie.
Represents a custom chart.
Represents a custom drill down pie.
Represents a custom multi line chart.
Represents a custom simple bar chart.
Represents a custom simple pie.
Represents a custom single line chart.
 
 
 
Helper class of Minecart variants
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
一个抽象类代表着这个评估器会评估多个行为;
 
 
 
 
 
 
 
 
 
 
 
 
A Named Binary Tag library for Nukkit Project
 
 
 
用来搜索最近的目标实体,构造函数中接受一个目标函数Function<T, Boolean> target的Set,用于实体检测,最终结果保存到List<MemoryType<Entity>> memories中.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
寻路节点
 
 
 
 
 
 
 
 
 
 
 
 
Marks that the annotated element is not computation atomic, and its computeXXX methods may not be atomic.
 
Nukkit's terrain generator Originally adapted from the PocketMine-MP generator by NycuRO and CreeperFace Mostly rewritten by DaPorkchop_
 
 
 
 
 
 
Nukkit启动类,包含main函数。
The launcher class of Nukkit, including the main function.
 
 
 
 
 
 
 
This class is provided as an easy way to handle scheduling tasks.
Utils for casting number types to other number types
 
NumberTag<T extends Number>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
描述一个不在线的玩家的类。
Describes an offline player.
Offset代表RenderOffsets中的偏移量对象
OK<E>
可携带异常信息的的结果
 
 
 
 
K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
验证是否为操作参数,解析对应参数为String
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
一个通用的命令节点抽象类实现,插件想实现自己的命令参数节点应该继承这个类实现。
 
 
 
 
一些有关目标选择器解析的常用静态函数
 
 
 
用于判断一个时间类型的记忆是否在指定范围内的评估器
 
 
 
 
 
 
 
 
The type Permutation builder.
 
 
 
A multi-threaded version of GZIPOutputStream.
 
 
 
 
 
 
游戏玩家对象,代表操控的角色
 
 
 
 
 
 
 
 
This event is called asynchronously
 
 
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
An event that is called when player catches a fish
 
 
 
 
 
 
 
A PlayerHandle is used to access a player's protected data.
 
 
 
 
 
 
 
call when a player moves wrongly
0-8 物品栏
9-35 背包
36-39 盔甲栏
想获取副手库存请用PlayerOffhandInventory
Called when a player eats something
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Called when the player logs in, before things have been set up
 
 
 
 
 
 
 
 
解析为List<Player>
 
 
 
 
 
 
 
 
 
Fired when a player change anything in the item name in an open Anvil inventory window.
 
这个Inventory并不代表玩家的背包,若想获取玩家背包请使用PlayerInventory
0是cursorInventory
1-2是ANVIL
16-17是GRINDSTONE
28-31是craftingGrid没有结果格
32-40是bigCraftingGrid没有结果格
 
 
 
所有Nukkit插件必须实现的接口。
An interface what must be implemented by all Nukkit plugins.
一般的Nukkit插件需要继承的类。
A class to be extended by a normal Nukkit plugin.
 
 
描述一个Nukkit插件的类。
Describes a Nukkit plugin.
 
 
 
 
 
注册插件多语言,要求插件资源文件中存在一个language文件夹,或者指定language文件夹的外部保存路径
 
描述一个插件加载器的接口。
An interface to describe a plugin loader.
描述一个Nukkit插件加载顺序的类。
Describes a Nukkit plugin load order.
 
 
 
插件创建的任务。
Task that created by a plugin.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
坐标节点基类
 
 
 
 
 
 
A position tracking db service.
在一个文件中存储PositionTracking对象的顺序范围。读取操作被缓存。
 
 
 
 
 
Indicates that the annotated element works differently in PowerNukkit environment and may cause issues or unexpected behaviour when used in a normal NukkitX server without PowerNukkit's patches and features.
 
Indicates that the annotated element is only available in PowerNukkit environment and will cause issues when used in a normal NukkitX server without PowerNukkit's patches and features.
Deprecated.
Indicates that the annotated element works differently in PowerNukkit environment and may cause issues or unexpected behaviour when used in a normal NukkitX server without PowerNukkitX's patches and features.
 
这代表一个仅应该被使用于PNX内部的接口,插件在不知道实现的情况下不应该随意使用
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
INTERNAL helper class of railway
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
解析为RawText
Implementation of Source RCON protocol.
A data structure to hold sender, request ID and command itself.
A data structure representing an RCON packet.
Thread that performs all RCON network work.
 
 
 
 
标注此物品栏拥有者的物品栏作为合成用途,常见于机器,如熔炉等。
This inventory holder's inventory is used for recipe, usually in machines, such as furnaces, etc.
 
Interface, all redstone components implement, containing redstone related methods.
 
 
 
 
 
 
 
 
 
解析全部剩余参数拼接为String
Represents an RCON command sender.
Called when an RCON command is executed.
 
 
 
RenderOffsets是设置 render_offsets 项目组件。可以设置参数来偏移物品的在不同视角下的呈现方式。
 
 
 
 
 
 
 
 
Deprecated.
 
 
 
 
 
描述一个资源包的接口
 
 
 
 
 
 
 
描述一个资源包加载器
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
寻路管理器,所有的寻路任务都应该提交到这个管理器中,管理器负责调度寻路任务,实现资源利用最大化
 
 
 
 
 
 
 
这个类用于将旧版本物品以id:damage形式转换到新版本物品无damage值(0)的形式,以及提供StartGamePacket中item Palette的作用
 
The type Runtime entry.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
args like dx,dy,dz.
 
 
请注意,若计分板不存在于 Server::scoreboardManager中,则此事件不会被调用
 
 
 
 
 
 
追踪对象类型
除了INVALID,其他枚举都有对应IScorer的实现类
对于插件来说,使用FAKE类型即可
 
 
 
Deprecated.
 
 
 
 
 
 
 
 
所有可能的选择器类型
 
 
 
代表着服务器对象,全局单例.
 
 
 
 
能成为服务器管理员(OP)的对象。
Who can be an operator(OP).
 
 
 
 
服务器启动完毕后会触发,注意reload也会触发
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
声明此操作将会解冻可冻结数组
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SimpleConfig for Nukkit added 11/02/2016 by fromgate
 
 
 
标准A*寻路实现
非异步的路径查找抽象类
在PowerNukkitX的生物AI架构中,不同实体的路径查找是并行的而不是异步的
所以说我们并不需要异步路径查找
务必注意,三维标准A*寻路的代价十分高昂(比原版的洪水填充低得多),切忌将最大寻路深度设置得太大! TODO: 用BA*、JPS或者势能场寻路代替
 
 
 
 
 
 
 
Indicates which version added the annotated element.
 
 
 
 
 
使有主人的生物在主人睡觉时睡到主人床上
只能在实现了接口 EntityOwnable 的实体上使用
需要保证实体的getOwner()方法返回非空
这个抽象类代表较为细长的投射物实体(例如弓箭,三叉戟),它通过重写Entity.move(double, double, double)方法实现这些实体较为准确的碰撞箱计算。
 
 
 
 
 
 
 
 
 
 
 
 
Lexical States
The various token types.
 
 
 
 
 
 
SortedList是List的一个有序实现,内部是用平衡二叉树实现的。
追踪目标显示顺序排序准则,客户端会依照准则根据分数排序所有追踪对象
 
 
 
处理飞行/游泳实体运动
3D随机漫游
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Deprecated.
Deprecated.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
解析为String
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Determines which void mode to draw for structure blocks.
 
 
 
 
 
 
 
用于游泳实体的坐标评估器
 
 
 
 
 
 
 
 
 
 
代表玩家驯服马时,马的行为
 
表达一个任务的类。
A class that describes a task.
 
 
 
 
 
 
Terra生成器平台实现类
请注意我们通常不直接使用此类而是使用TerraGeneratorWrapper
其每个实例都会持有一个相同的TerraGenerator实例
这样做的原因是因为nk底层会在每个线程新建一个生成器实例并行化生成区块时,而Terra本身就是并行的

Terra generator platform implementation class
Please note that we usually do not use this class directly but use TerraGeneratorWrapper
Each of its instances will hold an identical instance of TerraGenerator
The reason for this is because the bottom layer of nk will create a new generator instance for each thread to generate blocks in parallel, and Terra itself is parallel
用于nk底层的Terra生成器代理类
这样做的具体原因详见TerraGenerator

Terra generator wrapper class for nk bottom layer
The specific reasons for this are detailed in TerraGenerator
 
测试命令基类
 
 
 
 
 
文本容器 通过TextContainer.text存放文本内容
All supported formatting values for chat and console.
 
 
 
 
 
 
 
 
 
实现此接口的区块应该拥有一个能够并行访问的方块缓存,通常每tick都会调用clear。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Represents a function that accepts three arguments where the last is int and produces an int result.
Represents a function that accepts three arguments where the last two are int and produces an int result.
 
Represents a function that accepts three arguments mixing F, int and long and produces a long result.
Represents a function that accepts three arguments where the last is long and produces a long result.
 
 
 
 
 
 
 
supports rotation, scaling, and translation.
一个带有多语言功能的占位符插值文本容器,多语言功能通过BaseLang实现.
 
Represents a function that accepts three arguments and produces a result.
 
 
 
 
 
 
 
 
Indicates that the number may be negative in raw form but must be treated as an unsigned value by considering the sign bit as part of the number.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
代表原版命令的基类
Tool class for VarInt or VarLong operations.
 
 
 
 
 
 
 
 
Is called when an entity damages a vehicle
Is called when an entity takes damage
Is called when an entity destroyed a vehicle
Is called when an vehicle gets destroyed
 
 
 
 
 
 
 
 
振动监听器
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
一个用来占位的空参数节点
处理陆地行走实体运动 todo: 有待解耦
用于标准陆地行走实体的方块评估器
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
A thread-safe map with weak keys.
 
A WeakConcurrentMap where stale entries are removed as a side effect of interacting with this map.
A thread-safe set with weak values.
Determines the cleaning format.
 
 
 
由多个行为IBehavior组成的组(注意和行为组IBehaviorGroup区分)
调用方法WeightedMultiBehavior.execute(EntityIntelligent)前,必须调用此对象的评估函数以确认激活的是哪个行为
在评估时,会评估所有包含的子行为
筛选出返回成功的行为后,会选取最高优先级的那一组
如果到这一步依然存在多个行为,则会根据行为的IBehavior.getWeight()方法的返回值随机选取其中一个作为执行行为
 
 
 
代表一个可以输入通配符 * 的IntNode,当输入通配符时,将会解析结果将变成默认值WildcardIntNode.defaultV
解析为String
狼执行攻击,会带有狼的动画,以及攻击过程中狼还会看向携带食物的玩家.
搜索狼最近携带食物的玩家,与NearestFeedingPlayerSensor相比它特判了Bone.
 
 
 
 
 
 
验证经验值或等级并解析为Integer