Package org.cyclops.evilcraft.block
Class BlockSpikedPlate
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BasePressurePlateBlock
org.cyclops.evilcraft.core.config.configurable.BlockPressurePlate
org.cyclops.evilcraft.block.BlockSpikedPlate
- All Implemented Interfaces:
net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeBlock
Logs for the Undead Tree.
-
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.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate -
Field Summary
Fields inherited from class org.cyclops.evilcraft.core.config.configurable.BlockPressurePlate
POWEREDFields inherited from class net.minecraft.world.level.block.BasePressurePlateBlock
AABB, PRESSED_AABB, TOUCH_AABBFields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, 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, UPDATE_SUPPRESS_LIGHTFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER -
Constructor Summary
ConstructorsConstructorDescriptionBlockSpikedPlate(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos) protected booleandamageEntity(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos blockPos) Damage the given entity.protected intgetSignalForState(net.minecraft.world.level.block.state.BlockState blockState) protected intgetSignalStrength(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos) booleanisValidSpawn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.SpawnPlacements.Type type, net.minecraft.world.entity.EntityType<?> entityType) protected voidplayOffSound(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos pos) protected voidplayOnSound(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos color) protected net.minecraft.world.level.block.state.BlockStatesetSignalForState(net.minecraft.world.level.block.state.BlockState blockState, int meta) Methods inherited from class org.cyclops.evilcraft.core.config.configurable.BlockPressurePlate
createBlockStateDefinitionMethods inherited from class net.minecraft.world.level.block.BasePressurePlateBlock
checkPressed, entityInside, getDirectSignal, getPistonPushReaction, getPressedTime, getShape, getSignal, isPossibleToRespawnInThis, isSignalSource, onRemove, tick, updateNeighbours, updateShapeMethods inherited from class net.minecraft.world.level.block.Block
animateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, 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, canBeReplaced, defaultDestroyTime, defaultMaterialColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, mirror, neighborChanged, onPlace, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onCaughtFire, onDestroyedByPlayer, onNeighborChange, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
-
Constructor Details
-
BlockSpikedPlate
public BlockSpikedPlate(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
-
-
Method Details
-
canSurvive
public boolean canSurvive(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader world, net.minecraft.core.BlockPos blockPos) - Overrides:
canSurvivein classnet.minecraft.world.level.block.BasePressurePlateBlock
-
playOnSound
protected void playOnSound(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos color) - Specified by:
playOnSoundin classnet.minecraft.world.level.block.BasePressurePlateBlock
-
playOffSound
protected void playOffSound(net.minecraft.world.level.LevelAccessor worldIn, net.minecraft.core.BlockPos pos) - Specified by:
playOffSoundin classnet.minecraft.world.level.block.BasePressurePlateBlock
-
damageEntity
protected boolean damageEntity(net.minecraft.server.level.ServerLevel world, net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos blockPos) Damage the given entity.- Parameters:
world- The world.entity- The entity.blockPos- The position.- Returns:
- If the given entity was damaged.
-
getSignalStrength
protected int getSignalStrength(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos) - Specified by:
getSignalStrengthin classnet.minecraft.world.level.block.BasePressurePlateBlock
-
getSignalForState
protected int getSignalForState(net.minecraft.world.level.block.state.BlockState blockState) - Specified by:
getSignalForStatein classnet.minecraft.world.level.block.BasePressurePlateBlock
-
setSignalForState
protected net.minecraft.world.level.block.state.BlockState setSignalForState(net.minecraft.world.level.block.state.BlockState blockState, int meta) - Specified by:
setSignalForStatein classnet.minecraft.world.level.block.BasePressurePlateBlock
-
isValidSpawn
public boolean isValidSpawn(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.SpawnPlacements.Type type, @Nullable net.minecraft.world.entity.EntityType<?> entityType)
-