标签:lam ack lag nal false 改变 ida empty present
lambda中修改变量AtomicBoolean。
//LazyOptional<IFluidHandlerItem>
AtomicBoolean flag = new AtomicBoolean(false);
getFluidHandler(stack).ifPresent(i->{
flag.set(i.drain(Integer.MAX_VALUE, IFluidHandler.FluidAction.SIMULATE).equals(FluidStack.EMPTY));
});
标签:lam ack lag nal false 改变 ida empty present
原文地址:https://www.cnblogs.com/jhy16193335/p/12243692.html