Package net.minecraft.block
Class AbstractRedstoneGateBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.AbstractRedstoneGateBlock
- Direct Known Subclasses:
ComparatorBlock,RepeaterBlock
- Mappings:
Namespace Name official aiuintermediary net/minecraft/class_1449named net/minecraft/block/AbstractRedstoneGateBlock
-
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
blastResistance, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_469, field_483, field_484, field_486, field_487, field_6259, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, side, slipperiness, soundGroup, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbreakNaturally(World world, int x, int y, int z) booleancanPlaceBlockAt(World world, int x, int y, int z) booleancanStayPlaced(World world, int x, int y, int z) booleanReturns whether the current block emits a redstone signal.protected booleanemitsRedstonePower(Block block) intprotected intgetInputLevel(BlockView world, int x, int y, int z, int blockData) protected intgetInputPower(World world, int x, int y, int z, int blockData) intgetStrongRedstonePower(BlockView world, int x, int y, int z, int direction) getTexture(int side, int blockData) intgetWeakRedstonePower(BlockView world, int x, int y, int z, int direction) booleanbooleanisComparator(Block block) booleanReturns whether the current block and another block are equalprotected booleanisLocked(int int2) booleanprotected booleanisPoweredAtFace(World world, int x, int y, int z, int blockData) static booleanisRedstoneGate(Block block) booleanisUnableToPowerBlockAtOutputFace(World world, int x, int y, int z, int blockData) protected intmethod_4761(BlockView world, int x, int y, int z, int blockData) protected intmethod_4763(BlockView world, int x, int y, int z, int blockData) protected voidmethod_4766(World world, int x, int y, int z) voidonBreak(World world, int x, int y, int z, LivingEntity entity, ItemStack item) voidonDestroyed(World world, int x, int y, int z, int blockData) voidonNeighborUpdate(World world, int x, int y, int z, Block block) voidprotected abstract AbstractRedstoneGateBlockbooleanReturns whether the block can be rendered as a normal blockprotected abstract intsetInternalTickDelay(int delay) protected intsetTickDelay(int delay) booleanshouldRenderSide(BlockView world, int x, int y, int z, int blockData) protected abstract AbstractRedstoneGateBlockprotected voidupdatePoweredBlock(World world, int x, int y, int z, Block block) Methods inherited from class net.minecraft.block.HorizontalFacingBlock
getRotationMethods inherited from class net.minecraft.block.Block
appendItemStacks, areBlocksEqual, canStayPlaced, disableStats, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlockFromItem, getBonusDrops, getById, getColor, getDropCount, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getOpacity, getPistonInteractionType, getSideTexture, getTextureName, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasComparatorOutput, hasStats, isFire, isFlowerPot, isFullBlock, isFullCube, isNormalBlock, isTransluscent, method_398, method_400, method_405, method_407, method_410, method_411, method_412, method_413, method_414, method_415, method_417, method_418, method_4185, method_4186, method_420, method_422, method_424, method_425, method_427, method_428, method_431, method_435, method_437, method_438, method_446, method_448, method_452, method_454, method_455, method_457, method_459, method_461, method_463, method_464, method_468, method_471, method_479, method_4790, method_4793, method_4794, method_4798, method_5546, method_6444, method_6449, onActivated, onEntityCollision, registerTextures, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
locked
protected final boolean locked- Mappings:
Namespace Name Mixin selector official aLaiu;a:Zintermediary field_5539Lnet/minecraft/class_1449;field_5539:Znamed lockedLnet/minecraft/block/AbstractRedstoneGateBlock;locked:Z
-
-
Constructor Details
-
AbstractRedstoneGateBlock
protected AbstractRedstoneGateBlock(boolean locked) - Mappings:
Namespace Name Mixin selector official <init>Laiu;<init>(Z)Vintermediary <init>Lnet/minecraft/class_1449;<init>(Z)Vnamed <init>Lnet/minecraft/block/AbstractRedstoneGateBlock;<init>(Z)V
-
-
Method Details
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLaht;d()Zintermediary method_441Lnet/minecraft/class_197;method_441()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
canPlaceBlockAt
- Overrides:
canPlaceBlockAtin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c(Lafm;III)Zintermediary method_434Lnet/minecraft/class_197;method_434(Lnet/minecraft/class_1150;III)Znamed canPlaceBlockAtLnet/minecraft/block/Block;canPlaceBlockAt(Lnet/minecraft/world/World;III)Z
-
canStayPlaced
- Overrides:
canStayPlacedin classBlock- Mappings:
Namespace Name Mixin selector official jLaht;j(Lafm;III)Zintermediary method_450Lnet/minecraft/class_197;method_450(Lnet/minecraft/class_1150;III)Znamed canStayPlacedLnet/minecraft/block/Block;canStayPlaced(Lnet/minecraft/world/World;III)Z
-
onTick
- Overrides:
onTickin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILjava/util/Random;)Vintermediary method_436Lnet/minecraft/class_197;method_436(Lnet/minecraft/class_1150;IIILjava/util/Random;)Vnamed onTickLnet/minecraft/block/Block;onTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
-
getTexture
- Overrides:
getTexturein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(II)Lpr;intermediary method_395Lnet/minecraft/class_197;method_395(II)Lnet/minecraft/class_1557;named getTextureLnet/minecraft/block/Block;getTexture(II)Lnet/minecraft/client/Texture;
-
shouldRenderSide
@Environment(CLIENT) public boolean shouldRenderSide(BlockView world, int x, int y, int z, int blockData) - Overrides:
shouldRenderSidein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafw;IIII)Zintermediary method_447Lnet/minecraft/class_197;method_447(Lnet/minecraft/class_1158;IIII)Znamed shouldRenderSideLnet/minecraft/block/Block;shouldRenderSide(Lnet/minecraft/world/BlockView;IIII)Z
-
getBlockType
public int getBlockType()- Overrides:
getBlockTypein classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b()Iintermediary method_429Lnet/minecraft/class_197;method_429()Inamed getBlockTypeLnet/minecraft/block/Block;getBlockType()I
-
isLocked
protected boolean isLocked(int int2) - Mappings:
Namespace Name Mixin selector official cLaiu;c(I)Zintermediary method_4753Lnet/minecraft/class_1449;method_4753(I)Znamed isLockedLnet/minecraft/block/AbstractRedstoneGateBlock;isLocked(I)Z
-
getStrongRedstonePower
- Overrides:
getStrongRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c(Lafw;IIII)Iintermediary method_444Lnet/minecraft/class_197;method_444(Lnet/minecraft/class_1158;IIII)Inamed getStrongRedstonePowerLnet/minecraft/block/Block;getStrongRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
-
getWeakRedstonePower
- Overrides:
getWeakRedstonePowerin classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafw;IIII)Iintermediary method_426Lnet/minecraft/class_197;method_426(Lnet/minecraft/class_1158;IIII)Inamed getWeakRedstonePowerLnet/minecraft/block/Block;getWeakRedstonePower(Lnet/minecraft/world/BlockView;IIII)I
-
onNeighborUpdate
- Overrides:
onNeighborUpdatein classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILaht;)Vintermediary method_408Lnet/minecraft/class_197;method_408(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)Vnamed onNeighborUpdateLnet/minecraft/block/Block;onNeighborUpdate(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
-
updatePoweredBlock
- Mappings:
Namespace Name Mixin selector official bLaiu;b(Lafm;IIILaht;)Vintermediary method_4760Lnet/minecraft/class_1449;method_4760(Lnet/minecraft/class_1150;IIILnet/minecraft/class_197;)Vnamed updatePoweredBlockLnet/minecraft/block/AbstractRedstoneGateBlock;updatePoweredBlock(Lnet/minecraft/world/World;IIILnet/minecraft/block/Block;)V
-
isLocked
- Mappings:
Namespace Name Mixin selector official gLaiu;g(Lafw;IIII)Zintermediary method_4758Lnet/minecraft/class_1449;method_4758(Lnet/minecraft/class_1158;IIII)Znamed isLockedLnet/minecraft/block/AbstractRedstoneGateBlock;isLocked(Lnet/minecraft/world/BlockView;IIII)Z
-
isPoweredAtFace
- Mappings:
Namespace Name Mixin selector official aLaiu;a(Lafm;IIII)Zintermediary method_4754Lnet/minecraft/class_1449;method_4754(Lnet/minecraft/class_1150;IIII)Znamed isPoweredAtFaceLnet/minecraft/block/AbstractRedstoneGateBlock;isPoweredAtFace(Lnet/minecraft/world/World;IIII)Z
-
getInputPower
- Mappings:
Namespace Name Mixin selector official hLaiu;h(Lafm;IIII)Iintermediary method_4757Lnet/minecraft/class_1449;method_4757(Lnet/minecraft/class_1150;IIII)Inamed getInputPowerLnet/minecraft/block/AbstractRedstoneGateBlock;getInputPower(Lnet/minecraft/world/World;IIII)I
-
method_4761
- Mappings:
Namespace Name Mixin selector official hLaiu;h(Lafw;IIII)Iintermediary method_4761Lnet/minecraft/class_1449;method_4761(Lnet/minecraft/class_1158;IIII)Inamed method_4761Lnet/minecraft/block/AbstractRedstoneGateBlock;method_4761(Lnet/minecraft/world/BlockView;IIII)I
-
method_4763
- Mappings:
Namespace Name Mixin selector official iLaiu;i(Lafw;IIII)Iintermediary method_4763Lnet/minecraft/class_1449;method_4763(Lnet/minecraft/class_1158;IIII)Inamed method_4763Lnet/minecraft/block/AbstractRedstoneGateBlock;method_4763(Lnet/minecraft/world/BlockView;IIII)I
-
emitsRedstonePower
public boolean emitsRedstonePower()Returns whether the current block emits a redstone signal. Used by comparators, Redstone Blocks, etc.- Overrides:
emitsRedstonePowerin classBlock- Returns:
- Whether the current block emits a redstone signal
- Mappings:
Namespace Name Mixin selector official fLaht;f()Zintermediary method_466Lnet/minecraft/class_197;method_466()Znamed emitsRedstonePowerLnet/minecraft/block/Block;emitsRedstonePower()Z
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLaht;a(Lafm;IIILrg;Labo;)Vintermediary method_419Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;IIILnet/minecraft/class_1699;Lnet/minecraft/class_1071;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;IIILnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
-
breakNaturally
- Overrides:
breakNaturallyin classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafm;III)Vintermediary method_460Lnet/minecraft/class_197;method_460(Lnet/minecraft/class_1150;III)Vnamed breakNaturallyLnet/minecraft/block/Block;breakNaturally(Lnet/minecraft/world/World;III)V
-
method_4766
- Mappings:
Namespace Name Mixin selector official eLaiu;e(Lafm;III)Vintermediary method_4766Lnet/minecraft/class_1449;method_4766(Lnet/minecraft/class_1150;III)Vnamed method_4766Lnet/minecraft/block/AbstractRedstoneGateBlock;method_4766(Lnet/minecraft/world/World;III)V
-
onDestroyed
- Overrides:
onDestroyedin classBlock- Mappings:
Namespace Name Mixin selector official bLaht;b(Lafm;IIII)Vintermediary method_451Lnet/minecraft/class_197;method_451(Lnet/minecraft/class_1150;IIII)Vnamed onDestroyedLnet/minecraft/block/Block;onDestroyed(Lnet/minecraft/world/World;IIII)V
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLaht;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
emitsRedstonePower
- Mappings:
Namespace Name Mixin selector official aLaiu;a(Laht;)Zintermediary method_6470Lnet/minecraft/class_1449;method_6470(Lnet/minecraft/class_197;)Znamed emitsRedstonePowerLnet/minecraft/block/AbstractRedstoneGateBlock;emitsRedstonePower(Lnet/minecraft/block/Block;)Z
-
getInputLevel
- Mappings:
Namespace Name Mixin selector official fLaiu;f(Lafw;IIII)Iintermediary method_4755Lnet/minecraft/class_1449;method_4755(Lnet/minecraft/class_1158;IIII)Inamed getInputLevelLnet/minecraft/block/AbstractRedstoneGateBlock;getInputLevel(Lnet/minecraft/world/BlockView;IIII)I
-
isRedstoneGate
- Mappings:
Namespace Name Mixin selector official dLaiu;d(Laht;)Zintermediary method_6471Lnet/minecraft/class_1449;method_6471(Lnet/minecraft/class_197;)Znamed isRedstoneGateLnet/minecraft/block/AbstractRedstoneGateBlock;isRedstoneGate(Lnet/minecraft/block/Block;)Z
-
isComparator
- Mappings:
Namespace Name Mixin selector official eLaiu;e(Laht;)Zintermediary method_6472Lnet/minecraft/class_1449;method_6472(Lnet/minecraft/class_197;)Znamed isComparatorLnet/minecraft/block/AbstractRedstoneGateBlock;isComparator(Lnet/minecraft/block/Block;)Z
-
isUnableToPowerBlockAtOutputFace
- Mappings:
Namespace Name Mixin selector official iLaiu;i(Lafm;IIII)Zintermediary method_4765Lnet/minecraft/class_1449;method_4765(Lnet/minecraft/class_1150;IIII)Znamed isUnableToPowerBlockAtOutputFaceLnet/minecraft/block/AbstractRedstoneGateBlock;isUnableToPowerBlockAtOutputFace(Lnet/minecraft/world/World;IIII)Z
-
setTickDelay
protected int setTickDelay(int delay) - Mappings:
Namespace Name Mixin selector official kLaiu;k(I)Iintermediary method_4764Lnet/minecraft/class_1449;method_4764(I)Inamed setTickDelayLnet/minecraft/block/AbstractRedstoneGateBlock;setTickDelay(I)I
-
setInternalTickDelay
protected abstract int setInternalTickDelay(int delay) - Mappings:
Namespace Name Mixin selector official bLaiu;b(I)Iintermediary method_4768Lnet/minecraft/class_1449;method_4768(I)Inamed setInternalTickDelayLnet/minecraft/block/AbstractRedstoneGateBlock;setInternalTickDelay(I)I
-
POWERED_COMPARATOR
- Mappings:
Namespace Name Mixin selector official eLaiu;e()Laiu;intermediary method_4767Lnet/minecraft/class_1449;method_4767()Lnet/minecraft/class_1449;named POWERED_COMPARATORLnet/minecraft/block/AbstractRedstoneGateBlock;POWERED_COMPARATOR()Lnet/minecraft/block/AbstractRedstoneGateBlock;
-
UNPOWERED_COMPARATOR
- Mappings:
Namespace Name Mixin selector official iLaiu;i()Laiu;intermediary method_4769Lnet/minecraft/class_1449;method_4769()Lnet/minecraft/class_1449;named UNPOWERED_COMPARATORLnet/minecraft/block/AbstractRedstoneGateBlock;UNPOWERED_COMPARATOR()Lnet/minecraft/block/AbstractRedstoneGateBlock;
-
isEqualTo
Returns whether the current block and another block are equal- Overrides:
isEqualToin classBlock- Parameters:
block- The other block- Returns:
- Whether the current block and the other block are equal
- Mappings:
Namespace Name Mixin selector official cLaht;c(Laht;)Zintermediary method_6447Lnet/minecraft/class_197;method_6447(Lnet/minecraft/class_197;)Znamed isEqualToLnet/minecraft/block/Block;isEqualTo(Lnet/minecraft/block/Block;)Z
-