Package net.minecraft.block
Class TransparentBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.TransparentBlock
- Direct Known Subclasses:
GlassBlock,IceBlock,NetherPortalBlock,SlimeBlock,StainedGlassBlock
- Mappings:
Namespace Name official ahjintermediary net/minecraft/class_144named net/minecraft/block/TransparentBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
ANVIL, blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, hardness, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, transluscent, useNeighbourLight, WOOD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransparentBlock(Material material, boolean bool) protectedTransparentBlock(Material material, boolean bool, MaterialColor materialColor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisSideInvisible(BlockView view, BlockPos pos, Direction facing) Returns whether the current block has connected sides, i.e its side faces are invisible when covered by other blocks.Methods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, appendProperties, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getCollisionBox, getColor, getColor, getComparatorOutput, getData, getDefaultState, getDropCount, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, getPistonInteractionType, getRenderLayerType, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isTransluscent, method_414, method_8666, neighborUpdate, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, renderAsNormalBlock, requiresSilkTouch, scheduledTick, setBlockItemBounds, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
field_284
private boolean field_284- Mappings:
Namespace Name Mixin selector official aLahj;a:Zintermediary field_284Lnet/minecraft/class_144;field_284:Znamed field_284Lnet/minecraft/block/TransparentBlock;field_284:Z
-
-
Constructor Details
-
TransparentBlock
- Mappings:
Namespace Name Mixin selector official <init>Lahj;<init>(Larm;Z)Vintermediary <init>Lnet/minecraft/class_144;<init>(Lnet/minecraft/class_63;Z)Vnamed <init>Lnet/minecraft/block/TransparentBlock;<init>(Lnet/minecraft/block/Material;Z)V
-
TransparentBlock
- Mappings:
Namespace Name Mixin selector official <init>Lahj;<init>(Larm;ZLarn;)Vintermediary <init>Lnet/minecraft/class_144;<init>(Lnet/minecraft/class_63;ZLnet/minecraft/class_65;)Vnamed <init>Lnet/minecraft/block/TransparentBlock;<init>(Lnet/minecraft/block/Material;ZLnet/minecraft/block/MaterialColor;)V
-
-
Method Details
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLafh;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
isSideInvisible
Returns whether the current block has connected sides, i.e its side faces are invisible when covered by other blocks. Used by glass to prevent the white dots from appearing everywhere through adjacent glass blocks.- Overrides:
isSideInvisiblein classBlock- Parameters:
view- BlockView instancepos- The current block's positionfacing- The direction the block is facing- Returns:
- Whether the current block has connected sides
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;Lcq;)Zintermediary method_8654Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed isSideInvisibleLnet/minecraft/block/Block;isSideInvisible(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-