Class EntityShapeContext

java.lang.Object
net.minecraft.block.EntityShapeContext
All Implemented Interfaces:
ShapeContext

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

    • ABSENT

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

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

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

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

      private final ItemStack boots
      Mappings:
      Namespace Name Mixin selector
      official e Ldnk;e:Lbqp;
      intermediary field_27934 Lnet/minecraft/class_3727;field_27934:Lnet/minecraft/class_1799;
      named boots Lnet/minecraft/block/EntityShapeContext;boots:Lnet/minecraft/item/ItemStack;
    • walkOnFluidPredicate

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

      private final Optional<Entity> entity
      Mappings:
      Namespace Name Mixin selector
      official g Ldnk;g:Ljava/util/Optional;
      intermediary field_27935 Lnet/minecraft/class_3727;field_27935:Ljava/util/Optional;
      named entity Lnet/minecraft/block/EntityShapeContext;entity:Ljava/util/Optional;
  • Constructor Details

    • EntityShapeContext

      protected EntityShapeContext(boolean descending, double minY, ItemStack boots, ItemStack heldItem, Predicate<Fluid> walkOnFluidPredicate, Optional<Entity> entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldnk;<init>(ZDLbqp;Lbqp;Ljava/util/function/Predicate;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_3727;<init>(ZDLnet/minecraft/class_1799;Lnet/minecraft/class_1799;Ljava/util/function/Predicate;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/block/EntityShapeContext;<init>(ZDLnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;Ljava/util/function/Predicate;Ljava/util/Optional;)V
    • EntityShapeContext

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

    • isWearingOnFeet

      public boolean isWearingOnFeet(Item item)
      Specified by:
      isWearingOnFeet in interface ShapeContext
      Mappings:
      Namespace Name Mixin selector
      official a Ldnf;a(Lbql;)Z
      intermediary method_35591 Lnet/minecraft/class_3726;method_35591(Lnet/minecraft/class_1792;)Z
      named isWearingOnFeet Lnet/minecraft/block/ShapeContext;isWearingOnFeet(Lnet/minecraft/item/Item;)Z
    • isHolding

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

      public boolean canWalkOnFluid(FluidState state, FlowableFluid fluid)
      Specified by:
      canWalkOnFluid in interface ShapeContext
      Mappings:
      Namespace Name Mixin selector
      official a Ldnf;a(Ldes;Ldeq;)Z
      intermediary method_27866 Lnet/minecraft/class_3726;method_27866(Lnet/minecraft/class_3610;Lnet/minecraft/class_3609;)Z
      named canWalkOnFluid Lnet/minecraft/block/ShapeContext;canWalkOnFluid(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/fluid/FlowableFluid;)Z
    • isDescending

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

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

      public Optional<Entity> getEntity()
      Mappings:
      Namespace Name Mixin selector
      official c Ldnk;c()Ljava/util/Optional;
      intermediary method_32480 Lnet/minecraft/class_3727;method_32480()Ljava/util/Optional;
      named getEntity Lnet/minecraft/block/EntityShapeContext;getEntity()Ljava/util/Optional;