Class PixelmonGrassBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.pixelmonmod.pixelmon.blocks.spawning.PixelmonGrassBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.block.BonemealableBlock,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IBlockExtension,net.neoforged.neoforge.common.IShearable,net.neoforged.neoforge.common.SpecialPlantable
public class PixelmonGrassBlock
extends net.minecraft.world.level.block.Block
implements net.minecraft.world.level.block.BonemealableBlock, net.neoforged.neoforge.common.IShearable, net.neoforged.neoforge.common.SpecialPlantable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface net.minecraft.world.level.block.BonemealableBlock
net.minecraft.world.level.block.BonemealableBlock.Type -
Field Summary
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, CODEC, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeReplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid) booleancanBlockStay(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected booleancanPlaceBlockOn(net.minecraft.world.level.block.state.BlockState ground) booleancanPlacePlantAtPosition(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelReader levelReader, net.minecraft.core.BlockPos blockPos, @Nullable net.minecraft.core.Direction direction) protected voidcheckAndDropBlock(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) voidentityInside(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entityIn) net.minecraft.world.phys.shapes.VoxelShapegetShape(net.minecraft.world.level.block.state.BlockState p_60555_, net.minecraft.world.level.BlockGetter p_60556_, net.minecraft.core.BlockPos p_60557_, net.minecraft.world.phys.shapes.CollisionContext p_60558_) @Nullable net.minecraft.world.level.block.state.BlockStategetStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) booleanisBonemealSuccess(net.minecraft.world.level.Level worldIn, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) booleanisShearable(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) booleanisValidBonemealTarget(net.minecraft.world.level.LevelReader p_256559_, net.minecraft.core.BlockPos p_50898_, net.minecraft.world.level.block.state.BlockState p_50899_) voidneighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block blockIn, net.minecraft.core.BlockPos fromPos, boolean isMoving) List<net.minecraft.world.item.ItemStack> onSheared(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) voidperformBonemeal(net.minecraft.server.level.ServerLevel worldIn, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) voidspawnPlantAtPosition(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelAccessor levelAccessor, net.minecraft.core.BlockPos blockPos, @Nullable net.minecraft.core.Direction direction) voidtick(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos blockPos, net.minecraft.util.RandomSource randomSource) Methods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, codec, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, onExplosionHit, onPlace, onProjectileHit, onRemove, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.BonemealableBlock
getParticlePos, getTypeMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHidingMethods inherited from interface net.neoforged.neoforge.common.IShearable
spawnShearedDropMethods inherited from interface net.neoforged.neoforge.common.SpecialPlantable
villagerCanPlantItem
-
Constructor Details
-
PixelmonGrassBlock
public PixelmonGrassBlock()
-
-
Method Details
-
canPlaceBlockOn
protected boolean canPlaceBlockOn(net.minecraft.world.level.block.state.BlockState ground) -
entityInside
public void entityInside(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entityIn) - Overrides:
entityInsidein classnet.minecraft.world.level.block.state.BlockBehaviour
-
onSheared
public List<net.minecraft.world.item.ItemStack> onSheared(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Specified by:
onShearedin interfacenet.neoforged.neoforge.common.IShearable
-
isShearable
public boolean isShearable(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack item, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Specified by:
isShearablein interfacenet.neoforged.neoforge.common.IShearable
-
neighborChanged
public void neighborChanged(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block blockIn, net.minecraft.core.BlockPos fromPos, boolean isMoving) - Overrides:
neighborChangedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
tick
public void tick(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos blockPos, net.minecraft.util.RandomSource randomSource) - Overrides:
tickin classnet.minecraft.world.level.block.state.BlockBehaviour
-
checkAndDropBlock
protected void checkAndDropBlock(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
canBlockStay
public boolean canBlockStay(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
getShape
public net.minecraft.world.phys.shapes.VoxelShape getShape(net.minecraft.world.level.block.state.BlockState p_60555_, net.minecraft.world.level.BlockGetter p_60556_, net.minecraft.core.BlockPos p_60557_, net.minecraft.world.phys.shapes.CollisionContext p_60558_) - Overrides:
getShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getStateForPlacement
@Nullable public @Nullable net.minecraft.world.level.block.state.BlockState getStateForPlacement(net.minecraft.world.item.context.BlockPlaceContext context) - Overrides:
getStateForPlacementin classnet.minecraft.world.level.block.Block
-
canPlacePlantAtPosition
public boolean canPlacePlantAtPosition(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelReader levelReader, net.minecraft.core.BlockPos blockPos, @Nullable @Nullable net.minecraft.core.Direction direction) - Specified by:
canPlacePlantAtPositionin interfacenet.neoforged.neoforge.common.SpecialPlantable
-
spawnPlantAtPosition
public void spawnPlantAtPosition(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelAccessor levelAccessor, net.minecraft.core.BlockPos blockPos, @Nullable @Nullable net.minecraft.core.Direction direction) - Specified by:
spawnPlantAtPositionin interfacenet.neoforged.neoforge.common.SpecialPlantable
-
canBeReplaced
public boolean canBeReplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid) - Overrides:
canBeReplacedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
isValidBonemealTarget
public boolean isValidBonemealTarget(net.minecraft.world.level.LevelReader p_256559_, net.minecraft.core.BlockPos p_50898_, net.minecraft.world.level.block.state.BlockState p_50899_) - Specified by:
isValidBonemealTargetin interfacenet.minecraft.world.level.block.BonemealableBlock
-
isBonemealSuccess
public boolean isBonemealSuccess(net.minecraft.world.level.Level worldIn, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Specified by:
isBonemealSuccessin interfacenet.minecraft.world.level.block.BonemealableBlock
-
performBonemeal
public void performBonemeal(net.minecraft.server.level.ServerLevel worldIn, net.minecraft.util.RandomSource rand, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) - Specified by:
performBonemealin interfacenet.minecraft.world.level.block.BonemealableBlock
-