All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yungnickyoung.minecraft.yungsapi.world.processor.StructureProcessingContext Maven / Gradle / Ivy

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;
        });
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy