public class RedstoneTorchBlock extends TorchBlock
Modifier and Type | Class and Description |
---|---|
static class |
RedstoneTorchBlock.Toggle |
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
LIT |
private static java.util.Map<IBlockReader,java.util.List<RedstoneTorchBlock.Toggle>> |
RECENT_TOGGLES |
AABB, flameParticle
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
RedstoneTorchBlock(AbstractBlock.Properties p_i48342_1_) |
Modifier and Type | Method and Description |
---|---|
void |
animateTick(BlockState p_180655_1_,
World p_180655_2_,
BlockPos p_180655_3_,
java.util.Random p_180655_4_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
int |
getDirectSignal(BlockState p_176211_1_,
IBlockReader p_176211_2_,
BlockPos p_176211_3_,
Direction p_176211_4_) |
int |
getSignal(BlockState p_180656_1_,
IBlockReader p_180656_2_,
BlockPos p_180656_3_,
Direction p_180656_4_) |
protected boolean |
hasNeighborSignal(World p_176597_1_,
BlockPos p_176597_2_,
BlockState p_176597_3_) |
boolean |
isSignalSource(BlockState p_149744_1_) |
private static boolean |
isToggledTooFrequently(World p_176598_0_,
BlockPos p_176598_1_,
boolean p_176598_2_) |
void |
neighborChanged(BlockState p_220069_1_,
World p_220069_2_,
BlockPos p_220069_3_,
Block p_220069_4_,
BlockPos p_220069_5_,
boolean p_220069_6_) |
void |
onPlace(BlockState p_220082_1_,
World p_220082_2_,
BlockPos p_220082_3_,
BlockState p_220082_4_,
boolean p_220082_5_) |
void |
onRemove(BlockState p_196243_1_,
World p_196243_2_,
BlockPos p_196243_3_,
BlockState p_196243_4_,
boolean p_196243_5_) |
void |
tick(BlockState p_225534_1_,
ServerWorld p_225534_2_,
BlockPos p_225534_3_,
java.util.Random p_225534_4_) |
canSurvive, getShape, updateShape
appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, mirror, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, 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, shouldDisplayFluidOverlay
public static final BooleanProperty LIT
private static final java.util.Map<IBlockReader,java.util.List<RedstoneTorchBlock.Toggle>> RECENT_TOGGLES
public RedstoneTorchBlock(AbstractBlock.Properties p_i48342_1_)
public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_)
onPlace
in class AbstractBlock
public void onRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_)
onRemove
in class AbstractBlock
public int getSignal(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_)
getSignal
in class AbstractBlock
protected boolean hasNeighborSignal(World p_176597_1_, BlockPos p_176597_2_, BlockState p_176597_3_)
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, java.util.Random p_225534_4_)
tick
in class AbstractBlock
public void neighborChanged(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_)
neighborChanged
in class AbstractBlock
public int getDirectSignal(BlockState p_176211_1_, IBlockReader p_176211_2_, BlockPos p_176211_3_, Direction p_176211_4_)
getDirectSignal
in class AbstractBlock
public boolean isSignalSource(BlockState p_149744_1_)
isSignalSource
in class AbstractBlock
public void animateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, java.util.Random p_180655_4_)
animateTick
in class TorchBlock
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block