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.BlockStatePairKey
Nested 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.StatePredicate
Nested 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_DROPS
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeReplaced
(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid) boolean
canBlockStay
(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protected boolean
canPlaceBlockOn
(net.minecraft.world.level.block.state.BlockState ground) boolean
canPlacePlantAtPosition
(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelReader levelReader, net.minecraft.core.BlockPos blockPos, @Nullable net.minecraft.core.Direction direction) protected void
checkAndDropBlock
(net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) 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) 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_) @Nullable net.minecraft.world.level.block.state.BlockState
getStateForPlacement
(net.minecraft.world.item.context.BlockPlaceContext context) 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) boolean
isShearable
(@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) boolean
isValidBonemealTarget
(net.minecraft.world.level.LevelReader p_256559_, net.minecraft.core.BlockPos p_50898_, net.minecraft.world.level.block.state.BlockState p_50899_) 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) 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) 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) void
spawnPlantAtPosition
(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.LevelAccessor levelAccessor, net.minecraft.core.BlockPos blockPos, @Nullable net.minecraft.core.Direction direction) 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) 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, withPropertiesOf
Methods 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, useWithoutItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.block.BonemealableBlock
getParticlePos, getType
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods 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, supportsExternalFaceHiding
Methods inherited from interface net.neoforged.neoforge.common.IShearable
spawnShearedDrop
Methods 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:
entityInside
in 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:
onSheared
in 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:
isShearable
in 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:
neighborChanged
in 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:
tick
in 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:
getShape
in 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:
getStateForPlacement
in 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:
canPlacePlantAtPosition
in 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:
spawnPlantAtPosition
in 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:
canBeReplaced
in 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:
isValidBonemealTarget
in 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:
isBonemealSuccess
in 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:
performBonemeal
in interfacenet.minecraft.world.level.block.BonemealableBlock
-