Fixed access wideners and LootPoolMixin
This commit is contained in:
parent
72111d1c88
commit
e3bab37cd0
2 changed files with 9 additions and 12 deletions
|
@ -21,20 +21,11 @@ import java.util.function.Predicate;
|
|||
|
||||
@Mixin(LootPool.class)
|
||||
public class LootPoolMixin implements LootPoolAccessor {
|
||||
@Shadow
|
||||
@Final
|
||||
public LootPoolEntryContainer[] entries;
|
||||
@Shadow
|
||||
@Final
|
||||
public LootItemCondition[] conditions;
|
||||
@Shadow
|
||||
@Final
|
||||
private Predicate<LootParams> compositeCondition;
|
||||
@Shadow
|
||||
@Final
|
||||
public LootItemFunction[] functions;
|
||||
@Shadow
|
||||
@Final
|
||||
private BiFunction<ItemStack, LootParams, ItemStack> compositeFunction;
|
||||
@Shadow
|
||||
@Final
|
||||
|
@ -43,13 +34,19 @@ public class LootPoolMixin implements LootPoolAccessor {
|
|||
@Final
|
||||
public NumberProvider bonusRolls;
|
||||
|
||||
@Shadow @Final public List<LootItemCondition> conditions;
|
||||
|
||||
@Shadow @Final public List<LootItemFunction> functions;
|
||||
|
||||
@Shadow @Final public List<LootPoolEntryContainer> entries;
|
||||
|
||||
@Override
|
||||
public LootPool bcl_mergeEntries(List<LootPoolEntryContainer> newEntries) {
|
||||
final List<LootPoolEntryContainer> merged = Lists.newArrayList(entries);
|
||||
merged.addAll(newEntries);
|
||||
|
||||
return new LootPool(
|
||||
merged.toArray(new LootPoolEntryContainer[0]),
|
||||
merged,
|
||||
this.conditions,
|
||||
this.functions,
|
||||
this.rolls,
|
||||
|
|
|
@ -19,7 +19,7 @@ accessible class net/minecraft/world/level/levelgen/SurfaceRules$BiomeConditionS
|
|||
accessible class net/minecraft/world/level/levelgen/SurfaceRules$TestRuleSource
|
||||
|
||||
#Methods
|
||||
accessible method net/minecraft/world/level/storage/loot/LootPool <init> ([Lnet/minecraft/world/level/storage/loot/entries/LootPoolEntryContainer;[Lnet/minecraft/world/level/storage/loot/predicates/LootItemCondition;[Lnet/minecraft/world/level/storage/loot/functions/LootItemFunction;Lnet/minecraft/world/level/storage/loot/providers/number/NumberProvider;Lnet/minecraft/world/level/storage/loot/providers/number/NumberProvider;)V
|
||||
accessible method net/minecraft/world/level/storage/loot/LootPool <init> (Ljava/util/List;Ljava/util/List;Ljava/util/List;Lnet/minecraft/world/level/storage/loot/providers/number/NumberProvider;Lnet/minecraft/world/level/storage/loot/providers/number/NumberProvider;)V
|
||||
accessible method net/minecraft/world/entity/ai/village/poi/PoiTypes register (Lnet/minecraft/core/Registry;Lnet/minecraft/resources/ResourceKey;Ljava/util/Set;II)Lnet/minecraft/world/entity/ai/village/poi/PoiType;
|
||||
accessible method net/minecraft/world/level/levelgen/SurfaceRules$SequenceRuleSource <init> (Ljava/util/List;)V
|
||||
accessible method net/minecraft/core/registries/BuiltInRegistries registerSimple (Lnet/minecraft/resources/ResourceKey;Lnet/minecraft/core/registries/BuiltInRegistries$RegistryBootstrap;)Lnet/minecraft/core/Registry;
|
||||
|
@ -30,7 +30,7 @@ accessible method net/minecraft/world/level/levelgen/NoiseRouterData noNewCaves
|
|||
accessible method net/minecraft/world/level/levelgen/NoiseRouterData slideNetherLike (Lnet/minecraft/core/HolderGetter;II)Lnet/minecraft/world/level/levelgen/DensityFunction;
|
||||
accessible method net/minecraft/tags/TagEntry elementOrTag ()Lnet/minecraft/util/ExtraCodecs$TagOrElementLocation;
|
||||
accessible method net/minecraft/data/worldgen/biome/OverworldBiomes calculateSkyColor (F)I
|
||||
accessible method net/minecraft/advancements/Advancement$Builder <init> (Z)V
|
||||
accessible method net/minecraft/advancements/Advancement$Builder <init> ()V
|
||||
accessible method net/minecraft/world/level/block/Blocks ocelotOrParrot (Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/entity/EntityType;)Ljava/lang/Boolean;
|
||||
accessible method net/minecraft/world/level/block/Blocks never (Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/entity/EntityType;)Ljava/lang/Boolean;
|
||||
accessible method net/minecraft/world/level/block/Blocks never (Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;)Z
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue