Class NetherPortalBlock

All Implemented Interfaces:
ItemConvertible

public class NetherPortalBlock extends Block
Mappings:
Namespace Name
official chm
intermediary net/minecraft/class_2423
named net/minecraft/block/NetherPortalBlock
  • Field Details

    • AXIS

      public static final EnumProperty<Direction.Axis> AXIS
      Mappings:
      Namespace Name Mixin selector
      official a Lchm;a:Lcpb;
      intermediary field_11310 Lnet/minecraft/class_2423;field_11310:Lnet/minecraft/class_2754;
      named AXIS Lnet/minecraft/block/NetherPortalBlock;AXIS:Lnet/minecraft/state/property/EnumProperty;
    • field_31196

      protected static final int field_31196
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lchm;b:I
      intermediary field_31196 Lnet/minecraft/class_2423;field_31196:I
      named field_31196 Lnet/minecraft/block/NetherPortalBlock;field_31196:I
    • X_SHAPE

      protected static final VoxelShape X_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official c Lchm;c:Ldpf;
      intermediary field_11309 Lnet/minecraft/class_2423;field_11309:Lnet/minecraft/class_265;
      named X_SHAPE Lnet/minecraft/block/NetherPortalBlock;X_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • Z_SHAPE

      protected static final VoxelShape Z_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official d Lchm;d:Ldpf;
      intermediary field_11308 Lnet/minecraft/class_2423;field_11308:Lnet/minecraft/class_265;
      named Z_SHAPE Lnet/minecraft/block/NetherPortalBlock;Z_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
  • Constructor Details

    • NetherPortalBlock

      public NetherPortalBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcob;<init>(Lcob$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • randomTick

      public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      randomTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcob;b(Lcoc;Ladi;Lgh;Ljava/util/Random;)V
      intermediary method_9514 Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomTick Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lgm;Lcoc;Lcae;Lgh;Lgh;)Lcoc;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • onEntityCollision

      public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
      Overrides:
      onEntityCollision in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lawt;)V
      intermediary method_9548 Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
      named onEntityCollision Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
    • randomDisplayTick

      public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcoc;Lcad;Lgh;Ljava/util/Random;)V
      intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • getPickStack

      public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)
      Overrides:
      getPickStack in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lbzj;Lgh;Lcoc;)Lbue;
      intermediary method_9574 Lnet/minecraft/class_2248;method_9574(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;
      named getPickStack Lnet/minecraft/block/Block;getPickStack(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
    • rotate

      public BlockState rotate(BlockState state, BlockRotation rotation)
      Applies a block rotation to a block state.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      the rotated block state
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lciu;)Lcoc;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcod$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V