15 public virtual void Update(
float dt) {
20 float num =
float.MaxValue;
24 && num2.Value < num) {
33 public override bool OnFluidInteract(
int interactValue,
int x,
int y,
int z,
int fluidValue) {
48 return base.OnFluidInteract(interactValue, x, y, z, fluidValue);
57 base.OnItemHarvested(x, y, z, blockValue, ref dropValue, ref newBlockValue);
static int Max(int x1, int x2)
SubsystemAmbientSounds SubsystemAmbientSounds
void Set(int x, int y, int z, int value)
SubsystemTime SubsystemTime
float? CalculateDistanceToFluid(Vector3 p, int radius, bool flowingFluidOnly)
SubsystemAudio SubsystemAudio
SubsystemFluidBlockBehavior(FluidBlock fluidBlock, bool generateSources)
virtual void DestroyCell(int toolLevel, int x, int y, int z, int newValue, bool noDrop, bool noParticleSystem, MovingBlock movingBlock=null)
override int[] HandledBlocks
SubsystemWaterBlockBehavior()
virtual void Update(float dt)
override bool OnFluidInteract(int interactValue, int x, int y, int z, int fluidValue)
override void OnItemHarvested(int x, int y, int z, int blockValue, ref BlockDropValue dropValue, ref int newBlockValue)
static Func< int, int, bool > IsPlaceFrozen
static int ExtractContents(int value)
virtual int GetSeasonalTemperature(int x, int z)
static int MakeBlockValue(int contents)