com.yungnickyoung.minecraft.yungsapi.world.processor.StructureProcessingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of YungsApi-1.21-Fabric Show documentation
Show all versions of YungsApi-1.21-Fabric Show documentation
A common API for YUNG's Minecraft mods
The newest version!
package com.yungnickyoung.minecraft.yungsapi.world.processor;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.class_156;
import net.minecraft.class_2338;
import net.minecraft.class_3492;
import net.minecraft.class_3499;
import net.minecraft.class_5425;
public record StructureProcessingContext(class_5425 serverLevelAccessor,
class_3492 structurePlaceSettings, class_2338 structurePiecePos,
class_2338 structurePiecePivotPos,
List rawEntityInfos) {
public StructureProcessingContext(class_5425 serverLevelAccessor,
class_3492 structurePlaceSettings,
class_2338 structurePiecePos,
class_2338 structurePiecePivotPos,
List rawEntityInfos) {
this.serverLevelAccessor = serverLevelAccessor;
this.structurePlaceSettings = structurePlaceSettings;
this.structurePiecePos = structurePiecePos;
this.structurePiecePivotPos = structurePiecePivotPos;
this.rawEntityInfos = class_156.method_656(() -> {
List list = new ArrayList<>(rawEntityInfos.size());
rawEntityInfos.forEach((entityInfo) ->
list.add(new class_3499.class_3502(entityInfo.field_15599, entityInfo.field_15600, entityInfo.field_15598)));
return list;
});
}
}