public class BlockSpikedPlate extends BlockPressurePlate
net.minecraft.block.Block.RenderSideCacheKeynet.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.PropertiesPOWEREDPRESSED_AABB, PRESSURE_AABB, UNPRESSED_AABBBLOCK_STATE_IDS, LOGGER, RANDOM, stateContainer| Constructor and Description |
|---|
BlockSpikedPlate(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreatureSpawn(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.EntitySpawnPlacementRegistry.PlacementType type,
net.minecraft.entity.EntityType<?> entityType) |
protected int |
computeRedstoneStrength(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos) |
protected boolean |
damageEntity(net.minecraft.world.server.ServerWorld world,
net.minecraft.entity.Entity entity,
net.minecraft.util.math.BlockPos blockPos)
Damage the given entity.
|
protected int |
getRedstoneStrength(net.minecraft.block.BlockState blockState) |
boolean |
isValidPosition(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos blockPos) |
protected void |
playClickOffSound(net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos pos) |
protected void |
playClickOnSound(net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos color) |
protected net.minecraft.block.BlockState |
setRedstoneStrength(net.minecraft.block.BlockState blockState,
int meta) |
fillStateContainercanProvidePower, canSpawnInBlock, getPoweredDuration, getPushReaction, getShape, getStrongPower, getWeakPower, onEntityCollision, onReplaced, tick, updateNeighbors, updatePostPlacement, updateStateaddInformation, animateTick, asItem, canDropFromExplosion, cannotAttach, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getBlockFromItem, getDefaultState, getDrops, getDrops, getExplosionResistance, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getSelf, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getTags, getTranslatedName, getTranslationKey, getValidBlockForPosition, harvestBlock, hasEnoughSolidSide, hasSolidSideOnTop, isIn, isOpaque, isVariableOpacity, makeCuboidShape, matchesBlock, nudgeEntitiesWithNewState, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, replaceBlock, replaceBlockState, setDefaultState, shouldSideBeRendered, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toStringallowsMovement, eventReceived, getAmbientOcclusionLightValue, getCollisionShape, getCollisionShape, getComparatorInputOverride, getContainer, getDrops, getFluidState, getLootTable, getMaterialColor, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRayTraceShape, getRenderShape, getRenderType, hasComparatorInputOverride, isAir, isReplaceable, isReplaceable, isSideInvisible, isTileEntityProvider, isTransparent, mirror, neighborChanged, onBlockActivated, onBlockAdded, onBlockClicked, onProjectileCollision, randomTick, rotate, spawnAdditionalDrops, updateDiagonalNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, 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, shouldDisplayFluidOverlaypublic BlockSpikedPlate(net.minecraft.block.AbstractBlock.Properties properties)
public boolean isValidPosition(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader world,
net.minecraft.util.math.BlockPos blockPos)
isValidPosition in class net.minecraft.block.AbstractPressurePlateBlockprotected void playClickOnSound(net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos color)
playClickOnSound in class net.minecraft.block.AbstractPressurePlateBlockprotected void playClickOffSound(net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos pos)
playClickOffSound in class net.minecraft.block.AbstractPressurePlateBlockprotected boolean damageEntity(net.minecraft.world.server.ServerWorld world,
net.minecraft.entity.Entity entity,
net.minecraft.util.math.BlockPos blockPos)
world - The world.entity - The entity.blockPos - The position.protected int computeRedstoneStrength(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos)
computeRedstoneStrength in class net.minecraft.block.AbstractPressurePlateBlockprotected int getRedstoneStrength(net.minecraft.block.BlockState blockState)
getRedstoneStrength in class net.minecraft.block.AbstractPressurePlateBlockprotected net.minecraft.block.BlockState setRedstoneStrength(net.minecraft.block.BlockState blockState,
int meta)
setRedstoneStrength in class net.minecraft.block.AbstractPressurePlateBlockpublic boolean canCreatureSpawn(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.EntitySpawnPlacementRegistry.PlacementType type,
@Nullable
net.minecraft.entity.EntityType<?> entityType)