mapping
This commit is contained in:
1 parent
a32c7fec51
commit
4c5400dc38
6 files changed
+10
-10
No files matched your search
@@ -269,8 +269,8 @@ public class FeatureGenerator
|
||||
:simplePlop(Feature.CORAL_CLAW).plop(w, p));
|
||||
put("sea_pickle", simplePlop(Feature.SEA_PICKLE.configure( new SeaPickleFeatureConfig(20))));
|
||||
put("boulder", simplePlop(Feature.FOREST_ROCK.configure( new BoulderFeatureConfig(Blocks.MOSSY_COBBLESTONE.getDefaultState(), 0))));
|
||||
put("crimson_fungus", simplePlop(Feature.HUGE_FUNGUS.configure(HugeFungiFeatureConfig.field_22432)));
|
||||
put("warped_fungus", simplePlop(Feature.HUGE_FUNGUS.configure(HugeFungiFeatureConfig.field_22434)));
|
||||
put("crimson_fungus", simplePlop(Feature.HUGE_FUNGUS.configure(HugeFungusFeatureConfig.field_22432)));
|
||||
put("warped_fungus", simplePlop(Feature.HUGE_FUNGUS.configure(HugeFungusFeatureConfig.field_22434)));
|
||||
put("nether_sprouts", simplePlop(Feature.NETHER_FOREST_VEGETATION.configure(DefaultBiomeFeatures.NETHER_SPROUTS_CONFIG)));
|
||||
put("crimson_roots", simplePlop(Feature.NETHER_FOREST_VEGETATION.configure(DefaultBiomeFeatures.CRIMSON_ROOTS_CONFIG)));
|
||||
put("warped_roots", simplePlop(Feature.NETHER_FOREST_VEGETATION.configure(DefaultBiomeFeatures.WARPED_ROOTS_CONFIG)));
|
||||
|
||||
@@ -25,10 +25,10 @@ public class Structure_fillUpdatesMixin
|
||||
|
||||
@Redirect(method = "method_15172", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/structure/StructurePlacementData;method_16444()Z"
|
||||
target = "Lnet/minecraft/structure/StructurePlacementData;shouldUpdateNeighbors()Z"
|
||||
))
|
||||
private boolean skipPostprocess(StructurePlacementData structurePlacementData)
|
||||
{
|
||||
return structurePlacementData.method_16444() || CarpetSettings.impendingFillSkipUpdates;
|
||||
return structurePlacementData.shouldUpdateNeighbors() || CarpetSettings.impendingFillSkipUpdates;
|
||||
}
|
||||
}
|
||||
@@ -138,7 +138,7 @@ public abstract class VillagerEntity_aiMixin extends AbstractTraderEntity
|
||||
}
|
||||
else if (itemStack_1.getItem() instanceof BedItem)
|
||||
{
|
||||
List<PointOfInterest> list_1 = ((ServerWorld) getEntityWorld()).getPointOfInterestStorage().get(
|
||||
List<PointOfInterest> list_1 = ((ServerWorld) getEntityWorld()).getPointOfInterestStorage().getInCircle(
|
||||
type -> type == PointOfInterestType.HOME,
|
||||
getBlockPos(),
|
||||
48, PointOfInterestStorage.OccupationStatus.ANY).collect(Collectors.toList());
|
||||
|
||||
@@ -914,7 +914,7 @@ public class CarpetExpression
|
||||
// this feels wrong, but I don't want to mix-in more than I really need to.
|
||||
// also distance adds 0.5 to each point which screws up accurate distance calculations
|
||||
// you shoudn't be using POI with that in mind anyways, so I am not worried about it.
|
||||
PointOfInterest poi = store.get(
|
||||
PointOfInterest poi = store.getInCircle(
|
||||
poiType.getCompletionCondition(),
|
||||
pos,
|
||||
1,
|
||||
@@ -953,7 +953,7 @@ public class CarpetExpression
|
||||
return LazyValue.NULL;
|
||||
}
|
||||
|
||||
Value ret = ListValue.wrap(store.get(condition, pos, (int)radius, status).map( p ->
|
||||
Value ret = ListValue.wrap(store.getInCircle(condition, pos, (int)radius, status).map( p ->
|
||||
ListValue.of(
|
||||
new StringValue(p.getType().toString()),
|
||||
new NumericValue(p.getType().getTicketCount() - ((PointOfInterest_scarpetMixin)p).getFreeTickets()),
|
||||
@@ -1000,7 +1000,7 @@ public class CarpetExpression
|
||||
if (occupancy > 0)
|
||||
{
|
||||
int finalO = occupancy;
|
||||
store.get((tt) -> tt==type, pos, 1, PointOfInterestStorage.OccupationStatus.ANY
|
||||
store.getInSquare((tt) -> tt==type, pos, 1, PointOfInterestStorage.OccupationStatus.ANY
|
||||
).filter(p -> p.getPos().equals(pos)).findFirst().ifPresent(p -> {
|
||||
for (int i=0; i < finalO; i++) ((PointOfInterest_scarpetMixin)p).callReserveTicket();
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@ public class BlockInfo
|
||||
put(BlockSoundGroup.LANTERN , "lantern" );
|
||||
put(BlockSoundGroup.NETHER_STEM, "fungi_stem");
|
||||
put(BlockSoundGroup.NYLIUM, "nylium");
|
||||
put(BlockSoundGroup.FUNGI, "fungi");
|
||||
put(BlockSoundGroup.FUNGUS, "fungus");
|
||||
put(BlockSoundGroup.ROOTS, "roots");
|
||||
put(BlockSoundGroup.SHROOMLIGHT, "shroomlight");
|
||||
put(BlockSoundGroup.WEEPING_VINES, "weeping_vines");
|
||||
|
||||
Reference in new issue
Block a user