Class RaidManager

java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.village.raid.RaidManager

public class RaidManager extends PersistentState
Mappings:
Namespace Name
named net/minecraft/village/raid/RaidManager
intermediary net/minecraft/class_3767
official cny
  • Field Details

    • RAIDS

      private static final String RAIDS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named RAIDS Lnet/minecraft/village/raid/RaidManager;RAIDS:Ljava/lang/String;
      intermediary field_30690 Lnet/minecraft/class_3767;field_30690:Ljava/lang/String;
      official a Lcny;a:Ljava/lang/String;
    • raids

      private final Map<Integer,Raid> raids
      Mappings:
      Namespace Name Mixin selector
      named raids Lnet/minecraft/village/raid/RaidManager;raids:Ljava/util/Map;
      intermediary field_16639 Lnet/minecraft/class_3767;field_16639:Ljava/util/Map;
      official b Lcny;b:Ljava/util/Map;
    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/village/raid/RaidManager;world:Lnet/minecraft/server/world/ServerWorld;
      intermediary field_16641 Lnet/minecraft/class_3767;field_16641:Lnet/minecraft/class_3218;
      official c Lcny;c:Laqm;
    • nextAvailableId

      private int nextAvailableId
      Mappings:
      Namespace Name Mixin selector
      named nextAvailableId Lnet/minecraft/village/raid/RaidManager;nextAvailableId:I
      intermediary field_16638 Lnet/minecraft/class_3767;field_16638:I
      official d Lcny;d:I
    • currentTime

      private int currentTime
      Mappings:
      Namespace Name Mixin selector
      named currentTime Lnet/minecraft/village/raid/RaidManager;currentTime:I
      intermediary field_16637 Lnet/minecraft/class_3767;field_16637:I
      official e Lcny;e:I
  • Constructor Details

    • RaidManager

      public RaidManager(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/raid/RaidManager;<init>(Lnet/minecraft/server/world/ServerWorld;)V
      intermediary <init> Lnet/minecraft/class_3767;<init>(Lnet/minecraft/class_3218;)V
      official <init> Lcny;<init>(Laqm;)V
  • Method Details

    • getPersistentStateType

      public static PersistentState.Type<RaidManager> getPersistentStateType(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named getPersistentStateType Lnet/minecraft/village/raid/RaidManager;getPersistentStateType(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/PersistentState$Type;
      intermediary method_52559 Lnet/minecraft/class_3767;method_52559(Lnet/minecraft/class_3218;)Lnet/minecraft/class_18$class_8645;
      official a Lcny;a(Laqm;)Lepq$a;
    • getRaid

      public Raid getRaid(int id)
      Mappings:
      Namespace Name Mixin selector
      named getRaid Lnet/minecraft/village/raid/RaidManager;getRaid(I)Lnet/minecraft/village/raid/Raid;
      intermediary method_16541 Lnet/minecraft/class_3767;method_16541(I)Lnet/minecraft/class_3765;
      official a Lcny;a(I)Lcnw;
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/village/raid/RaidManager;tick()V
      intermediary method_16539 Lnet/minecraft/class_3767;method_16539()V
      official a Lcny;a()V
    • isValidRaiderFor

      public static boolean isValidRaiderFor(RaiderEntity raider, Raid raid)
      Mappings:
      Namespace Name Mixin selector
      named isValidRaiderFor Lnet/minecraft/village/raid/RaidManager;isValidRaiderFor(Lnet/minecraft/entity/raid/RaiderEntity;Lnet/minecraft/village/raid/Raid;)Z
      intermediary method_16838 Lnet/minecraft/class_3767;method_16838(Lnet/minecraft/class_3763;Lnet/minecraft/class_3765;)Z
      official a Lcny;a(Lcnx;Lcnw;)Z
    • startRaid

      @Nullable public @Nullable Raid startRaid(ServerPlayerEntity player, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named startRaid Lnet/minecraft/village/raid/RaidManager;startRaid(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/village/raid/Raid;
      intermediary method_16540 Lnet/minecraft/class_3767;method_16540(Lnet/minecraft/class_3222;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3765;
      official a Lcny;a(Laqn;Lja;)Lcnw;
    • getOrCreateRaid

      private Raid getOrCreateRaid(ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateRaid Lnet/minecraft/village/raid/RaidManager;getOrCreateRaid(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/village/raid/Raid;
      intermediary method_16532 Lnet/minecraft/class_3767;method_16532(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3765;
      official a Lcny;a(Laqm;Lja;)Lcnw;
    • fromNbt

      public static RaidManager fromNbt(ServerWorld world, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named fromNbt Lnet/minecraft/village/raid/RaidManager;fromNbt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/village/raid/RaidManager;
      intermediary method_77 Lnet/minecraft/class_3767;method_77(Lnet/minecraft/class_3218;Lnet/minecraft/class_2487;)Lnet/minecraft/class_3767;
      official a Lcny;a(Laqm;Ltx;)Lcny;
    • writeNbt

      public NbtCompound writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      Specified by:
      writeNbt in class PersistentState
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/world/PersistentState;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_75 Lnet/minecraft/class_18;method_75(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
      official a Lepq;a(Ltx;Ljl$a;)Ltx;
    • nameFor

      public static String nameFor(RegistryEntry<DimensionType> dimensionTypeEntry)
      Mappings:
      Namespace Name Mixin selector
      named nameFor Lnet/minecraft/village/raid/RaidManager;nameFor(Lnet/minecraft/registry/entry/RegistryEntry;)Ljava/lang/String;
      intermediary method_16533 Lnet/minecraft/class_3767;method_16533(Lnet/minecraft/class_6880;)Ljava/lang/String;
      official a Lcny;a(Ljj;)Ljava/lang/String;
    • nextId

      private int nextId()
      Mappings:
      Namespace Name Mixin selector
      named nextId Lnet/minecraft/village/raid/RaidManager;nextId()I
      intermediary method_16534 Lnet/minecraft/class_3767;method_16534()I
      official b Lcny;b()I
    • getRaidAt

      @Nullable public @Nullable Raid getRaidAt(BlockPos pos, int searchDistance)
      Mappings:
      Namespace Name Mixin selector
      named getRaidAt Lnet/minecraft/village/raid/RaidManager;getRaidAt(Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/village/raid/Raid;
      intermediary method_19209 Lnet/minecraft/class_3767;method_19209(Lnet/minecraft/class_2338;I)Lnet/minecraft/class_3765;
      official a Lcny;a(Lja;I)Lcnw;