11 base.Load(valuesDictionary);
17 base.OnNeighborBlockChanged(x, y, z, neighborX, neighborY, neighborZ);
21 if (!
IsSupport(cellValue, face, bottomSuckerBlockValue)) {
37 if (componentHealth !=
null) {
44 "Spiked by a sea creature"
50 public virtual bool IsSupport(
int value,
int face,
int bottomSuckerBlockValue = 226) {
virtual bool IsFaceNonAttachable(SubsystemTerrain subsystemTerrain, int face, int value, int attachBlockValue)
virtual bool IsCollidable_(int value)
static int GetBlockIndex(string BlockName, bool throwIfNotFound=false)
通过方块名称来获取方块的Index
static int GetFace(int data)
virtual void OnSpiked(SubsystemBlockBehavior spikeBlockBehavior, float damage, CellFace cellFace, float velocity, ComponentBody componentBody, string causeOfDeath)
virtual float SpikeResilience
virtual bool IsSupport(int value, int face, int bottomSuckerBlockValue=226)
override int[] HandledBlocks
int m_seaUrchinBlockValue
override void OnCollide(CellFace cellFace, float velocity, ComponentBody componentBody)
override void OnNeighborBlockChanged(int x, int y, int z, int neighborX, int neighborY, int neighborZ)
override void Load(ValuesDictionary valuesDictionary)
virtual void DestroyCell(int toolLevel, int x, int y, int z, int newValue, bool noDrop, bool noParticleSystem, MovingBlock movingBlock=null)
static int ExtractContents(int value)
virtual int GetCellValue(int x, int y, int z)
static int ExtractData(int value)
Component FindComponent(Type type, string name, bool throwOnError)
static int OppositeFace(int face)
static Point3 FaceToPoint3(int face)