Class AmbienceFXConditions

java.lang.Object
com.hypixel.hytale.protocol.AmbienceFXConditions

public class AmbienceFXConditions extends Object
  • Field Details

    • NULLABLE_BIT_FIELD_SIZE

      public static final int NULLABLE_BIT_FIELD_SIZE
      See Also:
    • FIXED_BLOCK_SIZE

      public static final int FIXED_BLOCK_SIZE
      See Also:
    • VARIABLE_FIELD_COUNT

      public static final int VARIABLE_FIELD_COUNT
      See Also:
    • VARIABLE_BLOCK_START

      public static final int VARIABLE_BLOCK_START
      See Also:
    • MAX_SIZE

      public static final int MAX_SIZE
      See Also:
    • never

      public boolean never
    • environmentIndices

      @Nullable public int[] environmentIndices
    • weatherIndices

      @Nullable public int[] weatherIndices
    • fluidFXIndices

      @Nullable public int[] fluidFXIndices
    • environmentTagPatternIndex

      public int environmentTagPatternIndex
    • weatherTagPatternIndex

      public int weatherTagPatternIndex
    • surroundingBlockSoundSets

      @Nullable public AmbienceFXBlockSoundSet[] surroundingBlockSoundSets
    • altitude

      @Nonnull public Range altitude
    • walls

      @Nonnull public Rangeb walls
    • roof

      public boolean roof
    • roofMaterialTagPatternIndex

      public int roofMaterialTagPatternIndex
    • floor

      public boolean floor
    • sunLightLevel

      @Nonnull public Rangeb sunLightLevel
    • torchLightLevel

      @Nonnull public Rangeb torchLightLevel
    • globalLightLevel

      @Nonnull public Rangeb globalLightLevel
    • dayTime

      @Nonnull public Rangef dayTime
    • space

      @Nullable public SpaceSize[] space
    • shelter

      @Nullable public ShelterType[] shelter
    • surfaces

      @Nullable public SurfaceType[] surfaces
    • roofState

      @Nonnull public RoofState roofState
    • spaceScaleRange

      @Nullable public Rangef spaceScaleRange
    • spaceScaleMinRange

      @Nullable public Rangef spaceScaleMinRange
    • spaceScaleMaxRange

      @Nullable public Rangef spaceScaleMaxRange
    • escapedRayPercentRange

      @Nullable public Rangef escapedRayPercentRange
    • reflectionCoeffRange

      @Nullable public Rangef reflectionCoeffRange
    • absorptionCoeffRange

      @Nullable public Rangef absorptionCoeffRange
    • roofDistanceRange

      @Nullable public Rangef roofDistanceRange
    • surfacePhysicalMaterials

      @Nullable public AmbienceFXPhysicalMaterial[] surfacePhysicalMaterials
    • surfacePhysicalMaterialsMatchAny

      public boolean surfacePhysicalMaterialsMatchAny
    • exteriorRoofPhysicalMaterials

      @Nullable public AmbienceFXPhysicalMaterial[] exteriorRoofPhysicalMaterials
    • exteriorRoofPhysicalMaterialsMatchAny

      public boolean exteriorRoofPhysicalMaterialsMatchAny
  • Constructor Details

    • AmbienceFXConditions

      public AmbienceFXConditions()
    • AmbienceFXConditions

      public AmbienceFXConditions(boolean never, @Nullable int[] environmentIndices, @Nullable int[] weatherIndices, @Nullable int[] fluidFXIndices, int environmentTagPatternIndex, int weatherTagPatternIndex, @Nullable AmbienceFXBlockSoundSet[] surroundingBlockSoundSets, @Nonnull Range altitude, @Nonnull Rangeb walls, boolean roof, int roofMaterialTagPatternIndex, boolean floor, @Nonnull Rangeb sunLightLevel, @Nonnull Rangeb torchLightLevel, @Nonnull Rangeb globalLightLevel, @Nonnull Rangef dayTime, @Nullable SpaceSize[] space, @Nullable ShelterType[] shelter, @Nullable SurfaceType[] surfaces, @Nonnull RoofState roofState, @Nullable Rangef spaceScaleRange, @Nullable Rangef spaceScaleMinRange, @Nullable Rangef spaceScaleMaxRange, @Nullable Rangef escapedRayPercentRange, @Nullable Rangef reflectionCoeffRange, @Nullable Rangef absorptionCoeffRange, @Nullable Rangef roofDistanceRange, @Nullable AmbienceFXPhysicalMaterial[] surfacePhysicalMaterials, boolean surfacePhysicalMaterialsMatchAny, @Nullable AmbienceFXPhysicalMaterial[] exteriorRoofPhysicalMaterials, boolean exteriorRoofPhysicalMaterialsMatchAny)
    • AmbienceFXConditions

      public AmbienceFXConditions(@Nonnull AmbienceFXConditions other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment.
    • getNever

      public static boolean getNever(MemorySegment mem)
    • getNever

      public static boolean getNever(MemorySegment mem, int offset)
    • getEnvironmentIndices

      @Nullable public static int[] getEnvironmentIndices(MemorySegment mem)
    • getEnvironmentIndices

      @Nullable public static int[] getEnvironmentIndices(MemorySegment mem, int offset)
    • getWeatherIndices

      @Nullable public static int[] getWeatherIndices(MemorySegment mem)
    • getWeatherIndices

      @Nullable public static int[] getWeatherIndices(MemorySegment mem, int offset)
    • getFluidFXIndices

      @Nullable public static int[] getFluidFXIndices(MemorySegment mem)
    • getFluidFXIndices

      @Nullable public static int[] getFluidFXIndices(MemorySegment mem, int offset)
    • getEnvironmentTagPatternIndex

      public static int getEnvironmentTagPatternIndex(MemorySegment mem)
    • getEnvironmentTagPatternIndex

      public static int getEnvironmentTagPatternIndex(MemorySegment mem, int offset)
    • getWeatherTagPatternIndex

      public static int getWeatherTagPatternIndex(MemorySegment mem)
    • getWeatherTagPatternIndex

      public static int getWeatherTagPatternIndex(MemorySegment mem, int offset)
    • getSurroundingBlockSoundSets

      @Nullable public static AmbienceFXBlockSoundSet[] getSurroundingBlockSoundSets(MemorySegment mem)
    • getSurroundingBlockSoundSets

      @Nullable public static AmbienceFXBlockSoundSet[] getSurroundingBlockSoundSets(MemorySegment mem, int offset)
    • getAltitude

      public static Range getAltitude(MemorySegment mem)
    • getAltitude

      public static Range getAltitude(MemorySegment mem, int offset)
    • getWalls

      public static Rangeb getWalls(MemorySegment mem)
    • getWalls

      public static Rangeb getWalls(MemorySegment mem, int offset)
    • getRoof

      public static boolean getRoof(MemorySegment mem)
    • getRoof

      public static boolean getRoof(MemorySegment mem, int offset)
    • getRoofMaterialTagPatternIndex

      public static int getRoofMaterialTagPatternIndex(MemorySegment mem)
    • getRoofMaterialTagPatternIndex

      public static int getRoofMaterialTagPatternIndex(MemorySegment mem, int offset)
    • getFloor

      public static boolean getFloor(MemorySegment mem)
    • getFloor

      public static boolean getFloor(MemorySegment mem, int offset)
    • getSunLightLevel

      public static Rangeb getSunLightLevel(MemorySegment mem)
    • getSunLightLevel

      public static Rangeb getSunLightLevel(MemorySegment mem, int offset)
    • getTorchLightLevel

      public static Rangeb getTorchLightLevel(MemorySegment mem)
    • getTorchLightLevel

      public static Rangeb getTorchLightLevel(MemorySegment mem, int offset)
    • getGlobalLightLevel

      public static Rangeb getGlobalLightLevel(MemorySegment mem)
    • getGlobalLightLevel

      public static Rangeb getGlobalLightLevel(MemorySegment mem, int offset)
    • getDayTime

      public static Rangef getDayTime(MemorySegment mem)
    • getDayTime

      public static Rangef getDayTime(MemorySegment mem, int offset)
    • getSpace

      @Nullable public static SpaceSize[] getSpace(MemorySegment mem)
    • getSpace

      @Nullable public static SpaceSize[] getSpace(MemorySegment mem, int offset)
    • getShelter

      @Nullable public static ShelterType[] getShelter(MemorySegment mem)
    • getShelter

      @Nullable public static ShelterType[] getShelter(MemorySegment mem, int offset)
    • getSurfaces

      @Nullable public static SurfaceType[] getSurfaces(MemorySegment mem)
    • getSurfaces

      @Nullable public static SurfaceType[] getSurfaces(MemorySegment mem, int offset)
    • getRoofState

      public static RoofState getRoofState(MemorySegment mem)
    • getRoofState

      public static RoofState getRoofState(MemorySegment mem, int offset)
    • getSpaceScaleRange

      @Nullable public static Rangef getSpaceScaleRange(MemorySegment mem)
    • getSpaceScaleRange

      @Nullable public static Rangef getSpaceScaleRange(MemorySegment mem, int offset)
    • getSpaceScaleMinRange

      @Nullable public static Rangef getSpaceScaleMinRange(MemorySegment mem)
    • getSpaceScaleMinRange

      @Nullable public static Rangef getSpaceScaleMinRange(MemorySegment mem, int offset)
    • getSpaceScaleMaxRange

      @Nullable public static Rangef getSpaceScaleMaxRange(MemorySegment mem)
    • getSpaceScaleMaxRange

      @Nullable public static Rangef getSpaceScaleMaxRange(MemorySegment mem, int offset)
    • getEscapedRayPercentRange

      @Nullable public static Rangef getEscapedRayPercentRange(MemorySegment mem)
    • getEscapedRayPercentRange

      @Nullable public static Rangef getEscapedRayPercentRange(MemorySegment mem, int offset)
    • getReflectionCoeffRange

      @Nullable public static Rangef getReflectionCoeffRange(MemorySegment mem)
    • getReflectionCoeffRange

      @Nullable public static Rangef getReflectionCoeffRange(MemorySegment mem, int offset)
    • getAbsorptionCoeffRange

      @Nullable public static Rangef getAbsorptionCoeffRange(MemorySegment mem)
    • getAbsorptionCoeffRange

      @Nullable public static Rangef getAbsorptionCoeffRange(MemorySegment mem, int offset)
    • getRoofDistanceRange

      @Nullable public static Rangef getRoofDistanceRange(MemorySegment mem)
    • getRoofDistanceRange

      @Nullable public static Rangef getRoofDistanceRange(MemorySegment mem, int offset)
    • getSurfacePhysicalMaterials

      @Nullable public static AmbienceFXPhysicalMaterial[] getSurfacePhysicalMaterials(MemorySegment mem)
    • getSurfacePhysicalMaterials

      @Nullable public static AmbienceFXPhysicalMaterial[] getSurfacePhysicalMaterials(MemorySegment mem, int offset)
    • getSurfacePhysicalMaterialsMatchAny

      public static boolean getSurfacePhysicalMaterialsMatchAny(MemorySegment mem)
    • getSurfacePhysicalMaterialsMatchAny

      public static boolean getSurfacePhysicalMaterialsMatchAny(MemorySegment mem, int offset)
    • getExteriorRoofPhysicalMaterials

      @Nullable public static AmbienceFXPhysicalMaterial[] getExteriorRoofPhysicalMaterials(MemorySegment mem)
    • getExteriorRoofPhysicalMaterials

      @Nullable public static AmbienceFXPhysicalMaterial[] getExteriorRoofPhysicalMaterials(MemorySegment mem, int offset)
    • getExteriorRoofPhysicalMaterialsMatchAny

      public static boolean getExteriorRoofPhysicalMaterialsMatchAny(MemorySegment mem)
    • getExteriorRoofPhysicalMaterialsMatchAny

      public static boolean getExteriorRoofPhysicalMaterialsMatchAny(MemorySegment mem, int offset)
    • hasSpaceScaleRange

      public static boolean hasSpaceScaleRange(MemorySegment mem, int offset)
    • hasSpaceScaleMinRange

      public static boolean hasSpaceScaleMinRange(MemorySegment mem, int offset)
    • hasSpaceScaleMaxRange

      public static boolean hasSpaceScaleMaxRange(MemorySegment mem, int offset)
    • hasEscapedRayPercentRange

      public static boolean hasEscapedRayPercentRange(MemorySegment mem, int offset)
    • hasReflectionCoeffRange

      public static boolean hasReflectionCoeffRange(MemorySegment mem, int offset)
    • hasAbsorptionCoeffRange

      public static boolean hasAbsorptionCoeffRange(MemorySegment mem, int offset)
    • hasRoofDistanceRange

      public static boolean hasRoofDistanceRange(MemorySegment mem, int offset)
    • hasEnvironmentIndices

      public static boolean hasEnvironmentIndices(MemorySegment mem, int offset)
    • hasWeatherIndices

      public static boolean hasWeatherIndices(MemorySegment mem, int offset)
    • hasFluidFXIndices

      public static boolean hasFluidFXIndices(MemorySegment mem, int offset)
    • hasSurroundingBlockSoundSets

      public static boolean hasSurroundingBlockSoundSets(MemorySegment mem, int offset)
    • hasSpace

      public static boolean hasSpace(MemorySegment mem, int offset)
    • hasShelter

      public static boolean hasShelter(MemorySegment mem, int offset)
    • hasSurfaces

      public static boolean hasSurfaces(MemorySegment mem, int offset)
    • hasSurfacePhysicalMaterials

      public static boolean hasSurfacePhysicalMaterials(MemorySegment mem, int offset)
    • hasExteriorRoofPhysicalMaterials

      public static boolean hasExteriorRoofPhysicalMaterials(MemorySegment mem, int offset)
    • toObject

      public static AmbienceFXConditions toObject(MemorySegment mem)
    • toObject

      public static AmbienceFXConditions toObject(MemorySegment mem, int offset)
    • toObject

      public static AmbienceFXConditions toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one AmbienceFXConditions and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked.
    • serialize

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public AmbienceFXConditions clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object