Class EntityShapeContext

java.lang.Object
net.minecraft.block.EntityShapeContext
All Implemented Interfaces:
ShapeContext
Direct Known Subclasses:
ExperimentalMinecartShapeContext

public class EntityShapeContext extends Object implements ShapeContext
Mappings:
Namespace Name
named net/minecraft/block/EntityShapeContext
intermediary net/minecraft/class_3727
official fch
  • Field Details

    • ABSENT

      protected static final ShapeContext ABSENT
      Mappings:
      Namespace Name Mixin selector
      named ABSENT Lnet/minecraft/block/EntityShapeContext;ABSENT:Lnet/minecraft/block/ShapeContext;
      intermediary field_17593 Lnet/minecraft/class_3727;field_17593:Lnet/minecraft/class_3726;
      official a Lfch;a:Lfcc;
    • descending

      private final boolean descending
      Mappings:
      Namespace Name Mixin selector
      named descending Lnet/minecraft/block/EntityShapeContext;descending:Z
      intermediary field_16451 Lnet/minecraft/class_3727;field_16451:Z
      official b Lfch;b:Z
    • minY

      private final double minY
      Mappings:
      Namespace Name Mixin selector
      named minY Lnet/minecraft/block/EntityShapeContext;minY:D
      intermediary field_16450 Lnet/minecraft/class_3727;field_16450:D
      official c Lfch;c:D
    • heldItem

      private final ItemStack heldItem
      Mappings:
      Namespace Name Mixin selector
      named heldItem Lnet/minecraft/block/EntityShapeContext;heldItem:Lnet/minecraft/item/ItemStack;
      intermediary field_17594 Lnet/minecraft/class_3727;field_17594:Lnet/minecraft/class_1799;
      official d Lfch;d:Lcxo;
    • walkOnFluidPredicate

      private final Predicate<FluidState> walkOnFluidPredicate
      Mappings:
      Namespace Name Mixin selector
      named walkOnFluidPredicate Lnet/minecraft/block/EntityShapeContext;walkOnFluidPredicate:Ljava/util/function/Predicate;
      intermediary field_24425 Lnet/minecraft/class_3727;field_24425:Ljava/util/function/Predicate;
      official e Lfch;e:Ljava/util/function/Predicate;
    • entity

      @Nullable private final @Nullable Entity entity
      Mappings:
      Namespace Name Mixin selector
      named entity Lnet/minecraft/block/EntityShapeContext;entity:Lnet/minecraft/entity/Entity;
      intermediary field_27935 Lnet/minecraft/class_3727;field_27935:Lnet/minecraft/class_1297;
      official f Lfch;f:Lbvj;
  • Constructor Details

    • EntityShapeContext

      protected EntityShapeContext(boolean descending, double minY, ItemStack heldItem, Predicate<FluidState> walkOnFluidPredicate, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/EntityShapeContext;<init>(ZDLnet/minecraft/item/ItemStack;Ljava/util/function/Predicate;Lnet/minecraft/entity/Entity;)V
      intermediary <init> Lnet/minecraft/class_3727;<init>(ZDLnet/minecraft/class_1799;Ljava/util/function/Predicate;Lnet/minecraft/class_1297;)V
      official <init> Lfch;<init>(ZDLcxo;Ljava/util/function/Predicate;Lbvj;)V
    • EntityShapeContext

      @Deprecated protected EntityShapeContext(Entity entity, boolean collidesWithFluid)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/EntityShapeContext;<init>(Lnet/minecraft/entity/Entity;Z)V
      intermediary <init> Lnet/minecraft/class_3727;<init>(Lnet/minecraft/class_1297;Z)V
      official <init> Lfch;<init>(Lbvj;Z)V
  • Method Details

    • isHolding

      public boolean isHolding(Item item)
      Specified by:
      isHolding in interface ShapeContext
      Mappings:
      Namespace Name Mixin selector
      named isHolding Lnet/minecraft/block/ShapeContext;isHolding(Lnet/minecraft/item/Item;)Z
      intermediary method_17785 Lnet/minecraft/class_3726;method_17785(Lnet/minecraft/class_1792;)Z
      official a Lfcc;a(Lcxk;)Z
    • canWalkOnFluid

      public boolean canWalkOnFluid(FluidState stateAbove, FluidState state)
      Specified by:
      canWalkOnFluid in interface ShapeContext
      Mappings:
      Namespace Name Mixin selector
      named canWalkOnFluid Lnet/minecraft/block/ShapeContext;canWalkOnFluid(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/fluid/FluidState;)Z
      intermediary method_27866 Lnet/minecraft/class_3726;method_27866(Lnet/minecraft/class_3610;Lnet/minecraft/class_3610;)Z
      official a Lfcc;a(Letw;Letw;)Z
    • getCollisionShape

      public VoxelShape getCollisionShape(BlockState state, CollisionView world, BlockPos pos)
      Specified by:
      getCollisionShape in interface ShapeContext
      Mappings:
      Namespace Name Mixin selector
      named getCollisionShape Lnet/minecraft/block/ShapeContext;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/CollisionView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
      intermediary method_62878 Lnet/minecraft/class_3726;method_62878(Lnet/minecraft/class_2680;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;
      official a Lfcc;a(Ldxu;Ldgq;Ljh;)Lfcr;
    • isDescending

      public boolean isDescending()
      Specified by:
      isDescending in interface ShapeContext
      Mappings:
      Namespace Name Mixin selector
      named isDescending Lnet/minecraft/block/ShapeContext;isDescending()Z
      intermediary method_16193 Lnet/minecraft/class_3726;method_16193()Z
      official b Lfcc;b()Z
    • isAbove

      public boolean isAbove(VoxelShape shape, BlockPos pos, boolean defaultValue)
      Specified by:
      isAbove in interface ShapeContext
      Mappings:
      Namespace Name Mixin selector
      named isAbove Lnet/minecraft/block/ShapeContext;isAbove(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/BlockPos;Z)Z
      intermediary method_16192 Lnet/minecraft/class_3726;method_16192(Lnet/minecraft/class_265;Lnet/minecraft/class_2338;Z)Z
      official a Lfcc;a(Lfcr;Ljh;Z)Z
    • getEntity

      @Nullable public @Nullable Entity getEntity()
      Mappings:
      Namespace Name Mixin selector
      named getEntity Lnet/minecraft/block/EntityShapeContext;getEntity()Lnet/minecraft/entity/Entity;
      intermediary method_32480 Lnet/minecraft/class_3727;method_32480()Lnet/minecraft/class_1297;
      official c Lfch;c()Lbvj;