Interface BlockEntity.ComponentsAccess

Enclosing class:
BlockEntity

protected static interface BlockEntity.ComponentsAccess
Mappings:
Namespace Name
named net/minecraft/block/entity/BlockEntity$ComponentsAccess
intermediary net/minecraft/class_2586$class_9473
official dqf$b
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(ComponentType<T> type)
     
    <T> T
    getOrDefault(ComponentType<? extends T> type, T fallback)
     
  • Method Details

    • get

      @Nullable <T> T get(ComponentType<T> type)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/block/entity/BlockEntity$ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
      intermediary method_58694 Lnet/minecraft/class_2586$class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
      official a Ldqf$b;a(Lkp;)Ljava/lang/Object;
    • getOrDefault

      <T> T getOrDefault(ComponentType<? extends T> type, T fallback)
      Mappings:
      Namespace Name Mixin selector
      named getOrDefault Lnet/minecraft/block/entity/BlockEntity$ComponentsAccess;getOrDefault(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_58695 Lnet/minecraft/class_2586$class_9473;method_58695(Lnet/minecraft/class_9331;Ljava/lang/Object;)Ljava/lang/Object;
      official a Ldqf$b;a(Lkp;Ljava/lang/Object;)Ljava/lang/Object;