Modifier and Type | Method and Description |
---|---|
private static boolean |
ChorusFlowerBlock.areAllNeighborsEmpty(IWorldReader worldIn,
BlockPos pos,
Direction excludingSide) |
boolean |
CarvedPumpkinBlock.canDispenserPlace(IWorldReader p_196354_1_,
BlockPos p_196354_2_) |
static java.util.Optional<Vec3d> |
BedBlock.func_220172_a(EntityType<?> p_220172_0_,
IWorldReader p_220172_1_,
BlockPos p_220172_2_,
int p_220172_3_) |
protected static java.util.Optional<Vec3d> |
BedBlock.func_220175_a(EntityType<?> p_220175_0_,
IWorldReader p_220175_1_,
BlockPos p_220175_2_) |
static boolean |
HorizontalFaceBlock.func_220185_b(IWorldReader p_220185_0_,
BlockPos p_220185_1_,
Direction p_220185_2_) |
private static boolean |
SpreadableSnowyDirtBlock.func_220256_c(BlockState p_220256_0_,
IWorldReader p_220256_1_,
BlockPos p_220256_2_) |
private static boolean |
SpreadableSnowyDirtBlock.func_220257_b(BlockState p_220257_0_,
IWorldReader p_220257_1_,
BlockPos p_220257_2_) |
int |
SpawnerBlock.getExpDrop(BlockState state,
IWorldReader world,
BlockPos pos,
int fortune,
int silktouch) |
int |
RedstoneOreBlock.getExpDrop(BlockState state,
IWorldReader world,
BlockPos pos,
int fortune,
int silktouch) |
int |
OreBlock.getExpDrop(BlockState state,
IWorldReader reader,
BlockPos pos,
int fortune,
int silktouch) |
private int |
FireBlock.getNeighborEncouragement(IWorldReader worldIn,
BlockPos pos) |
protected int |
RedstoneDiodeBlock.getPowerOnSide(IWorldReader worldIn,
BlockPos pos,
Direction side) |
protected int |
RedstoneDiodeBlock.getPowerOnSides(IWorldReader worldIn,
BlockPos pos,
BlockState state) |
float |
Block.getSlipperiness(BlockState state,
IWorldReader world,
BlockPos pos,
Entity entity) |
boolean |
ComparatorBlock.getWeakChanges(BlockState state,
IWorldReader world,
BlockPos pos) |
static boolean |
Block.hasEnoughSolidSide(IWorldReader worldIn,
BlockPos pos,
Direction directionIn) |
private static boolean |
FarmlandBlock.hasWater(IWorldReader worldIn,
BlockPos pos) |
boolean |
VineBlock.isLadder(BlockState state,
IWorldReader world,
BlockPos pos,
LivingEntity entity) |
boolean |
ScaffoldingBlock.isLadder(BlockState state,
IWorldReader world,
BlockPos pos,
LivingEntity entity) |
boolean |
LadderBlock.isLadder(BlockState state,
IWorldReader world,
BlockPos pos,
LivingEntity entity) |
boolean |
TrapDoorBlock.isLadder(BlockState state,
IWorldReader world,
BlockPos pos,
LivingEntity entity) |
boolean |
RepeaterBlock.isLocked(IWorldReader worldIn,
BlockPos pos,
BlockState state) |
boolean |
RedstoneDiodeBlock.isLocked(IWorldReader worldIn,
BlockPos pos,
BlockState state) |
boolean |
FarmlandBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
BubbleColumnBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
TripWireHookBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
DoorBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
VineBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
GrassPathBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
CactusBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
StandingSignBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
HorizontalFaceBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
AbstractRailBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
WallBannerBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
RedstoneWallTorchBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
ScaffoldingBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
BambooSaplingBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
ChorusFlowerBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
WallSignBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
SeaPickleBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
DeadCoralWallFanBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
RedstoneDiodeBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
MushroomBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
ChorusPlantBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
CarpetBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
AbstractPressurePlateBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
PistonHeadBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
KelpBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
WallTorchBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
BellBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
BambooBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
KelpTopBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
GrindstoneBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
AbstractCoralPlantBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
LadderBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
RedstoneWireBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
FireBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
TorchBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
BushBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
SnowBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
CakeBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
CropsBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
SugarCaneBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
Block.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos)
Deprecated.
|
boolean |
LanternBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
TallSeaGrassBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
CocoaBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
BannerBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
DoublePlantBlock.isValidPosition(BlockState state,
IWorldReader worldIn,
BlockPos pos) |
boolean |
BlockState.isValidPosition(IWorldReader worldIn,
BlockPos pos) |
void |
ComparatorBlock.onNeighborChange(BlockState state,
IWorldReader world,
BlockPos pos,
BlockPos neighbor) |
int |
FallingBlock.tickRate(IWorldReader worldIn) |
int |
BubbleColumnBlock.tickRate(IWorldReader worldIn) |
int |
CommandBlockBlock.tickRate(IWorldReader worldIn) |
int |
RedstoneTorchBlock.tickRate(IWorldReader worldIn) |
int |
DispenserBlock.tickRate(IWorldReader worldIn) |
int |
WeightedPressurePlateBlock.tickRate(IWorldReader worldIn) |
int |
AbstractPressurePlateBlock.tickRate(IWorldReader worldIn) |
int |
AbstractButtonBlock.tickRate(IWorldReader worldIn) |
int |
FlowingFluidBlock.tickRate(IWorldReader worldIn) |
int |
StairsBlock.tickRate(IWorldReader worldIn) |
int |
FireBlock.tickRate(IWorldReader worldIn) |
int |
DragonEggBlock.tickRate(IWorldReader worldIn) |
int |
Block.tickRate(IWorldReader worldIn) |
int |
SoulSandBlock.tickRate(IWorldReader worldIn) |
int |
DetectorRailBlock.tickRate(IWorldReader worldIn) |
int |
MagmaBlock.tickRate(IWorldReader worldIn) |
Modifier and Type | Field and Description |
---|---|
private IWorldReader |
BlockPattern.CacheLoader.world |
Modifier and Type | Method and Description |
---|---|
static com.google.common.cache.LoadingCache<BlockPos,CachedBlockInfo> |
BlockPattern.createLoadingCache(IWorldReader worldIn,
boolean forceLoadIn) |
BlockPattern.PatternHelper |
BlockPattern.match(IWorldReader worldIn,
BlockPos pos) |
Constructor and Description |
---|
CacheLoader(IWorldReader worldIn,
boolean forceLoadIn) |
Modifier and Type | Method and Description |
---|---|
private static void |
EntityRendererManager.renderBlockShadow(MatrixStack.Entry matrixEntryIn,
IVertexBuilder bufferIn,
IWorldReader worldIn,
BlockPos blockPosIn,
double xIn,
double yIn,
double zIn,
float sizeIn,
float weightIn) |
private static void |
EntityRendererManager.renderShadow(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
Entity entityIn,
float weightIn,
float partialTicks,
IWorldReader worldIn,
float sizeIn) |
Modifier and Type | Class and Description |
---|---|
class |
ClientWorld |
Modifier and Type | Field and Description |
---|---|
private TriPredicate<IWorldReader,BlockPos,EntityType<?>> |
EntitySpawnPlacementRegistry.PlacementType.predicate |
Modifier and Type | Method and Description |
---|---|
boolean |
EntitySpawnPlacementRegistry.PlacementType.canSpawnAt(IWorldReader world,
BlockPos pos,
EntityType<?> type) |
protected static double |
EntityType.func_208051_a(IWorldReader worldReader,
BlockPos pos,
boolean p_208051_2_,
AxisAlignedBB p_208051_3_) |
static Vec3d |
Entity.getAllowedMovement(Vec3d vec,
AxisAlignedBB collisionBox,
IWorldReader worldIn,
ISelectionContext selectionContext,
ReuseableStream<VoxelShape> potentialHits) |
float |
CreatureEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
boolean |
MobEntity.isNotColliding(IWorldReader worldIn) |
Modifier and Type | Method and Description |
---|---|
static EntitySpawnPlacementRegistry.PlacementType |
EntitySpawnPlacementRegistry.PlacementType.create(java.lang.String name,
TriPredicate<IWorldReader,BlockPos,EntityType<? extends MobEntity>> predicate) |
Constructor and Description |
---|
PlacementType(TriPredicate<IWorldReader,BlockPos,EntityType<?>> predicate) |
Modifier and Type | Field and Description |
---|---|
private IWorldReader |
FollowOwnerGoal.world |
Modifier and Type | Method and Description |
---|---|
private boolean |
BreatheAirGoal.canBreatheAt(IWorldReader worldIn,
BlockPos pos) |
protected boolean |
BreakBlockGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
protected boolean |
CatSitOnBlockGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
protected boolean |
CatLieOnBedGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
protected abstract boolean |
MoveToBlockGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
private boolean |
EndermanEntity.PlaceBlockGoal.func_220836_a(IWorldReader p_220836_1_,
BlockPos p_220836_2_,
BlockState p_220836_3_,
BlockState p_220836_4_,
BlockState p_220836_5_,
BlockPos p_220836_6_) |
float |
PillagerEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
float |
GiantEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
float |
SilverfishEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
float |
GuardianEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
float |
MonsterEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
boolean |
MagmaCubeEntity.isNotColliding(IWorldReader worldIn) |
boolean |
ZombiePigmanEntity.isNotColliding(IWorldReader worldIn) |
boolean |
DrownedEntity.isNotColliding(IWorldReader worldIn) |
boolean |
RavagerEntity.isNotColliding(IWorldReader worldIn) |
boolean |
GuardianEntity.isNotColliding(IWorldReader worldIn) |
protected boolean |
DrownedEntity.GoToBeachGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
float |
MooshroomEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
float |
TurtleEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
float |
BeeEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
float |
AnimalEntity.getBlockPathWeight(BlockPos pos,
IWorldReader worldIn) |
boolean |
IronGolemEntity.isNotColliding(IWorldReader worldIn) |
boolean |
OcelotEntity.isNotColliding(IWorldReader worldIn) |
boolean |
WaterMobEntity.isNotColliding(IWorldReader worldIn) |
boolean |
SheepEntity.isShearable(ItemStack item,
IWorldReader world,
BlockPos pos) |
boolean |
MooshroomEntity.isShearable(ItemStack item,
IWorldReader world,
BlockPos pos) |
boolean |
SnowGolemEntity.isShearable(ItemStack item,
IWorldReader world,
BlockPos pos) |
protected boolean |
FoxEntity.EatBerriesGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
protected boolean |
RabbitEntity.RaidFarmGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
protected boolean |
TurtleEntity.GoToWaterGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
protected boolean |
TurtleEntity.LayEggGoal.shouldMoveTo(IWorldReader worldIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<Vec3d> |
PlayerEntity.checkBedValidRespawnPosition(IWorldReader p_213822_0_,
BlockPos p_213822_1_,
boolean p_213822_2_) |
Modifier and Type | Method and Description |
---|---|
protected IFluidState |
FlowingFluid.calculateCorrectFlowingState(IWorldReader worldIn,
BlockPos pos,
BlockState blockStateIn) |
protected int |
FlowingFluid.func_205571_a(IWorldReader p_205571_1_,
BlockPos p_205571_2_,
int p_205571_3_,
Direction p_205571_4_,
BlockState p_205571_5_,
BlockPos p_205571_6_,
it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState,IFluidState>> p_205571_7_,
it.unimi.dsi.fastutil.shorts.Short2BooleanMap p_205571_8_) |
protected java.util.Map<Direction,IFluidState> |
FlowingFluid.func_205572_b(IWorldReader p_205572_1_,
BlockPos p_205572_2_,
BlockState p_205572_3_) |
private boolean |
LavaFluid.getCanBlockBurn(IWorldReader worldIn,
BlockPos pos) |
protected abstract int |
FlowingFluid.getLevelDecreasePerBlock(IWorldReader worldIn) |
int |
WaterFluid.getLevelDecreasePerBlock(IWorldReader worldIn) |
int |
LavaFluid.getLevelDecreasePerBlock(IWorldReader worldIn) |
private int |
FlowingFluid.getNumHorizontallyAdjacentSources(IWorldReader worldIn,
BlockPos pos) |
protected abstract int |
FlowingFluid.getSlopeFindDistance(IWorldReader worldIn) |
int |
WaterFluid.getSlopeFindDistance(IWorldReader worldIn) |
int |
LavaFluid.getSlopeFindDistance(IWorldReader worldIn) |
abstract int |
Fluid.getTickRate(IWorldReader p_205569_1_) |
int |
EmptyFluid.getTickRate(IWorldReader p_205569_1_) |
int |
WaterFluid.getTickRate(IWorldReader p_205569_1_) |
int |
LavaFluid.getTickRate(IWorldReader p_205569_1_) |
private boolean |
LavaFluid.isSurroundingBlockFlammable(IWorldReader worldIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
private boolean |
ServerPlayNetHandler.isPlayerNotInBlock(IWorldReader worldIn) |
Modifier and Type | Field and Description |
---|---|
private IWorldReader |
CachedBlockInfo.world |
Modifier and Type | Method and Description |
---|---|
IWorldReader |
CachedBlockInfo.getWorld() |
Constructor and Description |
---|
CachedBlockInfo(IWorldReader worldIn,
BlockPos posIn,
boolean forceLoadIn) |
Modifier and Type | Method and Description |
---|---|
private static double |
VoxelShapes.getAllowedOffset(AxisAlignedBB collisionBox,
IWorldReader worldReader,
double desiredOffset,
ISelectionContext selectionContext,
AxisRotation rotationAxis,
java.util.stream.Stream<VoxelShape> possibleHits) |
static double |
VoxelShapes.getAllowedOffset(Direction.Axis movementAxis,
AxisAlignedBB collisionBox,
IWorldReader worldReader,
double desiredOffset,
ISelectionContext selectionContext,
java.util.stream.Stream<VoxelShape> possibleHits) |
Modifier and Type | Method and Description |
---|---|
void |
PointOfInterestManager.ensureLoadedAndValid(IWorldReader p_226347_1_,
BlockPos p_226347_2_,
int p_226347_3_) |
Modifier and Type | Interface and Description |
---|---|
interface |
IWorld |
Modifier and Type | Class and Description |
---|---|
class |
World |
Modifier and Type | Method and Description |
---|---|
boolean |
Biome.doesSnowGenerate(IWorldReader worldIn,
BlockPos pos) |
boolean |
Biome.doesWaterFreeze(IWorldReader worldIn,
BlockPos pos) |
boolean |
Biome.doesWaterFreeze(IWorldReader worldIn,
BlockPos water,
boolean mustBeAtEdge) |
Modifier and Type | Class and Description |
---|---|
class |
WorldGenRegion |
Modifier and Type | Method and Description |
---|---|
protected boolean |
StructurePiece.getSkyBrightness(IWorldReader worldIn,
int x,
int y,
int z,
MutableBoundingBox boundingboxIn) |
Modifier and Type | Method and Description |
---|---|
Template.BlockInfo |
BlockIgnoreStructureProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn) |
Template.BlockInfo |
NopProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn) |
Template.BlockInfo |
JigsawReplacementStructureProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn) |
Template.BlockInfo |
RuleStructureProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn) |
Template.BlockInfo |
IntegrityProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn) |
Template.BlockInfo |
StructureProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn)
Deprecated.
|
Template.BlockInfo |
GravityStructureProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn) |
Template.BlockInfo |
StructureProcessor.process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn,
Template template)
FORGE: Add template parameter
|
Template.EntityInfo |
StructureProcessor.processEntity(IWorldReader world,
BlockPos seedPos,
Template.EntityInfo rawEntityInfo,
Template.EntityInfo entityInfo,
PlacementSettings placementSettings,
Template template)
FORGE: Add entity processing.
|
Modifier and Type | Class and Description |
---|---|
class |
ServerMultiWorld |
class |
ServerWorld |
Modifier and Type | Method and Description |
---|---|
static boolean |
WorldEntitySpawner.canCreatureTypeSpawnAtLocation(EntitySpawnPlacementRegistry.PlacementType placeType,
IWorldReader worldIn,
BlockPos pos,
EntityType<?> entityTypeIn) |
static boolean |
WorldEntitySpawner.canSpawnAtBody(EntitySpawnPlacementRegistry.PlacementType placeType,
IWorldReader worldIn,
BlockPos pos,
EntityType<?> entityTypeIn) |
private static BlockPos |
WorldEntitySpawner.getTopSolidOrLiquidBlock(IWorldReader worldIn,
EntityType<?> p_208498_1_,
int x,
int z) |
Modifier and Type | Method and Description |
---|---|
static boolean |
ForgeHooks.canToolHarvestBlock(IWorldReader world,
BlockPos pos,
ItemStack stack) |
private static ChunkTicketManager<Vec3d> |
FarmlandWaterManager.getTicketManager(ChunkPos pos,
IWorldReader world) |
static boolean |
FarmlandWaterManager.hasBlockWaterTicket(IWorldReader world,
BlockPos pos)
Tests if a block is in a region that is watered by blocks.
|
default boolean |
IShearable.isShearable(ItemStack item,
IWorldReader world,
BlockPos pos)
Deprecated.
Checks if the object is currently shearable
Example: Sheep return false when they have no wool
|
static boolean |
ForgeHooks.isToolEffective(IWorldReader world,
BlockPos pos,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
default void |
IForgeBlock.beginLeaveDecay(BlockState state,
IWorldReader world,
BlockPos pos)
Called when a leaf should start its decay process.
|
default void |
IForgeBlockState.beginLeaveDecay(IWorldReader world,
BlockPos pos)
Called when a leaf should start its decay process.
|
default boolean |
IForgeBlock.canBeReplacedByLeaves(BlockState state,
IWorldReader world,
BlockPos pos)
Used during tree growth to determine if newly generated leaves can replace this block.
|
default boolean |
IForgeBlockState.canBeReplacedByLeaves(IWorldReader world,
BlockPos pos)
Used during tree growth to determine if newly generated leaves can replace this block.
|
default boolean |
IForgeBlock.canBeReplacedByLogs(BlockState state,
IWorldReader world,
BlockPos pos)
Used during tree growth to determine if newly generated logs can replace this block.
|
default boolean |
IForgeBlockState.canBeReplacedByLogs(IWorldReader world,
BlockPos pos)
Used during tree growth to determine if newly generated logs can replace this block.
|
default boolean |
IForgeBlockState.canCreatureSpawn(IWorldReader world,
BlockPos pos,
EntitySpawnPlacementRegistry.PlacementType type,
EntityType<?> entityType)
Determines if a specified mob type can spawn on this block, returning false will
prevent any mob from spawning on the block.
|
default boolean |
IForgeItem.doesSneakBypassUse(ItemStack stack,
IWorldReader world,
BlockPos pos,
PlayerEntity player)
Should this item, when held, allow sneak-clicks to pass through to the
underlying block?
|
default boolean |
IForgeItemStack.doesSneakBypassUse(IWorldReader world,
BlockPos pos,
PlayerEntity player)
Should this item, when held, allow sneak-clicks to pass through to the underlying block?
|
default float[] |
IForgeBlock.getBeaconColorMultiplier(BlockState state,
IWorldReader world,
BlockPos pos,
BlockPos beaconPos) |
default float[] |
IForgeBlockState.getBeaconColorMultiplier(IWorldReader world,
BlockPos pos,
BlockPos beacon) |
default Direction |
IForgeBlock.getBedDirection(BlockState state,
IWorldReader world,
BlockPos pos)
Returns the direction of the block.
|
default Direction |
IForgeBlockState.getBedDirection(IWorldReader world,
BlockPos pos)
Returns the direction of the block.
|
default java.util.Optional<Vec3d> |
IForgeBlock.getBedSpawnPosition(EntityType<?> entityType,
BlockState state,
IWorldReader world,
BlockPos pos,
LivingEntity sleeper)
Returns the position that the sleeper is moved to upon
waking up, or respawning at the bed.
|
default java.util.Optional<Vec3d> |
IForgeBlockState.getBedSpawnPosition(EntityType<?> type,
IWorldReader world,
BlockPos pos,
LivingEntity sleeper)
Returns the position that the sleeper is moved to upon
waking up, or respawning at the bed.
|
default float |
IForgeBlock.getEnchantPowerBonus(BlockState state,
IWorldReader world,
BlockPos pos)
Determines the amount of enchanting power this block can provide to an enchanting table.
|
default float |
IForgeBlockState.getEnchantPowerBonus(IWorldReader world,
BlockPos pos)
Determines the amount of enchanting power this block can provide to an enchanting table.
|
default int |
IForgeBlock.getExpDrop(BlockState state,
IWorldReader world,
BlockPos pos,
int fortune,
int silktouch)
Gathers how much experience this block drops when broken.
|
default int |
IForgeBlockState.getExpDrop(IWorldReader world,
BlockPos pos,
int fortune,
int silktouch)
Gathers how much experience this block drops when broken.
|
default float |
IForgeBlock.getExplosionResistance(BlockState state,
IWorldReader world,
BlockPos pos,
Entity exploder,
Explosion explosion)
Location sensitive version of getExplosionResistance
|
default float |
IForgeFluid.getExplosionResistance(IFluidState state,
IWorldReader world,
BlockPos pos,
Entity exploder,
Explosion explosion)
Location sensitive version of getExplosionResistance
|
default float |
IForgeFluidState.getExplosionResistance(IWorldReader world,
BlockPos pos,
Entity exploder,
Explosion explosion)
Location sensitive version of getExplosionResistance
|
default float |
IForgeBlockState.getExplosionResistance(IWorldReader world,
BlockPos pos,
Entity exploder,
Explosion explosion)
Location sensitive version of getExplosionResistance
|
default Vec3d |
IForgeBlock.getFogColor(BlockState state,
IWorldReader world,
BlockPos pos,
Entity entity,
Vec3d originalColor,
float partialTicks)
Use this to change the fog color used when the entity is "inside" a material.
|
default Vec3d |
IForgeBlockState.getFogColor(IWorldReader world,
BlockPos pos,
Entity entity,
Vec3d originalColor,
float partialTicks)
Use this to change the fog color used when the entity is "inside" a material.
|
float |
IForgeBlock.getSlipperiness(BlockState state,
IWorldReader world,
BlockPos pos,
Entity entity)
Gets the slipperiness at the given location at the given state.
|
default float |
IForgeBlockState.getSlipperiness(IWorldReader world,
BlockPos pos,
Entity entity)
Gets the slipperiness at the given location at the given state.
|
default SoundType |
IForgeBlock.getSoundType(BlockState state,
IWorldReader world,
BlockPos pos,
Entity entity)
Sensitive version of getSoundType
|
default SoundType |
IForgeBlockState.getSoundType(IWorldReader world,
BlockPos pos,
Entity entity)
Sensitive version of getSoundType
|
default boolean |
IForgeBlock.getWeakChanges(BlockState state,
IWorldReader world,
BlockPos pos)
If this block should be notified of weak changes.
|
default boolean |
IForgeBlockState.getWeakChanges(IWorldReader world,
BlockPos pos)
If this block should be notified of weak changes.
|
default java.lang.Boolean |
IForgeFluid.isAABBInsideLiquid(IFluidState state,
IWorldReader world,
BlockPos pos,
AxisAlignedBB boundingBox)
Called when entities are moving to check if they are inside a liquid
|
default java.lang.Boolean |
IForgeFluid.isAABBInsideMaterial(IFluidState state,
IWorldReader world,
BlockPos pos,
AxisAlignedBB boundingBox,
Material materialIn)
Called when boats or fishing hooks are inside the block to check if they are inside
the material requested.
|
default boolean |
IForgeBlock.isBeaconBase(BlockState state,
IWorldReader world,
BlockPos pos,
BlockPos beacon)
Determines if this block can be used as the base of a beacon.
|
default boolean |
IForgeBlockState.isBeaconBase(IWorldReader world,
BlockPos pos,
BlockPos beacon)
Determines if this block can be used as the base of a beacon.
|
default boolean |
IForgeBlock.isBedFoot(BlockState state,
IWorldReader world,
BlockPos pos)
Determines if the current block is the foot half of the bed.
|
default boolean |
IForgeBlockState.isBedFoot(IWorldReader world,
BlockPos pos)
Determines if the current block is the foot half of the bed.
|
default boolean |
IForgeBlock.isConduitFrame(BlockState state,
IWorldReader world,
BlockPos pos,
BlockPos conduit)
Determines if this block can be used as the frame of a conduit.
|
default boolean |
IForgeBlockState.isConduitFrame(IWorldReader world,
BlockPos pos,
BlockPos conduit)
Determines if this block can be used as the frame of a conduit.
|
default boolean |
IForgeFluid.isEntityInside(IFluidState state,
IWorldReader world,
BlockPos pos,
Entity entity,
double yToTest,
Tag<Fluid> tag,
boolean testingHead)
Called when the entity is inside this block, may be used to determined if the entity can breathing,
display material overlays, or if the entity can swim inside a block.
|
default boolean |
IForgeFluidState.isEntityInside(IWorldReader world,
BlockPos pos,
Entity entity,
double yToTest,
Tag<Fluid> tag,
boolean testingHead)
Called when the entity is inside this block, may be used to determined if the entity can breathing,
display material overlays, or if the entity can swim inside a block.
|
default boolean |
IForgeBlock.isFoliage(BlockState state,
IWorldReader world,
BlockPos pos)
Used by getTopSoilidOrLiquidBlock while placing biome decorations, villages, etc
Also used to determine if the player can spawn in this block.
|
default boolean |
IForgeBlockState.isFoliage(IWorldReader world,
BlockPos pos)
Used by getTopSoilidOrLiquidBlock while placing biome decorations, villages, etc
Also used to determine if the player can spawn in this block.
|
default boolean |
IForgeBlock.isLadder(BlockState state,
IWorldReader world,
BlockPos pos,
LivingEntity entity)
Checks if a player or entity can use this block to 'climb' like a ladder.
|
default boolean |
IForgeBlockState.isLadder(IWorldReader world,
BlockPos pos,
LivingEntity entity)
Checks if a player or entity can use this block to 'climb' like a ladder.
|
default boolean |
IForgeBlock.isPortalFrame(BlockState state,
IWorldReader world,
BlockPos pos)
Determines if this block can be used as part of a frame of a nether portal.
|
default boolean |
IForgeBlockState.isPortalFrame(IWorldReader world,
BlockPos pos)
Determines if this block can be used as part of a frame of a nether portal.
|
default boolean |
IForgeBlock.isReplaceableOreGen(BlockState state,
IWorldReader world,
BlockPos pos,
java.util.function.Predicate<BlockState> target)
Determines if the current block is replaceable by Ore veins during world generation.
|
default boolean |
IForgeBlockState.isReplaceableOreGen(IWorldReader world,
BlockPos pos,
java.util.function.Predicate<BlockState> target)
Determines if the current block is replaceable by Ore veins during world generation.
|
default void |
IForgeBlock.onNeighborChange(BlockState state,
IWorldReader world,
BlockPos pos,
BlockPos neighbor)
Called when a tile entity on a side of this block changes is created or is destroyed.
|
default void |
IForgeBlockState.onNeighborChange(IWorldReader world,
BlockPos pos,
BlockPos neighbor)
Called when a tile entity on a side of this block changes is created or is destroyed.
|
default void |
IForgeBlock.setBedOccupied(BlockState state,
IWorldReader world,
BlockPos pos,
LivingEntity sleeper,
boolean occupied)
Called when a user either starts or stops sleeping in the bed.
|
default void |
IForgeBlockState.setBedOccupied(IWorldReader world,
BlockPos pos,
LivingEntity sleeper,
boolean occupied)
Called when a user either starts or stops sleeping in the bed.
|
default boolean |
IForgeBlock.shouldCheckWeakPower(BlockState state,
IWorldReader world,
BlockPos pos,
Direction side)
Called to determine whether to allow the a block to handle its own indirect power rather than using the default rules.
|
default boolean |
IForgeBlockState.shouldCheckWeakPower(IWorldReader world,
BlockPos pos,
Direction side)
Called to determine whether to allow the a block to handle its own indirect power rather than using the default rules.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CustomPlantTypeTest.CustomPlantBlock.isValidPosition(BlockState state,
IWorldReader world,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
protected int |
ForgeFlowingFluid.getLevelDecreasePerBlock(IWorldReader worldIn) |
protected int |
ForgeFlowingFluid.getSlopeFindDistance(IWorldReader worldIn) |
int |
ForgeFlowingFluid.getTickRate(IWorldReader world) |