public class BlockSpikedPlate extends BlockPressurePlate
POWEREDPRESSED_AABB, PRESSURE_AABB, UNPRESSED_AABB| Constructor and Description |
|---|
BlockSpikedPlate(net.minecraft.block.Block.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) |
fillStateContainer, neighborChangedcanProvidePower, canSpawnInBlock, getPushReaction, getShape, getStrongPower, getWeakPower, onEntityCollision, onReplaced, tick, tickRate, updateNeighbors, updatePostPlacement, updateStateaddInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getTags, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isVariableOpacity, isViewBlocking, makeCuboidShape, mirror, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic BlockSpikedPlate(net.minecraft.block.Block.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)