public class PixelmonGrassBlock
extends net.minecraft.block.Block
implements net.minecraft.block.IGrowable, net.minecraftforge.common.IForgeShearable, net.minecraftforge.common.IPlantable
net.minecraft.block.Block.RenderSideCacheKey
net.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Properties
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Constructor and Description |
---|
PixelmonGrassBlock() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeReplaced(net.minecraft.block.BlockState state,
net.minecraft.fluid.Fluid fluid) |
boolean |
canBlockStay(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
protected boolean |
canPlaceBlockOn(net.minecraft.block.Block ground) |
protected void |
checkAndDropBlock(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
void |
entityInside(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.Entity entityIn) |
net.minecraft.block.BlockState |
getPlant(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
net.minecraftforge.common.PlantType |
getPlantType(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
boolean |
isBonemealSuccess(net.minecraft.world.World worldIn,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
boolean |
isShearable(net.minecraft.item.ItemStack item,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
isValidBonemealTarget(net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
boolean isClient) |
void |
neighborChanged(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block blockIn,
net.minecraft.util.math.BlockPos fromPos,
boolean isMoving) |
java.util.List<net.minecraft.item.ItemStack> |
onSheared(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack item,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int fortune) |
void |
performBonemeal(net.minecraft.world.server.ServerWorld worldIn,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state) |
void |
tick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand) |
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canSurvive, defaultMaterialColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, onPlace, onProjectileHit, onRemove, randomTick, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public net.minecraftforge.common.PlantType getPlantType(net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
getPlantType
in interface net.minecraftforge.common.IPlantable
protected boolean canPlaceBlockOn(net.minecraft.block.Block ground)
public void entityInside(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.Entity entityIn)
entityInside
in class net.minecraft.block.AbstractBlock
public boolean canBeReplaced(net.minecraft.block.BlockState state, net.minecraft.fluid.Fluid fluid)
canBeReplaced
in class net.minecraft.block.AbstractBlock
public boolean isValidBonemealTarget(net.minecraft.world.IBlockReader worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, boolean isClient)
isValidBonemealTarget
in interface net.minecraft.block.IGrowable
public boolean isBonemealSuccess(net.minecraft.world.World worldIn, java.util.Random rand, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
isBonemealSuccess
in interface net.minecraft.block.IGrowable
public void performBonemeal(net.minecraft.world.server.ServerWorld worldIn, java.util.Random rand, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
performBonemeal
in interface net.minecraft.block.IGrowable
@Nonnull public java.util.List<net.minecraft.item.ItemStack> onSheared(@Nullable net.minecraft.entity.player.PlayerEntity player, @Nonnull net.minecraft.item.ItemStack item, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, int fortune)
onSheared
in interface net.minecraftforge.common.IForgeShearable
public boolean isShearable(@Nonnull net.minecraft.item.ItemStack item, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
isShearable
in interface net.minecraftforge.common.IForgeShearable
public void neighborChanged(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.block.Block blockIn, net.minecraft.util.math.BlockPos fromPos, boolean isMoving)
neighborChanged
in class net.minecraft.block.AbstractBlock
public void tick(net.minecraft.block.BlockState state, net.minecraft.world.server.ServerWorld worldIn, net.minecraft.util.math.BlockPos pos, java.util.Random rand)
tick
in class net.minecraft.block.AbstractBlock
protected void checkAndDropBlock(net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
public boolean canBlockStay(net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state)
public net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.shapes.ISelectionContext context)
getShape
in class net.minecraft.block.AbstractBlock
public net.minecraft.block.BlockState getPlant(net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
getPlant
in interface net.minecraftforge.common.IPlantable