数据类型、枚举类型
数据类型(Data Types)
ObjectRef(抽象类)
案例
local br = self.modData.blockEntityRef -- Get the reference of block entity
local blockEntity = br.ref -- Get the block entity from reference
if blockEntity ~= nil then
-- do something
end
br.ref = blockEntity2 -- Set the reference point to blockEntity2
local blockEntity3 = br.ref -- blockEntity3 is the same object blockEntity2
br.ref = nil -- Set the renference point to nothing
local blockEntity4 = br.ref -- blockEntity4 is nilArrayList<T>
遍历方案
ExData
案例
Point
Rectangle
SpriteEx
Hitbox
Attack
Defense
EntityKey
Color
PlaceParameter
ClickParameter
DestroyParameter
枚举类型(Enums)
NetMode
Direction
Shape
ItemType
ToolType
NpcType
DefaultColor
LightingState
DeathReason
GameMode
OP
Last updated