Contents
Class BrushConfigSectionAccessor
java.lang.Object
com.hypixel.hytale.server.core.universe.world.accessor.SectionReader
com.hypixel.hytale.builtin.buildertools.world.SectionAccessor
com.hypixel.hytale.builtin.buildertools.scriptedbrushes.BrushConfigSectionAccessor
- All Implemented Interfaces:
RegionReader.StorageSource, BlockReader
Created so that when we call getBlock from the masking area of the BrushConfigEditOperation, the mask will
respect the previous operations
-
Nested Class Summary
Nested classes/interfaces inherited from class SectionReader
SectionReader.SectionCursor -
Method Summary
Modifier and TypeMethodDescriptionstatic BrushConfigSectionAccessorforWorld(BrushConfigEditStore editOperation, World world) intgetBlock(int x, int y, int z) intgetBlockIgnoringHistory(int x, int y, int z) Also ignores blocks that may have already been placed by checking the beforeintgetFluidId(int x, int y, int z) Methods inherited from class SectionAccessor
forWorld, holdsStorageMethods inherited from class SectionReader
canHoldY, getBlockComponentHolder, getEnvironment, getFiller, getFluidLevel, getRotationIndex, getSupportValue, getWorldFluidId, hasStorageInMemory, sectionAt, sectionCursor, supportsCubicSectionsMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RegionReader.StorageSource
canHoldY, hasStorageInMemory
-
Method Details
-
forWorld
@Nonnull public static BrushConfigSectionAccessor forWorld(BrushConfigEditStore editOperation, @Nonnull World world) -
getBlock
public int getBlock(int x, int y, int z) - Specified by:
getBlockin interfaceBlockReader- Overrides:
getBlockin classSectionReader- Returns:
- the block id at the coordinates, or
BlockType.EMPTY_IDwhere nothing is loaded
-
getBlockIgnoringHistory
public int getBlockIgnoringHistory(int x, int y, int z) Also ignores blocks that may have already been placed by checking the before -
getFluidId
public int getFluidId(int x, int y, int z) - Specified by:
getFluidIdin interfaceBlockReader- Overrides:
getFluidIdin classSectionReader- Returns:
- the fluid id at the coordinates, or
Fluid.EMPTY_IDwhere nothing is loaded
-