public enum DefaultBlockAccessor extends java.lang.Enum<DefaultBlockAccessor> implements ISoftBlockAccessor
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.block.state.IBlockState |
getState(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean force) |
net.minecraft.tileentity.TileEntity |
getTile(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean force) |
static DefaultBlockAccessor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultBlockAccessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultBlockAccessor DIRECT
public static final DefaultBlockAccessor VIA_CHUNK
public static DefaultBlockAccessor[] values()
for (DefaultBlockAccessor c : DefaultBlockAccessor.values()) System.out.println(c);
public static DefaultBlockAccessor valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Nullable
public net.minecraft.tileentity.TileEntity getTile(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean force)
getTile in interface ISoftBlockAccessorforce - If true then the chunk containing the tile will be loaded from disk, false if this should only get
the tile entity if it is currently loadedpublic net.minecraft.block.state.IBlockState getState(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean force)
getState in interface ISoftBlockAccessorforce - If true then the chunk containing the tile will be loaded from disk, false if this should only get
the tile entity if it is currently loaded