hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
sequencelengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
sequencelengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
sequencelengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
c88bc8c976353d1c975bf01b01c4b541ab19a0ff
1,206
cpp
C++
Practice/2017/2017.11.10/Luogu3371-Dij.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
4
2017-10-31T14:25:18.000Z
2018-06-10T16:10:17.000Z
Practice/2017/2017.11.10/Luogu3371-Dij.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
Practice/2017/2017.11.10/Luogu3371-Dij.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> #include<queue> using namespace std; #define ll long long #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) const int maxN=10010; const int maxM=500010; const int inf=2147483647; class Queue_Data { public: int u,dist; }; bool operator < (Queue_Data A,Queue_Data B) { return A.dist>B.dist; } int n,m,S; int cnt=0,Head[maxN],Next[maxM],V[maxM],W[maxM]; int Dist[maxN]; bool vis[maxN]; priority_queue<Queue_Data> Q; int main() { mem(Head,-1); scanf("%d%d%d",&n,&m,&S); for (int i=1;i<=m;i++) { int u,v,w; scanf("%d%d%d",&u,&v,&w); cnt++;Next[cnt]=Head[u];Head[u]=cnt; V[cnt]=v;W[cnt]=w; } Queue_Data init; for (int i=1;i<=n;i++) Dist[i]=inf; Dist[S]=0; init.u=S;init.dist=0; Q.push(init); do { int u=Q.top().u; Q.pop(); if (vis[u]) continue; vis[u]=1; for (int i=Head[u];i!=-1;i=Next[i]) { int v=V[i]; if ((Dist[u]+W[i]<Dist[v])&&(vis[v]==0)) { Dist[v]=Dist[u]+W[i]; Q.push((Queue_Data){v,Dist[v]}); } } } while (!Q.empty()); for (int i=1;i<=n;i++) printf("%d ",Dist[i]); printf("\n"); return 0; }
17.228571
49
0.563847
SYCstudio
c88ec2f7d1e285bdbaea93d58133cef7a2e597b0
358
cpp
C++
mc/tmc.cpp
curv3d/tmc
2afbceeb8f232b2a4771da7fc1d46489e2e7252a
[ "MIT" ]
14
2018-01-23T08:01:45.000Z
2022-02-13T20:23:39.000Z
mc/tmc.cpp
curv3d/tmc
2afbceeb8f232b2a4771da7fc1d46489e2e7252a
[ "MIT" ]
1
2020-08-02T07:56:00.000Z
2020-08-02T07:56:00.000Z
mc/tmc.cpp
curv3d/tmc
2afbceeb8f232b2a4771da7fc1d46489e2e7252a
[ "MIT" ]
3
2016-06-08T20:34:28.000Z
2021-11-15T20:47:35.000Z
// // // Libs #include <iostream> #include <string> // Project files #include "MarchingCubes.h" int main(int argc, char* argv[]) { // Marcing cubes tmc::MarchingCubes mc; // parameters std::string i_file = ""; std::string objF = ""; std::string offF = ""; const double i0 = 801.3; mc(i0,i_file,true,true,objF,true,offF); return 0; }
14.916667
43
0.620112
curv3d
c88efbda1587fef2bb7135dbd8b03ffd3429f339
642
cpp
C++
src/v8jsiapp/logger.cpp
mganandraj/v8-jsi
aff826a5567a4fd0fd66b3f3af1187400a666fa9
[ "MIT" ]
null
null
null
src/v8jsiapp/logger.cpp
mganandraj/v8-jsi
aff826a5567a4fd0fd66b3f3af1187400a666fa9
[ "MIT" ]
null
null
null
src/v8jsiapp/logger.cpp
mganandraj/v8-jsi
aff826a5567a4fd0fd66b3f3af1187400a666fa9
[ "MIT" ]
null
null
null
#include "logger.h" std::mutex Logger::log_m; void Logger::log(const std::string& s) { std::unique_lock<std::mutex> lock(log_m); std::cout << s << std::endl; } void Logger::log(const char* ch) { std::unique_lock<std::mutex> lock(log_m); std::cout << ch << std::endl; } void Logger::log(const char* prefix, const std::string& s) { std::unique_lock<std::mutex> lock(log_m); std::cout << std::string(prefix) << " >>>>" << s << std::endl; } void Logger::log(const char* prefix, const char* ch) { std::unique_lock<std::mutex> lock(log_m); std::cout << std::string(prefix) << " >>>>" << ch << std::endl; }
27.913043
66
0.596573
mganandraj
c88f97f6d56c8a6001659a8efc886de7c32a0fe9
9,387
hh
C++
TrackerConditions/inc/StrawResponse.hh
lborrel/Offline
db9f647bad3c702171ab5ffa5ccc04c82b3f8984
[ "Apache-2.0" ]
1
2021-06-23T22:09:28.000Z
2021-06-23T22:09:28.000Z
TrackerConditions/inc/StrawResponse.hh
lborrel/Offline
db9f647bad3c702171ab5ffa5ccc04c82b3f8984
[ "Apache-2.0" ]
null
null
null
TrackerConditions/inc/StrawResponse.hh
lborrel/Offline
db9f647bad3c702171ab5ffa5ccc04c82b3f8984
[ "Apache-2.0" ]
null
null
null
#ifndef TrackerConditions_StrawResponse_hh #define TrackerConditions_StrawResponse_hh // // StrawResponse collects the net response features of straws // used in reconstruction // #include <iostream> #include <vector> #include <array> #include "TrackerGeom/inc/Straw.hh" #include "DataProducts/inc/TrkTypes.hh" #include "DataProducts/inc/StrawId.hh" #include "TrackerConditions/inc/StrawDrift.hh" #include "TrackerConditions/inc/StrawElectronics.hh" #include "TrackerConditions/inc/StrawPhysics.hh" #include "Mu2eInterfaces/inc/ProditionsEntity.hh" namespace mu2e { class Straw; class StrawDrift; class StrawId; class StrawResponse : virtual public ProditionsEntity { public: typedef std::shared_ptr<StrawResponse> ptr_t; typedef std::shared_ptr<const StrawResponse> cptr_t; constexpr static const char* cxname = {"StrawResponse"}; explicit StrawResponse( StrawDrift::cptr_t strawDrift, StrawElectronics::cptr_t strawElectronics, StrawPhysics::cptr_t strawPhysics, int eBins, double eBinWidth, std::vector<double> edep, std::vector<double> halfvp, double central, std::vector<double> centres, std::vector<double> resslope, int totTBins, double totTBinWidth, int totEBins, double totEBinWidth, std::vector<double> totdtime, bool usederr, std::vector<double> derr, bool usepderr, std::vector<double> parDriftDocas, std::vector<double> parDriftOffsets, std::vector<double> parDriftRes, double wbuf, double slfac, double errfac, bool usenonlindrift, double lindriftvel, double rres_min, double rres_max, double rres_rad, double mint0doca, double t0shift, std::array<double, StrawId::_nustraws> pmpEnergyScale, double electronicsTimeDelay, double gasGain, std::array<double,StrawElectronics::npaths> analognoise, std::array<double,StrawElectronics::npaths> dVdI, double vsat, double ADCped, double pmpEnergyScaleAvg) : ProditionsEntity(cxname), _strawDrift(strawDrift), _strawElectronics(strawElectronics), _strawPhysics(strawPhysics), _eBins(eBins), _eBinWidth(eBinWidth), _edep(edep), _halfvp(halfvp), _central(central), _centres(centres), _resslope(resslope), _totTBins(totTBins), _totTBinWidth(totTBinWidth), _totEBins(totEBins), _totEBinWidth(totEBinWidth), _totdtime(totdtime), _usederr(usederr), _derr(derr), _usepderr(usepderr), _parDriftDocas(parDriftDocas), _parDriftOffsets(parDriftOffsets), _parDriftRes(parDriftRes), _wbuf(wbuf), _slfac(slfac), _errfac(errfac), _usenonlindrift(usenonlindrift), _lindriftvel(lindriftvel), _rres_min(rres_min), _rres_max(rres_max), _rres_rad(rres_rad), _mint0doca(mint0doca), _t0shift(t0shift), _pmpEnergyScale(pmpEnergyScale), _electronicsTimeDelay(electronicsTimeDelay), _gasGain(gasGain), _analognoise(analognoise), _dVdI(dVdI), _vsat(vsat), _ADCped(ADCped), _pmpEnergyScaleAvg(pmpEnergyScaleAvg) {} virtual ~StrawResponse() {} bool wireDistance(Straw const& straw, double edep, double dt, double& wdist, double& wderr, double& halfpv) const; bool useDriftError() const { return _usederr; } bool useParameterizedDriftError() const { return _usepderr; } bool useNonLinearDrift() const { return _usenonlindrift; } double Mint0doca() const { return _mint0doca;} double strawGain() const { return _strawPhysics->strawGain();} double halfPropV(StrawId strawId, double kedep) const; // this is used to update values from the database void setOffsets( std::array<double, StrawId::_nupanels> timeOffsetPanel, std::array<double, StrawId::_nustraws> timeOffsetStrawHV, std::array<double, StrawId::_nustraws> timeOffsetStrawCal ) { _timeOffsetPanel = timeOffsetPanel; _timeOffsetStrawHV = timeOffsetStrawHV; _timeOffsetStrawCal = timeOffsetStrawCal; } double driftDistanceToTime(StrawId strawId, double ddist, double phi) const; double driftTimeToDistance(StrawId strawId, double dtime, double phi) const; double driftInstantSpeed(StrawId strawId, double ddist, double phi) const; double driftConstantSpeed() const {return _lindriftvel;} // constant value used for annealing errors, should be close to average velocity double driftTimeMaxError() const {return _rres_max/_lindriftvel;} // constant value used for initialization double driftDistanceError(StrawId strawId, double ddist, double phi, double DOCA) const; double driftDistanceOffset(StrawId strawId, double ddist, double phi, double DOCA) const; double driftTimeError(StrawId strawId, double ddist, double phi, double DOCA) const; double driftTimeOffset(StrawId strawId, double ddist, double phi, double DOCA) const; double peakMinusPedestalEnergyScale() const { return _pmpEnergyScaleAvg; } double peakMinusPedestalEnergyScale(StrawId sid) const { return _pmpEnergyScale[sid.uniqueStraw()]; } double analogNoise(StrawElectronics::Path ipath) const { return _analognoise[ipath]; } // incoherent noise double fallTime(StrawElectronics::Path ipath) const { return 22.;} //FIXME double currentToVoltage(StrawElectronics::Path ipath) const { return _dVdI[ipath]; } double saturatedResponse(double vlin) const; double ADCPedestal() const { return _ADCped; }; double t0shift() const { return _t0shift; } // converts times from TDC times to time relative to Event Window // removes channel to channel delays and overall electronics time delay void calibrateTimes(TrkTypes::TDCValues const& tdc, TrkTypes::TDCTimes &times, const StrawId &id) const; // approximate drift distatnce from ToT value double driftTime(Straw const& straw, double tot, double edep) const; double pathLength(Straw const& straw, double tot) const; // double pathLength(StrawHit const& strawhit, double theta) const; void print(std::ostream& os) const; void printVector(std::ostream& os, std::string const& name, std::vector<double> const& a) const; template<typename T, size_t SIZE> void printArray(std::ostream& os, std::string const& name, std::array<T,SIZE> const& a) const; // StrawElectronics functions we are allowed to use inline size_t nADCPreSamples() const { return _strawElectronics->nADCPreSamples(); } inline double adcLSB() const { return _strawElectronics->adcLSB(); } inline double totLSB() const { return _strawElectronics->totLSB(); } inline double adcPeriod() const { return _strawElectronics->adcPeriod(); } inline uint16_t maxADC() const { return _strawElectronics->maxADC(); } // StrawPhysics functions we are allowed to use inline double ionizationEnergy(double q) const { return _strawPhysics->ionizationEnergy(q); } double wpRes(double kedep, double wdist) const; private: // helper functions static double PieceLine(std::vector<double> const& xvals, std::vector<double> const& yvals, double xval); StrawDrift::cptr_t _strawDrift; StrawElectronics::cptr_t _strawElectronics; StrawPhysics::cptr_t _strawPhysics; // parametric data for calibration functions // TD reconstruction uses 1/2 the propagation velocity and depends on the // Dependence on position and straw length still needed FIXME! // (reconstructed) energy deposit bool _evenBins; int _eBins; double _eBinWidth; std::vector<double> _edep; // energy deposit boundaries std::vector<double> _halfvp; // effective 1/2 propagation velocity by edep double _central; // max wire distance for central wire region std::vector<double> _centres; // wire center resolution by edep std::vector<double> _resslope; // resolution slope vs position by edep size_t _totTBins; double _totTBinWidth; size_t _totEBins; double _totEBinWidth; std::vector<double> _totdtime; bool _usederr; // flag to use the doca-dependent calibration of the drift error std::vector<double> _derr; // parameters describing the drift error function bool _usepderr; // flag to use calculated version of drift error calculation std::vector<double> _parDriftDocas; std::vector<double> _parDriftOffsets; std::vector<double> _parDriftRes; double _wbuf; // buffer at the edge of the straws, in terms of sigma double _slfac; // factor of straw length to set 'missing cluster' hits double _errfac; // error inflation for 'missing cluster' hits bool _usenonlindrift; double _lindriftvel; double _rres_min; double _rres_max; double _rres_rad; double _mint0doca; // minimum doca for t0 calculation. Note this is a SIGNED QUANTITITY double _t0shift; std::array<double, StrawId::_nustraws> _pmpEnergyScale; std::array<double, StrawId::_nupanels> _timeOffsetPanel; std::array<double, StrawId::_nustraws> _timeOffsetStrawHV; std::array<double, StrawId::_nustraws> _timeOffsetStrawCal; double _electronicsTimeDelay; double _gasGain; std::array<double,StrawElectronics::npaths> _analognoise; //noise (mVolt) from the straw itself std::array<double,StrawElectronics::npaths> _dVdI; // scale factor between charge and voltage (milliVolts/picoCoulombs) double _vsat; double _ADCped; double _pmpEnergyScaleAvg; }; } #endif
47.409091
141
0.735166
lborrel
c89248bf62a79ad2f47c29d90aaac243f3ef9eb0
1,936
cpp
C++
Plugins/LeapMotion/Source/LeapMotion/Private/LeapGesture.cpp
vrmad1/UE4-LeapMotionPlugin
1cbbd4fe30bb2b0c7b6f1a641eb3afb69cab49ae
[ "MIT" ]
246
2015-01-03T03:29:03.000Z
2021-11-17T11:22:58.000Z
Plugins/LeapMotion/Source/LeapMotion/Private/LeapGesture.cpp
vrmad1/UE4-LeapMotionPlugin
1cbbd4fe30bb2b0c7b6f1a641eb3afb69cab49ae
[ "MIT" ]
27
2015-01-07T04:57:47.000Z
2021-11-23T17:14:10.000Z
Plugins/LeapMotion/Source/LeapMotion/Private/LeapGesture.cpp
vrmad1/UE4-LeapMotionPlugin
1cbbd4fe30bb2b0c7b6f1a641eb3afb69cab49ae
[ "MIT" ]
88
2015-01-08T15:35:14.000Z
2021-04-14T02:27:57.000Z
#include "LeapMotionPrivatePCH.h" class PrivateGesture { public: Leap::Gesture Gesture; }; ULeapGesture::ULeapGesture(const FObjectInitializer &ObjectInitializer) : UObject(ObjectInitializer), Private(new PrivateGesture()) { } ULeapGesture::~ULeapGesture() { delete Private; } ULeapFrame* ULeapGesture::Frame() { if (PFrame == nullptr) { PFrame = NewObject<ULeapFrame>(this); } PFrame->SetFrame(Private->Gesture.frame()); return (PFrame); } ULeapHandList* ULeapGesture::Hands() { if (PHands == nullptr) { PHands = NewObject<ULeapHandList>(this); } PHands->SetHandList(Private->Gesture.hands()); return (PHands); } ULeapPointableList* ULeapGesture::Pointables() { if (PPointables == nullptr) { PPointables = NewObject<ULeapPointableList>(this); } PPointables->SetPointableList(Private->Gesture.pointables()); return (PPointables); } LeapGestureState gestureState(Leap::Gesture::State State) { switch (State) { case Leap::Gesture::STATE_START: return (GESTURE_STATE_START); case Leap::Gesture::STATE_UPDATE: return (GESTURE_STATE_UPDATE); case Leap::Gesture::STATE_STOP: return (GESTURE_STATE_STOP); default: return (GESTURE_STATE_INVALID); } } LeapGestureType gestureType(Leap::Gesture::Type Type) { switch (Type) { case Leap::Gesture::TYPE_CIRCLE: return (GESTURE_TYPE_CIRCLE); case Leap::Gesture::TYPE_KEY_TAP: return (GESTURE_TYPE_KEY_TAP); case Leap::Gesture::TYPE_SCREEN_TAP: return (GESTURE_TYPE_SCREEN_TAP); case Leap::Gesture::TYPE_SWIPE: return (GESTURE_TYPE_SWIPE); default: return (GESTURE_TYPE_INVALID); } } void ULeapGesture::SetGesture(const Leap::Gesture &Gesture) { Private->Gesture = Gesture; Duration = Private->Gesture.duration(); DurationSeconds = Private->Gesture.durationSeconds(); Id = Private->Gesture.id(); IsValid = Private->Gesture.isValid(); State = gestureState(Private->Gesture.state()); Type = gestureType(Private->Gesture.type()); }
21.511111
131
0.742252
vrmad1
c892f3b7eeaeca94f34c24edad0a012e691658cd
1,241
cpp
C++
src/service.cpp
The-Garlic-Network/old
412b331c1ef484eef54e7da065fb756e0420aa16
[ "MIT" ]
null
null
null
src/service.cpp
The-Garlic-Network/old
412b331c1ef484eef54e7da065fb756e0420aa16
[ "MIT" ]
null
null
null
src/service.cpp
The-Garlic-Network/old
412b331c1ef484eef54e7da065fb756e0420aa16
[ "MIT" ]
null
null
null
/** * service.cpp - Точка входа в программу. * * @mrrva - 2019 */ #include "include/encryption.hpp" #include "include/network.hpp" #include "include/storage.hpp" #include "include/struct.hpp" int main() { using tgnstruct::secret_key; using tgnstruct::public_key; using tgnstorage::db; std::string pub = db.get_var("PUBLIC_KEY"); std::string sec = db.get_var("SECRET_KEY"); const short hs = HASHSIZE * 2; if (pub.length() == hs && sec.length() == hs) { public_key = hex2bin<hs>(pub); secret_key = hex2bin<hs>(sec); } else { tgnencryption::new_keys(); pub = bin2hex<HASHSIZE>(public_key); sec = bin2hex<HASHSIZE>(secret_key); db.set_var("PUBLIC_KEY", pub); db.set_var("SECRET_KEY", sec); } tgnstorage::nodes.select(); if (tgnstruct::nodes.size() == 0) { std::cout << "[E] Node list is empty. Please " << "download database with current list " << "of nodes.\n"; return 1; } if (!tgnnetwork::socket.start()) { std::cout << "[E] socket.start.\n"; return 1; } while (true) { tgnstorage::neighbors.autocheck(); tgnstorage::clients.autoremove(); tgnstorage::garlic.autoremove(); tgnstorage::nodes.autocheck(); tgnstorage::routes.autoremove(); } tgnnetwork::recv.join(); return 0; }
20.683333
48
0.65834
The-Garlic-Network
c89855adcd4c33f594f70db3cd5c6d089b808a81
5,911
cpp
C++
Gem/Code/Source/SkinnedMeshExampleComponent.cpp
Bindless-Chicken/o3de-atom-sampleviewer
13b11996079675445ce4e321f53c3ac79e01702d
[ "Apache-2.0", "MIT" ]
null
null
null
Gem/Code/Source/SkinnedMeshExampleComponent.cpp
Bindless-Chicken/o3de-atom-sampleviewer
13b11996079675445ce4e321f53c3ac79e01702d
[ "Apache-2.0", "MIT" ]
null
null
null
Gem/Code/Source/SkinnedMeshExampleComponent.cpp
Bindless-Chicken/o3de-atom-sampleviewer
13b11996079675445ce4e321f53c3ac79e01702d
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <SkinnedMeshExampleComponent.h> #include <SampleComponentManager.h> #include <SampleComponentConfig.h> #include <Automation/ScriptableImGui.h> #include <Atom/Feature/SkinnedMesh/SkinnedMeshInputBuffers.h> #include <Atom/Component/DebugCamera/NoClipControllerComponent.h> #include <Atom/Component/DebugCamera/NoClipControllerBus.h> #include <AzCore/Script/ScriptTimePoint.h> #include <Atom/RPI.Public/View.h> #include <Atom/RPI.Public/Image/StreamingImage.h> #include <Atom/RPI.Reflect/Asset/AssetUtils.h> #include <Atom/RPI.Reflect/Model/ModelAsset.h> #include <Atom/RPI.Reflect/Material/MaterialAsset.h> #include <RHI/BasicRHIComponent.h> namespace AtomSampleViewer { void SkinnedMeshExampleComponent::Reflect(AZ::ReflectContext* context) { if (AZ::SerializeContext* serializeContext = azrtti_cast<AZ::SerializeContext*>(context)) { serializeContext->Class < SkinnedMeshExampleComponent, AZ::Component>() ->Version(0) ; } } void SkinnedMeshExampleComponent::Activate() { CreateSkinnedMeshContainer(); m_skinnedMeshContainer->SetActiveSkinnedMeshCount(1); AZ::TickBus::Handler::BusConnect(); m_imguiSidebar.Activate(); ConfigureCamera(); AddImageBasedLight(); } void SkinnedMeshExampleComponent::CreatePlaneObject() { auto meshAsset = AZ::RPI::AssetUtils::GetAssetByProductPath<AZ::RPI::ModelAsset>("objects/plane.azmodel"); m_planeMeshHandle = GetMeshFeatureProcessor()->AcquireMesh(AZ::Render::MeshHandleDescriptor{ meshAsset }); GetMeshFeatureProcessor()->SetTransform(m_planeMeshHandle, AZ::Transform::CreateIdentity()); } void SkinnedMeshExampleComponent::Deactivate() { m_skinnedMeshContainer = nullptr; AZ::TickBus::Handler::BusDisconnect(); m_imguiSidebar.Deactivate(); GetMeshFeatureProcessor()->ReleaseMesh(m_planeMeshHandle); m_defaultIbl.Reset(); } void SkinnedMeshExampleComponent::AddImageBasedLight() { m_defaultIbl.Init(m_scene); } void SkinnedMeshExampleComponent::ConfigureCamera() { AZ::Debug::CameraControllerRequestBus::Event(GetCameraEntityId(), &AZ::Debug::CameraControllerRequestBus::Events::Enable, azrtti_typeid<AZ::Debug::NoClipControllerComponent>()); AZ::Debug::NoClipControllerRequestBus::Event(GetCameraEntityId(), &AZ::Debug::NoClipControllerRequestBus::Events::SetPosition, AZ::Vector3(0.0f, -1.0f, 1.0f)); AZ::Debug::NoClipControllerRequestBus::Event(GetCameraEntityId(), &AZ::Debug::NoClipControllerRequestBus::Events::SetPitch, -0.8f); } void SkinnedMeshExampleComponent::OnTick(float deltaTime, [[maybe_unused]] AZ::ScriptTimePoint timePoint) { m_runTime += deltaTime; DrawSidebar(); if (!m_useFixedTime) { m_skinnedMeshContainer->UpdateAnimation(m_runTime, m_useOutOfSyncBoneAnimation); } if (m_drawBones) { m_skinnedMeshContainer->DrawBones(); } } void SkinnedMeshExampleComponent::DrawSidebar() { if (!m_imguiSidebar.Begin()) { return; } SkinnedMeshConfig config = m_skinnedMeshContainer->GetSkinnedMeshConfig(); bool configWasModified = false; // Imgui limits slider range to half the natural range of the type float segmentCountFloat = static_cast<float>(config.m_segmentCount); configWasModified |= ScriptableImGui::SliderFloat("Segments Per-Mesh", &segmentCountFloat, 2.0f, 2048.0f, "%.0f", ImGuiSliderFlags_Logarithmic); configWasModified |= ScriptableImGui::SliderInt("Vertices Per-Segment", &config.m_verticesPerSegment, 4, 2048); configWasModified |= ScriptableImGui::SliderInt("Bones Per-Mesh", &config.m_boneCount, 4, 256); configWasModified |= ScriptableImGui::SliderInt("Influences Per-Vertex", &config.m_influencesPerVertex, 4, 4); configWasModified |= ScriptableImGui::SliderInt("Sub-mesh count", &config.m_subMeshCount, 1, 128); if (configWasModified) { config.m_segmentCount = static_cast<int>(segmentCountFloat); m_skinnedMeshContainer->SetSkinnedMeshConfig(config); } bool animationWasModified = configWasModified; animationWasModified |= ScriptableImGui::Checkbox("Use Fixed Animation Time", &m_useFixedTime); animationWasModified |= ScriptableImGui::SliderFloat("Fixed Animation Time", &m_fixedAnimationTime, 0.0f, 20.0f); animationWasModified |= ScriptableImGui::Checkbox("Use Out of Sync Bone Animation", &m_useOutOfSyncBoneAnimation); if (m_useFixedTime && animationWasModified) { m_skinnedMeshContainer->UpdateAnimation(m_fixedAnimationTime, m_useOutOfSyncBoneAnimation); } ScriptableImGui::Checkbox("Draw bones", &m_drawBones); m_imguiSidebar.End(); } void SkinnedMeshExampleComponent::CreateSkinnedMeshContainer() { const auto skinnedMeshFeatureProcessor = m_scene->GetFeatureProcessor<AZ::Render::SkinnedMeshFeatureProcessorInterface>(); const auto meshFeatureProcessor = m_scene->GetFeatureProcessor<AZ::Render::MeshFeatureProcessorInterface>(); // Default settings for the sample SkinnedMeshConfig config; config.m_segmentCount = 10; config.m_verticesPerSegment = 7; config.m_boneCount = 4; config.m_influencesPerVertex = 4; m_skinnedMeshContainer = AZStd::make_unique<SkinnedMeshContainer>(skinnedMeshFeatureProcessor, meshFeatureProcessor, config); } }
39.671141
167
0.705464
Bindless-Chicken
c89a30e63b180a83d6fa94a0c3359de41219ed24
605
cpp
C++
src/Search/InAreaSearchSession.cpp
jmakovicka/OsmAnd-core
d18f57bb123b6c6ad0adbed0c2f4419d0e6a6610
[ "MIT" ]
null
null
null
src/Search/InAreaSearchSession.cpp
jmakovicka/OsmAnd-core
d18f57bb123b6c6ad0adbed0c2f4419d0e6a6610
[ "MIT" ]
null
null
null
src/Search/InAreaSearchSession.cpp
jmakovicka/OsmAnd-core
d18f57bb123b6c6ad0adbed0c2f4419d0e6a6610
[ "MIT" ]
null
null
null
#include "InAreaSearchSession.h" #include "InAreaSearchSession_P.h" OsmAnd::InAreaSearchSession::InAreaSearchSession(const QList< std::shared_ptr<const ISearchEngine::IDataSource> >& dataSources) : BaseSearchSession(new InAreaSearchSession_P(this), dataSources) , _p(std::static_pointer_cast<InAreaSearchSession_P>(BaseSearchSession::_p.shared_ptr())) { } OsmAnd::InAreaSearchSession::~InAreaSearchSession() { } void OsmAnd::InAreaSearchSession::setArea(const AreaI64& area) { _p->setArea(area); } OsmAnd::AreaI64 OsmAnd::InAreaSearchSession::getArea() const { return _p->getArea(); }
26.304348
127
0.771901
jmakovicka
c89af4bba658a9c079a4764f48078d18630417df
13,491
cpp
C++
src/openms/source/CHEMISTRY/NASequence.cpp
avasq011/FinalProject_OpenMS_76ers
6c9e2c295df6ec0eb296a3badfcdff245a869d59
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
1
2019-07-15T20:50:22.000Z
2019-07-15T20:50:22.000Z
src/openms/source/CHEMISTRY/NASequence.cpp
avasq011/FinalProject_OpenMS_76ers
6c9e2c295df6ec0eb296a3badfcdff245a869d59
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
150
2017-09-05T09:43:12.000Z
2020-02-03T10:07:36.000Z
src/openms/source/CHEMISTRY/NASequence.cpp
avasq011/FinalProject_OpenMS_76ers
6c9e2c295df6ec0eb296a3badfcdff245a869d59
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
2
2018-04-02T18:41:20.000Z
2018-08-11T21:39:24.000Z
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universitaet Berlin 2002-2018. // // This software is released under a three-clause BSD license: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of any author or any participating institution // may be used to endorse or promote products derived from this software // without specific prior written permission. // For a full list of authors, refer to the file AUTHORS. // -------------------------------------------------------------------------- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // -------------------------------------------------------------------------- // $Maintainer: Samuel Wein $ // $Authors: Samuel Wein, Timo Sachsenberg, Hendrik Weisser $ // -------------------------------------------------------------------------- #include <OpenMS/KERNEL/StandardTypes.h> #include <OpenMS/CHEMISTRY/NASequence.h> #include <OpenMS/CHEMISTRY/RibonucleotideDB.h> #include <OpenMS/CONCEPT/Constants.h> #include <OpenMS/CONCEPT/LogStream.h> #include <OpenMS/CONCEPT/Macros.h> #include <map> #include <string> using namespace std; namespace OpenMS { NASequence::NASequence(vector<const Ribonucleotide*> seq, const RibonucleotideChainEnd* five_prime, const RibonucleotideChainEnd* three_prime) { seq_ = seq; five_prime_ = five_prime; three_prime_ = three_prime; } bool NASequence::operator==(const NASequence& rhs) const { return (tie(seq_, five_prime_, three_prime_) == tie(rhs.seq_, rhs.five_prime_, rhs.three_prime_)); } bool NASequence::operator!=(const NASequence& rhs) const { return !(operator==(rhs)); } bool NASequence::operator<(const NASequence& rhs) const { // can't use std::tie here as we might prefer sorting by string instead of pointer address // compare 5' mod if (five_prime_ != rhs.five_prime_) return (five_prime_ < rhs.five_prime_); // compare sequence length if (seq_.size() != rhs.seq_.size()) return (seq_.size() < rhs.seq_.size()); // compare pointers. If different, we compare the more expensive code (string) for (size_t i = 0; i != seq_.size(); ++i) { if (seq_[i] != rhs.seq_[i]) { return (seq_[i]->getCode() < rhs.seq_[i]->getCode()); } } // compare 3' mod if (three_prime_ != rhs.three_prime_) { return (three_prime_ < rhs.three_prime_); } // exactly equal return false; } void NASequence::setSequence(const vector<const Ribonucleotide*>& seq) { seq_ = seq; } bool NASequence::empty() const { return seq_.empty(); } NASequence NASequence::getPrefix(Size length) const { if (length >= seq_.size()) { throw Exception::IndexOverflow(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, length, seq_.size() - 1); } return NASequence({seq_.begin(), seq_.begin() + length}, five_prime_, nullptr); } NASequence NASequence::getSuffix(Size length) const { if (length >= seq_.size()) { throw Exception::IndexOverflow(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, length, seq_.size() - 1); } return NASequence({seq_.end() - length, seq_.end()}, nullptr, three_prime_); } NASequence NASequence::getSubsequence(Size start, Size length) const { if (start >= size()) { throw Exception::IndexOverflow(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, start, size()); } if (length > size() - start) length = size() - start; const RibonucleotideChainEnd* five_prime = ((start == 0) ? five_prime_ : nullptr); const RibonucleotideChainEnd* three_prime = ((start + length == size()) ? three_prime_ : nullptr); vector<const Ribonucleotide*>::const_iterator it = seq_.begin() + start; return NASequence({it, it + length}, five_prime, three_prime); } EmpiricalFormula NASequence::getFormula(NASFragmentType type, Int charge) const { static const EmpiricalFormula H_form = EmpiricalFormula("H"); static const EmpiricalFormula internal_to_full = EmpiricalFormula("H2O"); // static const EmpiricalFormula five_prime_to_full = EmpiricalFormula("HPO3"); // static const EmpiricalFormula three_prime_to_full = EmpiricalFormula(""); static const EmpiricalFormula a_ion_to_full = EmpiricalFormula("H-2O-1"); static const EmpiricalFormula b_ion_to_full = EmpiricalFormula(""); static const EmpiricalFormula c_ion_to_full = EmpiricalFormula("H-1PO2"); static const EmpiricalFormula d_ion_to_full = EmpiricalFormula("HPO3"); static const EmpiricalFormula w_ion_to_full = EmpiricalFormula("HPO3"); static const EmpiricalFormula x_ion_to_full = EmpiricalFormula("H-1PO2"); static const EmpiricalFormula y_ion_to_full = EmpiricalFormula(""); static const EmpiricalFormula z_ion_to_full = EmpiricalFormula("H-2O-1"); static const EmpiricalFormula aminusB_ion_to_full = EmpiricalFormula("H-4O-2"); static const EmpiricalFormula phosphate_form = EmpiricalFormula("HPO3"); // static const EmpiricalFormula abasicform_RNA = EmpiricalFormula("C5H8O4"); // static const EmpiricalFormula abasicform_DNA = EmpiricalFormula("C5H7O5P"); if (seq_.empty()) return EmpiricalFormula(); EmpiricalFormula our_form; // Add all the ribonucleotide masses for (const auto& i : seq_) { our_form += i->getFormula(); } // phosphates linking nucleosides: our_form += (phosphate_form - internal_to_full) * (seq_.size() - 1); EmpiricalFormula local_three_prime, local_five_prime; // Make local copies of the formulas for the terminal mods so we don't get into trouble dereferencing nullptrs if (three_prime_ != nullptr) { local_three_prime = three_prime_->getFormula() - H_form; } if (five_prime_ != nullptr) { local_five_prime = five_prime_->getFormula() - H_form; } switch (type) { case Full: return our_form + (H_form * charge) + local_five_prime + local_three_prime; // case FivePrime: // return our_form - five_prime_to_full + OH_form + (H_form * charge) + local_three_prime; case AminusB: return our_form + (H_form * charge) + local_five_prime + aminusB_ion_to_full - seq_.back()->getFormula() + seq_.back()->getBaselossFormula(); case AIon: return our_form + (H_form * charge) + local_five_prime + a_ion_to_full; case BIon: return our_form + (H_form * charge) + local_five_prime + b_ion_to_full; case CIon: return our_form + (H_form * charge) + local_five_prime + c_ion_to_full; case DIon: return our_form + (H_form * charge) + local_five_prime + d_ion_to_full; case WIon: return our_form + (H_form * charge) + local_three_prime + w_ion_to_full; case XIon: return our_form + (H_form * charge) + local_three_prime + x_ion_to_full; case YIon: return our_form + (H_form * charge) + local_three_prime + y_ion_to_full; case ZIon: return our_form + (H_form * charge) + local_three_prime + z_ion_to_full; default: OPENMS_LOG_ERROR << "NASequence::getFormula: unsupported NASFragmentType" << endl; } return our_form; } void NASequence::set(size_t index, const Ribonucleotide* r) { seq_[index] = r; } bool NASequence::hasFivePrimeMod() const { return (five_prime_ != nullptr); } void NASequence::setFivePrimeMod(const RibonucleotideChainEnd* r) { five_prime_= r; } const RibonucleotideChainEnd* NASequence::getFivePrimeMod() const { return five_prime_; } bool NASequence::hasThreePrimeMod() const { return (three_prime_ != nullptr); } void NASequence::setThreePrimeMod(const RibonucleotideChainEnd* r) { three_prime_= r; } const RibonucleotideChainEnd* NASequence::getThreePrimeMod() const { return three_prime_; } double NASequence::getMonoWeight(NASFragmentType type, Int charge) const { return getFormula(type, charge).getMonoWeight(); } double NASequence::getAverageWeight(NASFragmentType type, Int charge) const { return getFormula(type, charge).getAverageWeight(); } size_t NASequence::size() const { return seq_.size(); } NASequence NASequence::fromString(const char* s) { NASequence nas; parseString_(String(s), nas); return nas; } NASequence NASequence::fromString(const String& s) { NASequence nas; parseString_(s, nas); return nas; } string NASequence::toString() const { string s; if (five_prime_) { const String& code = five_prime_->getCode(); if (code == "5'-p") { s = "p"; } else { s = "[" + code + "]"; } } for (const auto& r : seq_) { const String& code = r->getCode(); if (code.size() == 1) { s += code; } else { s += "[" + code + "]"; // add brackets around non-standard ribos } } if (three_prime_) { const String& code = three_prime_->getCode(); if (code == "3'-p") { s += "p"; } else { s += "[" + code + "]"; } } return s; } void NASequence::clear() { seq_.clear(); three_prime_ = nullptr; five_prime_ = nullptr; } void NASequence::parseString_(const String& s, NASequence& nas) { nas.clear(); if (s.empty()) return; static RibonucleotideDB* rdb = RibonucleotideDB::getInstance(); String::ConstIterator str_it = s.begin(); if (*str_it == 'p') // special case for 5' phosphate { nas.setFivePrimeMod(rdb->getRibonucleotide("5'-p")); ++str_it; } String::ConstIterator stop = s.end(); if ((s.size() > 1) && (s.back() == 'p')) // special case for 3' phosphate { nas.setThreePrimeMod(rdb->getRibonucleotide("3'-p")); --stop; } for (; str_it != stop; ++str_it) { // skip spaces if (*str_it == ' ') continue; // default case: add unmodified, standard ribonucleotide if (*str_it != '[') { try { ConstRibonucleotidePtr r = rdb->getRibonucleotide(string(1, *str_it)); nas.seq_.push_back(r); } catch (Exception::ElementNotFound) { String msg = "Cannot convert string to nucleic acid sequence: invalid character '" + String(*str_it) + "'"; throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, s, msg); } } else // if (*str_it == '[') // non-standard ribonucleotide { // parse modified ribonucleotide and add it to the sequence: str_it = parseMod_(str_it, s, nas); } } } String::ConstIterator NASequence::parseMod_( const String::ConstIterator str_it, const String& str, NASequence& nas) { static RibonucleotideDB* rdb = RibonucleotideDB::getInstance(); OPENMS_PRECONDITION(*str_it == '[', "Modification must start with '['."); String::ConstIterator mod_start(str_it); String::ConstIterator mod_end(++mod_start); while ((mod_end != str.end()) && (*mod_end != ']')) ++mod_end; // advance to closing bracket string mod(mod_start, mod_end); if (mod_end == str.end()) { throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, str, "Cannot convert string to modified ribonucleotide: missing ']'"); } ConstRibonucleotidePtr r = rdb->getRibonucleotide(mod); // @TODO: check if position is actually 5'/3' and there's no mod already if (r->getTermSpecificity() == Ribonucleotide::FIVE_PRIME) { nas.setFivePrimeMod(r); } else if (r->getTermSpecificity() == Ribonucleotide::THREE_PRIME) { nas.setThreePrimeMod(r); } else { nas.seq_.push_back(r); } return mod_end; } OPENMS_DLLAPI ostream& operator<<(ostream& os, const NASequence& seq) { return (os << seq.toString()); } }
31.521028
148
0.632051
avasq011
c89bae18739e1796abedb0132ebdd6f89f5eeea1
1,008
hpp
C++
include/soralog/impl/fallback_configurator.hpp
GeniusVentures/soralog
53bc6eeba84ad35e018fe4e94f6a8cc74284aa44
[ "Apache-2.0" ]
2
2022-03-12T14:30:07.000Z
2022-03-12T21:16:20.000Z
include/soralog/impl/fallback_configurator.hpp
GeniusVentures/soralog
53bc6eeba84ad35e018fe4e94f6a8cc74284aa44
[ "Apache-2.0" ]
6
2021-03-17T13:24:01.000Z
2022-03-09T12:52:27.000Z
include/soralog/impl/fallback_configurator.hpp
GeniusVentures/soralog
53bc6eeba84ad35e018fe4e94f6a8cc74284aa44
[ "Apache-2.0" ]
4
2021-03-15T09:06:43.000Z
2022-03-12T14:04:42.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef SORALOG_FALLBACKCONFIGURATOR #define SORALOG_FALLBACKCONFIGURATOR #include <soralog/configurator.hpp> #include <soralog/logging_system.hpp> namespace soralog { /** * @class FallbackConfigurator * @brief Fallback configurator of Logging System. Creates just one sink (to * console) and default group '*'. Constructor accepts detalisation level and * flag to shitch on color in console */ class FallbackConfigurator : public Configurator { public: explicit FallbackConfigurator(Level level = Level::INFO, bool with_color = false) : level_(level), with_color_(with_color) {} ~FallbackConfigurator() override = default; Result applyOn(LoggingSystem &system) const override; private: Level level_ = Level::INFO; bool with_color_ = false; }; } // namespace soralog #endif // SORALOG_FALLBACKCONFIGURATOR
25.846154
79
0.703373
GeniusVentures
c89f022c36aed709be3b248cba420d23b9e14297
1,484
hpp
C++
Application/src/vendor/include/glm/ext/vector_uint2_precision.hpp
ankitpaudel20/opengl
3d32f466c6f7b0d53c17d672a29800bc46a888ef
[ "MIT" ]
2
2021-08-16T16:55:01.000Z
2021-08-16T16:57:12.000Z
Application/src/vendor/include/glm/ext/vector_uint2_precision.hpp
ankitpaudel20/opengl
3d32f466c6f7b0d53c17d672a29800bc46a888ef
[ "MIT" ]
3
2021-08-10T16:32:47.000Z
2021-08-10T16:46:36.000Z
Application/src/vendor/include/glm/ext/vector_uint2_precision.hpp
ankitpaudel20/opengl
3d32f466c6f7b0d53c17d672a29800bc46a888ef
[ "MIT" ]
2
2021-11-30T11:09:44.000Z
2021-11-30T11:11:16.000Z
/// @ref core /// @file glm/ext/vector_uint2_precision.hpp #pragma once #include "../detail/type_vec2.hpp" namespace glm { /// @addtogroup core_vector_precision /// @{ /// 2 components vector of high qualifier unsigned integer numbers. /// /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a> typedef vec<2, unsigned int, highp> highp_uvec2; /// 2 components vector of medium qualifier unsigned integer numbers. /// /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a> typedef vec<2, unsigned int, mediump> mediump_uvec2; /// 2 components vector of low qualifier unsigned integer numbers. /// /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a> /// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.7.2 Precision Qualifier</a> typedef vec<2, unsigned int, lowp> lowp_uvec2; /// @} }//namespace glm
46.375
146
0.671159
ankitpaudel20
c8a212109e888485461402adfa353d639624e2af
10,044
cpp
C++
test/rocprim/test_hip_device_merge_sort.cpp
arsenm/rocPRIM
02d6006a7951c53ecfd245200d58809d3eee0b48
[ "MIT" ]
null
null
null
test/rocprim/test_hip_device_merge_sort.cpp
arsenm/rocPRIM
02d6006a7951c53ecfd245200d58809d3eee0b48
[ "MIT" ]
null
null
null
test/rocprim/test_hip_device_merge_sort.cpp
arsenm/rocPRIM
02d6006a7951c53ecfd245200d58809d3eee0b48
[ "MIT" ]
null
null
null
// MIT License // // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #include <iostream> #include <vector> #include <algorithm> // Google Test #include <gtest/gtest.h> // HIP API #include <hip/hip_runtime.h> #include <hip/hip_hcc.h> // rocPRIM API #include <rocprim/rocprim.hpp> #include "test_utils.hpp" #define HIP_CHECK(error) \ ASSERT_EQ(static_cast<hipError_t>(error),hipSuccess) namespace rp = rocprim; // Params for tests template< class KeyType, class ValueType = KeyType > struct DeviceSortParams { using key_type = KeyType; using value_type = ValueType; }; // --------------------------------------------------------- // Test for reduce ops taking single input value // --------------------------------------------------------- template<class Params> class RocprimDeviceSortTests : public ::testing::Test { public: using key_type = typename Params::key_type; using value_type = typename Params::value_type; const bool debug_synchronous = false; }; typedef ::testing::Types< DeviceSortParams<int>, DeviceSortParams<test_utils::custom_test_type<int>>, DeviceSortParams<unsigned long>, DeviceSortParams<float, int>, DeviceSortParams<int, float>, DeviceSortParams<int, test_utils::custom_test_type<float>> > RocprimDeviceSortTestsParams; std::vector<size_t> get_sizes() { std::vector<size_t> sizes = { 1, 10, 53, 211, 1024, 2048, 5096, 34567, (1 << 17) - 1220 }; const std::vector<size_t> random_sizes = test_utils::get_random_data<size_t>(2, 1, 16384); sizes.insert(sizes.end(), random_sizes.begin(), random_sizes.end()); std::sort(sizes.begin(), sizes.end()); return sizes; } TYPED_TEST_CASE(RocprimDeviceSortTests, RocprimDeviceSortTestsParams); TYPED_TEST(RocprimDeviceSortTests, SortKey) { using key_type = typename TestFixture::key_type; const bool debug_synchronous = TestFixture::debug_synchronous; const std::vector<size_t> sizes = get_sizes(); for(auto size : sizes) { hipStream_t stream = 0; // default SCOPED_TRACE(testing::Message() << "with size = " << size); // Generate data std::vector<key_type> input = test_utils::get_random_data<key_type>(size, 0, size); std::vector<key_type> output(size, 0); key_type * d_input; key_type * d_output; HIP_CHECK(hipMalloc(&d_input, input.size() * sizeof(key_type))); HIP_CHECK(hipMalloc(&d_output, output.size() * sizeof(key_type))); HIP_CHECK( hipMemcpy( d_input, input.data(), input.size() * sizeof(key_type), hipMemcpyHostToDevice ) ); HIP_CHECK(hipDeviceSynchronize()); // Calculate expected results on host std::vector<key_type> expected(input); std::sort( expected.begin(), expected.end() ); // compare function ::rocprim::less<key_type> lesser_op; // temp storage size_t temp_storage_size_bytes; void * d_temp_storage = nullptr; // Get size of d_temp_storage HIP_CHECK( rocprim::merge_sort( d_temp_storage, temp_storage_size_bytes, d_input, d_output, input.size(), lesser_op, stream, debug_synchronous ) ); // temp_storage_size_bytes must be >0 ASSERT_GT(temp_storage_size_bytes, 0); // allocate temporary storage HIP_CHECK(hipMalloc(&d_temp_storage, temp_storage_size_bytes)); HIP_CHECK(hipDeviceSynchronize()); // Run HIP_CHECK( rocprim::merge_sort( d_temp_storage, temp_storage_size_bytes, d_input, d_output, input.size(), lesser_op, stream, debug_synchronous ) ); HIP_CHECK(hipPeekAtLastError()); HIP_CHECK(hipDeviceSynchronize()); // Copy output to host HIP_CHECK( hipMemcpy( output.data(), d_output, output.size() * sizeof(key_type), hipMemcpyDeviceToHost ) ); HIP_CHECK(hipDeviceSynchronize()); // Check if output values are as expected for(size_t i = 0; i < output.size(); i++) { ASSERT_NO_FATAL_FAILURE(test_utils::assert_near(output[i], expected[i], 0.01f)); } hipFree(d_input); hipFree(d_output); hipFree(d_temp_storage); } } TYPED_TEST(RocprimDeviceSortTests, SortKeyValue) { using key_type = typename TestFixture::key_type; using value_type = typename TestFixture::value_type; const bool debug_synchronous = TestFixture::debug_synchronous; const std::vector<size_t> sizes = get_sizes(); for(auto size : sizes) { hipStream_t stream = 0; // default SCOPED_TRACE(testing::Message() << "with size = " << size); // Generate data std::vector<key_type> keys_input(size); std::iota(keys_input.begin(), keys_input.end(), 0); std::shuffle( keys_input.begin(), keys_input.end(), std::mt19937{std::random_device{}()} ); std::vector<value_type> values_input = test_utils::get_random_data<value_type>(size, -1000, 1000); std::vector<key_type> keys_output(size, key_type(0)); std::vector<value_type> values_output(size, value_type(0)); key_type * d_keys_input; key_type * d_keys_output; HIP_CHECK(hipMalloc(&d_keys_input, keys_input.size() * sizeof(key_type))); HIP_CHECK(hipMalloc(&d_keys_output, keys_output.size() * sizeof(key_type))); HIP_CHECK( hipMemcpy( d_keys_input, keys_input.data(), keys_input.size() * sizeof(key_type), hipMemcpyHostToDevice ) ); HIP_CHECK(hipDeviceSynchronize()); value_type * d_values_input; value_type * d_values_output; HIP_CHECK(hipMalloc(&d_values_input, values_input.size() * sizeof(value_type))); HIP_CHECK(hipMalloc(&d_values_output, values_output.size() * sizeof(value_type))); HIP_CHECK( hipMemcpy( d_values_input, values_input.data(), values_input.size() * sizeof(value_type), hipMemcpyHostToDevice ) ); HIP_CHECK(hipDeviceSynchronize()); // Calculate expected results on host using key_value = std::pair<key_type, value_type>; std::vector<key_value> expected(size); for(size_t i = 0; i < size; i++) { expected[i] = key_value(keys_input[i], values_input[i]); } std::sort( expected.begin(), expected.end() ); // compare function ::rocprim::less<key_type> lesser_op; // temp storage size_t temp_storage_size_bytes; void * d_temp_storage = nullptr; // Get size of d_temp_storage HIP_CHECK( rocprim::merge_sort( d_temp_storage, temp_storage_size_bytes, d_keys_input, d_keys_output, d_values_input, d_values_output, keys_input.size(), lesser_op, stream, debug_synchronous ) ); // temp_storage_size_bytes must be >0 ASSERT_GT(temp_storage_size_bytes, 0); // allocate temporary storage HIP_CHECK(hipMalloc(&d_temp_storage, temp_storage_size_bytes)); HIP_CHECK(hipDeviceSynchronize()); // Run HIP_CHECK( rocprim::merge_sort( d_temp_storage, temp_storage_size_bytes, d_keys_input, d_keys_output, d_values_input, d_values_output, keys_input.size(), lesser_op, stream, debug_synchronous ) ); HIP_CHECK(hipPeekAtLastError()); HIP_CHECK(hipDeviceSynchronize()); // Copy output to host HIP_CHECK( hipMemcpy( keys_output.data(), d_keys_output, keys_output.size() * sizeof(key_type), hipMemcpyDeviceToHost ) ); HIP_CHECK( hipMemcpy( values_output.data(), d_values_output, values_output.size() * sizeof(value_type), hipMemcpyDeviceToHost ) ); HIP_CHECK(hipDeviceSynchronize()); // Check if output values are as expected for(size_t i = 0; i < keys_output.size(); i++) { ASSERT_EQ(keys_output[i], expected[i].first); ASSERT_EQ(values_output[i], expected[i].second); } hipFree(d_keys_input); hipFree(d_keys_output); hipFree(d_values_input); hipFree(d_values_output); hipFree(d_temp_storage); } }
32.504854
106
0.610812
arsenm
c8a4d6760a643413706f15df437e8b4ffd378f0f
4,568
cpp
C++
qt_host_installer/downloadprogress.cpp
CoderBotOrg/installer
21ceda0b77ee36d1ca70182790532c544087f357
[ "Libpng" ]
1
2018-01-11T15:09:37.000Z
2018-01-11T15:09:37.000Z
qt_host_installer/downloadprogress.cpp
CoderBotOrg/installer
21ceda0b77ee36d1ca70182790532c544087f357
[ "Libpng" ]
null
null
null
qt_host_installer/downloadprogress.cpp
CoderBotOrg/installer
21ceda0b77ee36d1ca70182790532c544087f357
[ "Libpng" ]
null
null
null
/* * (c) 2014-2015 Sam Nazarko * [email protected] */ #include "downloadprogress.h" #include "ui_downloadprogress.h" #include <QFileInfo> #include <QNetworkRequest> #include <QNetworkReply> #include <QString> #include <QStringList> #include <QUrl> #include <QFile> #include <QDir> #include <QMessageBox> #include "utils.h" #ifdef Q_OS_LINUX #include <unistd.h> #endif /* With thanks to http://qt-project.org/doc/qt-4.8/network-downloadmanager-downloadmanager-cpp.html */ DownloadProgress::DownloadProgress(QWidget *parent) : QWidget(parent), ui(new Ui::DownloadProgress) { ui->setupUi(this); } void DownloadProgress::download(QUrl URL, bool isOnline) { QString filelocation(URL.toString()); if (isOnline == false) { /* sanitize local filename */ #if defined(Q_OS_MAC) || defined(Q_OS_LINUX) filelocation.replace("file://",""); #endif /* Emit and bail! */ emit downloadCompleted(filelocation); return; } utils::writeLog("Downloading " + filelocation); QStringList urlSeg = filelocation.split("/"); fileName = urlSeg.at((urlSeg.count() - 1)); /* Do we have the file or an uncompressed version? */ bool uncompressed = QFile(QDir::homePath() + "/" + fileName).exists(); bool decompressed = QFile(QDir::homePath() + "/" + QString(fileName).remove(".gz")).exists(); if (uncompressed) { if (! utils::promptYesNo(tr("Image found"), tr("Do you want to re-download this image?"))) { if(decompressed) { if (! utils::promptYesNo(tr("Image found"), tr("Do you want to extract again?"))) { emit downloadCompleted(QDir::homePath() + "/" + QString(fileName).remove(".gz")); return; } } emit downloadCompleted(QDir::homePath() + "/" + fileName); return; } } else if (decompressed) { if (! utils::promptYesNo(tr("Uncompressed Image found"), tr("Do you want to re-download this image?"))) { emit downloadCompleted(QDir::homePath() + "/" + QString(fileName).remove(".gz")); return; } } fileName = QDir::homePath() + "/" + fileName; output.setFileName(fileName); if (!output.open(QIODevice::WriteOnly)) { utils::writeLog("Can't open file for writing -- is it open by another process?"); failDownload(false); } else { #ifdef Q_OS_LINUX // Set the owner and group the same as the home path QFileInfo info(QDir::homePath()); fchown(output.handle(),info.ownerId(),info.groupId()); #endif QNetworkRequest request(URL); currentDownload = manager.get(request); connect(currentDownload, SIGNAL(downloadProgress(qint64,qint64)),SLOT(downloadProgress(qint64,qint64))); connect(currentDownload, SIGNAL(finished()), SLOT(downloadFinished())); connect(currentDownload, SIGNAL(readyRead()), SLOT(downloadReadyRead())); downloadTime.start(); } } void DownloadProgress::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) { /* Download speed */ double speed = bytesReceived * 1000.0 / downloadTime.elapsed(); QString unit; if (speed < 1024) { unit = "bytes/sec"; } else if (speed < 1024*1024) { speed /= 1024; unit = "kB/s"; } else { speed /= 1024*1024; unit = "MB/s"; } ui->downloadDetailsLabel->setText(QString::fromLatin1("%1 %2").arg(speed, 3, 'f', 1).arg(unit)); /* Update progress */ ui->downloadProgressBar->setMaximum(bytesTotal); ui->downloadProgressBar->setValue(bytesReceived); } void DownloadProgress::downloadFinished() { output.close(); if (currentDownload->error()) { utils::writeLog("Error occured downloading file:"); utils::writeLog(currentDownload->errorString()); failDownload(true); } else { utils::writeLog("Download successful"); emit downloadCompleted(fileName); } } void DownloadProgress::downloadReadyRead() { output.write(currentDownload->readAll()); } void DownloadProgress::failDownload(bool wasNetwork) { ui->downloadProgressBar->setValue(0); if (wasNetwork) ui->downloadDetailsLabel->setText(tr("Download failed! Please check your network connection")); else ui->downloadDetailsLabel->setText(tr("Download failed! Could not write to disk")); } DownloadProgress::~DownloadProgress() { delete ui; }
31.07483
112
0.624124
CoderBotOrg
c8a9c8db8cf4320cbf83579fe874d74865af94a1
489
cpp
C++
17.2. Classes II/main.cpp
joaovmalheiros/Exercicios-Para-Revisao-Cplusplus
b9d523f863fd112b2b7fe72142a7128d5d95badc
[ "MIT" ]
null
null
null
17.2. Classes II/main.cpp
joaovmalheiros/Exercicios-Para-Revisao-Cplusplus
b9d523f863fd112b2b7fe72142a7128d5d95badc
[ "MIT" ]
null
null
null
17.2. Classes II/main.cpp
joaovmalheiros/Exercicios-Para-Revisao-Cplusplus
b9d523f863fd112b2b7fe72142a7128d5d95badc
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; //The keyword this: represents a pointer to the object whose member function is being executed. It is used within a class's //member function to refer to the object itself. class Dummy { public: bool isitme (Dummy& param); }; bool Dummy::isitme (Dummy& param) { if(&param == this) return true; else return false; } int main() { Dummy a; Dummy* b = &a; if(b->isitme(a)) cout << "yes, &a is b\n"; return 0; }
18.111111
123
0.642127
joaovmalheiros
c8aa4964293a897fbcd950414fac7436b4e8f971
4,189
cpp
C++
Libraries/FreeImage-3170/Source/OpenEXR/IlmThread/IlmThreadSemaphoreWin32.cpp
QuaternionMark/COMP371-FinalProject
ac750a5bb4896f4800d8fbc08fac9ef9a002ed44
[ "Zlib" ]
1
2022-03-27T02:56:21.000Z
2022-03-27T02:56:21.000Z
Libraries/FreeImage-3170/Source/OpenEXR/IlmThread/IlmThreadSemaphoreWin32.cpp
MergeCommits/COMP371-FinalProject
ac750a5bb4896f4800d8fbc08fac9ef9a002ed44
[ "Zlib" ]
null
null
null
Libraries/FreeImage-3170/Source/OpenEXR/IlmThread/IlmThreadSemaphoreWin32.cpp
MergeCommits/COMP371-FinalProject
ac750a5bb4896f4800d8fbc08fac9ef9a002ed44
[ "Zlib" ]
null
null
null
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2005-2012, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Industrial Light & Magic nor the names of // its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // /////////////////////////////////////////////////////////////////////////// //----------------------------------------------------------------------------- // // class Semaphore -- implementation for Windows // //----------------------------------------------------------------------------- #include "IlmBaseConfig.h" #if defined(_WIN32) && !defined(HAVE_PTHREAD) && !defined(HAVE_POSIX_SEMAPHORES) #include "IlmThreadSemaphore.h" #include "Iex.h" #include <string> #include <assert.h> #include <iostream> ILMTHREAD_INTERNAL_NAMESPACE_SOURCE_ENTER using namespace IEX_NAMESPACE; namespace { std::string errorString () { LPSTR messageBuffer; DWORD bufferLength; std::string message; // // Call FormatMessage() to allow for message // text to be acquired from the system. // if (bufferLength = FormatMessageA (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM, 0, GetLastError (), MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR) &messageBuffer, 0, NULL)) { message = messageBuffer; LocalFree (messageBuffer); } return message; } } // namespace Semaphore::Semaphore (unsigned int value) { if ((_semaphore = ::CreateSemaphore (0, value, 0x7fffffff, 0)) == 0) { THROW (LogicExc, "Could not create semaphore " "(" << errorString() << ")."); } } Semaphore::~Semaphore() { bool ok = ::CloseHandle (_semaphore) != FALSE; assert (ok); } void Semaphore::wait() { if (::WaitForSingleObject (_semaphore, INFINITE) != WAIT_OBJECT_0) { THROW (LogicExc, "Could not wait on semaphore " "(" << errorString() << ")."); } } bool Semaphore::tryWait() { return ::WaitForSingleObject (_semaphore, 0) == WAIT_OBJECT_0; } void Semaphore::post() { if (!::ReleaseSemaphore (_semaphore, 1, 0)) { THROW (LogicExc, "Could not post on semaphore " "(" << errorString() << ")."); } } int Semaphore::value() const { LONG v = -1; if (!::ReleaseSemaphore (_semaphore, 0, &v) || v < 0) { THROW (LogicExc, "Could not get value of semaphore " "(" << errorString () << ")."); } return v; } ILMTHREAD_INTERNAL_NAMESPACE_SOURCE_EXIT #endif
27.201299
81
0.606111
QuaternionMark
c8acd14f7ec2d740f9aac4cd47f44925b765a972
390
cpp
C++
01/ex8.cpp
Sadik326-ctrl/computer_programming
cbae264ffa04fc487008fa6a0a32e0a1a316e01e
[ "MIT" ]
null
null
null
01/ex8.cpp
Sadik326-ctrl/computer_programming
cbae264ffa04fc487008fa6a0a32e0a1a316e01e
[ "MIT" ]
null
null
null
01/ex8.cpp
Sadik326-ctrl/computer_programming
cbae264ffa04fc487008fa6a0a32e0a1a316e01e
[ "MIT" ]
null
null
null
// Circumference and area of a circle with radius 2.5 #include <iostream> using namespace std; const double pi = 3.141593; int main() { double area, circuit, radius = 1.5; area = pi * radius * radius; circuit = 2 * pi * radius; cout << "\nTo Evaluate a Circle\n" << endl; cout << "Radius: " << radius << "Circumference: " << circuit << "Area: " << area << endl << endl << endl; return 0; }
18.571429
53
0.638462
Sadik326-ctrl
c8ae93097b8d059966fc3ef47ac6c42b64b4bab2
6,494
cpp
C++
Code/EditorPlugins/ProcGen/EditorPluginProcGen/ProcGenGraphAsset/ProcGenGraphQt.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
1
2021-06-23T14:44:02.000Z
2021-06-23T14:44:02.000Z
Code/EditorPlugins/ProcGen/EditorPluginProcGen/ProcGenGraphAsset/ProcGenGraphQt.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
null
null
null
Code/EditorPlugins/ProcGen/EditorPluginProcGen/ProcGenGraphAsset/ProcGenGraphQt.cpp
fereeh/ezEngine
14e46cb2a1492812888602796db7ddd66e2b7110
[ "MIT" ]
null
null
null
#include <EditorPluginProcGenPCH.h> #include <EditorEngineProcessFramework/EngineProcess/EngineProcessMessages.h> #include <EditorPluginProcGen/ProcGenGraphAsset/ProcGenGraphAsset.h> #include <EditorPluginProcGen/ProcGenGraphAsset/ProcGenGraphQt.h> #include <Foundation/Strings/StringBuilder.h> #include <Foundation/Strings/TranslationLookup.h> #include <GameEngine/VisualScript/VisualScriptInstance.h> #include <GuiFoundation/NodeEditor/Pin.h> #include <GuiFoundation/UIServices/UIServices.moc.h> #include <ToolsFoundation/Command/NodeCommands.h> #include <QAction> #include <QMenu> #include <QPainter> #include <QTimer> namespace { static ezColorGammaUB CategoryColor(const char* szCategory) { if (ezStringUtils::IsEqual(szCategory, "Input")) return ezColorGammaUB(38, 105, 0); else if (ezStringUtils::IsEqual(szCategory, "Output")) return ezColorGammaUB(0, 101, 105); else if (ezStringUtils::IsEqual(szCategory, "Math")) return ezColorGammaUB(0, 53, 91); return ezColor::DarkOliveGreen; } } // namespace ////////////////////////////////////////////////////////////////////////// ezQtProcGenNode::ezQtProcGenNode() { // this costs too much performance :-( EnableDropShadow(false); } void ezQtProcGenNode::InitNode(const ezDocumentNodeManager* pManager, const ezDocumentObject* pObject) { ezQtNode::InitNode(pManager, pObject); const ezRTTI* pRtti = pObject->GetType(); if (const ezCategoryAttribute* pAttr = pRtti->GetAttributeByType<ezCategoryAttribute>()) { ezColorGammaUB color = CategoryColor(pAttr->GetCategory()); m_HeaderColor = qRgb(color.r, color.g, color.b); } } void ezQtProcGenNode::UpdateState() { ezStringBuilder sTitle; const ezRTTI* pRtti = GetObject()->GetType(); auto& typeAccessor = GetObject()->GetTypeAccessor(); if (const ezTitleAttribute* pAttr = pRtti->GetAttributeByType<ezTitleAttribute>()) { ezStringBuilder temp; ezStringBuilder temp2; ezHybridArray<ezAbstractProperty*, 32> properties; GetObject()->GetType()->GetAllProperties(properties); sTitle = pAttr->GetTitle(); for (const auto& pin : GetInputPins()) { temp.Set("{", pin->GetPin()->GetName(), "}"); if (pin->HasAnyConnections()) { sTitle.ReplaceAll(temp, pin->GetPin()->GetName()); } else { temp2.Set("{Input", pin->GetPin()->GetName(), "}"); sTitle.ReplaceAll(temp, temp2); } } ezVariant val; ezStringBuilder sVal; ezStringBuilder sEnumVal; for (const auto& prop : properties) { if (prop->GetCategory() == ezPropertyCategory::Set) { sVal = "{"; ezHybridArray<ezVariant, 16> values; typeAccessor.GetValues(prop->GetPropertyName(), values); for (auto& setVal : values) { if (sVal.GetElementCount() > 1) { sVal.Append(", "); } sVal.Append(setVal.ConvertTo<ezString>().GetView()); } sVal.Append("}"); } else { val = typeAccessor.GetValue(prop->GetPropertyName()); if (prop->GetSpecificType()->IsDerivedFrom<ezEnumBase>() || prop->GetSpecificType()->IsDerivedFrom<ezBitflagsBase>()) { ezReflectionUtils::EnumerationToString(prop->GetSpecificType(), val.ConvertTo<ezInt64>(), sEnumVal); sVal = ezTranslate(sEnumVal); } else if (prop->GetSpecificType() == ezGetStaticRTTI<bool>()) { sVal = val.Get<bool>() ? "[x]" : "[ ]"; if (ezStringUtils::IsEqual(prop->GetPropertyName(), "Active")) { SetActive(val.Get<bool>()); } } else if (val.CanConvertTo<ezString>()) { sVal = val.ConvertTo<ezString>(); } } temp.Set("{", prop->GetPropertyName(), "}"); sTitle.ReplaceAll(temp, sVal); } } else { sTitle = pRtti->GetTypeName(); if (sTitle.StartsWith_NoCase("ezProcGen")) { sTitle.Shrink(9, 0); } } m_pLabel->setPlainText(sTitle.GetData()); } ////////////////////////////////////////////////////////////////////////// ezQtProcGenPin::ezQtProcGenPin() = default; ezQtProcGenPin::~ezQtProcGenPin() = default; void ezQtProcGenPin::ExtendContextMenu(QMenu& menu) { QAction* pAction = new QAction("Debug", &menu); pAction->setCheckable(true); pAction->setChecked(m_bDebug); pAction->connect(pAction, &QAction::triggered, [this](bool bChecked) { SetDebug(bChecked); }); menu.addAction(pAction); } void ezQtProcGenPin::keyPressEvent(QKeyEvent* event) { if (event->key() == Qt::Key_D || event->key() == Qt::Key_F9) { SetDebug(!m_bDebug); } } void ezQtProcGenPin::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { ezQtPin::paint(painter, option, widget); painter->save(); painter->setPen(QPen(QColor(220, 0, 0), 3.5f, Qt::DotLine)); painter->setBrush(Qt::NoBrush); if (m_bDebug) { float pad = 3.5f; QRectF bounds = path().boundingRect().adjusted(-pad, -pad, pad, pad); painter->drawEllipse(bounds); } painter->restore(); } QRectF ezQtProcGenPin::boundingRect() const { QRectF bounds = ezQtPin::boundingRect(); return bounds.adjusted(-6, -6, 6, 6); } void ezQtProcGenPin::SetDebug(bool bDebug) { if (m_bDebug != bDebug) { m_bDebug = bDebug; auto pScene = static_cast<ezQtProcGenScene*>(scene()); pScene->SetDebugPin(bDebug ? this : nullptr); update(); } } ////////////////////////////////////////////////////////////////////////// ezQtProcGenScene::ezQtProcGenScene(QObject* parent /*= nullptr*/) : ezQtNodeScene(parent) { } ezQtProcGenScene::~ezQtProcGenScene() = default; void ezQtProcGenScene::SetDebugPin(ezQtProcGenPin* pDebugPin) { if (m_pDebugPin == pDebugPin) return; if (m_pDebugPin != nullptr) { m_pDebugPin->SetDebug(false); } m_pDebugPin = pDebugPin; if (ezQtDocumentWindow* window = qobject_cast<ezQtDocumentWindow*>(parent())) { auto document = static_cast<ezProcGenGraphAssetDocument*>(window->GetDocument()); document->SetDebugPin(pDebugPin != nullptr ? pDebugPin->GetPin() : nullptr); } } ezStatus ezQtProcGenScene::RemoveNode(ezQtNode* pNode) { auto pins = pNode->GetInputPins(); pins.PushBackRange(pNode->GetOutputPins()); for (auto pPin : pins) { if (pPin == m_pDebugPin) { m_pDebugPin->SetDebug(false); } } return ezQtNodeScene::RemoveNode(pNode); }
25.667984
125
0.636126
fereeh
c8af53bfba0b6fe26b56d9c2cf715aba024f6d22
3,002
cpp
C++
pin-2.11/source/tools/Probes/exception_in_probed_call_cpp_app.cpp
swchoi1994/Project
e46fa191afe54d6676016d41534c3531eb51ff79
[ "Intel" ]
3
2020-06-26T09:35:19.000Z
2021-01-03T16:58:11.000Z
pin-2.11/source/tools/Probes/exception_in_probed_call_cpp_app.cpp
swchoi1994/Project
e46fa191afe54d6676016d41534c3531eb51ff79
[ "Intel" ]
null
null
null
pin-2.11/source/tools/Probes/exception_in_probed_call_cpp_app.cpp
swchoi1994/Project
e46fa191afe54d6676016d41534c3531eb51ff79
[ "Intel" ]
2
2020-12-27T03:58:38.000Z
2020-12-27T03:58:38.000Z
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2012 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the Intel Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. END_LEGAL */ /* This application causes exception in indirect call instruction and catches it in caller. The call instruction is located in code region being replaced by Pin probe. Pin translation should not affect propagation of the exception to the C++ exception handler. */ #ifndef TARGET_LINUX #include <windows.h> #endif #include <stdio.h> #ifndef TARGET_LINUX #define FASTCALL __fastcall #define DLLEXPORT __declspec(dllexport) #else #define FASTCALL #define DLLEXPORT #endif bool destructed = false; // cpp exceptions - Exercise windows exception mechanism class MyClass { public: ~MyClass() { destructed = true; } }; static int (*pBar)() = 0; int bar() { return 0; } extern "C" DLLEXPORT int foo() { #ifdef TARGET_LINUX if (!pBar) throw(0); #endif // May cause exception due to NULL pointer return pBar(); } int main() { int i = 2; int local = 1; try { MyClass ins; i = foo(); local = 0; } catch(...) { // If Pin translated probed code properly, exception will reach the handler printf("Exception\n"); } // Check that destructor was called and local var value was not changed when exception was handled if (!destructed || (local != 1)) { return 1; } pBar = bar; try { i = foo(); } catch(...) { // No exception expected printf("Exception\n"); } return i; }
25.440678
102
0.717522
swchoi1994
c8b1a3fde2fbebc557f9dc5d91f7685f204a4aea
1,819
cpp
C++
bench/detail/arp_cache.cpp
andreimaximov/unet
10b6aa82b1ce74fa40c9050f4593c902f9d0fd61
[ "MIT" ]
null
null
null
bench/detail/arp_cache.cpp
andreimaximov/unet
10b6aa82b1ce74fa40c9050f4593c902f9d0fd61
[ "MIT" ]
null
null
null
bench/detail/arp_cache.cpp
andreimaximov/unet
10b6aa82b1ce74fa40c9050f4593c902f9d0fd61
[ "MIT" ]
null
null
null
#include <cstdint> #include <cstring> #include <vector> #include <benchmark/benchmark.h> #include <unet/detail/arp_cache.hpp> #include <unet/random.hpp> namespace unet { namespace detail { constexpr auto kNumAddOps = 65'536; static Ipv4Addr randomIpv4(std::uint32_t maxAddress) { auto raw = randInt<std::uint32_t>(0, maxAddress); Ipv4Addr addr; std::memcpy(&addr, &raw, sizeof(raw)); return addr; } static std::vector<Ipv4Addr> randomIpv4s(std::uint32_t maxAddress) { std::vector<Ipv4Addr> addresses; while (addresses.size() < kNumAddOps) { addresses.push_back(randomIpv4(maxAddress)); } return addresses; } static void benchArpCacheAdd(benchmark::State& state) { auto capacity = static_cast<std::size_t>(state.range(0)); ArpCache cache{capacity, std::chrono::seconds{60}}; auto maxAddress = static_cast<std::uint32_t>(state.range(1)); auto addresses = randomIpv4s(maxAddress); for (auto _ : state) { for (auto addr : addresses) { cache.add(addr, EthernetAddr{}); } } } static void benchArpCacheLookup(benchmark::State& state) { auto capacity = static_cast<std::size_t>(state.range(0)); ArpCache cache{capacity, std::chrono::seconds{60}}; auto maxAddress = static_cast<std::uint32_t>(state.range(1)); auto addresses = randomIpv4s(maxAddress); for (auto addr : addresses) { cache.add(addr, EthernetAddr{}); } for (auto _ : state) { for (auto addr : addresses) { benchmark::DoNotOptimize(cache.lookup(addr)); } } } BENCHMARK(benchArpCacheAdd) ->RangeMultiplier(64) ->Ranges({{64, 4'096}, {64, 4'096}}) ->Unit(benchmark::kMicrosecond); BENCHMARK(benchArpCacheLookup) ->RangeMultiplier(64) ->Ranges({{64, 4'096}, {64, 4'096}}) ->Unit(benchmark::kMicrosecond); } // namespace detail } // namespace unet
24.917808
68
0.68884
andreimaximov
c8b1ef2a5feeef249c7990679a390318eb0bdfd2
40,167
cpp
C++
MSVC/14.24.28314/atlmfc/src/mfc/olecli2.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
2
2021-01-27T10:19:30.000Z
2021-02-09T06:24:30.000Z
MSVC/14.24.28314/atlmfc/src/mfc/olecli2.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
null
null
null
MSVC/14.24.28314/atlmfc/src/mfc/olecli2.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
1
2021-01-27T10:19:36.000Z
2021-01-27T10:19:36.000Z
// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #define new DEBUG_NEW ///////////////////////////////////////////////////////////////////////////// // COleFrameHook Construction & Destruction COleFrameHook::COleFrameHook(CFrameWnd* pFrameWnd, COleClientItem* pItem) { ASSERT_VALID(pItem); ASSERT_VALID(pFrameWnd); m_lpActiveObject = NULL; m_pActiveItem = pItem; m_pFrameWnd = pFrameWnd; m_hWnd = pFrameWnd->m_hWnd; m_bToolBarHidden = FALSE; m_hAccelTable = NULL; m_bInModalState = FALSE; m_nModelessCount = 0; pFrameWnd->m_pNotifyHook = this; // assume start out hooked ASSERT_VALID(this); } COleFrameHook::~COleFrameHook() { if (m_pFrameWnd != NULL) { ASSERT_VALID(m_pFrameWnd); if (m_pFrameWnd->m_pNotifyHook == this) m_pFrameWnd->m_pNotifyHook = NULL; } ASSERT_VALID(this); } ///////////////////////////////////////////////////////////////////////////// // COleFrameHook overrides void COleFrameHook::OnRecalcLayout() { ASSERT_VALID(this); if (m_lpActiveObject == NULL) return; // get current border size (without current server control bars) RECT rectBorder; m_pFrameWnd->NegotiateBorderSpace(CFrameWnd::borderGet, &rectBorder); // allow server to resize/move its control bars m_lpActiveObject->ResizeBorder(&rectBorder, &m_xOleInPlaceFrame, m_pActiveItem->m_pInPlaceFrame == this); } BOOL COleFrameHook::OnDocActivate(BOOL bActive) { ASSERT_VALID(this); if (m_lpActiveObject == NULL) return TRUE; // allow server to do document activation related actions m_lpActiveObject->OnDocWindowActivate(bActive); // make sure window caption gets updated later COleFrameHook* pNotifyHook = m_pActiveItem->m_pInPlaceFrame; pNotifyHook->m_pFrameWnd->DelayUpdateFrameTitle(); if (!bActive) { // clear border space pNotifyHook->m_xOleInPlaceFrame.SetBorderSpace(NULL); if (m_pActiveItem->m_pInPlaceDoc != NULL) m_pActiveItem->m_pInPlaceDoc->m_xOleInPlaceFrame.SetBorderSpace(NULL); // remove the menu hook when the doc is not active pNotifyHook->m_xOleInPlaceFrame.SetMenu(NULL, NULL, NULL); // unhook top-level frame if not needed if (pNotifyHook != this) { // shouldn't be removing some other hook ASSERT(pNotifyHook->m_pFrameWnd->m_pNotifyHook == pNotifyHook); pNotifyHook->m_pFrameWnd->m_pNotifyHook = NULL; } } else { // rehook top-level frame if necessary (no effect if top-level == doc-level) pNotifyHook->m_pFrameWnd->m_pNotifyHook = pNotifyHook; } // don't do default if activating return bActive; } BOOL COleFrameHook::OnContextHelp(BOOL bEnter) { ASSERT_VALID(this); if (m_lpActiveObject == NULL || m_pActiveItem->m_pInPlaceFrame != this) return TRUE; // allow all servers to enter/exit context sensitive help mode return NotifyAllInPlace(bEnter, &COleFrameHook::DoContextSensitiveHelp); } ///////////////////////////////////////////////////////////////////////////// // COleFrameHook callbacks for the top-level frame BOOL COleFrameHook::OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu) { UNUSED_ALWAYS(nFlags); UNUSED_ALWAYS(nItemID); // if we're over a docobject item, we need to reflect messages COleDocObjectItem* pActiveDocObjectItem = DYNAMIC_DOWNCAST(COleDocObjectItem, m_pActiveItem); if (pActiveDocObjectItem != NULL) { CWnd* pWnd = pActiveDocObjectItem->GetInPlaceWindow(); // if we're popping up a menu, figure out what menu is // apparing; if it's in the help menu and it's not the // first element, it's the object's menu. if (nFlags & MF_POPUP) { if (pActiveDocObjectItem->m_pHelpPopupMenu->GetSafeHmenu() == hSysMenu) { pActiveDocObjectItem->m_bInHelpMenu = (nItemID != 0); if (pActiveDocObjectItem->m_bInHelpMenu && pWnd != NULL) { pWnd->SendMessage(WM_MENUSELECT, MAKEWPARAM(nItemID, nFlags), (LPARAM) hSysMenu); return TRUE; } } } else { if (pActiveDocObjectItem->m_bInHelpMenu && pWnd != NULL) { pWnd->SendMessage(WM_MENUSELECT, MAKEWPARAM(nItemID, nFlags), (LPARAM) hSysMenu); return TRUE; } } } return FALSE; } void COleFrameHook::OnInitMenu(CMenu* pMenu) { UNUSED_ALWAYS(pMenu); // reset the help menu flag when a new menu is opening COleDocObjectItem* pActiveDocObjectItem = DYNAMIC_DOWNCAST(COleDocObjectItem, m_pActiveItem); if (pActiveDocObjectItem != NULL) pActiveDocObjectItem->m_bInHelpMenu = FALSE; return; } BOOL COleFrameHook::OnInitMenuPopup(CMenu* pMenu, int nIndex, BOOL bSysMenu) { UNUSED_ALWAYS(nIndex); if (bSysMenu) return FALSE; COleDocObjectItem* pActiveDocObjectItem = DYNAMIC_DOWNCAST(COleDocObjectItem, m_pActiveItem); if (pActiveDocObjectItem == NULL) return FALSE; // if we're popping up a new menu, for the object, // reflect the message and don't let MFC handle it // with ON_COMMAND_UI stuff if (pActiveDocObjectItem->m_bInHelpMenu) { CWnd* pWnd = pActiveDocObjectItem->GetInPlaceWindow(); if (pWnd != NULL) { pWnd->SendMessage(WM_INITMENUPOPUP, (WPARAM) pMenu->m_hMenu, MAKELPARAM(nIndex, bSysMenu)); return TRUE; } } return FALSE; } BOOL COleFrameHook::OnPreTranslateMessage(MSG* pMsg) { ASSERT_VALID(this); if (m_lpActiveObject == NULL || m_pActiveItem->m_pInPlaceFrame != this) return FALSE; // allow server to translate accelerators if (pMsg->message >= WM_KEYFIRST && pMsg->message <= WM_KEYLAST) return m_lpActiveObject->TranslateAccelerator(pMsg) == S_OK; // if we've finally gotten a WM_COMMAND message, make sure // that it is appropriately reflected to the docobject if (pMsg->message == WM_COMMAND) { COleDocObjectItem* pActiveDocObjectItem = DYNAMIC_DOWNCAST(COleDocObjectItem, m_pActiveItem); if (pActiveDocObjectItem != NULL) { LRESULT lResult = 0; if (pActiveDocObjectItem->m_bInHelpMenu) { CWnd* pWnd = pActiveDocObjectItem->GetInPlaceWindow(); if (pWnd != NULL) lResult = pWnd->SendNotifyMessage(WM_COMMAND, pMsg->wParam, pMsg->lParam); } return (lResult != 0); } } return FALSE; } void COleFrameHook::OnActivate(BOOL bActive) { ASSERT_VALID(this); if (m_lpActiveObject == NULL || m_pActiveItem->m_pInPlaceFrame != this) return; if (m_pFrameWnd->IsWindowEnabled()) { // allow active server to do frame level activation m_lpActiveObject->OnFrameWindowActivate(bActive); } } void COleFrameHook::OnEnableModeless(BOOL bEnable) { ASSERT_VALID(this); if (m_lpActiveObject == NULL || m_pActiveItem->m_pInPlaceFrame != this) return; // allow server to disable/enable modeless dialogs NotifyAllInPlace(bEnable, &COleFrameHook::DoEnableModeless); } BOOL COleFrameHook::OnUpdateFrameTitle() { ASSERT_VALID(this); ASSERT_VALID(m_pActiveItem); if (m_lpActiveObject == NULL || m_pActiveItem->m_pInPlaceFrame != this) return FALSE; return m_pActiveItem->OnUpdateFrameTitle(); } void COleFrameHook::OnPaletteChanged(CWnd* pFocusWnd) { CWnd* pWnd = m_pActiveItem->GetInPlaceWindow(); if (pWnd != NULL) pWnd->SendMessage(WM_PALETTECHANGED, (WPARAM)pFocusWnd->GetSafeHwnd()); } BOOL COleFrameHook::OnQueryNewPalette() { CWnd* pWnd = m_pActiveItem->GetInPlaceWindow(); if (pWnd != NULL) return (pWnd->SendMessage(WM_QUERYNEWPALETTE) != 0); return FALSE; } ///////////////////////////////////////////////////////////////////////////// // Helpers for notifications that have to affect all in-place windows BOOL COleFrameHook::NotifyAllInPlace( BOOL bParam, BOOL (COleFrameHook::*pNotifyFunc)(BOOL bParam)) { ASSERT_VALID(this); HWND hWndFrame = m_hWnd; CWinApp* pApp = AfxGetApp(); // no doc manager - no templates if (pApp->m_pDocManager == NULL) return TRUE; // walk all templates in the application CDocTemplate* pTemplate; POSITION pos = pApp->m_pDocManager->GetFirstDocTemplatePosition(); while (pos != NULL) { pTemplate = pApp->m_pDocManager->GetNextDocTemplate(pos); ASSERT_VALID(pTemplate); ASSERT_KINDOF(CDocTemplate, pTemplate); // walk all documents in the template POSITION pos2 = pTemplate->GetFirstDocPosition(); while (pos2) { COleDocument* pDoc = (COleDocument*)pTemplate->GetNextDoc(pos2); ASSERT_VALID(pDoc); if (pDoc->IsKindOf(RUNTIME_CLASS(COleDocument))) { // walk all COleClientItem objects in the document COleClientItem* pItem; POSITION pos3 = pDoc->GetStartPosition(); while ((pItem = pDoc->GetNextClientItem(pos3)) != NULL) { if (pItem->m_pInPlaceFrame != NULL && pItem->m_pInPlaceFrame->m_lpActiveObject != NULL && pItem->m_pView != NULL && AfxIsDescendant(hWndFrame, pItem->m_pView->m_hWnd)) { // Whew! Found an in-place active item that is // part of this frame window hierarchy. COleFrameHook* pNotifyHook = pItem->m_pInPlaceFrame; if (!(pNotifyHook->*pNotifyFunc)(bParam)) return FALSE; } } } } } return TRUE; } BOOL COleFrameHook::DoContextSensitiveHelp(BOOL bEnter) { ASSERT_VALID(this); ASSERT(m_lpActiveObject != NULL); return !FAILED(m_lpActiveObject->ContextSensitiveHelp(bEnter)); } BOOL COleFrameHook::DoEnableModeless(BOOL bEnable) { ASSERT_VALID(this); ASSERT(m_lpActiveObject != NULL); // allow server to enable/disable any modeless windows if (!bEnable) { if (m_nModelessCount++ == 0) m_lpActiveObject->EnableModeless(FALSE); } else { if (m_nModelessCount != 0 && --m_nModelessCount == 0) m_lpActiveObject->EnableModeless(TRUE); } return TRUE; } ///////////////////////////////////////////////////////////////////////////// // COleClientItem - default in-place activation implementation BOOL COleClientItem::CanActivate() { // don't allow in-place activations with iconic aspect items if (m_nDrawAspect == DVASPECT_ICON) { return FALSE; } // if no view has been set, attempt to find suitable one. // (necessary to get links to embeddings to work correctly) if (m_pView == NULL) { // only use pActivateView if this item is in same document _AFX_OLE_STATE* pOleState = _afxOleState; if (pOleState->m_pActivateView != NULL && pOleState->m_pActivateView->GetDocument() != GetDocument()) { pOleState->m_pActivateView = NULL; // not in same document } CView* pView = pOleState->m_pActivateView; if (pView == NULL) { // no routing view available - try to use the one with focus CWnd* pWnd = CWnd::GetFocus(); while (pWnd != NULL && !pWnd->IsKindOf(RUNTIME_CLASS(CView))) { pWnd = pWnd->GetParent(); } pView = STATIC_DOWNCAST(CView, pWnd); if (pView == NULL) { // still no routing view available - just use first one COleDocument* pDoc = GetDocument(); POSITION pos = pDoc->GetFirstViewPosition(); pView = pDoc->GetNextView(pos); } } m_pView = pView; } return m_pView->GetSafeHwnd() != NULL; } void COleClientItem::OnActivate() { ASSERT_VALID(this); // it is necessary to lock the object when it is in-place // (without this, a link to an embedding may disconnect unexpectedly) if (!m_bLocked) { OleLockRunning(m_lpObject, TRUE, FALSE); m_bLocked = TRUE; } // notify the item of the state change if (m_nItemState != activeState) { OnChange(OLE_CHANGED_STATE, (DWORD)activeState); m_nItemState = activeState; } } void COleClientItem::OnActivateUI() { ASSERT_VALID(this); CFrameWnd* pMainFrame; CFrameWnd* pDocFrame = NULL; if (OnGetWindowContext(&pMainFrame, &pDocFrame, NULL)) { m_dwFrameMenuBarVisibility = pMainFrame->GetMenuBarVisibility(); pMainFrame->SetMenuBarVisibility(AFX_MBV_KEEPVISIBLE); } // notify the item of the state change if (m_nItemState != activeUIState) { OnChange(OLE_CHANGED_STATE, (DWORD)activeUIState); m_nItemState = activeUIState; } // the container window must have WS_CLIPCHILDREN set ASSERT_VALID(m_pView); m_dwContainerStyle = m_pView->GetStyle(); m_pView->ModifyStyle(0, WS_CLIPCHILDREN); // cache the server's HWND for later LPOLEINPLACEOBJECT lpInPlaceObject = QUERYINTERFACE(m_lpObject, IOleInPlaceObject); ASSERT(lpInPlaceObject != NULL); // get the HWND for the in-place active object HWND hWnd; if (lpInPlaceObject->GetWindow(&hWnd) != S_OK) { hWnd = NULL; } lpInPlaceObject->Release(); m_hWndServer = hWnd; // make sure top-level frame is hooked if (m_pInPlaceFrame != NULL) { ASSERT_VALID(m_pInPlaceFrame->m_pFrameWnd); m_pInPlaceFrame->m_pFrameWnd->m_pNotifyHook = m_pInPlaceFrame; } // make sure doc-level frame is hooked if (m_pInPlaceDoc != NULL) { ASSERT_VALID(m_pInPlaceDoc->m_pFrameWnd); m_pInPlaceDoc->m_pFrameWnd->m_pNotifyHook = m_pInPlaceDoc; } } BOOL COleClientItem::OnShowControlBars(CFrameWnd* pFrameWnd, BOOL bShow) { ASSERT_VALID(pFrameWnd); ASSERT_VALID(this); // show/hide all bars marked with CBRS_HIDE_INPLACE style BOOL bResult = FALSE; if (bShow) { POSITION pos = pFrameWnd->m_listControlBars.GetHeadPosition(); while (pos) { CControlBar* pBar = (CControlBar*)pFrameWnd->m_listControlBars.GetNext(pos); ASSERT_VALID(pBar); if ((pBar->GetBarStyle() & CBRS_HIDE_INPLACE) && (pBar->m_nStateFlags & CControlBar::tempHide)) { pBar->m_nStateFlags &= ~CControlBar::tempHide; pFrameWnd->ShowControlBar(pBar, TRUE, TRUE); bResult = TRUE; } } } else { POSITION pos = pFrameWnd->m_listControlBars.GetHeadPosition(); while (pos) { CControlBar* pBar = (CControlBar*)pFrameWnd->m_listControlBars.GetNext(pos); ASSERT_VALID(pBar); if (pBar->IsVisible() && (pBar->GetBarStyle() & CBRS_HIDE_INPLACE)) { pBar->m_nStateFlags |= CControlBar::tempHide; pFrameWnd->ShowControlBar(pBar, FALSE, TRUE); bResult = TRUE; } } } return bResult; } BOOL COleClientItem::OnGetWindowContext(CFrameWnd** ppMainFrame, CFrameWnd** ppDocFrame, LPOLEINPLACEFRAMEINFO pFrameInfo) { ASSERT(AfxIsValidAddress(ppMainFrame, sizeof(CFrameWnd*))); ASSERT(AfxIsValidAddress(ppDocFrame, sizeof(CFrameWnd*))); ASSERT(pFrameInfo == NULL || AfxIsValidAddress(pFrameInfo, sizeof(OLEINPLACEFRAMEINFO))); ASSERT_VALID(this); ASSERT_VALID(m_pView); if ((ppMainFrame == NULL) || (ppDocFrame == NULL)) { return E_POINTER; } // get main window of application *ppMainFrame = m_pView->GetTopLevelFrame(); ENSURE_VALID(*ppMainFrame); ASSERT_KINDOF(CFrameWnd, *ppMainFrame); // get document window (if there is one) CFrameWnd* pDocFrame = m_pView->GetParentFrame(); if (pDocFrame != *ppMainFrame) { *ppDocFrame = pDocFrame; ASSERT_VALID(*ppDocFrame); ASSERT_KINDOF(CFrameWnd, *ppDocFrame); } if (pFrameInfo != NULL) { // get accelerator table CDocTemplate* pTemplate = GetDocument()->GetDocTemplate(); HACCEL hAccel = pTemplate != NULL ? pTemplate->m_hAccelInPlace : NULL; pFrameInfo->cAccelEntries = hAccel != NULL ? CopyAcceleratorTable(hAccel, NULL, 0) : 0; pFrameInfo->haccel = pFrameInfo->cAccelEntries != 0 ? hAccel : NULL; pFrameInfo->hwndFrame = (*ppMainFrame)->m_hWnd; pFrameInfo->fMDIApp = *ppDocFrame != NULL; } return TRUE; } BOOL COleClientItem::OnScrollBy(CSize sizeExtent) { ASSERT_VALID(this); ASSERT_VALID(m_pView); // scroll through splitter or view CSplitterWnd* pSplitter = CView::GetParentSplitter(m_pView, FALSE); BOOL bResult; if (pSplitter != NULL) bResult = pSplitter->DoScrollBy(m_pView, sizeExtent); else bResult = m_pView->OnScrollBy(sizeExtent); return bResult; } void COleClientItem::OnDeactivateUI(BOOL /*bUndoable*/) { ASSERT_VALID(this); // notify the item of the state change if (m_nItemState != activeState) { OnChange(OLE_CHANGED_STATE, (DWORD)activeState); m_nItemState = activeState; } if (m_pView != NULL && m_pDocument->GetFirstViewPosition()) { // restore container window's WS_CLIPCHILDREN bit... ASSERT_VALID(m_pView); m_pView->ModifyStyle(WS_CLIPCHILDREN, m_dwContainerStyle & WS_CLIPCHILDREN); } // restore original user interface on the frame window CFrameWnd* pMainFrame; CFrameWnd* pDocFrame = NULL; if (OnGetWindowContext(&pMainFrame, &pDocFrame, NULL)) { ENSURE(pMainFrame->GetMenuBarVisibility() == AFX_MBV_KEEPVISIBLE); pMainFrame->SetMenuBarVisibility(m_dwFrameMenuBarVisibility); ASSERT_VALID(pMainFrame); pMainFrame->DelayUpdateFrameTitle(); if (pMainFrame->NegotiateBorderSpace(CFrameWnd::borderSet, NULL)) pMainFrame->DelayRecalcLayout(); // restore original user interface on the document window if (pDocFrame != NULL) { pDocFrame->DelayUpdateFrameTitle(); if (pDocFrame->NegotiateBorderSpace(CFrameWnd::borderSet, NULL)) pDocFrame->DelayRecalcLayout(); } } // cleanup frame interfaces allocated in GetWindowContext if (m_pInPlaceFrame != NULL) { OnShowControlBars(m_pInPlaceFrame->m_pFrameWnd, TRUE); // release OLE frame window hooks and allow menu update ::OleSetMenuDescriptor(NULL, m_pInPlaceFrame->m_pFrameWnd->m_hWnd, NULL, NULL, NULL); if (m_pInPlaceDoc != NULL) { ::OleSetMenuDescriptor(NULL, m_pInPlaceDoc->m_pFrameWnd->m_hWnd, NULL, NULL, NULL); } m_pInPlaceFrame->m_pFrameWnd->DelayUpdateFrameMenu(NULL); // unhook from frame window if (m_pInPlaceFrame->m_pFrameWnd->m_pNotifyHook == m_pInPlaceFrame) m_pInPlaceFrame->m_pFrameWnd->m_pNotifyHook = NULL; // cleanup document interfaces allocated in GetWindowContext if (m_pInPlaceDoc != NULL) { OnShowControlBars(m_pInPlaceDoc->m_pFrameWnd, TRUE); // unhook from frame window if (m_pInPlaceDoc->m_pFrameWnd->m_pNotifyHook == m_pInPlaceDoc) m_pInPlaceDoc->m_pFrameWnd->m_pNotifyHook = NULL; } } // reset server HWND -- no longer necessary m_hWndServer = NULL; CWnd* pWnd = AfxGetMainWnd(); if (pWnd != NULL) { // set focus back to the container pWnd = pWnd->EnsureTopLevelParent(); if (::GetActiveWindow() == pWnd->m_hWnd) { pWnd->SetFocus(); } } } void COleClientItem::OnDeactivate() { ASSERT_VALID(this); // notify the item of the state change if (m_nItemState != loadedState) { OnChange(OLE_CHANGED_STATE, (DWORD)loadedState); m_nItemState = loadedState; } // cleanup frame interfaces allocated in GetWindowContext if (m_pInPlaceFrame != NULL) { // release in place frame if (m_pInPlaceFrame->m_pFrameWnd->m_pNotifyHook == m_pInPlaceFrame) { m_pInPlaceFrame->m_pFrameWnd->m_pNotifyHook = NULL; m_pInPlaceFrame->m_pFrameWnd = NULL; } m_pInPlaceFrame->InternalRelease(); m_pInPlaceFrame = NULL; // cleanup document interfaces allocated in GetWindowContext if (m_pInPlaceDoc != NULL) { // release in place document if (m_pInPlaceDoc->m_pFrameWnd->m_pNotifyHook == m_pInPlaceDoc) { m_pInPlaceDoc->m_pFrameWnd->m_pNotifyHook = NULL; m_pInPlaceDoc->m_pFrameWnd = NULL; } m_pInPlaceDoc->InternalRelease(); m_pInPlaceDoc = NULL; } } // both frame-level and doc-level interfaces should be cleaned up ASSERT(m_pInPlaceFrame == NULL); ASSERT(m_pInPlaceDoc == NULL); // no longer need the container window m_pView = NULL; } void COleClientItem::OnDiscardUndoState() { ASSERT_VALID(this); // default does nothing } void COleClientItem::OnDeactivateAndUndo() { ASSERT_VALID(this); DeactivateUI(); // default is to UI deactivate } BOOL COleClientItem::OnChangeItemPosition(const CRect& rectPos) { if (!IsInPlaceActive()) return FALSE; ASSERT_VALID(this); ASSERT(AfxIsValidAddress(&rectPos, sizeof(CRect), FALSE)); ASSERT_VALID(m_pView); // determine the visible rect based on intersection between client rect CRect clipRect; OnGetClipRect(clipRect); CRect visRect; visRect.IntersectRect(clipRect, rectPos); // advise the server of the new visible rectangle if (!visRect.IsRectEmpty()) return SetItemRects(&rectPos, &clipRect); return FALSE; } ///////////////////////////////////////////////////////////////////////////// // IOleInPlaceFrame notifications (default implementation) void COleClientItem::OnInsertMenus(CMenu* pMenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths) { ASSERT_VALID(this); ASSERT_VALID(pMenuShared); ASSERT(AfxIsValidAddress(lpMenuWidths, sizeof(OLEMENUGROUPWIDTHS))); // initialize the group widths array lpMenuWidths->width[0] = 0; lpMenuWidths->width[2] = 0; lpMenuWidths->width[4] = 0; // get menu from document template CDocTemplate* pTemplate = GetDocument()->GetDocTemplate(); HMENU hMenuOLE = pTemplate->m_hMenuInPlace; // only copy the popups if there is a menu loaded if (hMenuOLE == NULL) return; // insert our menu items and adjust group widths array AfxMergeMenus(pMenuShared->GetSafeHmenu(), hMenuOLE, &lpMenuWidths->width[0], 0); } void COleClientItem::OnSetMenu(CMenu* pMenuShared, HOLEMENU holemenu, HWND hwndActiveObject) { ASSERT_VALID(this); ASSERT(m_pInPlaceFrame != NULL); ASSERT(m_pInPlaceFrame->m_pFrameWnd != NULL); // don't set the doc is active CFrameWnd* pFrameWnd = m_pInPlaceFrame->m_pFrameWnd; ASSERT_VALID(pFrameWnd); if (m_pInPlaceDoc != NULL && m_pInPlaceDoc->m_pFrameWnd != pFrameWnd->GetActiveFrame()) { return; } // update the menu pFrameWnd->DelayUpdateFrameMenu(pMenuShared->GetSafeHmenu()); // enable/disable the OLE command routing hook ::OleSetMenuDescriptor(holemenu, pFrameWnd->m_hWnd, hwndActiveObject, NULL, NULL); if (m_pInPlaceDoc != NULL) { pFrameWnd = m_pInPlaceDoc->m_pFrameWnd; ASSERT_VALID(pFrameWnd); ::OleSetMenuDescriptor(holemenu, pFrameWnd->m_hWnd, hwndActiveObject, NULL, NULL); } } void COleClientItem::OnRemoveMenus(CMenu* pMenuShared) { ASSERT_VALID(this); ASSERT_VALID(pMenuShared); // get menu from document template CDocTemplate* pTemplate = GetDocument()->GetDocTemplate(); HMENU hMenuOLE = pTemplate->m_hMenuInPlace; if (hMenuOLE == NULL) return; // remove any menu popups originally added in OnInsertMenus AfxUnmergeMenus(pMenuShared->GetSafeHmenu(), hMenuOLE); } BOOL COleClientItem::OnUpdateFrameTitle() { ASSERT_VALID(this); return FALSE; } ///////////////////////////////////////////////////////////////////////////// // In-place Activation operations void COleClientItem::Deactivate() { ASSERT_VALID(this); ASSERT(m_lpObject != NULL); ASSERT(IsInPlaceActive()); // get IOleInPlaceObject interface LPOLEINPLACEOBJECT lpInPlaceObject = QUERYINTERFACE(m_lpObject, IOleInPlaceObject); if (lpInPlaceObject == NULL) { Close(); // handle rare failure cases by calling Close return; } // call IOleInPlaceObject::InPlaceDeactivate m_scLast = lpInPlaceObject->InPlaceDeactivate(); lpInPlaceObject->Release(); if (FAILED(m_scLast)) { Close(); // handle rare failure cases by calling Close return; } m_nItemState = loadedState; // just in case server has crashed } void COleClientItem::DeactivateUI() { ASSERT_VALID(this); ASSERT(m_lpObject != NULL); ASSERT(GetItemState() == activeUIState); // get IOleInPlaceObject interface LPOLEINPLACEOBJECT lpInPlaceObject = QUERYINTERFACE(m_lpObject, IOleInPlaceObject); if (lpInPlaceObject == NULL) { Close(); // handle rare failure cases by calling Close return; } // call IOleInPlaceObject::UIDeactivate m_scLast = lpInPlaceObject->UIDeactivate(); lpInPlaceObject->Release(); if (FAILED(m_scLast)) { Close(); // handle rare failure cases by calling Close return; } if (m_nItemState == activeUIState) m_nItemState = activeState; // just in case server has crashed } BOOL COleClientItem::SetItemRects(LPCRECT lpPosRect, LPCRECT lpClipRect) { ASSERT_VALID(this); ASSERT(m_lpObject != NULL); ASSERT(IsInPlaceActive()); ASSERT(lpPosRect == NULL || AfxIsValidAddress(lpPosRect, sizeof(RECT), FALSE)); ASSERT(lpClipRect == NULL || AfxIsValidAddress(lpClipRect, sizeof(RECT), FALSE)); // get IOleInPlaceObject interface LPOLEINPLACEOBJECT lpInPlaceObject = QUERYINTERFACE(m_lpObject, IOleInPlaceObject); if (lpInPlaceObject == NULL) return FALSE; // perhaps server crashed? // use OnGetPosRect if rectangle not specified CRect rectPos; if (lpPosRect == NULL) { ASSERT(lpClipRect == NULL); OnGetItemPosition(rectPos); lpPosRect = &rectPos; } // use OnGetClipRect if clipping rectangle not specified CRect rectClip; if (lpClipRect == NULL) { OnGetClipRect(rectClip); lpClipRect = &rectClip; } ASSERT(lpPosRect != NULL); ASSERT(lpClipRect != NULL); // notify the server of the new item rectangles m_scLast = lpInPlaceObject->SetObjectRects(lpPosRect, lpClipRect); lpInPlaceObject->Release(); // remember position rectangle as cached position return !FAILED(m_scLast); } BOOL COleClientItem::ReactivateAndUndo() { ASSERT_VALID(this); ASSERT(m_lpObject != NULL); ASSERT(IsInPlaceActive()); // get IOleInPlaceObject interface LPOLEINPLACEOBJECT lpInPlaceObject = QUERYINTERFACE(m_lpObject, IOleInPlaceObject); if (lpInPlaceObject == NULL) { Close(); // handle rare failure cases by calling Close return FALSE; } // call IOleInPlaceObject::ReactivateAndUndo m_scLast = lpInPlaceObject->ReactivateAndUndo(); lpInPlaceObject->Release(); if (FAILED(m_scLast)) { Close(); // handle rare failure cases by calling Close return FALSE; } return TRUE; } CWnd* COleClientItem::GetInPlaceWindow() { ASSERT_VALID(this); ASSERT(m_lpObject != NULL); // only inplace active items should be asking for the window handle if (GetItemState() != activeUIState) return NULL; // handle case of server that just disappears if (m_hWndServer != NULL && !::IsWindow(m_hWndServer)) { Close(); return NULL; } ASSERT(m_hWndServer == NULL || ::IsWindow(m_hWndServer)); return CWnd::FromHandle(m_hWndServer); } ///////////////////////////////////////////////////////////////////////////// // COleFrameHook OLE interface implementation BEGIN_INTERFACE_MAP(COleFrameHook, CCmdTarget) INTERFACE_PART(COleFrameHook, IID_IOleWindow, OleInPlaceFrame) INTERFACE_PART(COleFrameHook, IID_IOleInPlaceUIWindow, OleInPlaceFrame) INTERFACE_PART(COleFrameHook, IID_IOleInPlaceFrame, OleInPlaceFrame) INTERFACE_PART(COleFrameHook, IID_IOleCommandTarget, OleCommandTarget) END_INTERFACE_MAP() ///////////////////////////////////////////////////////////////////////////// // COleFrameHook::XOleCommandTarget implementation STDMETHODIMP_(ULONG) COleFrameHook::XOleCommandTarget::AddRef() { METHOD_PROLOGUE_EX_(COleFrameHook, OleCommandTarget) return pThis->ExternalAddRef(); } STDMETHODIMP_(ULONG) COleFrameHook::XOleCommandTarget::Release() { METHOD_PROLOGUE_EX_(COleFrameHook, OleCommandTarget) return pThis->ExternalRelease(); } STDMETHODIMP COleFrameHook::XOleCommandTarget::QueryInterface( REFIID iid, LPVOID* ppvObj) { METHOD_PROLOGUE_EX_(COleFrameHook, OleCommandTarget) return pThis->ExternalQueryInterface(&iid, ppvObj); } STDMETHODIMP COleFrameHook::XOleCommandTarget::Exec( const GUID* pguidCmdGroup, DWORD nCmdID, DWORD nCmdExecOpt, VARIANTARG* pvarargIn, VARIANTARG* pvarargOut) { HRESULT hResult = OLECMDERR_E_UNKNOWNGROUP; METHOD_PROLOGUE_EX_(COleFrameHook, OleCommandTarget) COleDocObjectItem* pActiveDocObjectItem = DYNAMIC_DOWNCAST(COleDocObjectItem, pThis->m_pActiveItem); if (pActiveDocObjectItem != NULL) { hResult = _AfxExecOleCommandHelper(pActiveDocObjectItem, pguidCmdGroup, nCmdID, nCmdExecOpt, pvarargIn, pvarargOut); } return hResult; } STDMETHODIMP COleFrameHook::XOleCommandTarget::QueryStatus( const GUID* pguidCmdGroup, ULONG cCmds, OLECMD rgCmds[], OLECMDTEXT* pcmdtext) { HRESULT hResult = OLECMDERR_E_UNKNOWNGROUP; METHOD_PROLOGUE_EX_(COleFrameHook, OleCommandTarget) COleDocObjectItem* pActiveDocObjectItem = DYNAMIC_DOWNCAST(COleDocObjectItem, pThis->m_pActiveItem); if (pActiveDocObjectItem != NULL) { hResult = _AfxQueryStatusOleCommandHelper(pActiveDocObjectItem, pguidCmdGroup, cCmds, rgCmds, pcmdtext); } return hResult; } ///////////////////////////////////////////////////////////////////////////// // COleFrameHook::XOleInPlaceFrame implementation STDMETHODIMP_(ULONG) COleFrameHook::XOleInPlaceFrame::AddRef() { METHOD_PROLOGUE_EX_(COleFrameHook, OleInPlaceFrame) return pThis->ExternalAddRef(); } STDMETHODIMP_(ULONG) COleFrameHook::XOleInPlaceFrame::Release() { METHOD_PROLOGUE_EX_(COleFrameHook, OleInPlaceFrame) return pThis->ExternalRelease(); } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::QueryInterface( REFIID iid, LPVOID* ppvObj) { METHOD_PROLOGUE_EX_(COleFrameHook, OleInPlaceFrame) return pThis->ExternalQueryInterface(&iid, ppvObj); } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::GetWindow(HWND* lphwnd) { METHOD_PROLOGUE_EX_(COleFrameHook, OleInPlaceFrame) if (lphwnd == NULL) { return E_POINTER; } *lphwnd = pThis->m_hWnd; return *lphwnd != NULL ? S_OK : E_FAIL; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::ContextSensitiveHelp( BOOL fEnterMode) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); // document frame windows should not be put in help mode, so we get the // top-level frame window and check it first CFrameWnd* pFrameWnd = pThis->m_pFrameWnd->GetTopLevelFrame(); ENSURE_VALID(pFrameWnd); if (fEnterMode) { if (!pFrameWnd->m_bHelpMode) { // check if help mode probable if (!pFrameWnd->CanEnterHelpMode()) return E_UNEXPECTED; // attempt to enter context help if (!pThis->OnContextHelp(TRUE) || !pFrameWnd->PostMessage(WM_COMMAND, ID_CONTEXT_HELP)) { return E_UNEXPECTED; } } } else { // just exit help mode pFrameWnd->ExitHelpMode(); } return S_OK; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::GetBorder(LPRECT lpRectBorder) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); COleClientItem* pItem = pThis->m_pActiveItem; ASSERT_VALID(pItem); CFrameWnd* pFrameWnd = pThis->m_pFrameWnd; ASSERT_VALID(pFrameWnd); // hide the control bars temporarily BOOL bHidden = pItem->OnShowControlBars(pFrameWnd, FALSE); // determine border space assuming that we'll remove our control bars CRect rectSave = pFrameWnd->m_rectBorder; pFrameWnd->NegotiateBorderSpace(CFrameWnd::borderSet, NULL); pFrameWnd->NegotiateBorderSpace(CFrameWnd::borderGet, lpRectBorder); pFrameWnd->NegotiateBorderSpace(CFrameWnd::borderSet, &rectSave); // restore control bars if (bHidden) pItem->OnShowControlBars(pFrameWnd, TRUE); return S_OK; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::RequestBorderSpace( LPCRECT lpRectWidths) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); CFrameWnd* pFrameWnd = pThis->m_pFrameWnd; ASSERT_VALID(pFrameWnd); if (!pFrameWnd->NegotiateBorderSpace( CFrameWnd::borderRequest, (LPRECT)lpRectWidths)) { return INPLACE_E_NOTOOLSPACE; } return S_OK; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::SetBorderSpace( LPCRECT lpRectWidths) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); CFrameWnd* pFrameWnd = pThis->m_pFrameWnd; if (pFrameWnd->NegotiateBorderSpace( CFrameWnd::borderSet, (LPRECT)lpRectWidths)) { // We have to turn off the notify and idlelayout flags so RecalcLayout // doesn't call back into the object and tell it to resize it's borders // while we are in the middle of setting the border space. pFrameWnd->m_nIdleFlags &= ~(CFrameWnd::idleLayout|CFrameWnd::idleNotify); // synchronously re-layout borders. pFrameWnd->RecalcLayout(FALSE); } pThis->m_pActiveItem->OnShowControlBars(pFrameWnd, lpRectWidths == NULL); return S_OK; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::SetActiveObject( LPOLEINPLACEACTIVEOBJECT lpActiveObject, LPCOLESTR lpszObjName) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { // release the old active object RELEASE(pThis->m_lpActiveObject); // set the new active object pThis->m_lpActiveObject = lpActiveObject; if (lpActiveObject != NULL) lpActiveObject->AddRef(); // update caption if necessary pThis->m_strObjName.Empty(); if (lpszObjName != NULL && lpActiveObject != NULL) { pThis->m_strObjName = lpszObjName; pThis->m_pActiveItem->OnUpdateFrameTitle(); } sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::InsertMenus( HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); // get the associated COleClientItem object COleClientItem* pItem = pThis->m_pActiveItem; ASSERT_VALID(pItem); SCODE sc = E_UNEXPECTED; TRY { pItem->OnInsertMenus(CMenu::FromHandle(hmenuShared), lpMenuWidths); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::SetMenu( HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); // get the associated COleClientItem object COleClientItem* pItem = pThis->m_pActiveItem; ASSERT_VALID(pItem); SCODE sc = E_UNEXPECTED; TRY { pItem->OnSetMenu(CMenu::FromHandle(hmenuShared), holemenu, hwndActiveObject); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::RemoveMenus( HMENU hmenuShared) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); // get the associated COleClientItem object COleClientItem* pItem = pThis->m_pActiveItem; ASSERT_VALID(pItem); SCODE sc = E_UNEXPECTED; TRY { pItem->OnRemoveMenus(CMenu::FromHandle(hmenuShared)); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::SetStatusText( LPCOLESTR lpszStatusText) { METHOD_PROLOGUE_EX_(COleFrameHook, OleInPlaceFrame) LPARAM lParam; CString strText; if (lpszStatusText) { strText = lpszStatusText; lParam = reinterpret_cast<LPARAM>(strText.GetString()); } else { lParam = 0; } pThis->m_pFrameWnd->SendMessage(WM_SETMESSAGESTRING, 0, lParam); return S_OK; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::EnableModeless(BOOL fEnable) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); ASSERT_VALID(pThis->m_pFrameWnd); SCODE sc = E_UNEXPECTED; TRY { if (!fEnable) pThis->m_pFrameWnd->BeginModalState(); else pThis->m_pFrameWnd->EndModalState(); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleFrameHook::XOleInPlaceFrame::TranslateAccelerator( LPMSG lpmsg, WORD /*wID*/) { METHOD_PROLOGUE_EX(COleFrameHook, OleInPlaceFrame) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { // swap accel tables and call PreTranslateMessage CFrameWnd* pFrameWnd = pThis->m_pFrameWnd; HACCEL hAccelSave = pFrameWnd->m_hAccelTable; pFrameWnd->m_hAccelTable = pThis->m_hAccelTable; ASSERT(lpmsg != NULL); MSG msg = *lpmsg; sc = pFrameWnd->PreTranslateMessage(&msg) ? S_OK : S_FALSE; *lpmsg = msg; pFrameWnd->m_hAccelTable = hAccelSave; } END_TRY return sc; } ///////////////////////////////////////////////////////////////////////////// // COleClientItem::XOleIPSite implementation STDMETHODIMP_(ULONG) COleClientItem::XOleIPSite::AddRef() { METHOD_PROLOGUE_EX_(COleClientItem, OleIPSite) return pThis->ExternalAddRef(); } STDMETHODIMP_(ULONG) COleClientItem::XOleIPSite::Release() { METHOD_PROLOGUE_EX_(COleClientItem, OleIPSite) return pThis->ExternalRelease(); } STDMETHODIMP COleClientItem::XOleIPSite::QueryInterface(REFIID iid, LPVOID* ppvObj) { METHOD_PROLOGUE_EX_(COleClientItem, OleIPSite) return pThis->ExternalQueryInterface(&iid, ppvObj); } STDMETHODIMP COleClientItem::XOleIPSite::GetWindow(HWND* lphwnd) { METHOD_PROLOGUE_EX_(COleClientItem, OleIPSite) if (lphwnd == NULL) { return E_POINTER; } *lphwnd = pThis->m_pView->GetSafeHwnd(); return *lphwnd != NULL ? S_OK : E_FAIL; } STDMETHODIMP COleClientItem::XOleIPSite::ContextSensitiveHelp( BOOL fEnterMode) { METHOD_PROLOGUE_EX_(COleClientItem, OleIPSite) if (pThis->m_pInPlaceFrame == NULL) return E_UNEXPECTED; // simply delegate to frame window implementation return pThis->m_pInPlaceFrame-> m_xOleInPlaceFrame.ContextSensitiveHelp(fEnterMode); } STDMETHODIMP COleClientItem::XOleIPSite::CanInPlaceActivate() { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) return pThis->CanActivate() ? S_OK : S_FALSE; } STDMETHODIMP COleClientItem::XOleIPSite::OnInPlaceActivate() { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { pThis->OnActivate(); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleClientItem::XOleIPSite::OnUIActivate() { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { pThis->OnActivateUI(); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleClientItem::XOleIPSite::GetWindowContext(LPOLEINPLACEFRAME* lplpFrame, LPOLEINPLACEUIWINDOW* lplpDoc, LPRECT lpPosRect, LPRECT lpClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo) { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); if ((lplpFrame == NULL) || (lplpDoc == NULL)) { return E_POINTER; } *lplpFrame = NULL; // init these in-case of mem-alloc failure *lplpDoc = NULL; CFrameWnd* pMainFrame = NULL; CFrameWnd* pDocFrame = NULL; SCODE sc = E_UNEXPECTED; TRY { // get position of the item relative to activation view CRect rect; pThis->OnGetItemPosition(rect); ::CopyRect(lpPosRect, &rect); pThis->OnGetClipRect(rect); ::CopyRect(lpClipRect, &rect); // get the window context information if (pThis->OnGetWindowContext(&pMainFrame, &pDocFrame, lpFrameInfo)) { // hook IOleInPlaceFrame interface to pMainFrame if (pThis->m_pInPlaceFrame == NULL) pThis->m_pInPlaceFrame = new COleFrameHook(pMainFrame, pThis); pThis->m_pInPlaceFrame->InternalAddRef(); *lplpFrame = (LPOLEINPLACEFRAME)pThis->m_pInPlaceFrame-> GetInterface(&IID_IOleInPlaceFrame); // save accel table for IOleInPlaceFrame::TranslateAccelerators pThis->m_pInPlaceFrame->m_hAccelTable = lpFrameInfo->haccel; // hook IOleInPlaceUIWindow to pDocFrame if (pDocFrame != NULL) { if (pThis->m_pInPlaceDoc == NULL) pThis->m_pInPlaceDoc = new COleFrameHook(pDocFrame, pThis); pThis->m_pInPlaceDoc->InternalAddRef(); *lplpDoc = (LPOLEINPLACEUIWINDOW)pThis->m_pInPlaceDoc-> GetInterface(&IID_IOleInPlaceUIWindow); } sc = S_OK; } } CATCH_ALL(e) { // cleanup memory that may be partially allocated delete *lplpFrame; ASSERT(*lplpDoc == NULL); DELETE_EXCEPTION(e); } END_CATCH_ALL return sc; } STDMETHODIMP COleClientItem::XOleIPSite::Scroll(SIZE scrollExtent) { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { if (!pThis->OnScrollBy(CSize(scrollExtent))) sc = S_FALSE; else sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleClientItem::XOleIPSite::OnUIDeactivate(BOOL fUndoable) { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { pThis->OnDeactivateUI(fUndoable); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleClientItem::XOleIPSite::OnInPlaceDeactivate() { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { pThis->OnDeactivate(); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleClientItem::XOleIPSite::DiscardUndoState() { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { pThis->OnDiscardUndoState(); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleClientItem::XOleIPSite::DeactivateAndUndo() { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { pThis->OnDeactivateAndUndo(); sc = S_OK; } END_TRY return sc; } STDMETHODIMP COleClientItem::XOleIPSite::OnPosRectChange( LPCRECT lpPosRect) { METHOD_PROLOGUE_EX(COleClientItem, OleIPSite) ASSERT_VALID(pThis); SCODE sc = E_UNEXPECTED; TRY { CRect rect; rect.CopyRect(lpPosRect); pThis->OnChangeItemPosition(rect); sc = S_OK; } END_TRY return sc; } /////////////////////////////////////////////////////////////////////////////
25.073034
122
0.72694
825126369
c8b24e8a164f685838c7c6a841320c461a1b60f9
6,505
cpp
C++
src/message.cpp
smallb/ucxxrt
6f1fddae4f5eefb4e1ad36b7c9a1cd664caf2f26
[ "MIT" ]
null
null
null
src/message.cpp
smallb/ucxxrt
6f1fddae4f5eefb4e1ad36b7c9a1cd664caf2f26
[ "MIT" ]
null
null
null
src/message.cpp
smallb/ucxxrt
6f1fddae4f5eefb4e1ad36b7c9a1cd664caf2f26
[ "MIT" ]
null
null
null
/* * PROJECT: Universal C++ RunTime (UCXXRT) * FILE: message.cpp * DATA: 2022/05/22 * * PURPOSE: Universal C++ RunTime * * LICENSE: Relicensed under The MIT License from The CC BY 4.0 License * * DEVELOPER: MiroKaku (miro.kaku AT Outlook.com) */ EXTERN_C NTSTATUS NTAPI RtlFindAndFormatMessage( _In_ UINT32 Flags, _In_opt_ LPCVOID Source, _In_ UINT32 MessageId, _In_ UINT32 LanguageId, _Out_ LPWSTR Buffer, _Inout_ UINT32* Size, _In_opt_ va_list* Arguments ) { NTSTATUS Status = STATUS_SUCCESS; PVOID AllocatedBuffer = nullptr; ANSI_STRING AnsiMessage{}; UNICODE_STRING UnicodeMessage{}; do { /* If this is a Win32 error wrapped as an OLE HRESULT then unwrap it */ if (((MessageId & 0xffff0000) == 0x80070000) && BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_SYSTEM) && !BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_HMODULE) && !BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_STRING)) { MessageId &= 0x0000ffff; } if (Buffer == nullptr) { Status = STATUS_INVALID_PARAMETER; break; } if (Flags & FORMAT_MESSAGE_ALLOCATE_BUFFER) { *(PVOID*)Buffer = nullptr; } PVOID DllHandle = nullptr; ULONG MaximumWidth = 0ul; PWSTR MessageFormat = nullptr; PMESSAGE_RESOURCE_ENTRY MessageEntry = nullptr; __try { PVOID BaseDllHandle = ucxxrt::PsSystemDllBase; MaximumWidth = Flags & FORMAT_MESSAGE_MAX_WIDTH_MASK; if (MaximumWidth == FORMAT_MESSAGE_MAX_WIDTH_MASK) { MaximumWidth = ULONG_MAX; } if (BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_STRING)) { MessageFormat = (PWSTR)Source; } else { if (BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_HMODULE)) { if (Source == nullptr) { DllHandle = BaseDllHandle; } else { DllHandle = (LPVOID)Source; } } else if (BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_SYSTEM)) { DllHandle = BaseDllHandle; } else { Status = STATUS_INVALID_PARAMETER; break; } Status = RtlFindMessage( DllHandle, PtrToUlong(RT_MESSAGETABLE), LanguageId, MessageId, &MessageEntry); if (Status == STATUS_MESSAGE_NOT_FOUND) { if (BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_HMODULE) && BooleanFlagOn(Flags, FORMAT_MESSAGE_FROM_SYSTEM)) { DllHandle = BaseDllHandle; ClearFlag(Flags, FORMAT_MESSAGE_FROM_HMODULE); Status = RtlFindMessage( DllHandle, PtrToUlong(RT_MESSAGETABLE), LanguageId, MessageId, &MessageEntry); } } if (!NT_SUCCESS(Status)) { break; } if (!BooleanFlagOn(MessageEntry->Flags, MESSAGE_RESOURCE_UNICODE)) { RtlInitAnsiString(&AnsiMessage, (PCSZ)MessageEntry->Text); Status = RtlAnsiStringToUnicodeString(&UnicodeMessage, &AnsiMessage, TRUE); if (!NT_SUCCESS(Status)) { break; } MessageFormat = UnicodeMessage.Buffer; } else { MessageFormat = (PWSTR)MessageEntry->Text; } } auto WrittenSize = 256ul; bool IgnoreInserts = BooleanFlagOn(Flags, FORMAT_MESSAGE_IGNORE_INSERTS); bool ArgumentsAreAnAnsi = BooleanFlagOn(Flags, FORMAT_MESSAGE_ARGUMENT_ANSI); bool ArgumentsAreAnArray = BooleanFlagOn(Flags, FORMAT_MESSAGE_ARGUMENT_ARRAY); do { if (AllocatedBuffer) { free(AllocatedBuffer); } AllocatedBuffer = malloc(WrittenSize); if (AllocatedBuffer == nullptr) { Status = STATUS_INSUFFICIENT_RESOURCES; break; } Status = RtlFormatMessage( MessageFormat, MaximumWidth, IgnoreInserts, ArgumentsAreAnAnsi, ArgumentsAreAnArray, Arguments, (PWSTR)AllocatedBuffer, WrittenSize, &WrittenSize); if (NT_SUCCESS(Status)) { break; } if (Status != STATUS_BUFFER_OVERFLOW) { break; } WrittenSize += 256; } while (true); if (!NT_SUCCESS(Status)) { break; } if (BooleanFlagOn(Flags, FORMAT_MESSAGE_ALLOCATE_BUFFER)) { *(PVOID*)Buffer = AllocatedBuffer; AllocatedBuffer = nullptr; } else if ((WrittenSize / sizeof(WCHAR)) > *Size) { Status = STATUS_BUFFER_TOO_SMALL; break; } else { RtlMoveMemory(Buffer, AllocatedBuffer, WrittenSize); } *Size = (WrittenSize - sizeof(WCHAR)) / sizeof(WCHAR); } __except (EXCEPTION_EXECUTE_HANDLER) { Status = GetExceptionCode(); break; } } while (false); free(AllocatedBuffer); RtlFreeUnicodeString(&UnicodeMessage); return Status; }
29.976959
95
0.458878
smallb
c8b6a31ac6a4a0dfde7165ea3aaf26f2a6b1245d
50,637
cpp
C++
mp/src/game/shared/fortress/tf_gamerules.cpp
MaartenS11/Team-Fortress-Invasion
f36b96d27f834d94e0db2d2a9470b05b42e9b460
[ "Unlicense" ]
1
2021-03-20T14:27:45.000Z
2021-03-20T14:27:45.000Z
mp/src/game/shared/fortress/tf_gamerules.cpp
MaartenS11/Team-Fortress-Invasion
f36b96d27f834d94e0db2d2a9470b05b42e9b460
[ "Unlicense" ]
null
null
null
mp/src/game/shared/fortress/tf_gamerules.cpp
MaartenS11/Team-Fortress-Invasion
f36b96d27f834d94e0db2d2a9470b05b42e9b460
[ "Unlicense" ]
null
null
null
#include "cbase.h" #include "tf_gamerules.h" #include "tf_shareddefs.h" #include "ammodef.h" #include "basetfcombatweapon_shared.h" #ifdef CLIENT_DLL #include "c_shield.h" #include "c_te_effect_dispatch.h" #define CShield C_Shield #else #include "tf_shield.h" #include "te_effect_dispatch.h" #include "player.h" #include "tf_player.h" #include "game.h" #include "gamerules.h" #include "teamplay_gamerules.h" #include "menu_base.h" #include "ammodef.h" #include "techtree.h" #include "tf_team.h" #include "tf_shield.h" #include "mathlib/mathlib.h" #include "entitylist.h" #include "basecombatweapon.h" #include "voice_gamemgr.h" #include "tf_class_infiltrator.h" #include "team_messages.h" #include "ndebugoverlay.h" #include "bot_base.h" #include "vstdlib/random.h" #include "info_act.h" #include "igamesystem.h" #include "filesystem.h" #include "info_vehicle_bay.h" #include "IserverVehicle.h" #include "weapon_builder.h" #include "weapon_objectselection.h" #endif // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" REGISTER_GAMERULES_CLASS(CTeamFortress); //IMPLEMENT_NETWORKCLASS_ALIASED( TeamFortress, DT_TeamFortress ) BEGIN_NETWORK_TABLE_NOBASE( CTeamFortress, DT_TeamFortress ) END_NETWORK_TABLE() #ifndef CLIENT_DLL #define MAX_OBJECT_COMMAND_DISTANCE 120.0f class CVoiceGameMgrHelper : public IVoiceGameMgrHelper { public: virtual bool CanPlayerHearPlayer( CBasePlayer *pListener, CBasePlayer *pTalker, bool &bProximity ) { // Gagged players can't talk at all if ( ((CBaseTFPlayer*)pTalker)->CanSpeak() == false ) return false; // Dead players can only be heard by other dead team mates if ( pTalker->IsAlive() == false ) { if ( pListener->IsAlive() == false ) return ( pListener->InSameTeam( pTalker ) ); return false; } return ( pListener->InSameTeam( pTalker ) ); } }; CVoiceGameMgrHelper g_VoiceGameMgrHelper; IVoiceGameMgrHelper *g_pVoiceGameMgrHelper = &g_VoiceGameMgrHelper; // Load the objects.txt file. class CObjectsFileLoad : public CAutoGameSystem { public: virtual bool Init() { LoadObjectInfos( filesystem ); return true; } } g_ObjectsFileLoad; extern bool g_fGameOver; float g_flNextReinforcementTime = 0.0f; extern ConVar tf_knockdowntime; // Time between reinforcements #define REINFORCEMENT_TIME 15.0 ConVar sk_plr_dmg_grenade ( "sk_plr_dmg_grenade","0"); char *sTeamNames[] = { "Unassigned", "Spectator", "Human", "Alien", }; // Handle the "PossessBot" command. CON_COMMAND_F(PossessBot, "Toggle. Possess a bot.\n\tArguments: <bot client number>", FCVAR_CHEAT) { CBaseTFPlayer *pPlayer = CBaseTFPlayer::Instance( UTIL_GetCommandClientIndex() ); if ( !pPlayer ) return; // Put the local player in control of this bot. if ( args.ArgC() != 2 ) { Warning( "PossessBot <client index>\n" ); return; } int iBotClient = atoi( args[1] ); int iBotEnt = iBotClient + 1; if ( iBotClient < 0 || iBotClient >= gpGlobals->maxClients || pPlayer->entindex() == iBotEnt ) Warning( "PossessBot <client index>\n" ); else { edict_t *pPlayerData = pPlayer->edict(); edict_t *pBotData = engine->PEntityOfEntIndex( iBotEnt ); if ( pBotData && pBotData->GetUnknown() ) { // SWAP EDICTS // Backup things we don't want to swap. edict_t oldPlayerData = *pPlayerData; edict_t oldBotData = *pBotData; // Swap edicts. edict_t tmp = *pPlayerData; *pPlayerData = *pBotData; *pBotData = tmp; // Restore things we didn't want to swap. //pPlayerData->m_EntitiesTouched = oldPlayerData.m_EntitiesTouched; //pBotData->m_EntitiesTouched = oldBotData.m_EntitiesTouched; CBaseEntity *pPlayerBaseEnt = CBaseEntity::Instance( pPlayerData ); CBaseEntity *pBotBaseEnt = CBaseEntity::Instance( pBotData ); // Make the other a bot and make the player not a bot. pPlayerBaseEnt->RemoveFlag( FL_FAKECLIENT ); pBotBaseEnt->AddFlag( FL_FAKECLIENT ); // Point the CBaseEntities at the right players. pPlayerBaseEnt->NetworkProp()->SetEdict( pPlayerData ); pBotBaseEnt->NetworkProp()->SetEdict( pBotData ); // Freeze the bot. pBotBaseEnt->AddEFlags( EFL_BOT_FROZEN ); // Remove orders to both of them.. CTFTeam *pTeam = pPlayer->GetTFTeam(); if ( pTeam ) { pTeam->RemoveOrdersToPlayer( (CBaseTFPlayer*)pPlayerBaseEnt ); pTeam->RemoveOrdersToPlayer( (CBaseTFPlayer*)pBotBaseEnt ); } } } } // Handler for the "bot" command. CON_COMMAND_F(bot, "Add a bot.", FCVAR_CHEAT) { CBaseTFPlayer *pPlayer = CBaseTFPlayer::Instance( UTIL_GetCommandClientIndex() ); // The bot command uses switches like command-line switches. // -count <count> tells how many bots to spawn. // -team <index> selects the bot's team. Default is -1 which chooses randomly. // Note: if you do -team !, then it // -class <index> selects the bot's class. Default is -1 which chooses randomly. // -frozen prevents the bots from running around when they spawn in. // Look at -count. int count = args.FindArgInt( "-count", 1 ); count = clamp( count, 1, 16 ); int iTeam = -1; const char *pVal = args.FindArg( "-team" ); if ( pVal ) { if ( pVal[0] == '!' ) iTeam = pPlayer->GetTFTeam()->GetEnemyTeam()->GetTeamNumber(); else { iTeam = atoi( pVal ); iTeam = clamp( iTeam, 0, GetNumberOfTeams() ); } } int iClass = args.FindArgInt( "-class", -1 ); iClass = clamp( iClass, -1, TFCLASS_CLASS_COUNT ); if ( iClass == TFCLASS_UNDECIDED ) iClass = TFCLASS_RECON; // Look at -frozen. bool bFrozen = !!args.FindArg( "-frozen" ); // Ok, spawn all the bots. while ( --count >= 0 ) BotPutInServer( bFrozen, iTeam, iClass ); } bool IsSpaceEmpty( CBaseEntity *pMainEnt, const Vector &vMin, const Vector &vMax ) { Vector vHalfDims = ( vMax - vMin ) * 0.5f; Vector vCenter = vMin + vHalfDims; trace_t trace; UTIL_TraceHull( vCenter, vCenter, -vHalfDims, vHalfDims, MASK_SOLID, pMainEnt, COLLISION_GROUP_NONE, &trace ); bool bClear = ( trace.fraction == 1 && trace.allsolid != 1 && (trace.startsolid != 1) ); return bClear; } Vector MaybeDropToGround( CBaseEntity *pMainEnt, bool bDropToGround, const Vector &vPos, const Vector &vMins, const Vector &vMaxs ) { if ( bDropToGround ) { trace_t trace; UTIL_TraceHull( vPos, vPos + Vector( 0, 0, -500 ), vMins, vMaxs, MASK_SOLID, pMainEnt, COLLISION_GROUP_NONE, &trace ); return trace.endpos; } else { return vPos; } } //----------------------------------------------------------------------------- // Purpose: This function can be used to find a valid placement location for an entity. // Given an origin to start looking from and a minimum radius to place the entity at, // it will sweep out a circle around vOrigin and try to find a valid spot (on the ground) // where mins and maxs will fit. // Input : *pMainEnt - Entity to place // &vOrigin - Point to search around // fRadius - Radius to search within // nTries - Number of tries to attempt // &mins - mins of the Entity // &maxs - maxs of the Entity // &outPos - Return point // Output : Returns true and fills in outPos if it found a spot. //----------------------------------------------------------------------------- bool EntityPlacementTest( CBaseEntity *pMainEnt, const Vector &vOrigin, Vector &outPos, bool bDropToGround ) { // This function moves the box out in each dimension in each step trying to find empty space like this: // // X // X X // Step 1: X Step 2: XXX Step 3: XXXXX // X X // X // Vector mins, maxs; pMainEnt->CollisionProp()->WorldSpaceAABB( &mins, &maxs ); mins -= pMainEnt->GetAbsOrigin(); maxs -= pMainEnt->GetAbsOrigin(); // Put some padding on their bbox. float flPadSize = 5; Vector vTestMins = mins - Vector( flPadSize, flPadSize, flPadSize ); Vector vTestMaxs = maxs + Vector( flPadSize, flPadSize, flPadSize ); // First test the starting origin. if ( IsSpaceEmpty( pMainEnt, vOrigin + vTestMins, vOrigin + vTestMaxs ) ) { outPos = MaybeDropToGround( pMainEnt, bDropToGround, vOrigin, vTestMins, vTestMaxs ); return true; } Vector vDims = vTestMaxs - vTestMins; // Keep branching out until we get too far. int iCurIteration = 0; int nMaxIterations = 15; int offset = 0; do { for ( int iDim=0; iDim < 3; iDim++ ) { float flCurOffset = offset * vDims[iDim]; for ( int iSign=0; iSign < 2; iSign++ ) { Vector vBase = vOrigin; vBase[iDim] += (iSign*2-1) * flCurOffset; if ( IsSpaceEmpty( pMainEnt, vBase + vTestMins, vBase + vTestMaxs ) ) { // Ensure that there is a clear line of sight from the spawnpoint entity to the actual spawn point. // (Useful for keeping things from spawning behind walls near a spawn point) trace_t tr; UTIL_TraceLine( vOrigin, vBase, MASK_SOLID, pMainEnt, COLLISION_GROUP_NONE, &tr ); if ( tr.fraction != 1.0 ) { continue; } outPos = MaybeDropToGround( pMainEnt, bDropToGround, vBase, vTestMins, vTestMaxs ); return true; } } } ++offset; } while ( iCurIteration++ < nMaxIterations ); // Warning( "EntityPlacementTest for ent %d:%s failed!\n", pMainEnt->entindex(), pMainEnt->GetClassname() ); return false; } //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- CBaseEntity *CTeamFortress::GetPlayerSpawnSpot( CBasePlayer *pPlayer ) { CBaseEntity *pSpawnSpot = pPlayer->EntSelectSpawnPoint(); #if 0 // Make sure the spawn spot isn't blocked... Vector vecTestOrg = pSpawnSpot->GetAbsOrigin(); vecTestOrg.z += pPlayer->WorldAlignSize().z * 0.5; Vector origin; EntityPlacementTest( pPlayer, vecTestOrg, origin, true ); // Move the player to the place it said. pPlayer->Teleport( &origin, NULL, NULL ); #else pPlayer->SetLocalOrigin(MaybeDropToGround(pPlayer,true,pSpawnSpot->GetAbsOrigin(),VEC_HULL_MIN,VEC_HULL_MAX)); #endif pPlayer->SetAbsVelocity( vec3_origin ); pPlayer->SetLocalAngles( pSpawnSpot->GetLocalAngles() ); pPlayer->m_Local.m_vecPunchAngle = vec3_angle; pPlayer->SnapEyeAngles( pSpawnSpot->GetLocalAngles() ); return pSpawnSpot; } CTeamFortress::CTeamFortress() { m_bAllowWeaponSwitch = true; // Create the team managers for ( int i = 0; i < MAX_TF_TEAMS; i++ ) { CTFTeam *pTeam = (CTFTeam*)CreateEntityByName( "tf_team_manager" ); pTeam->Init( sTeamNames[i], i ); g_Teams.AddToTail( pTeam ); } // Create the hint manager CBaseEntity::Create( "tf_hintmanager", vec3_origin, vec3_angle ); } //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- CTeamFortress::~CTeamFortress() { // Note, don't delete each team since they are in the gEntList and will // automatically be deleted from there, instead. g_Teams.Purge(); } //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CTeamFortress::UpdateClientData( CBasePlayer *player ) { } //----------------------------------------------------------------------------- // Purpose: Called after every level and load change //----------------------------------------------------------------------------- void CTeamFortress::LevelInitPostEntity() { g_flNextReinforcementTime = gpGlobals->curtime + REINFORCEMENT_TIME; BaseClass::LevelInitPostEntity(); } //----------------------------------------------------------------------------- // Purpose: The gamerules think function //----------------------------------------------------------------------------- void CTeamFortress::Think( void ) { BaseClass::Think(); // Check the reinforcement time if ( g_flNextReinforcementTime <= gpGlobals->curtime ) { //Msg( "Reinforcement Tick\n" ); // Reinforce any dead players for ( int i = 1; i <= gpGlobals->maxClients; i++ ) { CBaseTFPlayer *pPlayer = ToBaseTFPlayer( UTIL_PlayerByIndex(i) ); if ( pPlayer ) { // Ready to respawn? if ( pPlayer->IsReadyToReinforce() ) { pPlayer->Reinforce(); //pPlayer->GetTFTeam()->PostMessage( TEAMMSG_REINFORCEMENTS_ARRIVED ); } } } g_flNextReinforcementTime += REINFORCEMENT_TIME; } // Tell each Team to think for ( int i = 0; i < GetNumberOfTeams(); i++ ) GetGlobalTeam( i )->Think(); } //----------------------------------------------------------------------------- // Purpose: Player has just left the game //----------------------------------------------------------------------------- void CTeamFortress::ClientDisconnected( edict_t *pClient ) { CBaseTFPlayer *pPlayer = (CBaseTFPlayer *)CBaseEntity::Instance( pClient ); if ( pPlayer ) { // Tell all orders that this player's left COrderEvent_PlayerDisconnected order( pPlayer ); GlobalOrderEvent( &order ); // Delete this player's playerclass pPlayer->ClearPlayerClass(); } BaseClass::ClientDisconnected( pClient ); } //----------------------------------------------------------------------------- // Purpose: TF2 Specific Client Commands // Input : // Output : //----------------------------------------------------------------------------- bool CTeamFortress::ClientCommand(CBaseEntity *pEdict, const CCommand &args) { CBaseTFPlayer *pPlayer = (CBaseTFPlayer *)pEdict; const char *pcmd = args[0]; if ( FStrEq( pcmd, "objcmd" ) ) { if ( args.ArgC() < 3 ) return true; int entindex = atoi( args[1] ); edict_t* pEdict = INDEXENT(entindex); if (pEdict) { CBaseEntity* pBaseEntity = GetContainingEntity(pEdict); CBaseObject* pObject = dynamic_cast<CBaseObject*>(pBaseEntity); if (pObject && pObject->InSameTeam(pPlayer)) { // We have to be relatively close to the object too... // FIXME: When I put in a better dismantle solution (namely send the dismantle // command along with a cancledismantle command), re-enable this. // Also, need to solve the problem of control panels on large objects // For the battering ram, for instance, this distance is too far. // float flDistSq = pObject->GetAbsOrigin().DistToSqr( pPlayer->GetAbsOrigin() ); // if (flDistSq <= (MAX_OBJECT_COMMAND_DISTANCE * MAX_OBJECT_COMMAND_DISTANCE)) { CCommand objectArgs( args.ArgC() - 2, &args.ArgV()[2]); pObject->ClientCommand(pPlayer, objectArgs); } } } return true; } if ( FStrEq( pcmd, "buildvehicle" ) ) { if ( args.ArgC() < 3 ) return true; int entindex = atoi( args[1] ); int ivehicle = atoi( args[2] ); edict_t *pEdict = INDEXENT(entindex); if (pEdict) { CBaseEntity *pBaseEntity = GetContainingEntity(pEdict); CVGuiScreenVehicleBay *pBayScreen = dynamic_cast<CVGuiScreenVehicleBay*>(pBaseEntity); if ( pBayScreen && pBayScreen->InSameTeam(pPlayer) ) { // Need the same logic as objcmd above to ensure the player's near the vehicle bay vgui screen pBayScreen->BuildVehicle( pPlayer, ivehicle ); } } return true; } // TF Commands if ( FStrEq( pcmd, "menuselect" ) ) { if ( pPlayer->m_pCurrentMenu == NULL ) return true; if ( args.ArgC() < 2 ) return true; int slot = atoi( args[1] ); // select the item from the current menu if ( pPlayer->m_pCurrentMenu->Input( pPlayer, slot ) == false ) { // invalid selection, force menu refresh pPlayer->m_MenuUpdateTime = gpGlobals->curtime; pPlayer->m_MenuRefreshTime = gpGlobals->curtime; } return true; } else if ( FStrEq( pcmd, "changeclass" ) ) // Rewrote this... ~hogsy { if(args.ArgC() < 2) return true; int iClass = atoi(args.Arg(1)), iOldClass = pPlayer->PlayerClass(); if(iClass == iOldClass) return true; // Random class selection. if(iClass <= -1) iClass = random->RandomInt(TFCLASS_RECON,TFCLASS_CLASS_COUNT-1); pPlayer->ChangeClass((TFClass)iClass); int iTeam = pPlayer->GetTeamNumber(); if( !pPlayer->IsDead() && ((iTeam == TEAM_HUMANS || iTeam == TEAM_ALIENS) && ((iOldClass > TFCLASS_UNDECIDED) && (iOldClass < TFCLASS_CLASS_COUNT)))) { pPlayer->RemoveAllItems(false); pPlayer->HideViewModels(); pPlayer->ClearPlayerClass(); pPlayer->CommitSuicide(false,true); pPlayer->IncrementFragCount(1); } else pPlayer->ForceRespawn(); return true; } else if ( FStrEq( pcmd, "changeteam" ) ) // Rewrote this... ~hogsy { if(args.ArgC() < 2) return true; int iTeam = atoi(args.Arg(1)), iOldTeam = pPlayer->GetTeamNumber(); if(iTeam == iOldTeam) return true; // Automatic team selection. if(iTeam <= -1) pPlayer->PlacePlayerInTeam(); // Otherwise throw us into our selected team. else pPlayer->ChangeTeam(iTeam); // Don't commit suicide unless we're already in a team. if(!pPlayer->IsDead() && (iOldTeam == TEAM_HUMANS || iOldTeam == TEAM_ALIENS)) { pPlayer->RemoveAllItems(false); pPlayer->HideViewModels(); pPlayer->CommitSuicide(false,true); pPlayer->IncrementFragCount(1); } else pPlayer->ForceRespawn(); return true; } else if ( FStrEq( pcmd, "tactical" ) ) { bool bTactical = args[1][0] == '!' ? !pPlayer->GetLocalData()->m_nInTacticalView : (atoi( args[1] ) ? true : false); pPlayer->ShowTacticalView( bTactical ); return true; } else if ( FStrEq( pcmd, "tech" ) ) { CTFTeam *pTFTeam = pPlayer->GetTFTeam(); if ( !pTFTeam ) return true; if ( args.ArgC() == 2 ) { const char *name = args[1]; CBaseTechnology *tech = pTFTeam->m_pTechnologyTree->GetTechnology( name ); if ( tech ) pTFTeam->EnableTechnology( tech ); } else Msg( "usage: tech <name>\n" ); return true; } else if ( FStrEq( pcmd, "techall" ) ) { if ( pPlayer->GetTFTeam() ) pPlayer->GetTFTeam()->EnableAllTechnologies(); return true; } else if ( FStrEq( pcmd, "tank" ) ) CBaseEntity::Create( "tank", pPlayer->WorldSpaceCenter(), pPlayer->GetLocalAngles() ); else if ( FStrEq( pcmd, "addres" ) || FStrEq( pcmd, "ar" ) ) { if ( args.ArgC() == 3 ) { int team = atoi( args[1] ); float flResourceAmount = atof( args[2] ); if ( team > 0 && team <= GetNumberOfTeams() ) GetGlobalTFTeam( team )->AddTeamResources( flResourceAmount ); } else Msg( "usage: ar <team 1 : 2> <amount>\n" ); return true; } else if ( FStrEq( pcmd, "preftech" ) ) { CTFTeam *pTFTeam = pPlayer->GetTFTeam(); if ( !pTFTeam ) return true; if ( args.ArgC() == 2 ) { int iPrefTechIndex = atoi( args[1] ); pPlayer->SetPreferredTechnology( pTFTeam->m_pTechnologyTree, iPrefTechIndex ); } return true; } else if( FStrEq( pcmd, "decaltest" ) ) { trace_t trace; int entityIndex; Vector vForward; AngleVectors( pEdict->GetAbsAngles(), &vForward, NULL, NULL ); UTIL_TraceLine( pEdict->GetAbsOrigin(), pEdict->GetAbsOrigin() + vForward * 10000, MASK_SOLID_BRUSHONLY, pEdict, COLLISION_GROUP_NONE, &trace ); entityIndex = trace.GetEntityIndex(); int id = UTIL_PrecacheDecal( "decals/tscorch", true ); CBroadcastRecipientFilter filter; te->BSPDecal( filter, 0.0, &trace.endpos, entityIndex, id ); return true; } else if( FStrEq( pcmd, "killorder" ) ) { if( pPlayer->GetTFTeam() ) pPlayer->GetTFTeam()->RemoveOrdersToPlayer( pPlayer ); return true; } else if( BaseClass::ClientCommand( pEdict, args ) ) return true; else return pPlayer->ClientCommand(args); return false; } //----------------------------------------------------------------------------- // Purpose: Player has just spawned. Equip them. //----------------------------------------------------------------------------- void CTeamFortress::PlayerSpawn( CBasePlayer *pPlayer ) { pPlayer->EquipSuit(); } //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- bool CTeamFortress::PlayFootstepSounds( CBasePlayer *pl ) { if ( footsteps.GetInt() == 0 ) return false; CBaseTFPlayer *tfPlayer = static_cast< CBaseTFPlayer * >( pl ); if ( tfPlayer ) if ( tfPlayer->IsKnockedDown() ) return false; // only make step sounds in multiplayer if the player is moving fast enough if ( pl->IsOnLadder() || pl->GetAbsVelocity().Length2D() > 100 ) return true; return false; } //----------------------------------------------------------------------------- // Purpose: Remove falling damage for jetpacking recons //----------------------------------------------------------------------------- float CTeamFortress::FlPlayerFallDamage( CBasePlayer *pPlayer ) { int iFallDamage = (int)falldamage.GetFloat(); CBaseTFPlayer *pTFPlayer = (CBaseTFPlayer *)pPlayer; if ( pTFPlayer->IsClass( TFCLASS_RECON ) ) return 0; switch ( iFallDamage ) { case 1://progressive pPlayer->m_Local.m_flFallVelocity -= PLAYER_MAX_SAFE_FALL_SPEED; return pPlayer->m_Local.m_flFallVelocity * DAMAGE_FOR_FALL_SPEED; break; default: case 0:// fixed return 10; break; } } //----------------------------------------------------------------------------- // Is the ray blocked by enemy shields? //----------------------------------------------------------------------------- bool CTeamFortress::IsBlockedByEnemyShields( const Vector& src, const Vector& end, int nFriendlyTeam ) { // Iterate over all shields on the same team, disable them so // we don't intersect with them... CShield::ActivateShields( false, nFriendlyTeam ); bool bBlocked = CShield::IsBlockedByShields( src, end ); CShield::ActivateShields( true, nFriendlyTeam ); return bBlocked; } //----------------------------------------------------------------------------- // Traces a line vs a shield, returns damage reduction //----------------------------------------------------------------------------- float CTeamFortress::WeaponTraceEntity( CBaseEntity *pEntity, const Vector &src, const Vector &end, unsigned int mask, trace_t *pTrace ) { int damageType = pEntity->GetDamageType(); // Iterate over all shields on the same team, disable them so // we don't intersect with them... CShield::ActivateShields( false, pEntity->GetTeamNumber() ); // Trace it baby... float damage = 1.0f; bool done; do { // FIXME: Optimize so we don't test the same ray but start at the // previous collision point done = true; UTIL_TraceEntity( pEntity, src, end, mask, pTrace ); // Shield check... if (pTrace->fraction != 1.0) { CBaseEntity *pCollidedEntity = pTrace->m_pEnt; // Did we hit a shield? CShield* pShield = dynamic_cast<CShield*>(pCollidedEntity); if (pShield) { Vector vecDir; VectorSubtract( end, src, vecDir ); // Let's see if we let this damage type through... if (pShield->ProtectionAmount( damageType ) == 1.0f) { // We deflected all of the damage pShield->RegisterDeflection( vecDir, damageType, pTrace ); damage = 0.0f; } else { // We deflected part of the damage, but we need to trace again // only this time we can't let the shield register a collision damage *= 1.0f - pShield->ProtectionAmount( damageType ); // FIXME: DMG_BULLET should be something else pShield->RegisterPassThru( vecDir, damageType, pTrace ); pShield->ActivateCollisions( false ); done = false; } } } } while (!done); // Reduce the damage dealt... but don't worry about if if the // shield actually deflected it. In that case, we actually want // explosive things to explode at full blast power. The shield will prevent // the blast damage to things behind the shield if (damage != 0.0) pEntity->SetDamage(pEntity->GetDamage() * damage); // Reactivate all shields CShield::ActivateShields( true ); return damage; } //----------------------------------------------------------------------------- // Purpose: Is trace blocked by a world or a shield? //----------------------------------------------------------------------------- bool CTeamFortress::IsTraceBlockedByWorldOrShield( const Vector& src, const Vector& end, CBaseEntity *pShooter, int damageType, trace_t* pTrace ) { // Iterate over all shields on the same team, disable them so // we don't intersect with them... CShield::ActivateShields( false, pShooter->GetTeamNumber() ); //NDebugOverlay::Line( src, pTrace->endpos, 255,255,255, true, 5.0 ); //NDebugOverlay::Box( pTrace->endpos, Vector(-2,-2,-2), Vector(2,2,2), 255,255,255, true, 5.0 ); // Now make sure there isn't something other than team players in the way. class CShieldWorldFilter : public CTraceFilterSimple { public: CShieldWorldFilter( CBaseEntity *pShooter ) : CTraceFilterSimple( pShooter, TFCOLLISION_GROUP_WEAPON ) { } virtual bool ShouldHitEntity( IHandleEntity *pHandleEntity, int contentsMask ) { CBaseEntity *pEnt = static_cast<CBaseEntity*>(pHandleEntity); // Did we hit a brushmodel? if ( pEnt->GetSolid() == SOLID_BSP ) return true; // Ignore collisions with everything but shields if ( pEnt->GetCollisionGroup() != TFCOLLISION_GROUP_SHIELD ) return false; return CTraceFilterSimple::ShouldHitEntity( pHandleEntity, contentsMask ); } }; trace_t tr; CShieldWorldFilter shieldworldFilter( pShooter ); UTIL_TraceLine( src, end, MASK_SOLID, &shieldworldFilter, pTrace ); // Shield check... if (pTrace->fraction != 1.0) { CBaseEntity *pEntity = pTrace->m_pEnt; CShield* pShield = dynamic_cast<CShield*>(pEntity); if (pShield) { Vector vecDir; VectorSubtract( end, src, vecDir ); // We deflected all of the damage pShield->RegisterDeflection( vecDir, damageType, pTrace ); } } // Reactivate all shields CShield::ActivateShields( true ); return ( pTrace->fraction < 1.0 ); } //----------------------------------------------------------------------------- // Default implementation of radius damage //----------------------------------------------------------------------------- void CTeamFortress::RadiusDamage( const CTakeDamageInfo &info, const Vector &vecSrcIn, float flRadius, int iClassIgnore ) { CBaseEntity *pEntity = NULL; trace_t tr; float flAdjustedDamage, falloff; Vector vecSpot; Vector vecSrc = vecSrcIn; if ( flRadius ) falloff = info.GetDamage() / flRadius; else falloff = 1.0; int bInWater = (UTIL_PointContents ( vecSrc ) & MASK_WATER) ? true : false; // in case grenade is lying on the ground // Is this even needed anymore? Grenades already jump up in their explode code... vecSrc.z += 1; // iterate on all entities in the vicinity. for ( CEntitySphereQuery sphere( vecSrc, flRadius ); ; sphere.NextEntity() ) { pEntity = sphere.GetCurrentEntity(); if (!pEntity) break; if ( pEntity->m_takedamage != DAMAGE_NO ) { // UNDONE: this should check a damage mask, not an ignore if ( iClassIgnore != CLASS_NONE && pEntity->Classify() == iClassIgnore ) continue; // blast's don't tavel into or out of water if (bInWater && pEntity->GetWaterLevel() == 0) continue; if (!bInWater && pEntity->GetWaterLevel() == 3) continue; // Copy initial values out of the info CTakeDamageInfo subInfo = info; if ( !subInfo.GetAttacker() ) subInfo.SetAttacker( subInfo.GetInflictor() ); // Don't bother with hitboxes on this test vecSpot = pEntity->WorldSpaceCenter( ); WeaponTraceLine ( vecSrc, vecSpot, MASK_SHOT & (~CONTENTS_HITBOX), subInfo.GetInflictor(), subInfo.GetDamageType(), &tr ); if ( tr.fraction != 1.0 && tr.m_pEnt != pEntity ) continue; // We're going to need to see if it actually hit a shield // the explosion can 'see' this entity, so hurt them! if (tr.startsolid) { // if we're stuck inside them, fixup the position and distance tr.endpos = vecSrc; tr.fraction = 0.0; } // decrease damage for an ent that's farther from the bomb. flAdjustedDamage = ( vecSrc - tr.endpos ).Length() * falloff; flAdjustedDamage = subInfo.GetDamage() - flAdjustedDamage; if ( flAdjustedDamage > 0 ) { // Knockdown // For now, just use damage. Eventually we should do it on a per-weapon basis. /* if ( pEntity->IsPlayer() && flAdjustedDamage > 40 ) { Vector vecForce = vecSpot - vecSrc; // Reduce the Z component and increase the X,Y vecForce.x *= 3.0; vecForce.y *= 3.0; vecForce.z *= 0.5; VectorNormalize( vecForce ); ((CBaseTFPlayer*)pEntity)->KnockDownPlayer( vecForce, flAdjustedDamage * 15.0f, tf_knockdowntime.GetFloat() ); } */ // Msg( "hit %s\n", pEntity->GetClassname() ); subInfo.SetDamage( flAdjustedDamage ); Vector dir = tr.endpos - vecSrc; if ( VectorNormalize( dir ) == 0 ) { dir = vecSpot - vecSrc; VectorNormalize( dir ); } // If we don't have a damage force, manufacture one if ( subInfo.GetDamagePosition() == vec3_origin || subInfo.GetDamageForce() == vec3_origin ) CalculateExplosiveDamageForce( &subInfo, dir, vecSrc ); if (tr.fraction != 1.0) { ClearMultiDamage( ); pEntity->DispatchTraceAttack( subInfo, dir, &tr ); ApplyMultiDamage(); } else pEntity->TakeDamage( subInfo ); } } } } //----------------------------------------------------------------------------- // Purpose: Find out if this player had an assistant when he killed an enemy //----------------------------------------------------------------------------- CBasePlayer *CTeamFortress::GetDeathAssistant( CBaseEntity *pKiller, CBaseEntity *pInflictor ) { if ( !pKiller || pKiller->Classify() != CLASS_PLAYER ) return NULL; CBaseTFPlayer *pAssistant = NULL; // Killing entity might be specifying a scorer player IScorer *pScorerInterface = dynamic_cast<IScorer*>( pKiller ); if ( pScorerInterface ) { pAssistant = (CBaseTFPlayer*)pScorerInterface->GetAssistant(); } // Inflicting entity might be specifying a scoring player if ( !pAssistant ) { pScorerInterface = dynamic_cast<IScorer*>( pInflictor ); if ( pScorerInterface ) { pAssistant = (CBaseTFPlayer*)pScorerInterface->GetAssistant(); } } // Don't allow self assistance Assert( pAssistant != pKiller ); return pAssistant; } void CTeamFortress::DeathNotice( CBasePlayer *pVictim, const CTakeDamageInfo &info ) { // Work out what killed the player, and send a message to all clients about it const char *killer_weapon_name = "world"; // by default, the player is killed by the world int killer_index = 0; int assist_index = 0; // Find the killer & the scorer CBaseEntity *pInflictor = info.GetInflictor(); CBaseEntity *pKiller = info.GetAttacker(); CBasePlayer *pScorer = GetDeathScorer( pKiller, pInflictor ); CBasePlayer *pAssistant = GetDeathAssistant( pKiller, pInflictor ); if ( pAssistant ) assist_index = pAssistant->entindex(); // Custom kill type? if ( info.GetDamageCustom() ) { killer_weapon_name = GetDamageCustomString(info); if ( pScorer ) killer_index = pScorer->entindex(); } else { // Is the killer a client? if ( pScorer ) { killer_index = pScorer->entindex(); if ( pInflictor ) { if ( pInflictor == pScorer ) { // If the inflictor is the killer, then it must be their current weapon doing the damage if ( pScorer->GetActiveWeapon() ) killer_weapon_name = pScorer->GetActiveWeapon()->GetDeathNoticeName(); } else killer_weapon_name = STRING( pInflictor->m_iClassname ); // it's just that easy } } else killer_weapon_name = STRING( pInflictor->m_iClassname ); // strip the NPC_* or weapon_* from the inflictor's classname if ( strncmp( killer_weapon_name, "weapon_", 7 ) == 0 ) killer_weapon_name += 7; else if ( strncmp( killer_weapon_name, "NPC_", 8 ) == 0 ) killer_weapon_name += 8; else if ( strncmp( killer_weapon_name, "func_", 5 ) == 0 ) killer_weapon_name += 5; } #if 0 // Did he kill himself? if ( pVictim == pScorer ) UTIL_LogPrintf( "\"%s<%i>\" killed self with %s\n", STRING( pVictim->PlayerData()->netname ), engine->GetPlayerUserId( pVictim->edict() ), killer_weapon_name ); else if ( pScorer ) { UTIL_LogPrintf( "\"%s<%i>\" killed \"%s<%i>\" with %s\n", STRING( pScorer->pl.netname ), engine->GetPlayerUserId( pScorer->edict() ), STRING( pVictim->PlayerData()->netname ), engine->GetPlayerUserId( pVictim->edict() ), killer_weapon_name ); } else // killed by the world UTIL_LogPrintf( "\"%s<%i>\" killed by world with %s\n", STRING( pVictim->PlayerData()->netname ), engine->GetPlayerUserId( pVictim->edict() ), killer_weapon_name ); #endif IGameEvent * event = gameeventmanager->CreateEvent( "player_death" ); if(event) { event->SetInt("killer", pScorer ? pScorer->GetUserID() : 0 ); event->SetInt("victim", pVictim->GetUserID() ); event->SetString("weapon", killer_weapon_name ); gameeventmanager->FireEvent( event, false ); } } //----------------------------------------------------------------------------- // Purpose: Custom kill types for TF //----------------------------------------------------------------------------- const char *CTeamFortress::GetDamageCustomString(const CTakeDamageInfo &info) { switch( info.GetDamageCustom() ) { case DMG_KILL_BULLRUSH: return "bullrush"; break; default: break; }; return "INVALID CUSTOM KILL TYPE"; } //----------------------------------------------------------------------------- // Purpose: // Input : *pListener - // *pSpeaker - // Output : Returns true on success, false on failure. //----------------------------------------------------------------------------- bool CTeamFortress::PlayerCanHearChat( CBasePlayer *pListener, CBasePlayer *pSpeaker ) { if ( BaseClass::PlayerCanHearChat( pListener, pSpeaker ) ) return true; CBaseTFPlayer *listener = static_cast< CBaseTFPlayer * >( pListener ); CBaseTFPlayer *speaker = static_cast< CBaseTFPlayer * >( pSpeaker ); if ( listener && speaker ) { if ( listener->IsClass( TFCLASS_INFILTRATOR ) ) { Vector delta; delta = listener->EarPosition() - speaker->GetAbsOrigin(); if ( delta.Length() < INFILTRATOR_EAVESDROP_RADIUS ) return true; } } return false; } void CTeamFortress::InitDefaultAIRelationships( void ) { // Allocate memory for default relationships CBaseCombatCharacter::AllocateDefaultRelationships(); // -------------------------------------------------------------- // First initialize table so we can report missing relationships // -------------------------------------------------------------- int i, j; for (i=0;i<NUM_AI_CLASSES;i++) { for (j=0;j<NUM_AI_CLASSES;j++) { // By default all relationships are neutral of priority zero CBaseCombatCharacter::SetDefaultRelationship( (Class_T)i, (Class_T)j, D_NU, 0 ); } } // ------------------------------------------------------------ // > CLASS_NONE // ------------------------------------------------------------ CBaseCombatCharacter::SetDefaultRelationship(CLASS_NONE, CLASS_NONE, D_NU, 0); CBaseCombatCharacter::SetDefaultRelationship(CLASS_NONE, CLASS_PLAYER, D_NU, 0); // ------------------------------------------------------------ // > CLASS_PLAYER // ------------------------------------------------------------ CBaseCombatCharacter::SetDefaultRelationship(CLASS_PLAYER, CLASS_NONE, D_NU, 0); CBaseCombatCharacter::SetDefaultRelationship(CLASS_PLAYER, CLASS_PLAYER, D_NU, 0); } //----------------------------------------------------------------------------- // Purpose: Return a pointer to the opposing team //----------------------------------------------------------------------------- CTFTeam *GetOpposingTeam( CTeam *pTeam ) { // Hacky! if ( pTeam->GetTeamNumber() == 1 ) return GetGlobalTFTeam( 2 ); return GetGlobalTFTeam( 1 ); } //------------------------------------------------------------------------------ // Purpose : Return classify text for classify type //------------------------------------------------------------------------------ const char *CTeamFortress::AIClassText(int classType) { switch (classType) { case CLASS_NONE: return "CLASS_NONE"; case CLASS_PLAYER: return "CLASS_PLAYER"; default: return "MISSING CLASS in ClassifyText()"; } } //----------------------------------------------------------------------------- // Purpose: When gaining new technologies in TF, prevent auto switching if we // receive a weapon during the switch // Input : *pPlayer - // *pWeapon - // Output : Returns true on success, false on failure. //----------------------------------------------------------------------------- bool CTeamFortress::FShouldSwitchWeapon( CBasePlayer *pPlayer, CBaseCombatWeapon *pWeapon ) { if ( !GetAllowWeaponSwitch() ) return false; // Never auto switch to object placement if ( dynamic_cast<CWeaponBuilder*>(pWeapon) ) return false; if ( dynamic_cast<CWeaponObjectSelection*>(pWeapon) ) return false; return BaseClass::FShouldSwitchWeapon( pPlayer, pWeapon ); } //----------------------------------------------------------------------------- // Purpose: // Input : allow - //----------------------------------------------------------------------------- void CTeamFortress::SetAllowWeaponSwitch( bool allow ) { m_bAllowWeaponSwitch = allow; } //----------------------------------------------------------------------------- // Purpose: // Output : Returns true on success, false on failure. //----------------------------------------------------------------------------- bool CTeamFortress::GetAllowWeaponSwitch( void ) { return m_bAllowWeaponSwitch; } //----------------------------------------------------------------------------- // Purpose: // Input : *pPlayer - // Output : const char //----------------------------------------------------------------------------- const char *CTeamFortress::SetDefaultPlayerTeam( CBasePlayer *pPlayer ) { Assert( pPlayer ); return BaseClass::SetDefaultPlayerTeam( pPlayer ); } // Called when game rules are created by CWorld void CTeamFortress::LevelInitPreEntity( void ) { BaseClass::LevelInitPreEntity(); g_flNextReinforcementTime = 0.0f; } // Called when game rules are destroyed by CWorld void CTeamFortress::LevelShutdown( void ) { g_flNextReinforcementTime = 0.0f; g_hCurrentAct = NULL; BaseClass::LevelShutdown(); } bool CTeamFortress::IsConnectedUserInfoChangeAllowed( CBasePlayer *pPlayer ) { return true; } void InitBodyQue(void) { // FIXME: Make this work } #endif // ----------------------------------------------------------------------------- // // Shared CTeamFortress code. // ----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- // Purpose: Send the appropriate weapon impact //----------------------------------------------------------------------------- void WeaponImpact( trace_t *tr, Vector vecDir, bool bHurt, CBaseEntity *pEntity, int iDamageType ) { // If we hit a combat shield, play the hit effect if ( iDamageType & (DMG_PLASMA | DMG_ENERGYBEAM) ) { if ( bHurt ) { Assert( pEntity ); bool bHitHandheldShield = (pEntity->IsPlayer() && ((CBaseTFPlayer*)pEntity)->IsHittingShield( vecDir, NULL )); if ( bHitHandheldShield ) UTIL_ImpactTrace( tr, iDamageType, "PlasmaShield" ); else { // Client waits for server version #ifndef CLIENT_DLL // Make sure the server sends to us, even though we're predicting CDisablePredictionFiltering dpf; UTIL_ImpactTrace( tr, iDamageType, "PlasmaHurt" ); #endif } } else UTIL_ImpactTrace( tr, iDamageType, "PlasmaUnhurt" ); } else { if ( bHurt ) { Assert( pEntity ); bool bHitHandheldShield = (pEntity->IsPlayer() && ((CBaseTFPlayer*)pEntity)->IsHittingShield( vecDir, NULL )); if ( bHitHandheldShield ) { UTIL_ImpactTrace( tr, iDamageType, "ImpactShield" ); } else { // Client waits for server version #ifndef CLIENT_DLL // Make sure the server sends to us, even though we're predicting CDisablePredictionFiltering dpf; UTIL_ImpactTrace( tr, iDamageType, "Impact" ); #endif } } else UTIL_ImpactTrace( tr, iDamageType, "ImpactUnhurt" ); } } static bool CheckCollisionGroupPlayerMovement( int collisionGroup0, int collisionGroup1 ) { if ( collisionGroup0 == COLLISION_GROUP_PLAYER ) { // Players don't collide with objects or other players if ( collisionGroup1 == COLLISION_GROUP_PLAYER || collisionGroup1 == TFCOLLISION_GROUP_OBJECT ) return false; } if ( collisionGroup1 == COLLISION_GROUP_PLAYER_MOVEMENT ) { // This is only for probing, so it better not be on both sides!!! Assert( collisionGroup0 != COLLISION_GROUP_PLAYER_MOVEMENT ); // No collide with players any more // Nor with objects or grenades switch ( collisionGroup0 ) { default: break; case COLLISION_GROUP_PLAYER: return false; case TFCOLLISION_GROUP_OBJECT_SOLIDTOPLAYERMOVEMENT: // Certain objects are still solid to player movement return true; case TFCOLLISION_GROUP_COMBATOBJECT: case TFCOLLISION_GROUP_OBJECT: return false; case TFCOLLISION_GROUP_GRENADE: case COLLISION_GROUP_DEBRIS: return false; } } return true; } void CTeamFortress::WeaponTraceLine( const Vector& src, const Vector& end, unsigned int mask, CBaseEntity *pShooter, int damageType, trace_t* pTrace ) { // Iterate over all shields on the same team, disable them so // we don't intersect with them... CShield::ActivateShields( false, pShooter->GetTeamNumber() ); UTIL_TraceLine(src, end, mask, pShooter, TFCOLLISION_GROUP_WEAPON, pTrace); // NDebugOverlay::Line( src, pTrace->endpos, 255,255,255, true, 5.0 ); // NDebugOverlay::Box( pTrace->endpos, Vector(-2,-2,-2), Vector(2,2,2), 255,255,255, true, 5.0 ); // Shield check... if (pTrace->fraction != 1.0) { CBaseEntity *pEntity = pTrace->m_pEnt; CShield* pShield = dynamic_cast<CShield*>(pEntity); if (pShield) { Vector vecDir; VectorSubtract( end, src, vecDir ); // We deflected all of the damage pShield->RegisterDeflection( vecDir, damageType, pTrace ); } } // Reactivate all shields CShield::ActivateShields( true ); } bool CTeamFortress::ShouldCollide( int collisionGroup0, int collisionGroup1 ) { if ( collisionGroup0 > collisionGroup1 ) // swap so that lowest is always first V_swap(collisionGroup0,collisionGroup1); // Ignore base class HL2 definition for COLLISION_GROUP_WEAPON, change to COLLISION_GROUP_NONE if ( collisionGroup0 == COLLISION_GROUP_WEAPON ) collisionGroup0 = COLLISION_GROUP_NONE; if ( collisionGroup1 == COLLISION_GROUP_WEAPON ) collisionGroup1 = COLLISION_GROUP_NONE; // Shields collide with weapons + grenades only if ( collisionGroup0 == TFCOLLISION_GROUP_SHIELD ) return ((collisionGroup1 == TFCOLLISION_GROUP_WEAPON) || (collisionGroup1 == TFCOLLISION_GROUP_GRENADE)); // Weapons can collide with things (players) in vehicles. if( collisionGroup0 == COLLISION_GROUP_IN_VEHICLE && collisionGroup1 == TFCOLLISION_GROUP_WEAPON ) return true; // COLLISION TEST: // Players don't collide with other players or objects if ( !CheckCollisionGroupPlayerMovement( collisionGroup0, collisionGroup1 ) ) return false; // Reciprocal test if ( !CheckCollisionGroupPlayerMovement( collisionGroup1, collisionGroup0 ) ) return false; // Grenades don't collide with debris if ( collisionGroup1 == TFCOLLISION_GROUP_GRENADE ) if ( collisionGroup0 == COLLISION_GROUP_DEBRIS ) return false; // Combat objects don't collide with players if ( collisionGroup1 == TFCOLLISION_GROUP_COMBATOBJECT ) if ( collisionGroup0 == COLLISION_GROUP_PLAYER ) return false; // Resource chunks don't collide with each other or vehicles if ( collisionGroup1 == TFCOLLISION_GROUP_RESOURCE_CHUNK ) { if ( collisionGroup0 == TFCOLLISION_GROUP_RESOURCE_CHUNK ) return false; // if ( collisionGroup0 == COLLISION_GROUP_VEHICLE ) // return false; } return BaseClass::ShouldCollide( collisionGroup0, collisionGroup1 ); } //----------------------------------------------------------------------------- // Purpose: Fire a generic bullet //----------------------------------------------------------------------------- void CTeamFortress::FireBullets( const CTakeDamageInfo &info, int cShots, const Vector &vecSrc, const Vector &vecDirShooting, const Vector &vecSpread, float flDistance, int iAmmoType, int iTracerFreq, int firingEntID, int attachmentID, const char *sCustomTracer ) { static int tracerCount; bool tracer; trace_t tr; CTakeDamageInfo subInfo = info; CBaseTFCombatWeapon *pWeapon = dynamic_cast<CBaseTFCombatWeapon*>(info.GetInflictor()); Assert( subInfo.GetInflictor() ); // Default attacker is the inflictor if ( subInfo.GetAttacker() == NULL ) subInfo.SetAttacker( subInfo.GetInflictor() ); // -------------------------------------------------- // Get direction vectors for spread // -------------------------------------------------- Vector vecUp = Vector(0,0,1); Vector vecRight; CrossProduct ( vecDirShooting, vecUp, vecRight ); CrossProduct ( vecDirShooting, -vecRight, vecUp ); #ifndef CLIENT_DLL ClearMultiDamage(); #endif int seed = 0; for (int iShot = 0; iShot < cShots; iShot++) { // get circular gaussian spread float x, y, z; do { float x1, x2, y1, y2; // Note the additional seed because otherwise we get the same set of random #'s and will get stuck // in an infinite loop here potentially // FIXME: Can we use a gaussian random # function instead? ywb if ( CBaseEntity::GetPredictionRandomSeed() != -1 ) { x1 = SharedRandomFloat("randshot", -0.5f, 0.5f, ++seed ); x2 = SharedRandomFloat("randshot", -0.5f, 0.5f, ++seed ); y1 = SharedRandomFloat("randshot", -0.5f, 0.5f, ++seed ); y2 = SharedRandomFloat("randshot", -0.5f, 0.5f, ++seed ); } else { x1 = RandomFloat( -0.5, 0.5 ); x2 = RandomFloat( -0.5, 0.5 ); y1 = RandomFloat( -0.5, 0.5 ); y2 = RandomFloat( -0.5, 0.5 ); } x = x1 + x2; y = y1 + y2; z = x*x+y*y; } while (z > 1); Vector vecDir = vecDirShooting + x * vecSpread.x * vecRight + y * vecSpread.y * vecUp; Vector vecEnd = vecSrc + vecDir * flDistance; // Try the trace WeaponTraceLine( vecSrc, vecEnd, MASK_SHOT, subInfo.GetInflictor(), subInfo.GetDamageType(), &tr ); tracer = false; if (iTracerFreq != 0 && (tracerCount++ % iTracerFreq) == 0) { Vector vecTracerSrc; // adjust tracer position for player if ( subInfo.GetInflictor()->IsPlayer() ) { Vector forward, right; CBasePlayer *pPlayer = ToBasePlayer( subInfo.GetInflictor() ); pPlayer->EyeVectors( &forward, &right, NULL ); vecTracerSrc = vecSrc + Vector ( 0 , 0 , -4 ) + right * 2 + forward * 16; } else { vecTracerSrc = vecSrc; } if ( iTracerFreq != 1 ) // guns that always trace also always decal tracer = true; if ( sCustomTracer ) UTIL_Tracer( vecTracerSrc, tr.endpos, subInfo.GetInflictor()->entindex(), TRACER_DONT_USE_ATTACHMENT, 0, false, (char*)sCustomTracer ); else UTIL_Tracer( vecTracerSrc, tr.endpos, subInfo.GetInflictor()->entindex() ); } // do damage, paint decals if ( tr.fraction != 1.0 ) { CBaseEntity *pEntity = tr.m_pEnt; // NOTE: If we want to know more than whether or not the entity can actually be hurt // for the purposes of impact effects, the client needs to know a lot more. bool bTargetCouldBeHurt = false; if ( pEntity->m_takedamage ) { if ( !pEntity->InSameTeam( subInfo.GetInflictor() ) ) { bTargetCouldBeHurt = true; } #ifndef CLIENT_DLL subInfo.SetDamagePosition( vecSrc ); // Hit the target pEntity->DispatchTraceAttack( subInfo, vecDir, &tr ); #endif } // No decal if we hit a shield if ( pEntity->GetCollisionGroup() != TFCOLLISION_GROUP_SHIELD ) WeaponImpact( &tr, vecDir, bTargetCouldBeHurt, pEntity, subInfo.GetDamageType() ); } if ( pWeapon ) pWeapon->BulletWasFired( vecSrc, tr.endpos ); } // Apply any damage we've stacked up #ifndef CLIENT_DLL ApplyMultiDamage(); #endif } //----------------------------------------------------------------------------- // Purpose: Init TF2 ammo definitions //----------------------------------------------------------------------------- CAmmoDef *GetAmmoDef() { static CAmmoDef def; static bool bInitted = false; if ( !bInitted ) { bInitted = true; // Added some basic physics force ~hogsy def.AddAmmoType("Bullets", DMG_BULLET, TRACER_LINE, 0, 0, INFINITE_AMMO, 10, 0); def.AddAmmoType("Rockets", DMG_BLAST, TRACER_LINE, 0, 0, 6, 50, 0); def.AddAmmoType("Grenades", DMG_BLAST, TRACER_LINE, 0, 0, 3, 50, 0); def.AddAmmoType("ShieldGrenades", DMG_ENERGYBEAM, TRACER_LINE, 0, 0, 5, 0, 0); def.AddAmmoType("ShotgunEnergy", DMG_ENERGYBEAM, TRACER_LINE, 0, 0, INFINITE_AMMO, 0, 0); def.AddAmmoType("PlasmaGrenade", DMG_ENERGYBEAM|DMG_BLAST, TRACER_LINE, 0, 0, 30, 0, 0); def.AddAmmoType("ResourceChunks", DMG_GENERIC, TRACER_LINE, 0, 0, 4, 0, 0); // Resource chunks def.AddAmmoType("Limpets", DMG_BLAST, TRACER_LINE, 0, 0, 40, 0, 0); def.AddAmmoType("Gasoline", DMG_BURN, TRACER_LINE, 0, 0, 80, 0, 0); // Combat Objects def.AddAmmoType("RallyFlags", DMG_GENERIC, TRACER_NONE, 0, 0, 1, 0, 0); def.AddAmmoType("EMPGenerators", DMG_GENERIC, TRACER_NONE, 0, 0, 1, 0, 0); } return &def; }
30.412613
168
0.607323
MaartenS11
c8b7adf7fe8de3b8dce15c243dba24cd3ff4a898
3,375
cpp
C++
tests/base/uri.cpp
kdt3rd/gecko
756a4e4587eb5023495294d9b6c6d80ebd79ebde
[ "MIT" ]
15
2017-10-18T05:08:16.000Z
2022-02-02T11:01:46.000Z
tests/base/uri.cpp
kdt3rd/gecko
756a4e4587eb5023495294d9b6c6d80ebd79ebde
[ "MIT" ]
null
null
null
tests/base/uri.cpp
kdt3rd/gecko
756a4e4587eb5023495294d9b6c6d80ebd79ebde
[ "MIT" ]
1
2018-11-10T03:12:57.000Z
2018-11-10T03:12:57.000Z
// SPDX-License-Identifier: MIT // Copyright contributors to the gecko project. #include <base/ansi.h> #include <base/contract.h> #include <base/string_util.h> #include <base/unit_test.h> #include <base/uri.h> #include <iostream> #include <sstream> namespace { void check( base::unit_test & ut, const std::string &test, bool should = true, bool except = false ) { try { base::uri u( test ); std::string match = base::to_string( u ); if ( test == match ) ut.success( test ); else if ( !should ) ut.negative_success( test + " != " + match ); else ut.failure( test + " != " + match ); } catch ( const std::exception &e ) { std::stringstream msg; base::print_exception( msg, e ); if ( except ) ut.negative_success( test + " -> exception " + msg.str() ); else ut.failure( test + " -> exception " + msg.str() ); } } int safemain( int argc, char *argv[] ) { base::unit_test test( "uri" ); base::cmd_line options( argv[0] ); test.setup( options ); try { options.parse( argc, argv ); } catch ( ... ) { throw_add( "parsing command line arguments" ); } test["basic_parsing"] = [&]( void ) { check( test, "http", false, true ); check( test, "http:", false, true ); check( test, "file:/tmp" ); check( test, "file:///tmp", false ); check( test, "http://host.com" ); check( test, "http://[email protected]" ); check( test, "http://host.com:1234" ); check( test, "http://[email protected]:1234" ); check( test, "http://host.com/path1" ); check( test, "http://host.com/path1/path2" ); }; test["parse_query_frag"] = [&]( void ) { check( test, "http://host.com?query" ); check( test, "http://host.com#frag" ); check( test, "http://host.com?query#frag" ); check( test, "http://host.com/path1?query#frag" ); }; test["parse_encoded"] = [&]( void ) { check( test, "http://host.com/path1#frag%3Fmorefrag" ); check( test, "http://host%2ecom", false ); check( test, "http://host%2Ecom", false ); check( test, "http://host.com/%2fmore", false ); check( test, "http://host.com/%2Fmore" ); check( test, "http://host.com/with%20space", false ); check( test, "http://host.com/with space", true ); }; test["path_construction"] = [&]( void ) { base::uri tf( "file", "" ); tf /= "file.txt"; if ( tf.pretty() == "file:///file.txt" ) test.success( "operator/=" ); else test.failure( "operator/= -> {0}", tf ); tf = base::uri( "file", "" ) / "hello" / "world"; if ( tf.pretty() == "file:///hello/world" ) test.success( "operator/" ); else test.failure( "operator/ -> {0}", tf ); }; // test.cleanup() = [&]( void ) {}; test.run( options ); test.clean(); return -static_cast<int>( test.failure_count() ); } } // namespace int main( int argc, char *argv[] ) { try { return safemain( argc, argv ); } catch ( const std::exception &e ) { base::print_exception( std::cerr, e ); } return -1; }
27
71
0.505778
kdt3rd
c8b7b774a6c1c7c1bcf7875fdd9e3fc680e8062b
12,397
cpp
C++
src/debug.cpp
mpiatka/UltraGrid
70a768b9990b9cae5a16e151e0f18ef534fecc9d
[ "BSD-3-Clause" ]
1
2019-04-15T12:26:55.000Z
2019-04-15T12:26:55.000Z
src/debug.cpp
mpiatka/UltraGrid
70a768b9990b9cae5a16e151e0f18ef534fecc9d
[ "BSD-3-Clause" ]
null
null
null
src/debug.cpp
mpiatka/UltraGrid
70a768b9990b9cae5a16e151e0f18ef534fecc9d
[ "BSD-3-Clause" ]
null
null
null
/* * FILE: debug.cpp * PROGRAM: RAT * AUTHORS: Isidor Kouvelas * Colin Perkins * Mark Handley * Orion Hodson * Jerry Isdale * * $Revision: 1.1 $ * $Date: 2007/11/08 09:48:59 $ * * Copyright (c) 1995-2000 University College London * Copyright (c) 2005-2021 CESNET, z. s. p. o. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, is permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the Computer Science * Department at University College London * 4. Neither the name of the University nor of the Department may be used * to endorse or promote products derived from this software without * specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif // defined HAVE_CONFIG_H #include "config_unix.h" #include "config_win32.h" #include <array> #include <cstdint> #include <string> #include <unordered_map> #include "compat/misc.h" // strdupa #include "compat/platform_time.h" #include "debug.h" #include "host.h" #include "rang.hpp" #include "utils/color_out.h" #include "utils/misc.h" // ug_strerror using std::string; using std::unordered_map; volatile int log_level = LOG_LEVEL_INFO; static void _dprintf(const char *format, ...) { if (log_level < LOG_LEVEL_DEBUG) { return; } #ifdef WIN32 char msg[65535]; va_list ap; va_start(ap, format); _vsnprintf(msg, 65535, format, ap); va_end(ap); OutputDebugString(msg); #else va_list ap; va_start(ap, format); vfprintf(stderr, format, ap); va_end(ap); #endif /* WIN32 */ } void log_msg(int level, const char *format, ...) { va_list ap; if (log_level < level) { return; } #if 0 // WIN32 if (log_level == LOG_LEVEL_DEBUG) { char msg[65535]; va_list ap; va_start(ap, format); _vsnprintf(msg, 65535, format, ap); va_end(ap); OutputDebugString(msg); return; } #endif /* WIN32 */ // get number of required bytes va_start(ap, format); int size = vsnprintf(NULL, 0, format, ap); va_end(ap); // format the string char *buffer = (char *) alloca(size + 1); va_start(ap, format); if (vsprintf(buffer, format, ap) != size) { va_end(ap); return; } va_end(ap); LOG(level) << buffer; } void log_msg_once(int level, uint32_t id, const char *msg) { if (log_level < level) { return; } Logger(level).once(id, msg); } /** * This function is analogous to perror(). The message is printed using the logger. */ void log_perror(int level, const char *msg) { log_msg(level, "%s: %s\n", msg, ug_strerror(errno)); } /** * debug_dump: * @lp: pointer to memory region. * @len: length of memory region in bytes. * * Writes a dump of a memory region to stdout. The dump contains a * hexadecimal and an ascii representation of the memory region. * **/ void debug_dump(void *lp, int len) { char *p; int i, j, start; char Buff[81]; char stuffBuff[10]; char tmpBuf[10]; _dprintf("Dump of %d=%x bytes\n", len, len); start = 0L; while (start < len) { /* start line with pointer position key */ p = (char *)lp + start; sprintf(Buff, "%p: ", p); /* display each character as hex value */ for (i = start, j = 0; j < 16; p++, i++, j++) { if (i < len) { sprintf(tmpBuf, "%X", ((int)(*p) & 0xFF)); if (strlen((char *)tmpBuf) < 2) { stuffBuff[0] = '0'; stuffBuff[1] = tmpBuf[0]; stuffBuff[2] = ' '; stuffBuff[3] = '\0'; } else { stuffBuff[0] = tmpBuf[0]; stuffBuff[1] = tmpBuf[1]; stuffBuff[2] = ' '; stuffBuff[3] = '\0'; } strcat(Buff, stuffBuff); } else strcat(Buff, " "); if (j == 7) /* space between groups of 8 */ strcat(Buff, " "); } strcat(Buff, " "); /* display each character as character value */ for (i = start, j = 0, p = (char *)lp + start; (i < len && j < 16); p++, i++, j++) { if (((*p) >= ' ') && ((*p) <= '~')) /* test displayable */ sprintf(tmpBuf, "%c", *p); else sprintf(tmpBuf, "%c", '.'); strcat(Buff, tmpBuf); if (j == 7) /* space between groups of 8 */ strcat(Buff, " "); } _dprintf("%s\n", Buff); start = i; /* next line starting byte */ } } bool set_log_level(const char *optarg, bool *logger_repeat_msgs, int *show_timestamps) { assert(optarg != nullptr); assert(logger_repeat_msgs != nullptr); using namespace std::string_literals; using std::clog; using std::cout; static const struct { const char *name; int level; } mapping[] = { { "quiet", LOG_LEVEL_QUIET }, { "fatal", LOG_LEVEL_FATAL }, { "error", LOG_LEVEL_ERROR }, { "warning", LOG_LEVEL_WARNING}, { "notice", LOG_LEVEL_NOTICE}, { "info", LOG_LEVEL_INFO }, { "verbose", LOG_LEVEL_VERBOSE}, { "debug", LOG_LEVEL_DEBUG }, { "debug2", LOG_LEVEL_DEBUG2 }, }; if ("help"s == optarg) { cout << "log level: [0-" << LOG_LEVEL_MAX; for (auto m : mapping) { cout << "|" << m.name; } cout << "][+repeat][+/-timestamps]\n"; cout << BOLD("\trepeat") << " - print repeating log messages\n"; cout << BOLD("\ttimestamps") << " - enable/disable timestamps\n"; return false; } if (strstr(optarg, "+repeat") != nullptr) { *logger_repeat_msgs = true; } if (const char *timestamps = strstr(optarg, "timestamps")) { if (timestamps > optarg) { *show_timestamps = timestamps[-1] == '+' ? 1 : 0; } } if (getenv("ULTRAGRID_VERBOSE") != nullptr) { log_level = LOG_LEVEL_VERBOSE; } if (optarg[0] == '+' || optarg[0] == '-') { // only flags, no log level return true; } if (isdigit(optarg[0])) { long val = strtol(optarg, nullptr, 0); if (val < 0 || val > LOG_LEVEL_MAX) { clog << "Log: wrong value: " << optarg << " (allowed range [0.." << LOG_LEVEL_MAX << "])\n"; return false; } log_level = val; return true; } char *log_level_str = strdupa(optarg); if (char *delim = strpbrk(log_level_str, "+-")) { *delim = '\0'; } for (auto m : mapping) { if (strcmp(log_level_str, m.name) == 0) { log_level = m.level; return true; } } LOG(LOG_LEVEL_ERROR) << "Wrong log level specification: " << optarg << "\n"; return false; } /** * @param show_timestamps 0 - no; 1 - yes; -1 auto */ void Logger::preinit(bool skip_repeated, int show_timestamps) { Logger::skip_repeated = skip_repeated; Logger::show_timestamps = show_timestamps; if (rang::rang_implementation::supportsColor() && rang::rang_implementation::isTerminal(std::cout.rdbuf()) && rang::rang_implementation::isTerminal(std::cerr.rdbuf())) { // force ANSI sequences even when written to ostringstream rang::setControlMode(rang::control::Force); #ifdef _WIN32 // ANSI control sequences need to be explicitly set in Windows if ((rang::rang_implementation::setWinTermAnsiColors(std::cout.rdbuf()) || rang::rang_implementation::isMsysPty(_fileno(stdout))) && (rang::rang_implementation::setWinTermAnsiColors(std::cerr.rdbuf()) || rang::rang_implementation::isMsysPty(_fileno(stderr)))) { rang::setWinTermMode(rang::winTerm::Ansi); } #endif } } #ifdef DEBUG void debug_file_dump(const char *key, void (*serialize)(const void *data, FILE *), void *data) { const char *dump_file_val = get_commandline_param("debug-dump"); static thread_local unordered_map<string, int> skip_map; if (dump_file_val == nullptr) { return; } // check if key is contained string not_first = ","; not_first + key; int skip_n = 0; if (strstr(dump_file_val, key) == dump_file_val) { const char *val = dump_file_val + strlen(key); if (val[0] == '=') { skip_n = atoi(val + 1); } } else if (strstr(dump_file_val, not_first.c_str()) != NULL) { const char *val = strstr(dump_file_val, not_first.c_str()) + strlen(key); if (val[0] == '=') { skip_n = atoi(val + 1); } } else { return; } if (skip_map.find(key) == skip_map.end()) { skip_map[key] = skip_n; } if (skip_map[key] == -1) { // already exported return; } if (skip_map[key] > 0) { skip_map[key]--; return; } // export string name = string(key) + ".dump"; FILE *out = fopen(name.c_str(), "wb"); if (out == nullptr) { perror("debug_file_dump fopen"); return; } serialize(data, out); fclose(out); skip_map[key] = -1; } #endif std::atomic<Logger::last_message *> Logger::last_msg{}; thread_local std::set<uint32_t> Logger::oneshot_messages; std::atomic<bool> Logger::skip_repeated{true}; int Logger::show_timestamps = -1;
34.057692
160
0.509397
mpiatka
c8b85cd7bf5a90889acd932205e44dac6685d29e
201
cpp
C++
Basic_program_C/Untitled11.cpp
abhinavmaurya5757/Basic_Program
9b65045ff322e282accb111d435611d3b0de2ad8
[ "Apache-2.0" ]
null
null
null
Basic_program_C/Untitled11.cpp
abhinavmaurya5757/Basic_Program
9b65045ff322e282accb111d435611d3b0de2ad8
[ "Apache-2.0" ]
null
null
null
Basic_program_C/Untitled11.cpp
abhinavmaurya5757/Basic_Program
9b65045ff322e282accb111d435611d3b0de2ad8
[ "Apache-2.0" ]
null
null
null
#include<stdio.h> int main() { int a; printf("enter the number"); scanf("%d",&a); if(a%2==0) {printf("The number is even"); } else {printf("The number is odd"); } return 0; }
13.4
32
0.537313
abhinavmaurya5757
c8b899c10d2e960e516ddc4b1ebfa6ff45c16af7
865
cpp
C++
Week3/D - Cryptography/D - Cryptography/main.cpp
coolspring1293/Algorithm_2015_Later
7be91b0711d430245c52f351f339864853896f90
[ "MIT" ]
1
2015-11-30T12:34:04.000Z
2015-11-30T12:34:04.000Z
Week3/D - Cryptography/D - Cryptography/main.cpp
coolspring1293/Algorithm_2015_Later
7be91b0711d430245c52f351f339864853896f90
[ "MIT" ]
null
null
null
Week3/D - Cryptography/D - Cryptography/main.cpp
coolspring1293/Algorithm_2015_Later
7be91b0711d430245c52f351f339864853896f90
[ "MIT" ]
null
null
null
// // main.cpp // D - Cryptography // // Created by Kieran Will on 10/14/15. // Copyright © 2015 Kieran Will. All rights reserved. // #include <iostream> #include <vector> #include <cmath> using namespace std; const int MSIZE = 15002; bool isPrime(int n) { for(int i = 2; i <= sqrt(n); ++ i) { if(n % i == 0)return false; } return true; } int N, tmp; int main(int argc, const char * argv[]) { int _C = 4, bss = 7; vector<int> _V; _V.push_back(2); _V.push_back(3); _V.push_back(5); while (_C < MSIZE) { tmp = bss; if (isPrime(tmp)) { _V.push_back(bss); _C ++; } bss ++; } while (cin >> N) { for (int i = 0; i < N; ++ i) { cin >> tmp; cout << _V[tmp-1] << "\n"; } } //std::cout << "Hello, World!\n"; return 0; } /* 4 3 2 5 7 */
18.020833
91
0.491329
coolspring1293
c8b947129118a8882738efb25e40ce493bcaf9ed
9,678
cpp
C++
Base/Base.cpp
koronabora/Base
788e8d1ca480a0b4a3b7fef9d85965d9723069ff
[ "MIT" ]
null
null
null
Base/Base.cpp
koronabora/Base
788e8d1ca480a0b4a3b7fef9d85965d9723069ff
[ "MIT" ]
null
null
null
Base/Base.cpp
koronabora/Base
788e8d1ca480a0b4a3b7fef9d85965d9723069ff
[ "MIT" ]
null
null
null
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "Base.h" Base::Base(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); //=menu_action_edit QAction* a1 = menu.addAction(trUtf8("Редактировать")); if (a1 != nullptr) { a1->setParent(this); connect(a1, &QAction::triggered, this, &Base::menuEdit); } //=menu_action_remove QAction* a2 = menu.addAction(trUtf8("Удалить")); if (a2 != nullptr) { a2->setParent(this); connect(a2, &QAction::triggered, this, &Base::menuDelete); } clearAllButton = ui.clearAllButton; addButton = ui.addButton; exportButton = ui.exportButton; nameEdit = ui.name; surNameEdit = ui.surName; tel1Edit = ui.tel0; tel2Edit = ui.tel1; tel3Edit = ui.tel2; birthEdit = ui.birth; tw = ui.tableWidget; if (tw != nullptr) { tw->setSelectionBehavior(QAbstractItemView::SelectRows); tw->setSelectionMode(QAbstractItemView::SingleSelection); tw->setEditTriggers(QAbstractItemView::NoEditTriggers); tw->setEnabled(false); } if (clearAllButton != nullptr) { clearAllButton->setEnabled(false); connect(clearAllButton, &QPushButton::pressed, this, &Base::clearButtonPressed); } if (addButton != nullptr) { addButton->setEnabled(false); connect(addButton, &QPushButton::pressed, this, &Base::addButtonPressed); } if (exportButton != nullptr) { exportButton->setEnabled(false); connect(exportButton, &QPushButton::pressed, this, &Base::exportButtonPressed); } if (nameEdit != nullptr) nameEdit->setEnabled(false); if (surNameEdit != nullptr) surNameEdit->setEnabled(false); if (tel1Edit != nullptr) tel1Edit->setEnabled(false); if (tel2Edit != nullptr) tel2Edit->setEnabled(false); if (tel3Edit != nullptr) tel3Edit->setEnabled(false); if (birthEdit != nullptr) birthEdit->setEnabled(false); } void Base::showMessage(QString text) { QMessageBox ms; ms.setWindowIcon(QIcon(":/Resources/icon.ico")); ms.setText(text); ms.exec(); //this->close(); } void Base::allLoaded() { if (tw != nullptr) { tw->setEnabled(true); if (tw->columnCount() > 0) { quint64 width = tw->size().width()*1.0 / (tw->columnCount()*1.0); for (quint64 i=0; i<tw->columnCount(); i++) tw->horizontalHeader()->resizeSection(i, width); tw->update(); } } if (clearAllButton != nullptr) clearAllButton->setEnabled(true); if (addButton != nullptr) addButton->setEnabled(true); if (exportButton != nullptr) exportButton->setEnabled(true); if (nameEdit != nullptr) nameEdit->setEnabled(true); if (surNameEdit != nullptr) surNameEdit->setEnabled(true); if (tel1Edit != nullptr) tel1Edit->setEnabled(true); if (tel2Edit != nullptr) tel2Edit->setEnabled(true); if (tel3Edit != nullptr) tel3Edit->setEnabled(true); if (birthEdit != nullptr) birthEdit->setEnabled(true); } void Base::newRecord(QStringList val, quint64 id) { if (tw != nullptr && val.size() > Settings::inst()->datePosInTable) { if (id > lastId) lastId = id; ids.append(id); quint64 s=0; QDate cd = QDate::fromString(val.at(Settings::inst()->datePosInTable), Settings::inst()->dateFormat); QDate date = QDate::currentDate(); // Lets find some position to insert with sorting by birth date. Birthdate should be last! if (tw->rowCount() > 0) { bool found = false; for (quint64 i = 0; i < tw->rowCount(); i++) if (tw->item(i, Settings::inst()->datePosInTable) != nullptr) { QDate d1 = QDate::fromString(tw->item(i, Settings::inst()->datePosInTable)->text(), Settings::inst()->dateFormat); if (cd.dayOfYear() < d1.dayOfYear()) { found = true; if (i == 0) s = 0; else { s = i; } break; } } if (!found) s = tw->rowCount(); } // Lets move all table down tw->insertRow(s); // Lets insert new record for (quint64 i = 0; i < qMin(val.size(), tw->columnCount()); i++) { QTableWidgetItem* t = new QTableWidgetItem(val.at(i)); t->setTextAlignment(Qt::AlignHCenter); if (cd.dayOfYear() == date.dayOfYear()) { QFont ff = t->font(); ff.setBold(true); t->setFont(ff); } tw->setItem(s, i, t); } tw->update(); } } void Base::clearButtonPressed() { if (nameEdit != nullptr) nameEdit->clear(); if (surNameEdit != nullptr) surNameEdit->clear(); if (tel1Edit != nullptr) tel1Edit->clear(); if (tel2Edit != nullptr) tel2Edit->clear(); if (tel3Edit != nullptr) tel3Edit->clear(); if (birthEdit != nullptr) birthEdit->clear(); } void Base::addButtonPressed() { if (nameEdit != nullptr && surNameEdit != nullptr && tel1Edit != nullptr && tel2Edit != nullptr && tel3Edit != nullptr && birthEdit != nullptr) { if (nameEdit->text().length() > 0 && tel1Edit->text().length() > 0 && birthEdit->text().length() > 0) { if (checkDate()) { QStringList sl; sl.append(nameEdit->text()); sl.append(surNameEdit->text()); sl.append(tel1Edit->text()); sl.append(tel2Edit->text()); sl.append(tel3Edit->text()); sl.append(birthEdit->text()); clearButtonPressed(); if (!editMode) { lastId++; newRecord(sl, lastId); emit insertNewUser(sl, lastId); } else { //=add_button_add addButton->setText(trUtf8("Add")); if (editPos < ids.size()) { editMode = false; emit modifyUser(sl, ids.at(editPos)); modifyRecord(sl, editPos); } } } else { //=message_box_"Enter name and phone!"_about_date_text showMessage(trUtf8("Not valid date!")); } } else { //=message_box_"Enter name and phone!"_about_all_data showMessage(trUtf8("Enter name and phone!")); } } } void Base::contextMenuEvent(QContextMenuEvent* e) { menu.exec(e->globalPos()); } void Base::showCurButtonPressed() { if (tw != nullptr) { QDate cd = QDate::currentDate(); qint64 first = -1; qint64 last = -1; quint64 curPos = qAbs(tw->currentRow()); if (tw->rowCount() > 0) { bool found = false; for (quint64 i = 0; i < tw->rowCount(); i++) { QTableWidgetItem* t = tw->item(i, Settings::inst()->datePosInTable); if (t != nullptr) { QDate d = QDate::fromString(t->text(), Settings::inst()->dateFormat); if (d.dayOfYear() == cd.dayOfYear()) { if (first < 0) first = i; last = i; found = true; for (quint64 k = 0; k < tw->columnCount(); k++) { t = tw->item(i, k); if (t != nullptr) { QFont ff = t->font(); ff.setBold(true); t->setFont(ff); } } } else { for (quint64 k = 0; k < tw->columnCount(); k++) { t = tw->item(i, k); if (t != nullptr) { QFont ff = t->font(); ff.setBold(false); t->setFont(ff); } } } } } if (!found) { //=message_box_"Enter name and phone!"_about_no_cur_day_data showMessage(trUtf8("Nothing found!")); } } } } bool Base::checkDate() { if (birthEdit != nullptr) { QDate d = QDate::fromString(birthEdit->text(), Settings::inst()->dateFormat); return d.isValid(); } return false; } void Base::menuDelete() { if (tw != nullptr) { quint64 pos = tw->currentRow(); if (pos < ids.size()) { emit removeUser(ids.takeAt(pos)); tw->removeRow(pos); } } } void Base::menuEdit() { if (tw != nullptr && nameEdit != nullptr && surNameEdit != nullptr && tel1Edit != nullptr && tel2Edit != nullptr && tel3Edit != nullptr && birthEdit != nullptr) { quint64 pos = tw->currentRow(); if (pos < ids.size()) { //=add_button_"Save" addButton->setText(trUtf8("Save")); editMode = true; editPos = pos; if (tw->item(pos, 0) != nullptr) { nameEdit->setText(tw->item(pos, 0)->text()); } if (tw->item(pos, 1) != nullptr) { surNameEdit->setText(tw->item(pos, 1)->text()); } if (tw->item(pos, 2) != nullptr) { tel1Edit->setText(tw->item(pos, 2)->text()); } if (tw->item(pos, 3) != nullptr) { tel2Edit->setText(tw->item(pos, 3)->text()); } if (tw->item(pos, 4) != nullptr) { tel3Edit->setText(tw->item(pos, 4)->text()); } if (tw->item(pos, 5) != nullptr) { birthEdit->setText(tw->item(pos, 5)->text()); } } } } void Base::modifyRecord(QStringList sl, quint64 pos) { if (tw != nullptr) { if (pos < tw->rowCount()) { tw->removeRow(pos); newRecord(sl, pos); } } } void Base::exportButtonPressed() { if (tw != nullptr) { Document file; int x = tw->rowCount(); int y = tw->columnCount(); if (y > 0) { //=file_dialog_caption QString fileName = QFileDialog::getSaveFileName(this, trUtf8("Choose File"), QDir::homePath()); if (fileName.size() > 0) { if (fileName.right(5).compare(".xlsx") != 0) fileName.append(".xlsx"); for (int j = 0; j < y; j++) { QTableWidgetItem* t = tw->horizontalHeaderItem(j); if (t != nullptr) { Format hFmt; hFmt.setFontBold(true); file.write(1, j + 1, t->text(), hFmt); file.setColumnWidth(j + 1, 20); } } for (int i = 0; i < x; i++) for (int j = 0; j < y; j++) { QTableWidgetItem* t = tw->item(i, j); if (t != nullptr) { file.write(i + 2, j + 1, t->text()); } } file.saveAs(fileName); //=message_box_all_done showMessage(trUtf8("Сохранено!")); } else { //=message_box_nothing_saved showMessage(trUtf8("Ничего не было сохранено!")); } } else { //=message_box_no_data_in_table showMessage(trUtf8("Table is clear!")); } } }
22.879433
119
0.600331
koronabora
c8bba1d893d8b5ada76149a3f7dce4e26721fb67
27,665
hpp
C++
src/DataStructures/VectorImpl.hpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
src/DataStructures/VectorImpl.hpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
src/DataStructures/VectorImpl.hpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <algorithm> // IWYU pragma: keep // for std::fill #include <array> #include <cstddef> #include <cstdlib> #include <cstring> #include <functional> // IWYU pragma: keep // for std::plus, etc. #include <initializer_list> #include <limits> #include <memory> #include <ostream> #include <pup.h> #include <type_traits> #include "ErrorHandling/Assert.hpp" #include "Utilities/ForceInline.hpp" #include "Utilities/Gsl.hpp" #include "Utilities/MakeWithValue.hpp" // IWYU pragma: keep #include "Utilities/PointerVector.hpp" // IWYU pragma: keep #include "Utilities/PrintHelpers.hpp" #include "Utilities/Requires.hpp" #include "Utilities/StdArrayHelpers.hpp" #include "Utilities/TypeTraits/IsComplexOfFundamental.hpp" /*! * \ingroup DataStructuresGroup * \brief Base class template for various DataVector and related types * * \details The `VectorImpl` class is the generic parent class for vectors * representing collections of related function values, such as `DataVector`s * for contiguous data over a computational domain. * * The `VectorImpl` does not itself define any particular mathematical * operations on the contained values. The `VectorImpl` template class and the * macros defined in `VectorImpl.hpp` assist in the construction of various * derived classes supporting a chosen set of mathematical operations. * * In addition, the equivalence operator `==` is inherited from the underlying * `PointerVector` type, and returns true if and only if the size and contents * of the two compared vectors are equivalent. * * Template parameters: * - `T` is the underlying stored type, e.g. `double`, `std::complex<double>`, * `float`, etc. * - `VectorType` is the type that should be associated with the VectorImpl * during mathematical computations. In most cases, inherited types should * have themselves as the second template argument, e.g. * ``` * class DataVector : VectorImpl<double, DataVector> { * ``` * The second template parameter communicates arithmetic type restrictions to * the underlying Blaze framework. For example, if `VectorType` is * `DataVector`, then the underlying architecture will prevent addition with a * vector type whose `ResultType` (which is aliased to its `VectorType`) is * `ModalVector`. Since `DataVector`s and `ModalVector`s represent data in * different spaces, we wish to forbid several operations between them. This * vector-type-tracking through an expression prevents accidental mixing of * vector types in math expressions. * * \note * - If created with size 0, then `data()` will return `nullptr` * - If either `SPECTRE_DEBUG` or `SPECTRE_NAN_INIT` are defined, then the * `VectorImpl` is default initialized to `signaling_NaN()`. Otherwise, the * vector is filled with uninitialized memory for performance. */ template <typename T, typename VectorType> class VectorImpl : public PointerVector<T, blaze_unaligned, blaze_unpadded, blaze::defaultTransposeFlag, VectorType> { public: using value_type = T; using size_type = size_t; using difference_type = std::ptrdiff_t; using BaseType = PointerVector<T, blaze::unaligned, blaze::unpadded, blaze::defaultTransposeFlag, VectorType>; static constexpr bool transpose_flag = blaze::defaultTransposeFlag; using ElementType = T; using TransposeType = VectorImpl<T, VectorType>; using CompositeType = const VectorImpl<T, VectorType>&; using iterator = typename BaseType::Iterator; using const_iterator = typename BaseType::ConstIterator; using BaseType::operator[]; using BaseType::begin; using BaseType::cbegin; using BaseType::cend; using BaseType::data; using BaseType::end; using BaseType::size; // @{ /// Upcast to `BaseType` /// \attention /// upcast should only be used when implementing a derived vector type, not in /// calling code const BaseType& operator~() const noexcept { return static_cast<const BaseType&>(*this); } BaseType& operator~() noexcept { return static_cast<BaseType&>(*this); } // @} /// Create with the given size. In debug mode, the vector is initialized to /// 'NaN' by default. If not initialized to 'NaN', the memory is allocated but /// not initialized. /// /// - `set_size` number of values explicit VectorImpl(size_t set_size) noexcept : owned_data_(set_size > 0 ? static_cast<value_type*>( malloc(set_size * sizeof(value_type))) : nullptr, &free) { #if defined(SPECTRE_DEBUG) || defined(SPECTRE_NAN_INIT) std::fill(owned_data_.get(), owned_data_.get() + set_size, std::numeric_limits<value_type>::signaling_NaN()); #endif // SPECTRE_DEBUG reset_pointer_vector(set_size); } /// Create with the given size and value. /// /// - `set_size` number of values /// - `value` the value to initialize each element VectorImpl(size_t set_size, T value) noexcept : owned_data_(set_size > 0 ? static_cast<value_type*>( malloc(set_size * sizeof(value_type))) : nullptr, &free) { std::fill(owned_data_.get(), owned_data_.get() + set_size, value); reset_pointer_vector(set_size); } /// Create a non-owning VectorImpl that points to `start` VectorImpl(T* start, size_t set_size) noexcept : BaseType(start, set_size), owning_(false) {} /// Create from an initializer list of `T`. template <class U, Requires<std::is_same_v<U, T>> = nullptr> VectorImpl(std::initializer_list<U> list) noexcept : owned_data_(list.size() > 0 ? static_cast<value_type*>(malloc( list.size() * sizeof(value_type))) : nullptr, &free) { // Note: can't use memcpy with an initializer list. std::copy(list.begin(), list.end(), owned_data_.get()); reset_pointer_vector(list.size()); } /// Empty VectorImpl VectorImpl() = default; /// \cond HIDDEN_SYMBOLS ~VectorImpl() = default; VectorImpl(const VectorImpl<T, VectorType>& rhs) noexcept; VectorImpl& operator=(const VectorImpl<T, VectorType>& rhs) noexcept; VectorImpl(VectorImpl<T, VectorType>&& rhs) noexcept; VectorImpl& operator=(VectorImpl<T, VectorType>&& rhs) noexcept; // This is a converting constructor. clang-tidy complains that it's not // explicit, but we want it to allow conversion. // clang-tidy: mark as explicit (we want conversion to VectorImpl type) template < typename VT, bool VF, Requires<std::is_same_v<typename VT::ResultType, VectorType>> = nullptr> VectorImpl(const blaze::DenseVector<VT, VF>& expression) noexcept; // NOLINT template <typename VT, bool VF> VectorImpl& operator=(const blaze::DenseVector<VT, VF>& expression) noexcept; /// \endcond VectorImpl& operator=(const T& rhs) noexcept; // @{ /// Set the VectorImpl to be a reference to another VectorImpl object void set_data_ref(gsl::not_null<VectorType*> rhs) noexcept { set_data_ref(rhs->data(), rhs->size()); } void set_data_ref(T* const start, const size_t set_size) noexcept { owned_data_.reset(); (~*this).reset(start, set_size); owning_ = false; } // @} /*! * \brief A common operation for checking the size and resizing a memory * buffer if needed to ensure that it has the desired size. This operation is * not permitted on a non-owning vector. * * \note This utility should NOT be used when it is anticipated that the * supplied buffer will typically be the wrong size (in that case, suggest * either manual checking or restructuring so that resizing is less common). * This uses `UNLIKELY` to perform the check most quickly when the buffer * needs no resizing, but will be slower when resizing is common. */ void SPECTRE_ALWAYS_INLINE destructive_resize(const size_t new_size) noexcept { if (UNLIKELY(size() != new_size)) { if (owning_) { // NOLINTNEXTLINE(modernize-avoid-c-arrays) owned_data_ = std::unique_ptr<value_type[], decltype(&free)>{ new_size > 0 ? static_cast<value_type*>( malloc(new_size * sizeof(value_type))) : nullptr, &free}; reset_pointer_vector(new_size); } else { ERROR("may not destructively resize a non-owning vector"); } } } /// Returns true if the class owns the data bool is_owning() const noexcept { return owning_; } /// Serialization for Charm++ // clang-tidy: google-runtime-references void pup(PUP::er& p) noexcept; // NOLINT protected: // NOLINTNEXTLINE(modernize-avoid-c-arrays) std::unique_ptr<value_type[], decltype(&free)> owned_data_{nullptr, &free}; bool owning_{true}; SPECTRE_ALWAYS_INLINE void reset_pointer_vector( const size_t set_size) noexcept { this->reset(owned_data_.get(), set_size); } }; template <typename T, typename VectorType> VectorImpl<T, VectorType>::VectorImpl( const VectorImpl<T, VectorType>& rhs) noexcept : BaseType{rhs}, owned_data_(rhs.size() > 0 ? static_cast<value_type*>( malloc(rhs.size() * sizeof(value_type))) : nullptr, &free) { reset_pointer_vector(rhs.size()); std::memcpy(data(), rhs.data(), size() * sizeof(value_type)); } template <typename T, typename VectorType> VectorImpl<T, VectorType>& VectorImpl<T, VectorType>::operator=( const VectorImpl<T, VectorType>& rhs) noexcept { if (this != &rhs) { if (owning_) { if (size() != rhs.size()) { owned_data_.reset(rhs.size() > 0 ? static_cast<value_type*>(malloc( rhs.size() * sizeof(value_type))) : nullptr); } reset_pointer_vector(rhs.size()); } else { ASSERT(rhs.size() == size(), "Must copy into same size, not " << rhs.size() << " into " << size()); } std::memcpy(data(), rhs.data(), size() * sizeof(value_type)); } return *this; } template <typename T, typename VectorType> VectorImpl<T, VectorType>::VectorImpl( VectorImpl<T, VectorType>&& rhs) noexcept { owned_data_ = std::move(rhs.owned_data_); ~*this = ~rhs; // PointerVector is trivially copyable owning_ = rhs.owning_; rhs.owning_ = true; rhs.reset(); } template <typename T, typename VectorType> VectorImpl<T, VectorType>& VectorImpl<T, VectorType>::operator=( VectorImpl<T, VectorType>&& rhs) noexcept { if (this != &rhs) { if (owning_) { owned_data_ = std::move(rhs.owned_data_); ~*this = ~rhs; /* PointerVector is trivially copyable */ owning_ = rhs.owning_; } else { ASSERT(rhs.size() == size(), "Must copy into same size, not " << rhs.size() << " into " << size()); std::memcpy(data(), rhs.data(), size() * sizeof(value_type)); } rhs.owning_ = true; rhs.reset(); } return *this; } /// \cond HIDDEN_SYMBOLS // This is a converting constructor. clang-tidy complains that it's not // explicit, but we want it to allow conversion. // clang-tidy: mark as explicit (we want conversion to VectorImpl) template <typename T, typename VectorType> template <typename VT, bool VF, Requires<std::is_same_v<typename VT::ResultType, VectorType>>> VectorImpl<T, VectorType>::VectorImpl( const blaze::DenseVector<VT, VF>& expression) // NOLINT noexcept : owned_data_(static_cast<value_type*>( malloc((~expression).size() * sizeof(value_type))), &free) { static_assert(std::is_same_v<typename VT::ResultType, VectorType>, "You are attempting to assign the result of an expression " "that is not consistent with the VectorImpl type you are " "assigning to."); reset_pointer_vector((~expression).size()); ~*this = expression; } template <typename T, typename VectorType> template <typename VT, bool VF> VectorImpl<T, VectorType>& VectorImpl<T, VectorType>::operator=( const blaze::DenseVector<VT, VF>& expression) noexcept { static_assert(std::is_same_v<typename VT::ResultType, VectorType>, "You are attempting to assign the result of an expression " "that is not consistent with the VectorImpl type you are " "assigning to."); if (owning_ and (~expression).size() != size()) { owned_data_.reset(static_cast<value_type*>( // NOLINTNEXTLINE(cppcoreguidelines-owning-memory) malloc((~expression).size() * sizeof(value_type)))); reset_pointer_vector((~expression).size()); } else if (not owning_) { ASSERT((~expression).size() == size(), "Must copy into same size, not " << (~expression).size() << " into " << size()); } ~*this = expression; return *this; } /// \endcond // The case of assigning a type apart from the same VectorImpl or a // `blaze::DenseVector` forwards the assignment to the `PointerVector` base // type. In the case of a single compatible value, this fills the vector with // that value. template <typename T, typename VectorType> VectorImpl<T, VectorType>& VectorImpl<T, VectorType>::operator=( const T& rhs) noexcept { ~*this = rhs; return *this; } template <typename T, typename VectorType> void VectorImpl<T, VectorType>::pup(PUP::er& p) noexcept { // NOLINT auto my_size = size(); p | my_size; if (my_size > 0) { if (p.isUnpacking()) { owning_ = true; owned_data_.reset(my_size > 0 ? static_cast<value_type*>( malloc(my_size * sizeof(value_type))) : nullptr); reset_pointer_vector(my_size); } PUParray(p, data(), size()); } } /// Output operator for VectorImpl template <typename T, typename VectorType> std::ostream& operator<<(std::ostream& os, const VectorImpl<T, VectorType>& d) noexcept { sequence_print_helper(os, d.begin(), d.end()); return os; } /*! * \ingroup DataStructuresGroup * \brief Instructs Blaze to provide the appropriate vector result type after * math operations. This is accomplished by specializing Blaze's type traits * that are used for handling return type deduction and specifying the `using * Type =` nested type alias in the traits. * * \param VECTOR_TYPE The vector type, which matches the type of the operation * result (e.g. `DataVector`) * * \param BLAZE_MATH_TRAIT The blaze trait/expression for which you want to * specify the return type (e.g. `AddTrait`). */ #define BLAZE_TRAIT_SPECIALIZE_BINARY_TRAIT(VECTOR_TYPE, BLAZE_MATH_TRAIT) \ template <> \ struct BLAZE_MATH_TRAIT<VECTOR_TYPE, VECTOR_TYPE> { \ using Type = VECTOR_TYPE; \ }; \ template <> \ struct BLAZE_MATH_TRAIT<VECTOR_TYPE, VECTOR_TYPE::value_type> { \ using Type = VECTOR_TYPE; \ }; \ template <> \ struct BLAZE_MATH_TRAIT<VECTOR_TYPE::value_type, VECTOR_TYPE> { \ using Type = VECTOR_TYPE; \ } /*! * \ingroup DataStructuresGroup * \brief Instructs Blaze to provide the appropriate vector result type of an * operator between `VECTOR_TYPE` and `COMPATIBLE`, where the operation is * represented by `BLAZE_MATH_TRAIT` * * \param VECTOR_TYPE The vector type, which matches the type of the operation * result (e.g. `ComplexDataVector`) * * \param COMPATIBLE the type for which you want math operations to work with * `VECTOR_TYPE` smoothly (e.g. `DataVector`) * * \param BLAZE_MATH_TRAIT The blaze trait for which you want declare the Type * field (e.g. `AddTrait`) * * \param RESULT_TYPE The type which should be used as the 'return' type for the * binary operation */ #define BLAZE_TRAIT_SPECIALIZE_COMPATIBLE_BINARY_TRAIT( \ VECTOR_TYPE, COMPATIBLE, BLAZE_MATH_TRAIT, RESULT_TYPE) \ template <> \ struct BLAZE_MATH_TRAIT<VECTOR_TYPE, COMPATIBLE> { \ using Type = RESULT_TYPE; \ }; \ template <> \ struct BLAZE_MATH_TRAIT<COMPATIBLE, VECTOR_TYPE> { \ using Type = RESULT_TYPE; \ } /*! * \ingroup DataStructuresGroup * \brief Instructs Blaze to provide the appropriate vector result type of * arithmetic operations for `VECTOR_TYPE`. This is accomplished by specializing * Blaze's type traits that are used for handling return type deduction. * * \details Type definitions here are suitable for contiguous data * (e.g. `DataVector`), but this macro might need to be tweaked for other types * of data, for instance Fourier coefficients. * * \param VECTOR_TYPE The vector type, which for the arithmetic operations is * the type of the operation result (e.g. `DataVector`) */ #define VECTOR_BLAZE_TRAIT_SPECIALIZE_ARITHMETIC_TRAITS(VECTOR_TYPE) \ template <> \ struct IsVector<VECTOR_TYPE> : std::true_type {}; \ template <> \ struct TransposeFlag<VECTOR_TYPE> \ : BoolConstant<VECTOR_TYPE::transpose_flag> {}; \ BLAZE_TRAIT_SPECIALIZE_BINARY_TRAIT(VECTOR_TYPE, AddTrait); \ BLAZE_TRAIT_SPECIALIZE_BINARY_TRAIT(VECTOR_TYPE, SubTrait); \ BLAZE_TRAIT_SPECIALIZE_BINARY_TRAIT(VECTOR_TYPE, MultTrait); \ BLAZE_TRAIT_SPECIALIZE_BINARY_TRAIT(VECTOR_TYPE, DivTrait) /*! * \ingroup DataStructuresGroup * \brief Instructs Blaze to provide the appropriate vector result type of `Map` * operations (unary and binary) acting on `VECTOR_TYPE`. This is accomplished * by specializing Blaze's type traits that are used for handling return type * deduction. * * \details Type declarations here are suitable for contiguous data (e.g. * `DataVector`), but this macro might need to be tweaked for other types of * data, for instance Fourier coefficients. * * \param VECTOR_TYPE The vector type, which for the `Map` operations is * the type of the operation result (e.g. `DataVector`) */ #define VECTOR_BLAZE_TRAIT_SPECIALIZE_ALL_MAP_TRAITS(VECTOR_TYPE) \ template <typename Operator> \ struct MapTrait<VECTOR_TYPE, Operator> { \ using Type = VECTOR_TYPE; \ }; \ template <typename Operator> \ struct MapTrait<VECTOR_TYPE, VECTOR_TYPE, Operator> { \ using Type = VECTOR_TYPE; \ } /*! * \ingroup DataStructuresGroup * \brief Defines the set of binary operations often supported for * `std::array<VECTOR_TYPE, size>`, for arbitrary `size`. * * \param VECTOR_TYPE The vector type (e.g. `DataVector`) */ #define MAKE_STD_ARRAY_VECTOR_BINOPS(VECTOR_TYPE) \ DEFINE_STD_ARRAY_BINOP(VECTOR_TYPE, VECTOR_TYPE::value_type, \ VECTOR_TYPE, operator+, std::plus<>()) \ DEFINE_STD_ARRAY_BINOP(VECTOR_TYPE, VECTOR_TYPE, \ VECTOR_TYPE::value_type, operator+, std::plus<>()) \ DEFINE_STD_ARRAY_BINOP(VECTOR_TYPE, VECTOR_TYPE, VECTOR_TYPE, operator+, \ std::plus<>()) \ \ DEFINE_STD_ARRAY_BINOP(VECTOR_TYPE, VECTOR_TYPE::value_type, \ VECTOR_TYPE, operator-, std::minus<>()) \ DEFINE_STD_ARRAY_BINOP(VECTOR_TYPE, VECTOR_TYPE, \ VECTOR_TYPE::value_type, operator-, std::minus<>()) \ DEFINE_STD_ARRAY_BINOP(VECTOR_TYPE, VECTOR_TYPE, VECTOR_TYPE, operator-, \ std::minus<>()) \ \ DEFINE_STD_ARRAY_INPLACE_BINOP(VECTOR_TYPE, VECTOR_TYPE, operator-=, \ std::minus<>()) \ DEFINE_STD_ARRAY_INPLACE_BINOP( \ VECTOR_TYPE, VECTOR_TYPE::value_type, operator-=, std::minus<>()) \ DEFINE_STD_ARRAY_INPLACE_BINOP(VECTOR_TYPE, VECTOR_TYPE, operator+=, \ std::plus<>()) \ DEFINE_STD_ARRAY_INPLACE_BINOP( \ VECTOR_TYPE, VECTOR_TYPE::value_type, operator+=, std::plus<>()) /*! * \ingroup DataStructuresGroup * \brief Defines `MAKE_MATH_ASSIGN_EXPRESSION_POINTERVECTOR` with all * assignment arithmetic operations * * \param VECTOR_TYPE The vector type (e.g. `DataVector`) */ #define MAKE_MATH_ASSIGN_EXPRESSION_ARITHMETIC(VECTOR_TYPE) \ MAKE_MATH_ASSIGN_EXPRESSION_POINTERVECTOR(+=, VECTOR_TYPE) \ MAKE_MATH_ASSIGN_EXPRESSION_POINTERVECTOR(-=, VECTOR_TYPE) \ MAKE_MATH_ASSIGN_EXPRESSION_POINTERVECTOR(*=, VECTOR_TYPE) \ MAKE_MATH_ASSIGN_EXPRESSION_POINTERVECTOR(/=, VECTOR_TYPE) /*! * \ingroup DataStructuresGroup * \brief Defines the `MakeWithValueImpl` `apply` specialization * * \details The `MakeWithValueImpl<VECTOR_TYPE, VECTOR_TYPE>` member * `apply(VECTOR_TYPE, VECTOR_TYPE::value_type)` specialization defined by this * macro produces an object with the same size as the `input` argument, * initialized with the `value` argument in every entry. * * \param VECTOR_TYPE The vector type (e.g. `DataVector`) */ #define MAKE_WITH_VALUE_IMPL_DEFINITION_FOR(VECTOR_TYPE) \ namespace MakeWithValueImpls { \ template <> \ struct MakeWithValueImpl<VECTOR_TYPE, VECTOR_TYPE> { \ static SPECTRE_ALWAYS_INLINE VECTOR_TYPE \ apply(const VECTOR_TYPE& input, \ const VECTOR_TYPE::value_type value) noexcept { \ return VECTOR_TYPE(input.size(), value); \ } \ }; \ template <> \ struct MakeWithValueImpl<VECTOR_TYPE, size_t> { \ static SPECTRE_ALWAYS_INLINE VECTOR_TYPE \ apply(const size_t size, const VECTOR_TYPE::value_type value) noexcept { \ return VECTOR_TYPE(size, value); \ } \ }; \ } // namespace MakeWithValueImpls // {@ /*! * \ingroup DataStructuresGroup * \ingroup TypeTraitsGroup * \brief Helper struct to determine the element type of a VectorImpl or * container of VectorImpl * * \details Extracts the element type of a `VectorImpl`, a std::array of * `VectorImpl`, or a reference or pointer to a `VectorImpl`. In any of these * cases, the `type` member is defined as the `ElementType` of the `VectorImpl` * in question. If, instead, `get_vector_element_type` is passed an arithmetic * or complex arithemetic type, the `type` member is defined as the passed type. * * \snippet DataStructures/Test_VectorImpl.cpp get_vector_element_type_example */ // cast to bool needed to avoid the compiler mistaking the type to be determined // by T template <typename T, bool = static_cast<bool>(tt::is_complex_of_fundamental_v<T> or std::is_fundamental_v<T>)> struct get_vector_element_type; template <typename T> struct get_vector_element_type<T, true> { using type = T; }; template <typename T> struct get_vector_element_type<const T, false> { using type = typename get_vector_element_type<T>::type; }; template <typename T> struct get_vector_element_type<T, false> { using type = typename get_vector_element_type< typename T::ResultType::ElementType>::type; }; template <typename T> struct get_vector_element_type<T*, false> { using type = typename get_vector_element_type<T>::type; }; template <typename T> struct get_vector_element_type<T&, false> { using type = typename get_vector_element_type<T>::type; }; template <typename T, size_t S> struct get_vector_element_type<std::array<T, S>, false> { using type = typename get_vector_element_type<T>::type; }; // @} template <typename T> using get_vector_element_type_t = typename get_vector_element_type<T>::type; namespace detail { template <typename... VectorImplTemplateArgs> std::true_type is_derived_of_vector_impl_impl( const VectorImpl<VectorImplTemplateArgs...>*); std::false_type is_derived_of_vector_impl_impl(...); } // namespace detail /// \ingroup TypeTraitsGroup /// This is `std::true_type` if the provided type possesses an implicit /// conversion to any `VectorImpl`, which is the primary feature of SpECTRE /// vectors generally. Otherwise, it is `std::false_type`. template <typename T> using is_derived_of_vector_impl = decltype(detail::is_derived_of_vector_impl_impl(std::declval<T*>())); template <typename T> constexpr bool is_derived_of_vector_impl_v = is_derived_of_vector_impl<T>::value; /// \ingroup DataStructuresGroup /// Make the input `view` a `const` view of the const data `vector`, at /// offset `offset` and length `extent`. /// /// \warning This DOES modify the (const) input `view`. The reason `view` is /// taken by const pointer is to try to insist that the object to be a `const` /// view is actually const. Of course, there are ways of subverting this /// intended functionality and editing the data pointed into by `view` after /// this function is called; doing so is highly discouraged and results in /// undefined behavior. template <typename VectorType, Requires<is_derived_of_vector_impl_v<VectorType>> = nullptr> void make_const_view(const gsl::not_null<const VectorType*> view, const VectorType& vector, const size_t offset, const size_t extent) noexcept { const_cast<VectorType*>(view.get()) // NOLINT ->set_data_ref( const_cast<typename VectorType::value_type*>(vector.data()) // NOLINT + offset, // NOLINT extent); }
42.825077
80
0.62223
desperadoshi
c8becaa5a87e98639bae009fb56536bcfa5357fc
16,624
hh
C++
dune/xt/functions/base/combined-functions.hh
renefritze/dune-xt-functions
aea4ef43bb0177466be2ec3cb56e3f4f5ced2c25
[ "BSD-2-Clause" ]
null
null
null
dune/xt/functions/base/combined-functions.hh
renefritze/dune-xt-functions
aea4ef43bb0177466be2ec3cb56e3f4f5ced2c25
[ "BSD-2-Clause" ]
1
2018-07-09T10:57:27.000Z
2018-07-09T10:57:27.000Z
dune/xt/functions/base/combined-functions.hh
TiKeil/dune-xt-functions
aea4ef43bb0177466be2ec3cb56e3f4f5ced2c25
[ "BSD-2-Clause" ]
null
null
null
// This file is part of the dune-xt-functions project: // https://github.com/dune-community/dune-xt-functions // Copyright 2009-2018 dune-xt-functions developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://opensource.org/licenses/gpl-license) // with "runtime exception" (http://www.dune-project.org/license.html) // Authors: // Felix Schindler (2018) // TiKeil (2018) // Tobias Leibner (2018) // // reserved. // (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_XT_FUNCTIONS_BASE_COMBINED_FUNCTIONS_HH #define DUNE_XT_FUNCTIONS_BASE_COMBINED_FUNCTIONS_HH #include <dune/xt/functions/base/combined-grid-functions.hh> #include <dune/xt/functions/interfaces/function.hh> namespace Dune { namespace XT { namespace Functions { namespace internal { /** * \brief Helper class defining types of combined functions, if available. * * \note Most likely you do not want to use this class directly, but Combined. */ template <class LeftType, class RightType, Combination comb> class SelectCombined { public: using D = typename LeftType::DomainFieldType; static const size_t d = LeftType::domain_dim; using R = typename LeftType::RangeFieldType; private: static_assert(std::is_same<typename RightType::DomainFieldType, D>::value, "Types do not match!"); static_assert(RightType::domain_dim == d, "Dimensions do not match!"); static_assert(std::is_same<typename RightType::RangeFieldType, R>::value, "Types do not match!"); template <class L, class R> class Choose { template <size_t rL, size_t rR, size_t rCL, size_t rcR, Combination cc, bool anything = true> class Dimension { static_assert(!anything, "No combination for these dimensions available!"); }; template <size_t r_in, size_t rC_in, bool anything> class Dimension<r_in, r_in, rC_in, rC_in, Combination::difference, anything> { public: static const size_t r = r_in; static const size_t rC = rC_in; }; template <size_t r_in, size_t rC_in, bool anything> class Dimension<r_in, r_in, rC_in, rC_in, Combination::sum, anything> { public: static const size_t r = r_in; static const size_t rC = rC_in; }; template <size_t r_in, size_t rC_in, bool anything> class Dimension<1, r_in, 1, rC_in, Combination::product, anything> { public: static const size_t r = r_in; static const size_t rC = rC_in; }; public: static const size_t r = Dimension<L::range_dim, R::range_dim, L::range_dim_cols, R::range_dim_cols, comb>::r; static const size_t rC = Dimension<L::range_dim, R::range_dim, L::range_dim_cols, R::range_dim_cols, comb>::rC; }; // class Choose public: static const size_t r = Choose<LeftType, RightType>::r; static const size_t rC = Choose<LeftType, RightType>::rC; using DomainType = typename FunctionInterface<d, r, rC, R>::DomainType; using RangeReturnType = typename RightType::RangeReturnType; using ScalarRangeReturnType = typename LeftType::RangeReturnType; using DerivativeRangeReturnType = typename FunctionInterface<d, r, rC, R>::DerivativeRangeReturnType; private: template <Combination cc, bool anything = true> class Call { static_assert(!anything, "Nothing available for these combinations!"); }; // class Call template <bool anything> class Call<Combination::difference, anything> { public: static std::string type() { return "difference"; } static size_t order(const size_t left_order, const size_t right_order) { return std::max(left_order, right_order); } static RangeReturnType evaluate(const LeftType& left_, const RightType& right_, const DomainType& point_in_global_coordinates, const Common::Parameter& param) { return left_.evaluate(point_in_global_coordinates, param) - right_.evaluate(point_in_global_coordinates, param); } static DerivativeRangeReturnType jacobian(const LeftType& left_, const RightType& right_, const DomainType& point_in_global_coordinates, const Common::Parameter& param) { return left_.jacobian(point_in_global_coordinates, param) - right_.jacobian(point_in_global_coordinates, param); } // ... jacobian(...) }; // class Call< ..., difference > template <bool anything> class Call<Combination::sum, anything> { public: static std::string type() { return "sum"; } static size_t order(const size_t left_order, const size_t right_order) { return std::max(left_order, right_order); } static RangeReturnType evaluate(const LeftType& left_, const RightType& right_, const DomainType& point_in_global_coordinates, const Common::Parameter& param) { return left_.evaluate(point_in_global_coordinates, param) + right_.evaluate(point_in_global_coordinates, param); } // ... evaluate(...) static DerivativeRangeReturnType jacobian(const LeftType& left_, const RightType& right_, const DomainType& point_in_global_coordinates, const Common::Parameter& param) { return left_.jacobian(point_in_global_coordinates, param) + right_.jacobian(point_in_global_coordinates, param); } // ... jacobian(...) }; // class Call< ..., sum > // left only scalar atm template <bool anything> class Call<Combination::product, anything> { public: static std::string type() { return "product"; } static size_t order(const size_t left_order, const size_t right_order) { return left_order + right_order; } static RangeReturnType evaluate(const LeftType& left_, const RightType& right_, const DomainType& point_in_global_coordinates, const Common::Parameter& param) { ScalarRangeReturnType left_eval = left_.evaluate(point_in_global_coordinates, param); RangeReturnType right_eval = right_.evaluate(point_in_global_coordinates, param); if (left_eval.size() != 1) DUNE_THROW(NotImplemented, "Only available for scalar left type!"); right_eval *= left_eval[0]; return right_eval; } // ... evaluate(...) static DerivativeRangeReturnType jacobian(const LeftType& /*left_*/, const RightType& /*right_*/, const DomainType& /*point_in_global_coordinates*/, const Common::Parameter& /*param*/) { DUNE_THROW(NotImplemented, "If you need this, implement it!"); return DerivativeRangeReturnType(); } }; // class Call< ..., product > public: static std::string type() { return Call<comb>::type(); } static size_t order(const size_t left_order, const size_t right_order) { return Call<comb>::order(left_order, right_order); } static RangeReturnType evaluate(const LeftType& left_, const RightType& right_, const DomainType& point_in_global_coordinates, const Common::Parameter& param) { return Call<comb>::evaluate(left_, right_, point_in_global_coordinates, param); } static DerivativeRangeReturnType jacobian(const LeftType& left_, const RightType& right_, const DomainType& point_in_global_coordinates, const Common::Parameter& param) { return Call<comb>::jacobian(left_, right_, point_in_global_coordinates, param); } }; // class SelectCombined /** * \brief Generic combined function. * * This class combines two given functions of type LeftType and RightType using the given combination * Combination. This class (and any derived class, like Difference, Sum or Product) can be used in two ways: * - You can pass references of the left and right operand to this class. This is done for instance when calling * operator+, operator- or operator* on any function deriving from FunctionInterface: \code using ConstantType = Functions::ConstantFunction< ..., double>; ConstantType one( ... ); ConstantType two( ... ); // the following code auto difference = one - two; // is equivalent to Difference< ConstantType, ConstantType > difference(one, two); // and internal::Combined< ConstantType, ConstantType, Combination::difference > difference(one, tow); \endcode * In this situation you are responsible to ensure that the arguments given are valid throughout the lifetime * of this class. The following will lead to a segfault: \code using ConstantType = Functions::ConstantFunction< ..., double >; Difference< ConstantType, ConstantType > stupid_difference() { ConstantType one( ... ); ConstantType two( ... ); return one - two; } \endcode * - You can pass shared_ptr of the left and right operands to this class. In this case the following is valid: \code using ConstantType = Functions::ConstantFunction< ..., double >; Difference< ConstantType, ConstantType > stupid_difference() { auto one = std::make_shared< ConstantType >(1); auto two = std::make_shared< ConstantType >(2); return Difference< ConstantType, ConstantType >(one, two) } \endcode * * \note Most likely you do not want to use this class diretly, but one of Difference, Sum or Product. */ template <class LeftType, class RightType, Combination comb> class CombinedFunction : public FunctionInterface<LeftType::domain_dim, SelectCombined<LeftType, RightType, comb>::r, SelectCombined<LeftType, RightType, comb>::rC, typename SelectCombined<LeftType, RightType, comb>::R> { using BaseType = FunctionInterface<LeftType::domain_dim, SelectCombined<LeftType, RightType, comb>::r, SelectCombined<LeftType, RightType, comb>::rC, typename SelectCombined<LeftType, RightType, comb>::R>; using ThisType = CombinedFunction<LeftType, RightType, comb>; using Select = SelectCombined<LeftType, RightType, comb>; using LeftStorageType = Common::ConstStorageProvider<LeftType>; using RightStorageType = Common::ConstStorageProvider<RightType>; public: CombinedFunction(const LeftType& left, const RightType& right, const std::string nm = "") : left_(Common::make_unique<LeftStorageType>(left)) , right_(Common::make_unique<RightStorageType>(right)) , name_(nm.empty() ? SelectCombined<LeftType, RightType, comb>::type() + " of '" + left.name() + "' and '" + right.name() + "'" : nm) {} CombinedFunction(const std::shared_ptr<const LeftType> left, const std::shared_ptr<const RightType> right, const std::string nm = "") : left_(Common::make_unique<LeftStorageType>(left)) , right_(Common::make_unique<RightStorageType>(right)) , name_(nm.empty() ? SelectCombined<LeftType, RightType, comb>::type() + " of '" + left_->access().name() + "' and '" + right_->access().name() + "'" : nm) {} CombinedFunction(ThisType&& source) = default; CombinedFunction(const ThisType& other) = delete; ThisType& operator=(const ThisType& other) = delete; ThisType& operator=(ThisType&& other) = delete; std::string name() const override final { return name_; } using typename BaseType::DerivativeRangeReturnType; using typename BaseType::DomainType; using typename BaseType::RangeReturnType; int order(const XT::Common::Parameter& param = {}) const override final { auto ret = Select::order(left_->access().order(param), right_->access().order(param)); assert(ret < std::numeric_limits<int>::max()); return static_cast<int>(ret); } RangeReturnType evaluate(const DomainType& point_in_global_coordinates, const Common::Parameter& param = {}) const override final { return Select::evaluate(left_->access(), right_->access(), point_in_global_coordinates, param); } DerivativeRangeReturnType jacobian(const DomainType& point_in_global_coordinates, const Common::Parameter& param = {}) const override final { return Select::jacobian(left_->access(), right_->access(), point_in_global_coordinates, param); } private: std::unique_ptr<const LeftStorageType> left_; std::unique_ptr<const RightStorageType> right_; const std::string name_; }; // class Combined } // namespace internal /** * \brief Function representing the difference between two functions. * * \see internal::Combined */ template <class MinuendType, class SubtrahendType> class DifferenceFunction : public internal::CombinedFunction<MinuendType, SubtrahendType, internal::Combination::difference> { using BaseType = internal::CombinedFunction<MinuendType, SubtrahendType, internal::Combination::difference>; public: template <class... Args> explicit DifferenceFunction(Args&&... args) : BaseType(std::forward<Args>(args)...) {} }; // class DifferenceFunction /** * \brief Function representing the sum of two functions. * * \see internal::Combined */ template <class LeftSummandType, class RightSummandType> class SumFunction : public internal::CombinedFunction<LeftSummandType, RightSummandType, internal::Combination::sum> { using BaseType = internal::CombinedFunction<LeftSummandType, RightSummandType, internal::Combination::sum>; public: template <class... Args> explicit SumFunction(Args&&... args) : BaseType(std::forward<Args>(args)...) {} }; // class SumFunction /** * \brief Function representing the product of two functions. * * \see internal::Combined */ template <class LeftSummandType, class RightSummandType> class ProductFunction : public internal::CombinedFunction<LeftSummandType, RightSummandType, internal::Combination::product> { using BaseType = internal::CombinedFunction<LeftSummandType, RightSummandType, internal::Combination::product>; public: template <class... Args> explicit ProductFunction(Args&&... args) : BaseType(std::forward<Args>(args)...) {} }; // class ProductFunction template <class T1, class T2, class... Args> std::shared_ptr<DifferenceFunction<T1, T2>> make_difference(const T1& left, const T2& right, Args&&... args) { return std::make_shared<DifferenceFunction<T1, T2>>(left, right, std::forward<Args>(args)...); } template <class T1, class T2, class... Args> std::shared_ptr<DifferenceFunction<T1, T2>> make_difference(std::shared_ptr<T1> left, std::shared_ptr<T2> right, Args&&... args) { return std::make_shared<DifferenceFunction<T1, T2>>(left, right, std::forward<Args>(args)...); } template <class T1, class T2, class... Args> std::shared_ptr<SumFunction<T1, T2>> make_sum(const T1& left, const T2& right, Args&&... args) { return std::make_shared<SumFunction<T1, T2>>(left, right, std::forward<Args>(args)...); } template <class T1, class T2, class... Args> std::shared_ptr<SumFunction<T1, T2>> make_sum(std::shared_ptr<T1> left, std::shared_ptr<T2> right, Args&&... args) { return std::make_shared<SumFunction<T1, T2>>(left, right, std::forward<Args>(args)...); } template <class T1, class T2, class... Args> std::shared_ptr<ProductFunction<T1, T2>> make_product(const T1& left, const T2& right, Args&&... args) { return std::make_shared<ProductFunction<T1, T2>>(left, right, std::forward<Args>(args)...); } template <class T1, class T2, class... Args> std::shared_ptr<ProductFunction<T1, T2>> make_product(std::shared_ptr<T1> left, std::shared_ptr<T2> right, Args&&... args) { return std::make_shared<ProductFunction<T1, T2>>(left, right, std::forward<Args>(args)...); } } // namespace Functions } // namespace XT } // namespace Dune #endif // DUNE_XT_FUNCTIONS_BASE_COMBINED_HH
36.376368
118
0.661213
renefritze
c8bf53fa139c408326a187329affd5c5b4ac1bf1
2,088
cpp
C++
elenasrc2/engine/win32/win32routines.cpp
drkameleon/elena-lang
8585e93a3bc0b19f8d60029ffbe01311d0b711a3
[ "MIT" ]
null
null
null
elenasrc2/engine/win32/win32routines.cpp
drkameleon/elena-lang
8585e93a3bc0b19f8d60029ffbe01311d0b711a3
[ "MIT" ]
null
null
null
elenasrc2/engine/win32/win32routines.cpp
drkameleon/elena-lang
8585e93a3bc0b19f8d60029ffbe01311d0b711a3
[ "MIT" ]
null
null
null
//--------------------------------------------------------------------------- // E L E N A P r o j e c t: Win32 ELENA System Routines // // (C)2018-2020, by Alexei Rakov //--------------------------------------------------------------------------- #include "elena.h" // -------------------------------------------------------------------------- #include "elenamachine.h" #include <windows.h> using namespace _ELENA_; void SystemRoutineProvider :: InitCriticalStruct(CriticalStruct* header, pos_t criticalHandler) { pos_t previousHeader = 0; // ; set SEH handler / frame / stack pointers __asm { mov eax, header mov ecx, fs: [0] mov previousHeader, ecx mov fs : [0] , eax } header->previousStruct = previousHeader; header->handler = criticalHandler; } TLSEntry* SystemRoutineProvider :: GetTLSEntry(pos_t tlsIndex) { TLSEntry* entry = nullptr; // ; GCXT: assign tls entry __asm { mov ebx, tlsIndex mov ecx, fs: [2Ch] mov edx, [ecx + ebx * 4] mov entry, edx } return entry; } void SystemRoutineProvider :: InitTLSEntry(pos_t threadIndex, pos_t tlsIndex, ProgramHeader* frameHeader, pos_t* threadTable) { TLSEntry* entry = GetTLSEntry(tlsIndex); entry->tls_flags = 0; entry->tls_sync_event = ::CreateEvent(0, -1, 0, 0); entry->tls_et_current = &frameHeader->root_exception_struct; entry->tls_threadindex = threadIndex; threadTable[threadIndex] = (pos_t)entry; } pos_t SystemRoutineProvider :: NewHeap(int totalSize, int committedSize) { // reserve void* allocPtr = VirtualAlloc(nullptr, totalSize, MEM_RESERVE, PAGE_READWRITE); // allocate VirtualAlloc(allocPtr, committedSize, MEM_COMMIT, PAGE_READWRITE); return (pos_t)allocPtr; } void SystemRoutineProvider :: Exit(pos_t exitCode) { ::ExitProcess(exitCode); } void SystemRoutineProvider :: CloseThreadHandle(TLSEntry* entry, bool withExit, pos_t exitCode) { ::CloseHandle(entry->tls_sync_event); if (withExit) ::ExitThread(exitCode); }
26.43038
125
0.599138
drkameleon
c8c292296b8f291e46f72bec9c122d493a3913d6
7,448
cpp
C++
Src/Util/DateTime.cpp
draede/cx
f3ce4aec9b99095760481b1507e383975b2827e3
[ "MIT" ]
1
2016-08-28T18:29:17.000Z
2016-08-28T18:29:17.000Z
Src/Util/DateTime.cpp
draede/cx
f3ce4aec9b99095760481b1507e383975b2827e3
[ "MIT" ]
null
null
null
Src/Util/DateTime.cpp
draede/cx
f3ce4aec9b99095760481b1507e383975b2827e3
[ "MIT" ]
null
null
null
/* * CX - C++ framework for general purpose development * * https://github.com/draede/cx * * Copyright (C) 2014 - 2021 draede - draede [at] outlook [dot] com * * Released under the MIT License. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "CX/precomp.hpp" #include "CX/Util/DateTime.hpp" #include "CX/Platform.hpp" #ifdef CX_OS_WINDOWS #include "CX/C/Platform/Windows/windows.h" #else #include <time.h> #include <sys/time.h> #endif namespace CX { namespace Util { Bool DateTime::IsLeapYear(UInt16 uYear) { return (uYear % 4 == 0 && uYear % 100 != 0) || (uYear % 400 == 0); } UInt8 DateTime::GetDaysInMonth(UInt16 uYear, UInt8 uMonth) { if (2 == uMonth) { if (IsLeapYear(uYear)) { return 29; } else { return 28; } } else if (4 == uMonth || 6 == uMonth || 9 == uMonth || 11 == uMonth) { return 30; } else { return 31; } } DateTime::DayOfWeek DateTime::GetDayOfWeekFromDate(UInt16 uYear, UInt8 uMonth, UInt8 uDay) { UInt32 y; UInt32 v; y = uYear; y -= uMonth <= 2; const UInt32 era = (y >= 0 ? y : y- 399) / 400; const UInt32 yoe = static_cast<UInt32>(y - era * 400); // [0, 399] const UInt32 doy = (153 * (uMonth + (uMonth > 2 ? -3 : 9)) + 2) / 5 + uDay - 1; // [0, 365] const UInt32 doe = yoe * 365 + yoe / 4 - yoe / 100 + doy; // [0, 146096] v = era * 146097 + static_cast<UInt32>(doe) - 719468; v *= SECONDS_PER_DAY; return GetDayOfWeekFromSeconds(v); } DateTime::DayOfWeek DateTime::GetDayOfWeekFromSeconds(UInt32 uSeconds) { return (DayOfWeek)((uSeconds / SECONDS_PER_DAY + 4) % 7); } DateTime::DayOfWeek DateTime::GetDayOfWeekFromMilliseconds(UInt64 uMilliseconds) { return GetDayOfWeekFromSeconds((UInt32)(uMilliseconds / 1000)); } DateTime::DayOfWeek DateTime::GetDayOfWeekFromDate() const { return GetDayOfWeekFromDate(uYear, uMonth, uDay); } void DateTime::FromSeconds(UInt32 uSeconds) { UInt64 cDays = uSeconds / SECONDS_PER_DAY; cDays += 719468; const UInt64 era = (cDays >= 0 ? cDays : cDays - 146096) / 146097; const UInt64 doe = static_cast<UInt64>(cDays - era * 146097); // [0, 146096] const UInt64 yoe = (doe - doe / 1460 + doe / 36524 - doe / 146096) / 365; // [0, 399] const UInt64 y = static_cast<UInt64>(yoe) + era * 400; const UInt64 doy = doe - (365 * yoe + yoe / 4 - yoe / 100); // [0, 365] const UInt64 mp = (5 * doy + 2) / 153; // [0, 11] const UInt64 d = doy - (153 * mp + 2)/5 + 1; // [1, 31] const UInt64 m = mp + (mp < 10 ? 3 : -9); // [1, 12] uYear = (UInt16)(y + (m <= 2)); uMonth = (UInt8)m; uDay = (UInt8)d; uSeconds %= SECONDS_PER_DAY; uHour = (UInt8)(uSeconds / SECONDS_PER_HOUR); uSeconds %= SECONDS_PER_HOUR; uMinute = (UInt8)(uSeconds / SECONDS_PER_MINUTE); uSeconds %= SECONDS_PER_MINUTE; uSecond = (UInt8)uSeconds; uMillisecond = 0; } UInt32 DateTime::ToSeconds() const { UInt32 y; UInt32 v; y = uYear; y -= uMonth <= 2; const UInt32 era = (y >= 0 ? y : y- 399) / 400; const UInt32 yoe = static_cast<UInt32>(y - era * 400); // [0, 399] const UInt32 doy = (153 * (uMonth + (uMonth > 2 ? -3 : 9)) + 2) / 5 + uDay - 1; // [0, 365] const UInt32 doe = yoe * 365 + yoe / 4 - yoe / 100 + doy; // [0, 146096] v = era * 146097 + static_cast<UInt32>(doe) - 719468; v *= SECONDS_PER_DAY; v += uHour * SECONDS_PER_HOUR; v += uMinute * SECONDS_PER_MINUTE; v += uSecond; return v; } void DateTime::FromMilliseconds(UInt64 uMilliseconds) { UInt64 cDays = uMilliseconds / MILLISECONDS_PER_DAY; cDays += 719468; const UInt64 era = (cDays >= 0 ? cDays : cDays - 146096) / 146097; const UInt64 doe = static_cast<UInt64>(cDays - era * 146097); // [0, 146096] const UInt64 yoe = (doe - doe / 1460 + doe / 36524 - doe / 146096) / 365; // [0, 399] const UInt64 y = static_cast<UInt64>(yoe) + era * 400; const UInt64 doy = doe - (365 * yoe + yoe / 4 - yoe / 100); // [0, 365] const UInt64 mp = (5 * doy + 2) / 153; // [0, 11] const UInt64 d = doy - (153 * mp + 2)/5 + 1; // [1, 31] const UInt64 m = mp + (mp < 10 ? 3 : -9); // [1, 12] uYear = (UInt16)(y + (m <= 2)); uMonth = (UInt8)m; uDay = (UInt8)d; uMilliseconds %= MILLISECONDS_PER_DAY; uHour = (UInt8)(uMilliseconds / MILLISECONDS_PER_HOUR); uMilliseconds %= MILLISECONDS_PER_HOUR; uMinute = (UInt8)(uMilliseconds / MILLISECONDS_PER_MINUTE); uMilliseconds %= MILLISECONDS_PER_MINUTE; uSecond = (UInt8)(uMilliseconds / MILLISECONDS_PER_SECOND); uMilliseconds %= MILLISECONDS_PER_SECOND; uMillisecond = (UInt16)uMilliseconds; } UInt64 DateTime::ToMilliseconds() const { UInt64 y; UInt64 v; y = uYear; y -= uMonth <= 2; const UInt64 era = (y >= 0 ? y : y- 399) / 400; const UInt64 yoe = static_cast<UInt64>(y - era * 400); // [0, 399] const UInt64 doy = (153 * ((UInt64)uMonth + ((UInt64)uMonth > 2 ? -3 : 9)) + 2) / 5 + (UInt64)uDay - 1;// [0, 365] const UInt64 doe = yoe * 365 + yoe / 4 - yoe / 100 + doy; // [0, 146096] v = era * 146097 + static_cast<UInt64>(doe) - 719468; v *= MILLISECONDS_PER_DAY; v += uHour * MILLISECONDS_PER_HOUR; v += uMinute * MILLISECONDS_PER_MINUTE; v += uSecond * MILLISECONDS_PER_SECOND; v += uMillisecond; return v; } void DateTime::Now() { #ifdef CX_OS_WINDOWS SYSTEMTIME st; ::GetLocalTime(&st); uYear = (UInt16)st.wYear; uMonth = (UInt8)st.wMonth; uDay = (UInt8)st.wDay; uHour = (UInt8)st.wHour; uMinute = (UInt8)st.wMinute; uSecond = (UInt8)st.wSecond; uMillisecond = (UInt16)st.wMilliseconds; #else struct tm *pTime; struct timeval tv; pTime = localtime(&tv.tv_sec); uYear = (UInt16)(pTime->tm_year + 1900); uMonth = (UInt8)(pTime->tm_mon + 1); uDay = (UInt8)(pTime->tm_mday); uHour = (UInt8)(pTime->tm_hour); uMinute = (UInt8)(pTime->tm_min); uSecond = (UInt8)(pTime->tm_sec); if (0 != gettimeofday(&tv, NULL)) { uMillisecond = (UInt16)(tv.tv_usec / 1000); } else { uMillisecond = 0; } #endif } }//namespace Util }//namespace CX
30.153846
118
0.608351
draede
c8c2c20278785a811c02434cc20904bffc1a134f
46
cpp
C++
Unreal/CtaCpp/Runtime/Scripts/Combat/Item.cpp
areilly711/CtaApi
8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c
[ "MIT" ]
3
2021-06-02T16:44:02.000Z
2022-01-24T20:20:10.000Z
Unreal/CtaCpp/Runtime/Scripts/Combat/Item.cpp
areilly711/CtaApi
8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c
[ "MIT" ]
null
null
null
Unreal/CtaCpp/Runtime/Scripts/Combat/Item.cpp
areilly711/CtaApi
8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c
[ "MIT" ]
null
null
null
#include "Item.h" namespace Cta::Combat { }
7.666667
21
0.652174
areilly711
c8c2cec62e1e591f9f192f519cf16b71d8ed3389
189,202
cpp
C++
src/test/app/Offer_test.cpp
MUSOChain/MUSO
6301be50a570e3f49cf941d9e4979110b5a08351
[ "BSL-1.0" ]
2
2021-03-19T06:33:52.000Z
2021-03-24T08:16:38.000Z
src/test/app/Offer_test.cpp
MUSOChain/MUSO
6301be50a570e3f49cf941d9e4979110b5a08351
[ "BSL-1.0" ]
null
null
null
src/test/app/Offer_test.cpp
MUSOChain/MUSO
6301be50a570e3f49cf941d9e4979110b5a08351
[ "BSL-1.0" ]
null
null
null
//------------------------------------------------------------------------------ /* This file is part of MUSO: https://github.com/MUSO/MUSO Copyright (c) 2012-2017 MUSO Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ //============================================================================== #include <MUSO/protocol/Feature.h> #include <MUSO/protocol/Quality.h> #include <MUSO/protocol/jss.h> #include <test/jtx.h> #include <test/jtx/PathSet.h> #include <test/jtx/WSClient.h> namespace MUSO { namespace test { class Offer_test : public beast::unit_test::suite { MUSOAmount reserve(jtx::Env& env, std::uint32_t count) { return env.current()->fees().accountReserve(count); } std::uint32_t lastClose(jtx::Env& env) { return env.current()->info().parentCloseTime.time_since_epoch().count(); } static auto MUSOMinusFee(jtx::Env const& env, std::int64_t MUSOAmount) -> jtx::PrettyAmount { using namespace jtx; auto feeDrops = env.current()->fees().base; return drops(dropsPerMUSO * MUSOAmount - feeDrops); } static auto ledgerEntryState( jtx::Env& env, jtx::Account const& acct_a, jtx::Account const& acct_b, std::string const& currency) { Json::Value jvParams; jvParams[jss::ledger_index] = "current"; jvParams[jss::MUSO_state][jss::currency] = currency; jvParams[jss::MUSO_state][jss::accounts] = Json::arrayValue; jvParams[jss::MUSO_state][jss::accounts].append(acct_a.human()); jvParams[jss::MUSO_state][jss::accounts].append(acct_b.human()); return env.rpc( "json", "ledger_entry", to_string(jvParams))[jss::result]; } static auto ledgerEntryRoot(jtx::Env& env, jtx::Account const& acct) { Json::Value jvParams; jvParams[jss::ledger_index] = "current"; jvParams[jss::account_root] = acct.human(); return env.rpc( "json", "ledger_entry", to_string(jvParams))[jss::result]; } static auto ledgerEntryOffer( jtx::Env& env, jtx::Account const& acct, std::uint32_t offer_seq) { Json::Value jvParams; jvParams[jss::offer][jss::account] = acct.human(); jvParams[jss::offer][jss::seq] = offer_seq; return env.rpc( "json", "ledger_entry", to_string(jvParams))[jss::result]; } static auto getBookOffers( jtx::Env& env, Issue const& taker_pays, Issue const& taker_gets) { Json::Value jvbp; jvbp[jss::ledger_index] = "current"; jvbp[jss::taker_pays][jss::currency] = to_string(taker_pays.currency); jvbp[jss::taker_pays][jss::issuer] = to_string(taker_pays.account); jvbp[jss::taker_gets][jss::currency] = to_string(taker_gets.currency); jvbp[jss::taker_gets][jss::issuer] = to_string(taker_gets.account); return env.rpc("json", "book_offers", to_string(jvbp))[jss::result]; } public: void testRmFundedOffer(FeatureBitset features) { testcase("Incorrect Removal of Funded Offers"); // We need at least two paths. One at good quality and one at bad // quality. The bad quality path needs two offer books in a row. // Each offer book should have two offers at the same quality, the // offers should be completely consumed, and the payment should // should require both offers to be satisfied. The first offer must // be "taker gets" MUSO. Old, broken would remove the first // "taker gets" MUSO offer, even though the offer is still funded and // not used for the payment. using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const USD = gw["USD"]; auto const BTC = gw["BTC"]; Account const alice{"alice"}; Account const bob{"bob"}; Account const carol{"carol"}; env.fund(MUSO(10000), alice, bob, carol, gw); env.trust(USD(1000), alice, bob, carol); env.trust(BTC(1000), alice, bob, carol); env(pay(gw, alice, BTC(1000))); env(pay(gw, carol, USD(1000))); env(pay(gw, carol, BTC(1000))); // Must be two offers at the same quality // "taker gets" must be MUSO // (Different amounts so I can distinguish the offers) env(offer(carol, BTC(49), MUSO(49))); env(offer(carol, BTC(51), MUSO(51))); // Offers for the poor quality path // Must be two offers at the same quality env(offer(carol, MUSO(50), USD(50))); env(offer(carol, MUSO(50), USD(50))); // Offers for the good quality path env(offer(carol, BTC(1), USD(100))); PathSet paths(Path(MUSO, USD), Path(USD)); env(pay(alice, bob, USD(100)), json(paths.json()), sendmax(BTC(1000)), txflags(tfPartialPayment)); env.require(balance(bob, USD(100))); BEAST_EXPECT( !isOffer(env, carol, BTC(1), USD(100)) && isOffer(env, carol, BTC(49), MUSO(49))); } void testCanceledOffer(FeatureBitset features) { testcase("Removing Canceled Offers"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), alice, gw); env.close(); env.trust(USD(100), alice); env.close(); env(pay(gw, alice, USD(50))); env.close(); auto const offer1Seq = env.seq(alice); env(offer(alice, MUSO(500), USD(100)), require(offers(alice, 1))); env.close(); BEAST_EXPECT(isOffer(env, alice, MUSO(500), USD(100))); // cancel the offer above and replace it with a new offer auto const offer2Seq = env.seq(alice); env(offer(alice, MUSO(300), USD(100)), json(jss::OfferSequence, offer1Seq), require(offers(alice, 1))); env.close(); BEAST_EXPECT( isOffer(env, alice, MUSO(300), USD(100)) && !isOffer(env, alice, MUSO(500), USD(100))); // Test canceling non-existent offer. // auto const offer3Seq = env.seq (alice); env(offer(alice, MUSO(400), USD(200)), json(jss::OfferSequence, offer1Seq), require(offers(alice, 2))); env.close(); BEAST_EXPECT( isOffer(env, alice, MUSO(300), USD(100)) && isOffer(env, alice, MUSO(400), USD(200))); // Test cancellation now with OfferCancel tx auto const offer4Seq = env.seq(alice); env(offer(alice, MUSO(222), USD(111)), require(offers(alice, 3))); env.close(); BEAST_EXPECT(isOffer(env, alice, MUSO(222), USD(111))); { Json::Value cancelOffer; cancelOffer[jss::Account] = alice.human(); cancelOffer[jss::OfferSequence] = offer4Seq; cancelOffer[jss::TransactionType] = jss::OfferCancel; env(cancelOffer); } env.close(); BEAST_EXPECT(env.seq(alice) == offer4Seq + 2); BEAST_EXPECT(!isOffer(env, alice, MUSO(222), USD(111))); // Create an offer that both fails with a tecEXPIRED code and removes // an offer. Show that the attempt to remove the offer fails. env.require(offers(alice, 2)); // featureDepositPreauths changes the return code on an expired Offer. // Adapt to that. bool const featPreauth{features[featureDepositPreauth]}; env(offer(alice, MUSO(5), USD(2)), json(sfExpiration.fieldName, lastClose(env)), json(jss::OfferSequence, offer2Seq), ter(featPreauth ? TER{tecEXPIRED} : TER{tesSUCCESS})); env.close(); env.require(offers(alice, 2)); BEAST_EXPECT(isOffer(env, alice, MUSO(300), USD(100))); // offer2 BEAST_EXPECT(!isOffer(env, alice, MUSO(5), USD(2))); // expired } void testTinyPayment(FeatureBitset features) { testcase("Tiny payments"); // Regression test for tiny payments using namespace jtx; using namespace std::chrono_literals; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const carol = Account{"carol"}; auto const gw = Account{"gw"}; auto const USD = gw["USD"]; auto const EUR = gw["EUR"]; Env env{*this, features}; env.fund(MUSO(10000), alice, bob, carol, gw); env.trust(USD(1000), alice, bob, carol); env.trust(EUR(1000), alice, bob, carol); env(pay(gw, alice, USD(100))); env(pay(gw, carol, EUR(100))); // Create more offers than the loop max count in DeliverNodeReverse // Note: the DeliverNodeReverse code has been removed; however since // this is a regression test the original test is being left as-is for // now. for (int i = 0; i < 101; ++i) env(offer(carol, USD(1), EUR(2))); env(pay(alice, bob, EUR(epsilon)), path(~EUR), sendmax(USD(100))); } void testMUSOTinyPayment(FeatureBitset features) { testcase("MUSO Tiny payments"); // Regression test for tiny MUSO payments // In some cases, when the payment code calculates // the amount of MUSO needed as input to an MUSO->iou offer // it would incorrectly round the amount to zero (even when // round-up was set to true). // The bug would cause funded offers to be incorrectly removed // because the code thought they were unfunded. // The conditions to trigger the bug are: // 1) When we calculate the amount of input MUSO needed for an offer // from MUSO->iou, the amount is less than 1 drop (after rounding // up the float representation). // 2) There is another offer in the same book with a quality // sufficiently bad that when calculating the input amount // needed the amount is not set to zero. using namespace jtx; using namespace std::chrono_literals; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const carol = Account{"carol"}; auto const dan = Account{"dan"}; auto const erin = Account{"erin"}; auto const gw = Account{"gw"}; auto const USD = gw["USD"]; Env env{*this, features}; env.fund(MUSO(10000), alice, bob, carol, dan, erin, gw); env.trust(USD(1000), alice, bob, carol, dan, erin); env(pay(gw, carol, USD(0.99999))); env(pay(gw, dan, USD(1))); env(pay(gw, erin, USD(1))); // Carol doesn't quite have enough funds for this offer // The amount left after this offer is taken will cause // STAmount to incorrectly round to zero when the next offer // (at a good quality) is considered. (when the // stAmountCalcSwitchover2 patch is inactive) env(offer(carol, drops(1), USD(1))); // Offer at a quality poor enough so when the input MUSO is // calculated in the reverse pass, the amount is not zero. env(offer(dan, MUSO(100), USD(1))); env.close(); // This is the funded offer that will be incorrectly removed. // It is considered after the offer from carol, which leaves a // tiny amount left to pay. When calculating the amount of MUSO // needed for this offer, it will incorrectly compute zero in both // the forward and reverse passes (when the stAmountCalcSwitchover2 // is inactive.) env(offer(erin, drops(2), USD(2))); env(pay(alice, bob, USD(1)), path(~USD), sendmax(MUSO(102)), txflags(tfNoMUSOirect | tfPartialPayment)); env.require(offers(carol, 0), offers(dan, 1)); // offer was correctly consumed. There is still some // liquidity left on that offer. env.require(balance(erin, USD(0.99999)), offers(erin, 1)); } void testEnforceNoMUSO(FeatureBitset features) { testcase("Enforce No MUSO"); using namespace jtx; auto const gw = Account{"gateway"}; auto const USD = gw["USD"]; auto const BTC = gw["BTC"]; auto const EUR = gw["EUR"]; Account const alice{"alice"}; Account const bob{"bob"}; Account const carol{"carol"}; Account const dan{"dan"}; { // No MUSO with an implied account step after an offer Env env{*this, features}; auto const gw1 = Account{"gw1"}; auto const USD1 = gw1["USD"]; auto const gw2 = Account{"gw2"}; auto const USD2 = gw2["USD"]; env.fund(MUSO(10000), alice, noMUSO(bob), carol, dan, gw1, gw2); env.trust(USD1(1000), alice, carol, dan); env(trust(bob, USD1(1000), tfSetNoMUSO)); env.trust(USD2(1000), alice, carol, dan); env(trust(bob, USD2(1000), tfSetNoMUSO)); env(pay(gw1, dan, USD1(50))); env(pay(gw1, bob, USD1(50))); env(pay(gw2, bob, USD2(50))); env(offer(dan, MUSO(50), USD1(50))); env(pay(alice, carol, USD2(50)), path(~USD1, bob), sendmax(MUSO(50)), txflags(tfNoMUSOirect), ter(tecPATH_DRY)); } { // Make sure payment works with default flags Env env{*this, features}; auto const gw1 = Account{"gw1"}; auto const USD1 = gw1["USD"]; auto const gw2 = Account{"gw2"}; auto const USD2 = gw2["USD"]; env.fund(MUSO(10000), alice, bob, carol, dan, gw1, gw2); env.trust(USD1(1000), alice, bob, carol, dan); env.trust(USD2(1000), alice, bob, carol, dan); env(pay(gw1, dan, USD1(50))); env(pay(gw1, bob, USD1(50))); env(pay(gw2, bob, USD2(50))); env(offer(dan, MUSO(50), USD1(50))); env(pay(alice, carol, USD2(50)), path(~USD1, bob), sendmax(MUSO(50)), txflags(tfNoMUSOirect)); env.require(balance(alice, MUSOMinusFee(env, 10000 - 50))); env.require(balance(bob, USD1(100))); env.require(balance(bob, USD2(0))); env.require(balance(carol, USD2(50))); } } void testInsufficientReserve(FeatureBitset features) { testcase("Insufficient Reserve"); // If an account places an offer and its balance // *before* the transaction began isn't high enough // to meet the reserve *after* the transaction runs, // then no offer should go on the books but if the // offer partially or fully crossed the tx succeeds. using namespace jtx; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const carol = Account{"carol"}; auto const USD = gw["USD"]; auto const usdOffer = USD(1000); auto const MUSOOffer = MUSO(1000); // No crossing: { Env env{*this, features}; env.fund(MUSO(1000000), gw); auto const f = env.current()->fees().base; auto const r = reserve(env, 0); env.fund(r + f, alice); env(trust(alice, usdOffer), ter(tesSUCCESS)); env(pay(gw, alice, usdOffer), ter(tesSUCCESS)); env(offer(alice, MUSOOffer, usdOffer), ter(tecINSUF_RESERVE_OFFER)); env.require(balance(alice, r - f), owners(alice, 1)); } // Partial cross: { Env env{*this, features}; env.fund(MUSO(1000000), gw); auto const f = env.current()->fees().base; auto const r = reserve(env, 0); auto const usdOffer2 = USD(500); auto const MUSOOffer2 = MUSO(500); env.fund(r + f + MUSOOffer, bob); env(offer(bob, usdOffer2, MUSOOffer2), ter(tesSUCCESS)); env.fund(r + f, alice); env(trust(alice, usdOffer), ter(tesSUCCESS)); env(pay(gw, alice, usdOffer), ter(tesSUCCESS)); env(offer(alice, MUSOOffer, usdOffer), ter(tesSUCCESS)); env.require( balance(alice, r - f + MUSOOffer2), balance(alice, usdOffer2), owners(alice, 1), balance(bob, r + MUSOOffer2), balance(bob, usdOffer2), owners(bob, 1)); } // Account has enough reserve as is, but not enough // if an offer were added. Attempt to sell IOUs to // buy MUSO. If it fully crosses, we succeed. { Env env{*this, features}; env.fund(MUSO(1000000), gw); auto const f = env.current()->fees().base; auto const r = reserve(env, 0); auto const usdOffer2 = USD(500); auto const MUSOOffer2 = MUSO(500); env.fund(r + f + MUSOOffer, bob, carol); env(offer(bob, usdOffer2, MUSOOffer2), ter(tesSUCCESS)); env(offer(carol, usdOffer, MUSOOffer), ter(tesSUCCESS)); env.fund(r + f, alice); env(trust(alice, usdOffer), ter(tesSUCCESS)); env(pay(gw, alice, usdOffer), ter(tesSUCCESS)); env(offer(alice, MUSOOffer, usdOffer), ter(tesSUCCESS)); env.require( balance(alice, r - f + MUSOOffer), balance(alice, USD(0)), owners(alice, 1), balance(bob, r + MUSOOffer2), balance(bob, usdOffer2), owners(bob, 1), balance(carol, r + MUSOOffer2), balance(carol, usdOffer2), owners(carol, 2)); } } // Helper function that returns the Offers on an account. static std::vector<std::shared_ptr<SLE const>> offersOnAccount(jtx::Env& env, jtx::Account account) { std::vector<std::shared_ptr<SLE const>> result; forEachItem( *env.current(), account, [&result](std::shared_ptr<SLE const> const& sle) { if (sle->getType() == ltOFFER) result.push_back(sle); }); return result; } void testFillModes(FeatureBitset features) { testcase("Fill Modes"); using namespace jtx; auto const startBalance = MUSO(1000000); auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; // Fill or Kill - unless we fully cross, just charge a fee and don't // place the offer on the books. But also clean up expired offers // that are discovered along the way. // // fix1578 changes the return code. Verify expected behavior // without and with fix1578. for (auto const tweakedFeatures : {features - fix1578, features | fix1578}) { Env env{*this, tweakedFeatures}; auto const f = env.current()->fees().base; env.fund(startBalance, gw, alice, bob); // bob creates an offer that expires before the next ledger close. env(offer(bob, USD(500), MUSO(500)), json(sfExpiration.fieldName, lastClose(env) + 1), ter(tesSUCCESS)); // The offer expires (it's not removed yet). env.close(); env.require(owners(bob, 1), offers(bob, 1)); // bob creates the offer that will be crossed. env(offer(bob, USD(500), MUSO(500)), ter(tesSUCCESS)); env.close(); env.require(owners(bob, 2), offers(bob, 2)); env(trust(alice, USD(1000)), ter(tesSUCCESS)); env(pay(gw, alice, USD(1000)), ter(tesSUCCESS)); // Order that can't be filled but will remove bob's expired offer: { TER const killedCode{ tweakedFeatures[fix1578] ? TER{tecKILLED} : TER{tesSUCCESS}}; env(offer(alice, MUSO(1000), USD(1000)), txflags(tfFillOrKill), ter(killedCode)); } env.require( balance(alice, startBalance - (f * 2)), balance(alice, USD(1000)), owners(alice, 1), offers(alice, 0), balance(bob, startBalance - (f * 2)), balance(bob, USD(none)), owners(bob, 1), offers(bob, 1)); // Order that can be filled env(offer(alice, MUSO(500), USD(500)), txflags(tfFillOrKill), ter(tesSUCCESS)); env.require( balance(alice, startBalance - (f * 3) + MUSO(500)), balance(alice, USD(500)), owners(alice, 1), offers(alice, 0), balance(bob, startBalance - (f * 2) - MUSO(500)), balance(bob, USD(500)), owners(bob, 1), offers(bob, 0)); } // Immediate or Cancel - cross as much as possible // and add nothing on the books: { Env env{*this, features}; auto const f = env.current()->fees().base; env.fund(startBalance, gw, alice, bob); env(trust(alice, USD(1000)), ter(tesSUCCESS)); env(pay(gw, alice, USD(1000)), ter(tesSUCCESS)); // No cross: env(offer(alice, MUSO(1000), USD(1000)), txflags(tfImmediateOrCancel), ter(tesSUCCESS)); env.require( balance(alice, startBalance - f - f), balance(alice, USD(1000)), owners(alice, 1), offers(alice, 0)); // Partially cross: env(offer(bob, USD(50), MUSO(50)), ter(tesSUCCESS)); env(offer(alice, MUSO(1000), USD(1000)), txflags(tfImmediateOrCancel), ter(tesSUCCESS)); env.require( balance(alice, startBalance - f - f - f + MUSO(50)), balance(alice, USD(950)), owners(alice, 1), offers(alice, 0), balance(bob, startBalance - f - MUSO(50)), balance(bob, USD(50)), owners(bob, 1), offers(bob, 0)); // Fully cross: env(offer(bob, USD(50), MUSO(50)), ter(tesSUCCESS)); env(offer(alice, MUSO(50), USD(50)), txflags(tfImmediateOrCancel), ter(tesSUCCESS)); env.require( balance(alice, startBalance - f - f - f - f + MUSO(100)), balance(alice, USD(900)), owners(alice, 1), offers(alice, 0), balance(bob, startBalance - f - f - MUSO(100)), balance(bob, USD(100)), owners(bob, 1), offers(bob, 0)); } // tfPassive -- place the offer without crossing it. { Env env(*this, features); env.fund(startBalance, gw, alice, bob); env.close(); env(trust(bob, USD(1000))); env.close(); env(pay(gw, bob, USD(1000))); env.close(); env(offer(alice, USD(1000), MUSO(2000))); env.close(); auto const aliceOffers = offersOnAccount(env, alice); BEAST_EXPECT(aliceOffers.size() == 1); for (auto offerPtr : aliceOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfTakerGets] == MUSO(2000)); BEAST_EXPECT(offer[sfTakerPays] == USD(1000)); } // bob creates a passive offer that could cross alice's. // bob's offer should stay in the ledger. env(offer(bob, MUSO(2000), USD(1000), tfPassive)); env.close(); env.require(offers(alice, 1)); auto const bobOffers = offersOnAccount(env, bob); BEAST_EXPECT(bobOffers.size() == 1); for (auto offerPtr : bobOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfTakerGets] == USD(1000)); BEAST_EXPECT(offer[sfTakerPays] == MUSO(2000)); } // It should be possible for gw to cross both of those offers. env(offer(gw, MUSO(2000), USD(1000))); env.close(); env.require(offers(alice, 0)); env.require(offers(gw, 0)); env.require(offers(bob, 1)); env(offer(gw, USD(1000), MUSO(2000))); env.close(); env.require(offers(bob, 0)); env.require(offers(gw, 0)); } // tfPassive -- cross only offers of better quality. { Env env(*this, features); env.fund(startBalance, gw, "alice", "bob"); env.close(); env(trust("bob", USD(1000))); env.close(); env(pay(gw, "bob", USD(1000))); env(offer("alice", USD(500), MUSO(1001))); env.close(); env(offer("alice", USD(500), MUSO(1000))); env.close(); auto const aliceOffers = offersOnAccount(env, "alice"); BEAST_EXPECT(aliceOffers.size() == 2); // bob creates a passive offer. That offer should cross one // of alice's (the one with better quality) and leave alice's // other offer untouched. env(offer("bob", MUSO(2000), USD(1000), tfPassive)); env.close(); env.require(offers("alice", 1)); auto const bobOffers = offersOnAccount(env, "bob"); BEAST_EXPECT(bobOffers.size() == 1); for (auto offerPtr : bobOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfTakerGets] == USD(499.5)); BEAST_EXPECT(offer[sfTakerPays] == MUSO(999)); } } } void testMalformed(FeatureBitset features) { testcase("Malformed Detection"); using namespace jtx; auto const startBalance = MUSO(1000000); auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const USD = gw["USD"]; Env env{*this, features}; env.fund(startBalance, gw, alice); // Order that has invalid flags env(offer(alice, USD(1000), MUSO(1000)), txflags(tfImmediateOrCancel + 1), ter(temINVALID_FLAG)); env.require( balance(alice, startBalance), owners(alice, 0), offers(alice, 0)); // Order with incompatible flags env(offer(alice, USD(1000), MUSO(1000)), txflags(tfImmediateOrCancel | tfFillOrKill), ter(temINVALID_FLAG)); env.require( balance(alice, startBalance), owners(alice, 0), offers(alice, 0)); // Sell and buy the same asset { // Alice tries an MUSO to MUSO order: env(offer(alice, MUSO(1000), MUSO(1000)), ter(temBAD_OFFER)); env.require(owners(alice, 0), offers(alice, 0)); // Alice tries an IOU to IOU order: env(trust(alice, USD(1000)), ter(tesSUCCESS)); env(pay(gw, alice, USD(1000)), ter(tesSUCCESS)); env(offer(alice, USD(1000), USD(1000)), ter(temREDUNDANT)); env.require(owners(alice, 1), offers(alice, 0)); } // Offers with negative amounts { env(offer(alice, -USD(1000), MUSO(1000)), ter(temBAD_OFFER)); env.require(owners(alice, 1), offers(alice, 0)); env(offer(alice, USD(1000), -MUSO(1000)), ter(temBAD_OFFER)); env.require(owners(alice, 1), offers(alice, 0)); } // Offer with a bad expiration { env(offer(alice, USD(1000), MUSO(1000)), json(sfExpiration.fieldName, std::uint32_t(0)), ter(temBAD_EXPIRATION)); env.require(owners(alice, 1), offers(alice, 0)); } // Offer with a bad offer sequence { env(offer(alice, USD(1000), MUSO(1000)), json(jss::OfferSequence, std::uint32_t(0)), ter(temBAD_SEQUENCE)); env.require(owners(alice, 1), offers(alice, 0)); } // Use MUSO as a currency code { auto const BAD = IOU(gw, badCurrency()); env(offer(alice, MUSO(1000), BAD(1000)), ter(temBAD_CURRENCY)); env.require(owners(alice, 1), offers(alice, 0)); } } void testExpiration(FeatureBitset features) { testcase("Offer Expiration"); using namespace jtx; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; auto const startBalance = MUSO(1000000); auto const usdOffer = USD(1000); auto const MUSOOffer = MUSO(1000); Env env{*this, features}; env.fund(startBalance, gw, alice, bob); env.close(); auto const f = env.current()->fees().base; env(trust(alice, usdOffer), ter(tesSUCCESS)); env(pay(gw, alice, usdOffer), ter(tesSUCCESS)); env.close(); env.require( balance(alice, startBalance - f), balance(alice, usdOffer), offers(alice, 0), owners(alice, 1)); // Place an offer that should have already expired. // The DepositPreauth amendment changes the return code; adapt to that. bool const featPreauth{features[featureDepositPreauth]}; env(offer(alice, MUSOOffer, usdOffer), json(sfExpiration.fieldName, lastClose(env)), ter(featPreauth ? TER{tecEXPIRED} : TER{tesSUCCESS})); env.require( balance(alice, startBalance - f - f), balance(alice, usdOffer), offers(alice, 0), owners(alice, 1)); env.close(); // Add an offer that expires before the next ledger close env(offer(alice, MUSOOffer, usdOffer), json(sfExpiration.fieldName, lastClose(env) + 1), ter(tesSUCCESS)); env.require( balance(alice, startBalance - f - f - f), balance(alice, usdOffer), offers(alice, 1), owners(alice, 2)); // The offer expires (it's not removed yet) env.close(); env.require( balance(alice, startBalance - f - f - f), balance(alice, usdOffer), offers(alice, 1), owners(alice, 2)); // Add offer - the expired offer is removed env(offer(bob, usdOffer, MUSOOffer), ter(tesSUCCESS)); env.require( balance(alice, startBalance - f - f - f), balance(alice, usdOffer), offers(alice, 0), owners(alice, 1), balance(bob, startBalance - f), balance(bob, USD(none)), offers(bob, 1), owners(bob, 1)); } void testUnfundedCross(FeatureBitset features) { testcase("Unfunded Crossing"); using namespace jtx; auto const gw = Account{"gateway"}; auto const USD = gw["USD"]; auto const usdOffer = USD(1000); auto const MUSOOffer = MUSO(1000); Env env{*this, features}; env.fund(MUSO(1000000), gw); // The fee that's charged for transactions auto const f = env.current()->fees().base; // Account is at the reserve, and will dip below once // fees are subtracted. env.fund(reserve(env, 0), "alice"); env(offer("alice", usdOffer, MUSOOffer), ter(tecUNFUNDED_OFFER)); env.require(balance("alice", reserve(env, 0) - f), owners("alice", 0)); // Account has just enough for the reserve and the // fee. env.fund(reserve(env, 0) + f, "bob"); env(offer("bob", usdOffer, MUSOOffer), ter(tecUNFUNDED_OFFER)); env.require(balance("bob", reserve(env, 0)), owners("bob", 0)); // Account has enough for the reserve, the fee and // the offer, and a bit more, but not enough for the // reserve after the offer is placed. env.fund(reserve(env, 0) + f + MUSO(1), "carol"); env(offer("carol", usdOffer, MUSOOffer), ter(tecINSUF_RESERVE_OFFER)); env.require( balance("carol", reserve(env, 0) + MUSO(1)), owners("carol", 0)); // Account has enough for the reserve plus one // offer, and the fee. env.fund(reserve(env, 1) + f, "dan"); env(offer("dan", usdOffer, MUSOOffer), ter(tesSUCCESS)); env.require(balance("dan", reserve(env, 1)), owners("dan", 1)); // Account has enough for the reserve plus one // offer, the fee and the entire offer amount. env.fund(reserve(env, 1) + f + MUSOOffer, "eve"); env(offer("eve", usdOffer, MUSOOffer), ter(tesSUCCESS)); env.require( balance("eve", reserve(env, 1) + MUSOOffer), owners("eve", 1)); } void testSelfCross(bool use_partner, FeatureBitset features) { testcase( std::string("Self-crossing") + (use_partner ? ", with partner account" : "")); using namespace jtx; auto const gw = Account{"gateway"}; auto const partner = Account{"partner"}; auto const USD = gw["USD"]; auto const BTC = gw["BTC"]; Env env{*this, features}; env.close(); env.fund(MUSO(10000), gw); if (use_partner) { env.fund(MUSO(10000), partner); env(trust(partner, USD(100))); env(trust(partner, BTC(500))); env(pay(gw, partner, USD(100))); env(pay(gw, partner, BTC(500))); } auto const& account_to_test = use_partner ? partner : gw; env.close(); env.require(offers(account_to_test, 0)); // PART 1: // we will make two offers that can be used to bridge BTC to USD // through MUSO env(offer(account_to_test, BTC(250), MUSO(1000))); env.require(offers(account_to_test, 1)); // validate that the book now shows a BTC for MUSO offer BEAST_EXPECT(isOffer(env, account_to_test, BTC(250), MUSO(1000))); auto const secondLegSeq = env.seq(account_to_test); env(offer(account_to_test, MUSO(1000), USD(50))); env.require(offers(account_to_test, 2)); // validate that the book also shows a MUSO for USD offer BEAST_EXPECT(isOffer(env, account_to_test, MUSO(1000), USD(50))); // now make an offer that will cross and auto-bridge, meaning // the outstanding offers will be taken leaving us with none env(offer(account_to_test, USD(50), BTC(250))); auto jrr = getBookOffers(env, USD, BTC); BEAST_EXPECT(jrr[jss::offers].isArray()); BEAST_EXPECT(jrr[jss::offers].size() == 0); jrr = getBookOffers(env, BTC, MUSO); BEAST_EXPECT(jrr[jss::offers].isArray()); BEAST_EXPECT(jrr[jss::offers].size() == 0); // NOTE : // At this point, all offers are expected to be consumed. // Alas, they are not - because of a bug in the Taker auto-bridging // implementation which is addressed by fixTakerDryOfferRemoval. // The pre-fixTakerDryOfferRemoval implementation (incorrect) leaves // an empty offer in the second leg of the bridge. Validate both the // old and the new behavior. { auto acctOffers = offersOnAccount(env, account_to_test); bool const noStaleOffers{ features[featureFlowCross] || features[fixTakerDryOfferRemoval]}; BEAST_EXPECT(acctOffers.size() == (noStaleOffers ? 0 : 1)); for (auto const& offerPtr : acctOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(offer[sfTakerGets] == USD(0)); BEAST_EXPECT(offer[sfTakerPays] == MUSO(0)); } } // cancel that lingering second offer so that it doesn't interfere // with the next set of offers we test. this will not be needed once // the bridging bug is fixed Json::Value cancelOffer; cancelOffer[jss::Account] = account_to_test.human(); cancelOffer[jss::OfferSequence] = secondLegSeq; cancelOffer[jss::TransactionType] = jss::OfferCancel; env(cancelOffer); env.require(offers(account_to_test, 0)); // PART 2: // simple direct crossing BTC to USD and then USD to BTC which causes // the first offer to be replaced env(offer(account_to_test, BTC(250), USD(50))); env.require(offers(account_to_test, 1)); // validate that the book shows one BTC for USD offer and no USD for // BTC offers BEAST_EXPECT(isOffer(env, account_to_test, BTC(250), USD(50))); jrr = getBookOffers(env, USD, BTC); BEAST_EXPECT(jrr[jss::offers].isArray()); BEAST_EXPECT(jrr[jss::offers].size() == 0); // this second offer would self-cross directly, so it causes the first // offer by the same owner/taker to be removed env(offer(account_to_test, USD(50), BTC(250))); env.require(offers(account_to_test, 1)); // validate that we now have just the second offer...the first // was removed jrr = getBookOffers(env, BTC, USD); BEAST_EXPECT(jrr[jss::offers].isArray()); BEAST_EXPECT(jrr[jss::offers].size() == 0); BEAST_EXPECT(isOffer(env, account_to_test, USD(50), BTC(250))); } void testNegativeBalance(FeatureBitset features) { // This test creates an offer test for negative balance // with transfer fees and miniscule funds. testcase("Negative Balance"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; auto const BTC = gw["BTC"]; // these *interesting* amounts were taken // from the original JS test that was ported here auto const gw_initial_balance = drops(1149999730); auto const alice_initial_balance = drops(499946999680); auto const bob_initial_balance = drops(10199999920); auto const small_amount = STAmount{bob["USD"].issue(), UINT64_C(2710505431213761), -33}; env.fund(gw_initial_balance, gw); env.fund(alice_initial_balance, alice); env.fund(bob_initial_balance, bob); env(rate(gw, 1.005)); env(trust(alice, USD(500))); env(trust(bob, USD(50))); env(trust(gw, alice["USD"](100))); env(pay(gw, alice, alice["USD"](50))); env(pay(gw, bob, small_amount)); env(offer(alice, USD(50), MUSO(150000))); // unfund the offer env(pay(alice, gw, USD(100))); // drop the trust line (set to 0) env(trust(gw, alice["USD"](0))); // verify balances auto jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "50"); jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName][jss::value] == "-2710505431213761e-33"); // create crossing offer env(offer(bob, MUSO(2000), USD(1))); // verify balances again. // // NOTE : // Here a difference in the rounding modes of our two offer crossing // algorithms becomes apparent. The old offer crossing would consume // small_amount and transfer no MUSO. The new offer crossing transfers // a single drop, rather than no drops. auto const crossingDelta = features[featureFlowCross] ? drops(1) : drops(0); jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "50"); BEAST_EXPECT( env.balance(alice, MUSOIssue()) == alice_initial_balance - env.current()->fees().base * 3 - crossingDelta); jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "0"); BEAST_EXPECT( env.balance(bob, MUSOIssue()) == bob_initial_balance - env.current()->fees().base * 2 + crossingDelta); } void testOfferCrossWithMUSO(bool reverse_order, FeatureBitset features) { testcase( std::string("Offer Crossing with MUSO, ") + (reverse_order ? "Reverse" : "Normal") + " order"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice, bob); env(trust(alice, USD(1000))); env(trust(bob, USD(1000))); env(pay(gw, alice, alice["USD"](500))); if (reverse_order) env(offer(bob, USD(1), MUSO(4000))); env(offer(alice, MUSO(150000), USD(50))); if (!reverse_order) env(offer(bob, USD(1), MUSO(4000))); // Existing offer pays better than this wants. // Fully consume existing offer. // Pay 1 USD, get 4000 MUSO. auto jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-1"); jrr = ledgerEntryRoot(env, bob); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == to_string((MUSO(10000) - MUSO(reverse_order ? 4000 : 3000) - env.current()->fees().base * 2) .MUSO())); jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-499"); jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == to_string((MUSO(10000) + MUSO(reverse_order ? 4000 : 3000) - env.current()->fees().base * 2) .MUSO())); } void testOfferCrossWithLimitOverride(FeatureBitset features) { testcase("Offer Crossing with Limit Override"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; env.fund(MUSO(100000), gw, alice, bob); env(trust(alice, USD(1000))); env(pay(gw, alice, alice["USD"](500))); env(offer(alice, MUSO(150000), USD(50))); env(offer(bob, USD(1), MUSO(3000))); auto jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-1"); jrr = ledgerEntryRoot(env, bob); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == to_string((MUSO(100000) - MUSO(3000) - env.current()->fees().base * 1) .MUSO())); jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-499"); jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == to_string((MUSO(100000) + MUSO(3000) - env.current()->fees().base * 2) .MUSO())); } void testOfferAcceptThenCancel(FeatureBitset features) { testcase("Offer Accept then Cancel."); using namespace jtx; Env env{*this, features}; auto const USD = env.master["USD"]; auto const nextOfferSeq = env.seq(env.master); env(offer(env.master, MUSO(500), USD(100))); env.close(); Json::Value cancelOffer; cancelOffer[jss::Account] = env.master.human(); cancelOffer[jss::OfferSequence] = nextOfferSeq; cancelOffer[jss::TransactionType] = jss::OfferCancel; env(cancelOffer); BEAST_EXPECT(env.seq(env.master) == nextOfferSeq + 2); // ledger_accept, call twice and verify no odd behavior env.close(); env.close(); BEAST_EXPECT(env.seq(env.master) == nextOfferSeq + 2); } void testOfferCancelPastAndFuture(FeatureBitset features) { testcase("Offer Cancel Past and Future Sequence."); using namespace jtx; Env env{*this, features}; auto const alice = Account{"alice"}; auto const nextOfferSeq = env.seq(env.master); env.fund(MUSO(10000), alice); Json::Value cancelOffer; cancelOffer[jss::Account] = env.master.human(); cancelOffer[jss::OfferSequence] = nextOfferSeq; cancelOffer[jss::TransactionType] = jss::OfferCancel; env(cancelOffer); cancelOffer[jss::OfferSequence] = env.seq(env.master); env(cancelOffer, ter(temBAD_SEQUENCE)); cancelOffer[jss::OfferSequence] = env.seq(env.master) + 1; env(cancelOffer, ter(temBAD_SEQUENCE)); env.close(); env.close(); } void testCurrencyConversionEntire(FeatureBitset features) { testcase("Currency Conversion: Entire Offer"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice, bob); env.require(owners(bob, 0)); env(trust(alice, USD(100))); env(trust(bob, USD(1000))); env.require(owners(alice, 1), owners(bob, 1)); env(pay(gw, alice, alice["USD"](100))); auto const bobOfferSeq = env.seq(bob); env(offer(bob, USD(100), MUSO(500))); env.require(owners(alice, 1), owners(bob, 2)); auto jro = ledgerEntryOffer(env, bob, bobOfferSeq); BEAST_EXPECT( jro[jss::node][jss::TakerGets] == MUSO(500).value().getText()); BEAST_EXPECT( jro[jss::node][jss::TakerPays] == USD(100).value().getJson(JsonOptions::none)); env(pay(alice, alice, MUSO(500)), sendmax(USD(100))); auto jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "0"); jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == to_string((MUSO(10000) + MUSO(500) - env.current()->fees().base * 2) .MUSO())); jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-100"); jro = ledgerEntryOffer(env, bob, bobOfferSeq); BEAST_EXPECT(jro[jss::error] == "entryNotFound"); env.require(owners(alice, 1), owners(bob, 1)); } void testCurrencyConversionIntoDebt(FeatureBitset features) { testcase("Currency Conversion: Offerer Into Debt"); using namespace jtx; Env env{*this, features}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const carol = Account{"carol"}; env.fund(MUSO(10000), alice, bob, carol); env(trust(alice, carol["EUR"](2000))); env(trust(bob, alice["USD"](100))); env(trust(carol, bob["EUR"](1000))); auto const bobOfferSeq = env.seq(bob); env(offer(bob, alice["USD"](50), carol["EUR"](200)), ter(tecUNFUNDED_OFFER)); env(offer(alice, carol["EUR"](200), alice["USD"](50))); auto jro = ledgerEntryOffer(env, bob, bobOfferSeq); BEAST_EXPECT(jro[jss::error] == "entryNotFound"); } void testCurrencyConversionInParts(FeatureBitset features) { testcase("Currency Conversion: In Parts"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice, bob); env(trust(alice, USD(200))); env(trust(bob, USD(1000))); env(pay(gw, alice, alice["USD"](200))); auto const bobOfferSeq = env.seq(bob); env(offer(bob, USD(100), MUSO(500))); env(pay(alice, alice, MUSO(200)), sendmax(USD(100))); // The previous payment reduced the remaining offer amount by 200 MUSO auto jro = ledgerEntryOffer(env, bob, bobOfferSeq); BEAST_EXPECT( jro[jss::node][jss::TakerGets] == MUSO(300).value().getText()); BEAST_EXPECT( jro[jss::node][jss::TakerPays] == USD(60).value().getJson(JsonOptions::none)); // the balance between alice and gw is 160 USD..200 less the 40 taken // by the offer auto jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-160"); // alice now has 200 more MUSO from the payment jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == to_string((MUSO(10000) + MUSO(200) - env.current()->fees().base * 2) .MUSO())); // bob got 40 USD from partial consumption of the offer jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-40"); // Alice converts USD to MUSO which should fail // due to PartialPayment. env(pay(alice, alice, MUSO(600)), sendmax(USD(100)), ter(tecPATH_PARTIAL)); // Alice converts USD to MUSO, should succeed because // we permit partial payment env(pay(alice, alice, MUSO(600)), sendmax(USD(100)), txflags(tfPartialPayment)); // Verify the offer was consumed jro = ledgerEntryOffer(env, bob, bobOfferSeq); BEAST_EXPECT(jro[jss::error] == "entryNotFound"); // verify balances look right after the partial payment // only 300 MUSO should be have been payed since that's all // that remained in the offer from bob. The alice balance is now // 100 USD because another 60 USD were transferred to bob in the second // payment jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-100"); jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == to_string((MUSO(10000) + MUSO(200) + MUSO(300) - env.current()->fees().base * 4) .MUSO())); // bob now has 100 USD - 40 from the first payment and 60 from the // second (partial) payment jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-100"); } void testCrossCurrencyStartMUSO(FeatureBitset features) { testcase("Cross Currency Payment: Start with MUSO"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const carol = Account{"carol"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice, bob, carol); env(trust(carol, USD(1000))); env(trust(bob, USD(2000))); env(pay(gw, carol, carol["USD"](500))); auto const carolOfferSeq = env.seq(carol); env(offer(carol, MUSO(500), USD(50))); env(pay(alice, bob, USD(25)), sendmax(MUSO(333))); auto jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-25"); jrr = ledgerEntryState(env, carol, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-475"); auto jro = ledgerEntryOffer(env, carol, carolOfferSeq); BEAST_EXPECT( jro[jss::node][jss::TakerGets] == USD(25).value().getJson(JsonOptions::none)); BEAST_EXPECT( jro[jss::node][jss::TakerPays] == MUSO(250).value().getText()); } void testCrossCurrencyEndMUSO(FeatureBitset features) { testcase("Cross Currency Payment: End with MUSO"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const carol = Account{"carol"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice, bob, carol); env(trust(alice, USD(1000))); env(trust(carol, USD(2000))); env(pay(gw, alice, alice["USD"](500))); auto const carolOfferSeq = env.seq(carol); env(offer(carol, USD(50), MUSO(500))); env(pay(alice, bob, MUSO(250)), sendmax(USD(333))); auto jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-475"); jrr = ledgerEntryState(env, carol, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-25"); jrr = ledgerEntryRoot(env, bob); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == std::to_string( MUSO(10000).value().mantissa() + MUSO(250).value().mantissa())); auto jro = ledgerEntryOffer(env, carol, carolOfferSeq); BEAST_EXPECT( jro[jss::node][jss::TakerGets] == MUSO(250).value().getText()); BEAST_EXPECT( jro[jss::node][jss::TakerPays] == USD(25).value().getJson(JsonOptions::none)); } void testCrossCurrencyBridged(FeatureBitset features) { testcase("Cross Currency Payment: Bridged"); using namespace jtx; Env env{*this, features}; auto const gw1 = Account{"gateway_1"}; auto const gw2 = Account{"gateway_2"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const carol = Account{"carol"}; auto const dan = Account{"dan"}; auto const USD = gw1["USD"]; auto const EUR = gw2["EUR"]; env.fund(MUSO(10000), gw1, gw2, alice, bob, carol, dan); env(trust(alice, USD(1000))); env(trust(bob, EUR(1000))); env(trust(carol, USD(1000))); env(trust(dan, EUR(1000))); env(pay(gw1, alice, alice["USD"](500))); env(pay(gw2, dan, dan["EUR"](400))); auto const carolOfferSeq = env.seq(carol); env(offer(carol, USD(50), MUSO(500))); auto const danOfferSeq = env.seq(dan); env(offer(dan, MUSO(500), EUR(50))); Json::Value jtp{Json::arrayValue}; jtp[0u][0u][jss::currency] = "MUSO"; env(pay(alice, bob, EUR(30)), json(jss::Paths, jtp), sendmax(USD(333))); auto jrr = ledgerEntryState(env, alice, gw1, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "470"); jrr = ledgerEntryState(env, bob, gw2, "EUR"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-30"); jrr = ledgerEntryState(env, carol, gw1, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-30"); jrr = ledgerEntryState(env, dan, gw2, "EUR"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-370"); auto jro = ledgerEntryOffer(env, carol, carolOfferSeq); BEAST_EXPECT( jro[jss::node][jss::TakerGets] == MUSO(200).value().getText()); BEAST_EXPECT( jro[jss::node][jss::TakerPays] == USD(20).value().getJson(JsonOptions::none)); jro = ledgerEntryOffer(env, dan, danOfferSeq); BEAST_EXPECT( jro[jss::node][jss::TakerGets] == gw2["EUR"](20).value().getJson(JsonOptions::none)); BEAST_EXPECT( jro[jss::node][jss::TakerPays] == MUSO(200).value().getText()); } void testBridgedSecondLegDry(FeatureBitset features) { // At least with Taker bridging, a sensitivity was identified if the // second leg goes dry before the first one. This test exercises that // case. testcase("Auto Bridged Second Leg Dry"); using namespace jtx; Env env(*this, features); Account const alice{"alice"}; Account const bob{"bob"}; Account const carol{"carol"}; Account const gw{"gateway"}; auto const USD = gw["USD"]; auto const EUR = gw["EUR"]; env.fund(MUSO(100000000), alice, bob, carol, gw); env.trust(USD(10), alice); env.close(); env(pay(gw, alice, USD(10))); env.trust(USD(10), carol); env.close(); env(pay(gw, carol, USD(3))); env(offer(alice, EUR(2), MUSO(1))); env(offer(alice, EUR(2), MUSO(1))); env(offer(alice, MUSO(1), USD(4))); env(offer(carol, MUSO(1), USD(3))); env.close(); // Bob offers to buy 10 USD for 10 EUR. // 1. He spends 2 EUR taking Alice's auto-bridged offers and // gets 4 USD for that. // 2. He spends another 2 EUR taking Alice's last EUR->MUSO offer and // Carol's MUSO-USD offer. He gets 3 USD for that. // The key for this test is that Alice's MUSO->USD leg goes dry before // Alice's EUR->MUSO. The MUSO->USD leg is the second leg which showed // some sensitivity. env.trust(EUR(10), bob); env.close(); env(pay(gw, bob, EUR(10))); env.close(); env(offer(bob, USD(10), EUR(10))); env.close(); env.require(balance(bob, USD(7))); env.require(balance(bob, EUR(6))); env.require(offers(bob, 1)); env.require(owners(bob, 3)); env.require(balance(alice, USD(6))); env.require(balance(alice, EUR(4))); env.require(offers(alice, 0)); env.require(owners(alice, 2)); env.require(balance(carol, USD(0))); env.require(balance(carol, EUR(none))); // If neither featureFlowCross nor fixTakerDryOfferRemoval are defined // then carol's offer will be left on the books, but with zero value. int const emptyOfferCount{ features[featureFlowCross] || features[fixTakerDryOfferRemoval] ? 0 : 1}; env.require(offers(carol, 0 + emptyOfferCount)); env.require(owners(carol, 1 + emptyOfferCount)); } void testOfferFeesConsumeFunds(FeatureBitset features) { testcase("Offer Fees Consume Funds"); using namespace jtx; Env env{*this, features}; auto const gw1 = Account{"gateway_1"}; auto const gw2 = Account{"gateway_2"}; auto const gw3 = Account{"gateway_3"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD1 = gw1["USD"]; auto const USD2 = gw2["USD"]; auto const USD3 = gw3["USD"]; // Provide micro amounts to compensate for fees to make results round // nice. // reserve: Alice has 3 entries in the ledger, via trust lines // fees: // 1 for each trust limit == 3 (alice < mtgox/amazon/bitstamp) + // 1 for payment == 4 auto const starting_MUSO = MUSO(100) + env.current()->fees().accountReserve(3) + env.current()->fees().base * 4; env.fund(starting_MUSO, gw1, gw2, gw3, alice, bob); env(trust(alice, USD1(1000))); env(trust(alice, USD2(1000))); env(trust(alice, USD3(1000))); env(trust(bob, USD1(1000))); env(trust(bob, USD2(1000))); env(pay(gw1, bob, bob["USD"](500))); env(offer(bob, MUSO(200), USD1(200))); // Alice has 350 fees - a reserve of 50 = 250 reserve = 100 available. // Ask for more than available to prove reserve works. env(offer(alice, USD1(200), MUSO(200))); auto jrr = ledgerEntryState(env, alice, gw1, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "100"); jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == MUSO(350).value().getText()); jrr = ledgerEntryState(env, bob, gw1, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-400"); } void testOfferCreateThenCross(FeatureBitset features) { testcase("Offer Create, then Cross"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice, bob); env(rate(gw, 1.005)); env(trust(alice, USD(1000))); env(trust(bob, USD(1000))); env(trust(gw, alice["USD"](50))); env(pay(gw, bob, bob["USD"](1))); env(pay(alice, gw, USD(50))); env(trust(gw, alice["USD"](0))); env(offer(alice, USD(50), MUSO(150000))); env(offer(bob, MUSO(100), USD(0.1))); auto jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName][jss::value] == "49.96666666666667"); jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName][jss::value] == "-0.966500000033334"); } void testSellFlagBasic(FeatureBitset features) { testcase("Offer tfSell: Basic Sell"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; auto const starting_MUSO = MUSO(100) + env.current()->fees().accountReserve(1) + env.current()->fees().base * 2; env.fund(starting_MUSO, gw, alice, bob); env(trust(alice, USD(1000))); env(trust(bob, USD(1000))); env(pay(gw, bob, bob["USD"](500))); env(offer(bob, MUSO(200), USD(200)), json(jss::Flags, tfSell)); // Alice has 350 + fees - a reserve of 50 = 250 reserve = 100 available. // Alice has 350 + fees - a reserve of 50 = 250 reserve = 100 available. // Ask for more than available to prove reserve works. env(offer(alice, USD(200), MUSO(200)), json(jss::Flags, tfSell)); auto jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-100"); jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == MUSO(250).value().getText()); jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-400"); } void testSellFlagExceedLimit(FeatureBitset features) { testcase("Offer tfSell: 2x Sell Exceed Limit"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; auto const starting_MUSO = MUSO(100) + env.current()->fees().accountReserve(1) + env.current()->fees().base * 2; env.fund(starting_MUSO, gw, alice, bob); env(trust(alice, USD(150))); env(trust(bob, USD(1000))); env(pay(gw, bob, bob["USD"](500))); env(offer(bob, MUSO(100), USD(200))); // Alice has 350 fees - a reserve of 50 = 250 reserve = 100 available. // Ask for more than available to prove reserve works. // Taker pays 100 USD for 100 MUSO. // Selling MUSO. // Will sell all 100 MUSO and get more USD than asked for. env(offer(alice, USD(100), MUSO(100)), json(jss::Flags, tfSell)); auto jrr = ledgerEntryState(env, alice, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-200"); jrr = ledgerEntryRoot(env, alice); BEAST_EXPECT( jrr[jss::node][sfBalance.fieldName] == MUSO(250).value().getText()); jrr = ledgerEntryState(env, bob, gw, "USD"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-300"); } void testGatewayCrossCurrency(FeatureBitset features) { testcase("Client Issue #535: Gateway Cross Currency"); using namespace jtx; Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const XTS = gw["XTS"]; auto const XXX = gw["XXX"]; auto const starting_MUSO = MUSO(100.1) + env.current()->fees().accountReserve(1) + env.current()->fees().base * 2; env.fund(starting_MUSO, gw, alice, bob); env(trust(alice, XTS(1000))); env(trust(alice, XXX(1000))); env(trust(bob, XTS(1000))); env(trust(bob, XXX(1000))); env(pay(gw, alice, alice["XTS"](100))); env(pay(gw, alice, alice["XXX"](100))); env(pay(gw, bob, bob["XTS"](100))); env(pay(gw, bob, bob["XXX"](100))); env(offer(alice, XTS(100), XXX(100))); // WS client is used here because the RPC client could not // be convinced to pass the build_path argument auto wsc = makeWSClient(env.app().config()); Json::Value payment; payment[jss::secret] = toBase58(generateSeed("bob")); payment[jss::id] = env.seq(bob); payment[jss::build_path] = true; payment[jss::tx_json] = pay(bob, bob, bob["XXX"](1)); payment[jss::tx_json][jss::Sequence] = env.current() ->read(keylet::account(bob.id())) ->getFieldU32(sfSequence); payment[jss::tx_json][jss::Fee] = to_string(env.current()->fees().base); payment[jss::tx_json][jss::SendMax] = bob["XTS"](1.5).value().getJson(JsonOptions::none); auto jrr = wsc->invoke("submit", payment); BEAST_EXPECT(jrr[jss::status] == "success"); BEAST_EXPECT(jrr[jss::result][jss::engine_result] == "tesSUCCESS"); if (wsc->version() == 2) { BEAST_EXPECT( jrr.isMember(jss::jsonrpc) && jrr[jss::jsonrpc] == "2.0"); BEAST_EXPECT( jrr.isMember(jss::MUSOrpc) && jrr[jss::MUSOrpc] == "2.0"); BEAST_EXPECT(jrr.isMember(jss::id) && jrr[jss::id] == 5); } jrr = ledgerEntryState(env, alice, gw, "XTS"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-101"); jrr = ledgerEntryState(env, alice, gw, "XXX"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-99"); jrr = ledgerEntryState(env, bob, gw, "XTS"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-99"); jrr = ledgerEntryState(env, bob, gw, "XXX"); BEAST_EXPECT(jrr[jss::node][sfBalance.fieldName][jss::value] == "-101"); } // Helper function that validates a *defaulted* trustline: one that has // no unusual flags set and doesn't have high or low limits set. Such a // trustline may have an actual balance (it can be created automatically // if a user places an offer to acquire an IOU for which they don't have // a trust line defined). If the trustline is not defaulted then the tests // will not pass. void verifyDefaultTrustline( jtx::Env& env, jtx::Account const& account, jtx::PrettyAmount const& expectBalance) { auto const sleTrust = env.le(keylet::line(account.id(), expectBalance.value().issue())); BEAST_EXPECT(sleTrust); if (sleTrust) { Issue const issue = expectBalance.value().issue(); bool const accountLow = account.id() < issue.account; STAmount low{issue}; STAmount high{issue}; low.setIssuer(accountLow ? account.id() : issue.account); high.setIssuer(accountLow ? issue.account : account.id()); BEAST_EXPECT(sleTrust->getFieldAmount(sfLowLimit) == low); BEAST_EXPECT(sleTrust->getFieldAmount(sfHighLimit) == high); STAmount actualBalance{sleTrust->getFieldAmount(sfBalance)}; if (!accountLow) actualBalance.negate(); BEAST_EXPECT(actualBalance == expectBalance); } } void testPartialCross(FeatureBitset features) { // Test a number of different corner cases regarding adding a // possibly crossable offer to an account. The test is table // driven so it should be easy to add or remove tests. testcase("Partial Crossing"); using namespace jtx; auto const gw = Account("gateway"); auto const USD = gw["USD"]; Env env{*this, features}; env.fund(MUSO(10000000), gw); // The fee that's charged for transactions auto const f = env.current()->fees().base; // To keep things simple all offers are 1 : 1 for MUSO : USD. enum preTrustType { noPreTrust, gwPreTrust, acctPreTrust }; struct TestData { std::string account; // Account operated on STAmount fundMUSO; // Account funded with int bookAmount; // USD -> MUSO offer on the books preTrustType preTrust; // If true, pre-establish trust line int offerAmount; // Account offers this much MUSO -> USD TER tec; // Returned tec code STAmount spentMUSO; // Amount removed from fundMUSO PrettyAmount balanceUsd; // Balance on account end int offers; // Offers on account int owners; // Owners on account }; TestData const tests[]{ // acct fundMUSO bookAmt preTrust // offerAmt tec spentMUSO balanceUSD // offers owners {"ann", reserve(env, 0) + 0 * f, 1, noPreTrust, 1000, tecUNFUNDED_OFFER, f, USD(0), 0, 0}, // Account is at the reserve, and will dip below once fees are // subtracted. {"bev", reserve(env, 0) + 1 * f, 1, noPreTrust, 1000, tecUNFUNDED_OFFER, f, USD(0), 0, 0}, // Account has just enough for the reserve and the fee. {"cam", reserve(env, 0) + 2 * f, 0, noPreTrust, 1000, tecINSUF_RESERVE_OFFER, f, USD(0), 0, 0}, // Account has enough for the reserve, the fee and the offer, // and a bit more, but not enough for the reserve after the // offer is placed. {"deb", reserve(env, 0) + 2 * f, 1, noPreTrust, 1000, tesSUCCESS, 2 * f, USD(0.00001), 0, 1}, // Account has enough to buy a little USD then the offer runs // dry. {"eve", reserve(env, 1) + 0 * f, 0, noPreTrust, 1000, tesSUCCESS, f, USD(0), 1, 1}, // No offer to cross {"flo", reserve(env, 1) + 0 * f, 1, noPreTrust, 1000, tesSUCCESS, MUSO(1) + f, USD(1), 0, 1}, {"gay", reserve(env, 1) + 1 * f, 1000, noPreTrust, 1000, tesSUCCESS, MUSO(50) + f, USD(50), 0, 1}, {"hye", MUSO(1000) + 1 * f, 1000, noPreTrust, 1000, tesSUCCESS, MUSO(800) + f, USD(800), 0, 1}, {"ivy", MUSO(1) + reserve(env, 1) + 1 * f, 1, noPreTrust, 1000, tesSUCCESS, MUSO(1) + f, USD(1), 0, 1}, {"joy", MUSO(1) + reserve(env, 2) + 1 * f, 1, noPreTrust, 1000, tesSUCCESS, MUSO(1) + f, USD(1), 1, 2}, {"kim", MUSO(900) + reserve(env, 2) + 1 * f, 999, noPreTrust, 1000, tesSUCCESS, MUSO(999) + f, USD(999), 0, 1}, {"liz", MUSO(998) + reserve(env, 0) + 1 * f, 999, noPreTrust, 1000, tesSUCCESS, MUSO(998) + f, USD(998), 0, 1}, {"meg", MUSO(998) + reserve(env, 1) + 1 * f, 999, noPreTrust, 1000, tesSUCCESS, MUSO(999) + f, USD(999), 0, 1}, {"nia", MUSO(998) + reserve(env, 2) + 1 * f, 999, noPreTrust, 1000, tesSUCCESS, MUSO(999) + f, USD(999), 1, 2}, {"ova", MUSO(999) + reserve(env, 0) + 1 * f, 1000, noPreTrust, 1000, tesSUCCESS, MUSO(999) + f, USD(999), 0, 1}, {"pam", MUSO(999) + reserve(env, 1) + 1 * f, 1000, noPreTrust, 1000, tesSUCCESS, MUSO(1000) + f, USD(1000), 0, 1}, {"rae", MUSO(999) + reserve(env, 2) + 1 * f, 1000, noPreTrust, 1000, tesSUCCESS, MUSO(1000) + f, USD(1000), 0, 1}, {"sue", MUSO(1000) + reserve(env, 2) + 1 * f, 0, noPreTrust, 1000, tesSUCCESS, f, USD(0), 1, 1}, //---------------------Pre-established trust lines //----------------------------- {"abe", reserve(env, 0) + 0 * f, 1, gwPreTrust, 1000, tecUNFUNDED_OFFER, f, USD(0), 0, 0}, {"bud", reserve(env, 0) + 1 * f, 1, gwPreTrust, 1000, tecUNFUNDED_OFFER, f, USD(0), 0, 0}, {"che", reserve(env, 0) + 2 * f, 0, gwPreTrust, 1000, tecINSUF_RESERVE_OFFER, f, USD(0), 0, 0}, {"dan", reserve(env, 0) + 2 * f, 1, gwPreTrust, 1000, tesSUCCESS, 2 * f, USD(0.00001), 0, 0}, {"eli", MUSO(20) + reserve(env, 0) + 1 * f, 1000, gwPreTrust, 1000, tesSUCCESS, MUSO(20) + 1 * f, USD(20), 0, 0}, {"fyn", reserve(env, 1) + 0 * f, 0, gwPreTrust, 1000, tesSUCCESS, f, USD(0), 1, 1}, {"gar", reserve(env, 1) + 0 * f, 1, gwPreTrust, 1000, tesSUCCESS, MUSO(1) + f, USD(1), 1, 1}, {"hal", reserve(env, 1) + 1 * f, 1, gwPreTrust, 1000, tesSUCCESS, MUSO(1) + f, USD(1), 1, 1}, {"ned", reserve(env, 1) + 0 * f, 1, acctPreTrust, 1000, tecUNFUNDED_OFFER, 2 * f, USD(0), 0, 1}, {"ole", reserve(env, 1) + 1 * f, 1, acctPreTrust, 1000, tecUNFUNDED_OFFER, 2 * f, USD(0), 0, 1}, {"pat", reserve(env, 1) + 2 * f, 0, acctPreTrust, 1000, tecUNFUNDED_OFFER, 2 * f, USD(0), 0, 1}, {"quy", reserve(env, 1) + 2 * f, 1, acctPreTrust, 1000, tecUNFUNDED_OFFER, 2 * f, USD(0), 0, 1}, {"ron", reserve(env, 1) + 3 * f, 0, acctPreTrust, 1000, tecINSUF_RESERVE_OFFER, 2 * f, USD(0), 0, 1}, {"syd", reserve(env, 1) + 3 * f, 1, acctPreTrust, 1000, tesSUCCESS, 3 * f, USD(0.00001), 0, 1}, {"ted", MUSO(20) + reserve(env, 1) + 2 * f, 1000, acctPreTrust, 1000, tesSUCCESS, MUSO(20) + 2 * f, USD(20), 0, 1}, {"uli", reserve(env, 2) + 0 * f, 0, acctPreTrust, 1000, tecINSUF_RESERVE_OFFER, 2 * f, USD(0), 0, 1}, {"vic", reserve(env, 2) + 0 * f, 1, acctPreTrust, 1000, tesSUCCESS, MUSO(1) + 2 * f, USD(1), 0, 1}, {"wes", reserve(env, 2) + 1 * f, 0, acctPreTrust, 1000, tesSUCCESS, 2 * f, USD(0), 1, 2}, {"xan", reserve(env, 2) + 1 * f, 1, acctPreTrust, 1000, tesSUCCESS, MUSO(1) + 2 * f, USD(1), 1, 2}, }; for (auto const& t : tests) { auto const acct = Account(t.account); env.fund(t.fundMUSO, acct); env.close(); // Make sure gateway has no current offers. env.require(offers(gw, 0)); // The gateway optionally creates an offer that would be crossed. auto const book = t.bookAmount; if (book) env(offer(gw, MUSO(book), USD(book))); env.close(); std::uint32_t const gwOfferSeq = env.seq(gw) - 1; // Optionally pre-establish a trustline between gw and acct. if (t.preTrust == gwPreTrust) env(trust(gw, acct["USD"](1))); // Optionally pre-establish a trustline between acct and gw. // Note this is not really part of the test, so we expect there // to be enough MUSO reserve for acct to create the trust line. if (t.preTrust == acctPreTrust) env(trust(acct, USD(1))); env.close(); { // Acct creates an offer. This is the heart of the test. auto const acctOffer = t.offerAmount; env(offer(acct, USD(acctOffer), MUSO(acctOffer)), ter(t.tec)); env.close(); } std::uint32_t const acctOfferSeq = env.seq(acct) - 1; BEAST_EXPECT(env.balance(acct, USD.issue()) == t.balanceUsd); BEAST_EXPECT( env.balance(acct, MUSOIssue()) == t.fundMUSO - t.spentMUSO); env.require(offers(acct, t.offers)); env.require(owners(acct, t.owners)); auto acctOffers = offersOnAccount(env, acct); BEAST_EXPECT(acctOffers.size() == t.offers); if (acctOffers.size() && t.offers) { auto const& acctOffer = *(acctOffers.front()); auto const leftover = t.offerAmount - t.bookAmount; BEAST_EXPECT(acctOffer[sfTakerGets] == MUSO(leftover)); BEAST_EXPECT(acctOffer[sfTakerPays] == USD(leftover)); } if (t.preTrust == noPreTrust) { if (t.balanceUsd.value().signum()) { // Verify the correct contents of the trustline verifyDefaultTrustline(env, acct, t.balanceUsd); } else { // Verify that no trustline was created. auto const sleTrust = env.le(keylet::line(acct, USD.issue())); BEAST_EXPECT(!sleTrust); } } // Give the next loop a clean slate by canceling any left-overs // in the offers. env(offer_cancel(acct, acctOfferSeq)); env(offer_cancel(gw, gwOfferSeq)); env.close(); } } void testMUSODirectCross(FeatureBitset features) { testcase("MUSO Direct Crossing"); using namespace jtx; auto const gw = Account("gateway"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const USD = gw["USD"]; auto const usdOffer = USD(1000); auto const MUSOOffer = MUSO(1000); Env env{*this, features}; env.fund(MUSO(1000000), gw, bob); env.close(); // The fee that's charged for transactions. auto const fee = env.current()->fees().base; // alice's account has enough for the reserve, one trust line plus two // offers, and two fees. env.fund(reserve(env, 2) + fee * 2, alice); env.close(); env(trust(alice, usdOffer)); env.close(); env(pay(gw, alice, usdOffer)); env.close(); env.require(balance(alice, usdOffer), offers(alice, 0), offers(bob, 0)); // The scenario: // o alice has USD but wants MUSO. // o bob has MUSO but wants USD. auto const alicesMUSO = env.balance(alice); auto const bobsMUSO = env.balance(bob); env(offer(alice, MUSOOffer, usdOffer)); env.close(); env(offer(bob, usdOffer, MUSOOffer)); env.close(); env.require( balance(alice, USD(0)), balance(bob, usdOffer), balance(alice, alicesMUSO + MUSOOffer - fee), balance(bob, bobsMUSO - MUSOOffer - fee), offers(alice, 0), offers(bob, 0)); verifyDefaultTrustline(env, bob, usdOffer); // Make two more offers that leave one of the offers non-dry. env(offer(alice, USD(999), MUSO(999))); env(offer(bob, MUSOOffer, usdOffer)); env.close(); env.require(balance(alice, USD(999))); env.require(balance(bob, USD(1))); env.require(offers(alice, 0)); verifyDefaultTrustline(env, bob, USD(1)); { auto const bobsOffers = offersOnAccount(env, bob); BEAST_EXPECT(bobsOffers.size() == 1); auto const& bobsOffer = *(bobsOffers.front()); BEAST_EXPECT(bobsOffer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(bobsOffer[sfTakerGets] == USD(1)); BEAST_EXPECT(bobsOffer[sfTakerPays] == MUSO(1)); } } void testDirectCross(FeatureBitset features) { testcase("Direct Crossing"); using namespace jtx; auto const gw = Account("gateway"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const USD = gw["USD"]; auto const EUR = gw["EUR"]; auto const usdOffer = USD(1000); auto const eurOffer = EUR(1000); Env env{*this, features}; env.fund(MUSO(1000000), gw); env.close(); // The fee that's charged for transactions. auto const fee = env.current()->fees().base; // Each account has enough for the reserve, two trust lines, one // offer, and two fees. env.fund(reserve(env, 3) + fee * 3, alice); env.fund(reserve(env, 3) + fee * 2, bob); env.close(); env(trust(alice, usdOffer)); env(trust(bob, eurOffer)); env.close(); env(pay(gw, alice, usdOffer)); env(pay(gw, bob, eurOffer)); env.close(); env.require(balance(alice, usdOffer), balance(bob, eurOffer)); // The scenario: // o alice has USD but wants EUR. // o bob has EUR but wants USD. env(offer(alice, eurOffer, usdOffer)); env(offer(bob, usdOffer, eurOffer)); env.close(); env.require( balance(alice, eurOffer), balance(bob, usdOffer), offers(alice, 0), offers(bob, 0)); // Alice's offer crossing created a default EUR trustline and // Bob's offer crossing created a default USD trustline: verifyDefaultTrustline(env, alice, eurOffer); verifyDefaultTrustline(env, bob, usdOffer); // Make two more offers that leave one of the offers non-dry. // Guarantee the order of application by putting a close() // between them. env(offer(bob, eurOffer, usdOffer)); env.close(); env(offer(alice, USD(999), eurOffer)); env.close(); env.require(offers(alice, 0)); env.require(offers(bob, 1)); env.require(balance(alice, USD(999))); env.require(balance(alice, EUR(1))); env.require(balance(bob, USD(1))); env.require(balance(bob, EUR(999))); { auto bobsOffers = offersOnAccount(env, bob); if (BEAST_EXPECT(bobsOffers.size() == 1)) { auto const& bobsOffer = *(bobsOffers.front()); BEAST_EXPECT(bobsOffer[sfTakerGets] == USD(1)); BEAST_EXPECT(bobsOffer[sfTakerPays] == EUR(1)); } } // alice makes one more offer that cleans out bob's offer. env(offer(alice, USD(1), EUR(1))); env.close(); env.require(balance(alice, USD(1000))); env.require(balance(alice, EUR(none))); env.require(balance(bob, USD(none))); env.require(balance(bob, EUR(1000))); env.require(offers(alice, 0)); env.require(offers(bob, 0)); // The two trustlines that were generated by offers should be gone. BEAST_EXPECT(!env.le(keylet::line(alice.id(), EUR.issue()))); BEAST_EXPECT(!env.le(keylet::line(bob.id(), USD.issue()))); // Make two more offers that leave one of the offers non-dry. We // need to properly sequence the transactions: env(offer(alice, EUR(999), usdOffer)); env.close(); env(offer(bob, usdOffer, eurOffer)); env.close(); env.require(offers(alice, 0)); env.require(offers(bob, 0)); env.require(balance(alice, USD(0))); env.require(balance(alice, EUR(999))); env.require(balance(bob, USD(1000))); env.require(balance(bob, EUR(1))); } void testBridgedCross(FeatureBitset features) { testcase("Bridged Crossing"); using namespace jtx; auto const gw = Account("gateway"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const carol = Account("carol"); auto const USD = gw["USD"]; auto const EUR = gw["EUR"]; auto const usdOffer = USD(1000); auto const eurOffer = EUR(1000); Env env{*this, features}; env.fund(MUSO(1000000), gw, alice, bob, carol); env.close(); env(trust(alice, usdOffer)); env(trust(carol, eurOffer)); env.close(); env(pay(gw, alice, usdOffer)); env(pay(gw, carol, eurOffer)); env.close(); // The scenario: // o alice has USD but wants XPR. // o bob has MUSO but wants EUR. // o carol has EUR but wants USD. // Note that carol's offer must come last. If carol's offer is placed // before bob's or alice's, then autobridging will not occur. env(offer(alice, MUSO(1000), usdOffer)); env(offer(bob, eurOffer, MUSO(1000))); auto const bobMUSOBalance = env.balance(bob); env.close(); // carol makes an offer that partially consumes alice and bob's offers. env(offer(carol, USD(400), EUR(400))); env.close(); env.require( balance(alice, USD(600)), balance(bob, EUR(400)), balance(carol, USD(400)), balance(bob, bobMUSOBalance - MUSO(400)), offers(carol, 0)); verifyDefaultTrustline(env, bob, EUR(400)); verifyDefaultTrustline(env, carol, USD(400)); { auto const alicesOffers = offersOnAccount(env, alice); BEAST_EXPECT(alicesOffers.size() == 1); auto const& alicesOffer = *(alicesOffers.front()); BEAST_EXPECT(alicesOffer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(alicesOffer[sfTakerGets] == USD(600)); BEAST_EXPECT(alicesOffer[sfTakerPays] == MUSO(600)); } { auto const bobsOffers = offersOnAccount(env, bob); BEAST_EXPECT(bobsOffers.size() == 1); auto const& bobsOffer = *(bobsOffers.front()); BEAST_EXPECT(bobsOffer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(bobsOffer[sfTakerGets] == MUSO(600)); BEAST_EXPECT(bobsOffer[sfTakerPays] == EUR(600)); } // carol makes an offer that exactly consumes alice and bob's offers. env(offer(carol, USD(600), EUR(600))); env.close(); env.require( balance(alice, USD(0)), balance(bob, eurOffer), balance(carol, usdOffer), balance(bob, bobMUSOBalance - MUSO(1000)), offers(bob, 0), offers(carol, 0)); verifyDefaultTrustline(env, bob, EUR(1000)); verifyDefaultTrustline(env, carol, USD(1000)); // In pre-flow code alice's offer is left empty in the ledger. auto const alicesOffers = offersOnAccount(env, alice); if (alicesOffers.size() != 0) { BEAST_EXPECT(alicesOffers.size() == 1); auto const& alicesOffer = *(alicesOffers.front()); BEAST_EXPECT(alicesOffer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(alicesOffer[sfTakerGets] == USD(0)); BEAST_EXPECT(alicesOffer[sfTakerPays] == MUSO(0)); } } void testSellOffer(FeatureBitset features) { // Test a number of different corner cases regarding offer crossing // when the tfSell flag is set. The test is table driven so it // should be easy to add or remove tests. testcase("Sell Offer"); using namespace jtx; auto const gw = Account("gateway"); auto const USD = gw["USD"]; Env env{*this, features}; env.fund(MUSO(10000000), gw); // The fee that's charged for transactions auto const f = env.current()->fees().base; // To keep things simple all offers are 1 : 1 for MUSO : USD. enum preTrustType { noPreTrust, gwPreTrust, acctPreTrust }; struct TestData { std::string account; // Account operated on STAmount fundMUSO; // MUSO acct funded with STAmount fundUSD; // USD acct funded with STAmount gwGets; // gw's offer STAmount gwPays; // STAmount acctGets; // acct's offer STAmount acctPays; // TER tec; // Returned tec code STAmount spentMUSO; // Amount removed from fundMUSO STAmount finalUsd; // Final USD balance on acct int offers; // Offers on acct int owners; // Owners on acct STAmount takerGets; // Remainder of acct's offer STAmount takerPays; // // Constructor with takerGets/takerPays TestData( std::string&& account_, // Account operated on STAmount const& fundMUSO_, // MUSO acct funded with STAmount const& fundUSD_, // USD acct funded with STAmount const& gwGets_, // gw's offer STAmount const& gwPays_, // STAmount const& acctGets_, // acct's offer STAmount const& acctPays_, // TER tec_, // Returned tec code STAmount const& spentMUSO_, // Amount removed from fundMUSO STAmount const& finalUsd_, // Final USD balance on acct int offers_, // Offers on acct int owners_, // Owners on acct STAmount const& takerGets_, // Remainder of acct's offer STAmount const& takerPays_) // : account(std::move(account_)) , fundMUSO(fundMUSO_) , fundUSD(fundUSD_) , gwGets(gwGets_) , gwPays(gwPays_) , acctGets(acctGets_) , acctPays(acctPays_) , tec(tec_) , spentMUSO(spentMUSO_) , finalUsd(finalUsd_) , offers(offers_) , owners(owners_) , takerGets(takerGets_) , takerPays(takerPays_) { } // Constructor without takerGets/takerPays TestData( std::string&& account_, // Account operated on STAmount const& fundMUSO_, // MUSO acct funded with STAmount const& fundUSD_, // USD acct funded with STAmount const& gwGets_, // gw's offer STAmount const& gwPays_, // STAmount const& acctGets_, // acct's offer STAmount const& acctPays_, // TER tec_, // Returned tec code STAmount const& spentMUSO_, // Amount removed from fundMUSO STAmount const& finalUsd_, // Final USD balance on acct int offers_, // Offers on acct int owners_) // Owners on acct : TestData( std::move(account_), fundMUSO_, fundUSD_, gwGets_, gwPays_, acctGets_, acctPays_, tec_, spentMUSO_, finalUsd_, offers_, owners_, STAmount{0}, STAmount{0}) { } }; TestData const tests[]{ // acct pays MUSO // acct fundMUSO fundUSD gwGets gwPays // acctGets acctPays tec spentMUSO // finalUSD offers owners takerGets takerPays {"ann", MUSO(10) + reserve(env, 0) + 1 * f, USD(0), MUSO(10), USD(5), USD(10), MUSO(10), tecINSUF_RESERVE_OFFER, MUSO(0) + (1 * f), USD(0), 0, 0}, {"bev", MUSO(10) + reserve(env, 1) + 1 * f, USD(0), MUSO(10), USD(5), USD(10), MUSO(10), tesSUCCESS, MUSO(0) + (1 * f), USD(0), 1, 1, MUSO(10), USD(10)}, {"cam", MUSO(10) + reserve(env, 0) + 1 * f, USD(0), MUSO(10), USD(10), USD(10), MUSO(10), tesSUCCESS, MUSO(10) + (1 * f), USD(10), 0, 1}, {"deb", MUSO(10) + reserve(env, 0) + 1 * f, USD(0), MUSO(10), USD(20), USD(10), MUSO(10), tesSUCCESS, MUSO(10) + (1 * f), USD(20), 0, 1}, {"eve", MUSO(10) + reserve(env, 0) + 1 * f, USD(0), MUSO(10), USD(20), USD(5), MUSO(5), tesSUCCESS, MUSO(5) + (1 * f), USD(10), 0, 1}, {"flo", MUSO(10) + reserve(env, 0) + 1 * f, USD(0), MUSO(10), USD(20), USD(20), MUSO(20), tesSUCCESS, MUSO(10) + (1 * f), USD(20), 0, 1}, {"gay", MUSO(20) + reserve(env, 1) + 1 * f, USD(0), MUSO(10), USD(20), USD(20), MUSO(20), tesSUCCESS, MUSO(10) + (1 * f), USD(20), 0, 1}, {"hye", MUSO(20) + reserve(env, 2) + 1 * f, USD(0), MUSO(10), USD(20), USD(20), MUSO(20), tesSUCCESS, MUSO(10) + (1 * f), USD(20), 1, 2, MUSO(10), USD(10)}, // acct pays USD {"meg", reserve(env, 1) + 2 * f, USD(10), USD(10), MUSO(5), MUSO(10), USD(10), tecINSUF_RESERVE_OFFER, MUSO(0) + (2 * f), USD(10), 0, 1}, {"nia", reserve(env, 2) + 2 * f, USD(10), USD(10), MUSO(5), MUSO(10), USD(10), tesSUCCESS, MUSO(0) + (2 * f), USD(10), 1, 2, USD(10), MUSO(10)}, {"ova", reserve(env, 1) + 2 * f, USD(10), USD(10), MUSO(10), MUSO(10), USD(10), tesSUCCESS, MUSO(-10) + (2 * f), USD(0), 0, 1}, {"pam", reserve(env, 1) + 2 * f, USD(10), USD(10), MUSO(20), MUSO(10), USD(10), tesSUCCESS, MUSO(-20) + (2 * f), USD(0), 0, 1}, {"qui", reserve(env, 1) + 2 * f, USD(10), USD(20), MUSO(40), MUSO(10), USD(10), tesSUCCESS, MUSO(-20) + (2 * f), USD(0), 0, 1}, {"rae", reserve(env, 2) + 2 * f, USD(10), USD(5), MUSO(5), MUSO(10), USD(10), tesSUCCESS, MUSO(-5) + (2 * f), USD(5), 1, 2, USD(5), MUSO(5)}, {"sue", reserve(env, 2) + 2 * f, USD(10), USD(5), MUSO(10), MUSO(10), USD(10), tesSUCCESS, MUSO(-10) + (2 * f), USD(5), 1, 2, USD(5), MUSO(5)}, }; auto const zeroUsd = USD(0); for (auto const& t : tests) { // Make sure gateway has no current offers. env.require(offers(gw, 0)); auto const acct = Account(t.account); env.fund(t.fundMUSO, acct); env.close(); // Optionally give acct some USD. This is not part of the test, // so we assume that acct has sufficient USD to cover the reserve // on the trust line. if (t.fundUSD != zeroUsd) { env(trust(acct, t.fundUSD)); env.close(); env(pay(gw, acct, t.fundUSD)); env.close(); } env(offer(gw, t.gwGets, t.gwPays)); env.close(); std::uint32_t const gwOfferSeq = env.seq(gw) - 1; // Acct creates a tfSell offer. This is the heart of the test. env(offer(acct, t.acctGets, t.acctPays, tfSell), ter(t.tec)); env.close(); std::uint32_t const acctOfferSeq = env.seq(acct) - 1; // Check results BEAST_EXPECT(env.balance(acct, USD.issue()) == t.finalUsd); BEAST_EXPECT( env.balance(acct, MUSOIssue()) == t.fundMUSO - t.spentMUSO); env.require(offers(acct, t.offers)); env.require(owners(acct, t.owners)); if (t.offers) { auto const acctOffers = offersOnAccount(env, acct); if (acctOffers.size() > 0) { BEAST_EXPECT(acctOffers.size() == 1); auto const& acctOffer = *(acctOffers.front()); BEAST_EXPECT(acctOffer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(acctOffer[sfTakerGets] == t.takerGets); BEAST_EXPECT(acctOffer[sfTakerPays] == t.takerPays); } } // Give the next loop a clean slate by canceling any left-overs // in the offers. env(offer_cancel(acct, acctOfferSeq)); env(offer_cancel(gw, gwOfferSeq)); env.close(); } } void testSellWithFillOrKill(FeatureBitset features) { // Test a number of different corner cases regarding offer crossing // when both the tfSell flag and tfFillOrKill flags are set. testcase("Combine tfSell with tfFillOrKill"); using namespace jtx; auto const gw = Account("gateway"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const USD = gw["USD"]; Env env{*this, features}; env.fund(MUSO(10000000), gw, alice, bob); // Code returned if an offer is killed. TER const killedCode{ features[fix1578] ? TER{tecKILLED} : TER{tesSUCCESS}}; // bob offers MUSO for USD. env(trust(bob, USD(200))); env.close(); env(pay(gw, bob, USD(100))); env.close(); env(offer(bob, MUSO(2000), USD(20))); env.close(); { // alice submits a tfSell | tfFillOrKill offer that does not cross. env(offer(alice, USD(21), MUSO(2100), tfSell | tfFillOrKill), ter(killedCode)); env.close(); env.require(balance(alice, USD(none))); env.require(offers(alice, 0)); env.require(balance(bob, USD(100))); } { // alice submits a tfSell | tfFillOrKill offer that crosses. // Even though tfSell is present it doesn't matter this time. env(offer(alice, USD(20), MUSO(2000), tfSell | tfFillOrKill)); env.close(); env.require(balance(alice, USD(20))); env.require(offers(alice, 0)); env.require(balance(bob, USD(80))); } { // alice submits a tfSell | tfFillOrKill offer that crosses and // returns more than was asked for (because of the tfSell flag). env(offer(bob, MUSO(2000), USD(20))); env.close(); env(offer(alice, USD(10), MUSO(1500), tfSell | tfFillOrKill)); env.close(); env.require(balance(alice, USD(35))); env.require(offers(alice, 0)); env.require(balance(bob, USD(65))); } { // alice submits a tfSell | tfFillOrKill offer that doesn't cross. // This would have succeeded with a regular tfSell, but the // fillOrKill prevents the transaction from crossing since not // all of the offer is consumed. // We're using bob's left-over offer for MUSO(500), USD(5) env(offer(alice, USD(1), MUSO(501), tfSell | tfFillOrKill), ter(killedCode)); env.close(); env.require(balance(alice, USD(35))); env.require(offers(alice, 0)); env.require(balance(bob, USD(65))); } { // Alice submits a tfSell | tfFillOrKill offer that finishes // off the remainder of bob's offer. // We're using bob's left-over offer for MUSO(500), USD(5) env(offer(alice, USD(1), MUSO(500), tfSell | tfFillOrKill)); env.close(); env.require(balance(alice, USD(40))); env.require(offers(alice, 0)); env.require(balance(bob, USD(60))); } } void testTransferRateOffer(FeatureBitset features) { testcase("Transfer Rate Offer"); using namespace jtx; auto const gw1 = Account("gateway1"); auto const USD = gw1["USD"]; Env env{*this, features}; // The fee that's charged for transactions. auto const fee = env.current()->fees().base; env.fund(MUSO(100000), gw1); env.close(); env(rate(gw1, 1.25)); { auto const ann = Account("ann"); auto const bob = Account("bob"); env.fund(MUSO(100) + reserve(env, 2) + (fee * 2), ann, bob); env.close(); env(trust(ann, USD(200))); env(trust(bob, USD(200))); env.close(); env(pay(gw1, bob, USD(125))); env.close(); // bob offers to sell USD(100) for MUSO. alice takes bob's offer. // Notice that although bob only offered USD(100), USD(125) was // removed from his account due to the gateway fee. // // A comparable payment would look like this: // env (pay (bob, alice, USD(100)), sendmax(USD(125))) env(offer(bob, MUSO(1), USD(100))); env.close(); env(offer(ann, USD(100), MUSO(1))); env.close(); env.require(balance(ann, USD(100))); env.require(balance(ann, MUSO(99) + reserve(env, 2))); env.require(offers(ann, 0)); env.require(balance(bob, USD(0))); env.require(balance(bob, MUSO(101) + reserve(env, 2))); env.require(offers(bob, 0)); } { // Reverse the order, so the offer in the books is to sell MUSO // in return for USD. Gateway rate should still apply identically. auto const che = Account("che"); auto const deb = Account("deb"); env.fund(MUSO(100) + reserve(env, 2) + (fee * 2), che, deb); env.close(); env(trust(che, USD(200))); env(trust(deb, USD(200))); env.close(); env(pay(gw1, deb, USD(125))); env.close(); env(offer(che, USD(100), MUSO(1))); env.close(); env(offer(deb, MUSO(1), USD(100))); env.close(); env.require(balance(che, USD(100))); env.require(balance(che, MUSO(99) + reserve(env, 2))); env.require(offers(che, 0)); env.require(balance(deb, USD(0))); env.require(balance(deb, MUSO(101) + reserve(env, 2))); env.require(offers(deb, 0)); } { auto const eve = Account("eve"); auto const fyn = Account("fyn"); env.fund(MUSO(20000) + (fee * 2), eve, fyn); env.close(); env(trust(eve, USD(1000))); env(trust(fyn, USD(1000))); env.close(); env(pay(gw1, eve, USD(100))); env(pay(gw1, fyn, USD(100))); env.close(); // This test verifies that the amount removed from an offer // accounts for the transfer fee that is removed from the // account but not from the remaining offer. env(offer(eve, USD(10), MUSO(4000))); env.close(); std::uint32_t const eveOfferSeq = env.seq(eve) - 1; env(offer(fyn, MUSO(2000), USD(5))); env.close(); env.require(balance(eve, USD(105))); env.require(balance(eve, MUSO(18000))); auto const evesOffers = offersOnAccount(env, eve); BEAST_EXPECT(evesOffers.size() == 1); if (evesOffers.size() != 0) { auto const& evesOffer = *(evesOffers.front()); BEAST_EXPECT(evesOffer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(evesOffer[sfTakerGets] == MUSO(2000)); BEAST_EXPECT(evesOffer[sfTakerPays] == USD(5)); } env(offer_cancel(eve, eveOfferSeq)); // For later tests env.require(balance(fyn, USD(93.75))); env.require(balance(fyn, MUSO(22000))); env.require(offers(fyn, 0)); } // Start messing with two non-native currencies. auto const gw2 = Account("gateway2"); auto const EUR = gw2["EUR"]; env.fund(MUSO(100000), gw2); env.close(); env(rate(gw2, 1.5)); { // Remove MUSO from the equation. Give the two currencies two // different transfer rates so we can see both transfer rates // apply in the same transaction. auto const gay = Account("gay"); auto const hal = Account("hal"); env.fund(reserve(env, 3) + (fee * 3), gay, hal); env.close(); env(trust(gay, USD(200))); env(trust(gay, EUR(200))); env(trust(hal, USD(200))); env(trust(hal, EUR(200))); env.close(); env(pay(gw1, gay, USD(125))); env(pay(gw2, hal, EUR(150))); env.close(); env(offer(gay, EUR(100), USD(100))); env.close(); env(offer(hal, USD(100), EUR(100))); env.close(); env.require(balance(gay, USD(0))); env.require(balance(gay, EUR(100))); env.require(balance(gay, reserve(env, 3))); env.require(offers(gay, 0)); env.require(balance(hal, USD(100))); env.require(balance(hal, EUR(0))); env.require(balance(hal, reserve(env, 3))); env.require(offers(hal, 0)); } { // A trust line's QualityIn should not affect offer crossing. auto const ivy = Account("ivy"); auto const joe = Account("joe"); env.fund(reserve(env, 3) + (fee * 3), ivy, joe); env.close(); env(trust(ivy, USD(400)), qualityInPercent(90)); env(trust(ivy, EUR(400)), qualityInPercent(80)); env(trust(joe, USD(400)), qualityInPercent(70)); env(trust(joe, EUR(400)), qualityInPercent(60)); env.close(); env(pay(gw1, ivy, USD(270)), sendmax(USD(500))); env(pay(gw2, joe, EUR(150)), sendmax(EUR(300))); env.close(); env.require(balance(ivy, USD(300))); env.require(balance(joe, EUR(250))); env(offer(ivy, EUR(100), USD(200))); env.close(); env(offer(joe, USD(200), EUR(100))); env.close(); env.require(balance(ivy, USD(50))); env.require(balance(ivy, EUR(100))); env.require(balance(ivy, reserve(env, 3))); env.require(offers(ivy, 0)); env.require(balance(joe, USD(200))); env.require(balance(joe, EUR(100))); env.require(balance(joe, reserve(env, 3))); env.require(offers(joe, 0)); } { // A trust line's QualityOut should not affect offer crossing. auto const kim = Account("kim"); auto const K_BUX = kim["BUX"]; auto const lex = Account("lex"); auto const meg = Account("meg"); auto const ned = Account("ned"); auto const N_BUX = ned["BUX"]; // Verify trust line QualityOut affects payments. env.fund(reserve(env, 4) + (fee * 4), kim, lex, meg, ned); env.close(); env(trust(lex, K_BUX(400))); env(trust(lex, N_BUX(200)), qualityOutPercent(120)); env(trust(meg, N_BUX(100))); env.close(); env(pay(ned, lex, N_BUX(100))); env.close(); env.require(balance(lex, N_BUX(100))); env(pay(kim, meg, N_BUX(60)), path(lex, ned), sendmax(K_BUX(200))); env.close(); env.require(balance(kim, K_BUX(none))); env.require(balance(kim, N_BUX(none))); env.require(balance(lex, K_BUX(72))); env.require(balance(lex, N_BUX(40))); env.require(balance(meg, K_BUX(none))); env.require(balance(meg, N_BUX(60))); env.require(balance(ned, K_BUX(none))); env.require(balance(ned, N_BUX(none))); // Now verify that offer crossing is unaffected by QualityOut. env(offer(lex, K_BUX(30), N_BUX(30))); env.close(); env(offer(kim, N_BUX(30), K_BUX(30))); env.close(); env.require(balance(kim, K_BUX(none))); env.require(balance(kim, N_BUX(30))); env.require(balance(lex, K_BUX(102))); env.require(balance(lex, N_BUX(10))); env.require(balance(meg, K_BUX(none))); env.require(balance(meg, N_BUX(60))); env.require(balance(ned, K_BUX(-30))); env.require(balance(ned, N_BUX(none))); } { // Make sure things work right when we're auto-bridging as well. auto const ova = Account("ova"); auto const pat = Account("pat"); auto const qae = Account("qae"); env.fund(MUSO(2) + reserve(env, 3) + (fee * 3), ova, pat, qae); env.close(); // o ova has USD but wants XPR. // o pat has MUSO but wants EUR. // o qae has EUR but wants USD. env(trust(ova, USD(200))); env(trust(ova, EUR(200))); env(trust(pat, USD(200))); env(trust(pat, EUR(200))); env(trust(qae, USD(200))); env(trust(qae, EUR(200))); env.close(); env(pay(gw1, ova, USD(125))); env(pay(gw2, qae, EUR(150))); env.close(); env(offer(ova, MUSO(2), USD(100))); env(offer(pat, EUR(100), MUSO(2))); env.close(); env(offer(qae, USD(100), EUR(100))); env.close(); env.require(balance(ova, USD(0))); env.require(balance(ova, EUR(0))); env.require(balance(ova, MUSO(4) + reserve(env, 3))); // In pre-flow code ova's offer is left empty in the ledger. auto const ovasOffers = offersOnAccount(env, ova); if (ovasOffers.size() != 0) { BEAST_EXPECT(ovasOffers.size() == 1); auto const& ovasOffer = *(ovasOffers.front()); BEAST_EXPECT(ovasOffer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(ovasOffer[sfTakerGets] == USD(0)); BEAST_EXPECT(ovasOffer[sfTakerPays] == MUSO(0)); } env.require(balance(pat, USD(0))); env.require(balance(pat, EUR(100))); env.require(balance(pat, MUSO(0) + reserve(env, 3))); env.require(offers(pat, 0)); env.require(balance(qae, USD(100))); env.require(balance(qae, EUR(0))); env.require(balance(qae, MUSO(2) + reserve(env, 3))); env.require(offers(qae, 0)); } } void testSelfCrossOffer1(FeatureBitset features) { // The following test verifies some correct but slightly surprising // behavior in offer crossing. The scenario: // // o An entity has created one or more offers. // o The entity creates another offer that can be directly crossed // (not autobridged) by the previously created offer(s). // o Rather than self crossing the offers, delete the old offer(s). // // See a more complete explanation in the comments for // BookOfferCrossingStep::limitSelfCrossQuality(). // // Note that, in this particular example, one offer causes several // crossable offers (worth considerably more than the new offer) // to be removed from the book. using namespace jtx; auto const gw = Account("gateway"); auto const USD = gw["USD"]; Env env{*this, features}; // The fee that's charged for transactions. auto const fee = env.current()->fees().base; auto const startBalance = MUSO(1000000); env.fund(startBalance + (fee * 4), gw); env.close(); env(offer(gw, USD(60), MUSO(600))); env.close(); env(offer(gw, USD(60), MUSO(600))); env.close(); env(offer(gw, USD(60), MUSO(600))); env.close(); env.require(owners(gw, 3)); env.require(balance(gw, startBalance + fee)); auto gwOffers = offersOnAccount(env, gw); BEAST_EXPECT(gwOffers.size() == 3); for (auto const& offerPtr : gwOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(offer[sfTakerGets] == MUSO(600)); BEAST_EXPECT(offer[sfTakerPays] == USD(60)); } // Since this offer crosses the first offers, the previous offers // will be deleted and this offer will be put on the order book. env(offer(gw, MUSO(1000), USD(100))); env.close(); env.require(owners(gw, 1)); env.require(offers(gw, 1)); env.require(balance(gw, startBalance)); gwOffers = offersOnAccount(env, gw); BEAST_EXPECT(gwOffers.size() == 1); for (auto const& offerPtr : gwOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(offer[sfTakerGets] == USD(100)); BEAST_EXPECT(offer[sfTakerPays] == MUSO(1000)); } } void testSelfCrossOffer2(FeatureBitset features) { using namespace jtx; auto const gw1 = Account("gateway1"); auto const gw2 = Account("gateway2"); auto const alice = Account("alice"); auto const USD = gw1["USD"]; auto const EUR = gw2["EUR"]; Env env{*this, features}; env.fund(MUSO(1000000), gw1, gw2); env.close(); // The fee that's charged for transactions. auto const f = env.current()->fees().base; // Test cases struct TestData { std::string acct; // Account operated on STAmount fundMUSO; // MUSO acct funded with STAmount fundUSD; // USD acct funded with STAmount fundEUR; // EUR acct funded with TER firstOfferTec; // tec code on first offer TER secondOfferTec; // tec code on second offer }; TestData const tests[]{ // acct fundMUSO fundUSD fundEUR firstOfferTec // secondOfferTec {"ann", reserve(env, 3) + f * 4, USD(1000), EUR(1000), tesSUCCESS, tesSUCCESS}, {"bev", reserve(env, 3) + f * 4, USD(1), EUR(1000), tesSUCCESS, tesSUCCESS}, {"cam", reserve(env, 3) + f * 4, USD(1000), EUR(1), tesSUCCESS, tesSUCCESS}, {"deb", reserve(env, 3) + f * 4, USD(0), EUR(1), tesSUCCESS, tecUNFUNDED_OFFER}, {"eve", reserve(env, 3) + f * 4, USD(1), EUR(0), tecUNFUNDED_OFFER, tesSUCCESS}, {"flo", reserve(env, 3) + 0, USD(1000), EUR(1000), tecINSUF_RESERVE_OFFER, tecINSUF_RESERVE_OFFER}, }; for (auto const& t : tests) { auto const acct = Account{t.acct}; env.fund(t.fundMUSO, acct); env.close(); env(trust(acct, USD(1000))); env(trust(acct, EUR(1000))); env.close(); if (t.fundUSD > USD(0)) env(pay(gw1, acct, t.fundUSD)); if (t.fundEUR > EUR(0)) env(pay(gw2, acct, t.fundEUR)); env.close(); env(offer(acct, USD(500), EUR(600)), ter(t.firstOfferTec)); env.close(); std::uint32_t const firstOfferSeq = env.seq(acct) - 1; int offerCount = t.firstOfferTec == tesSUCCESS ? 1 : 0; env.require(owners(acct, 2 + offerCount)); env.require(balance(acct, t.fundUSD)); env.require(balance(acct, t.fundEUR)); auto acctOffers = offersOnAccount(env, acct); BEAST_EXPECT(acctOffers.size() == offerCount); for (auto const& offerPtr : acctOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(offer[sfTakerGets] == EUR(600)); BEAST_EXPECT(offer[sfTakerPays] == USD(500)); } env(offer(acct, EUR(600), USD(500)), ter(t.secondOfferTec)); env.close(); std::uint32_t const secondOfferSeq = env.seq(acct) - 1; offerCount = t.secondOfferTec == tesSUCCESS ? 1 : offerCount; env.require(owners(acct, 2 + offerCount)); env.require(balance(acct, t.fundUSD)); env.require(balance(acct, t.fundEUR)); acctOffers = offersOnAccount(env, acct); BEAST_EXPECT(acctOffers.size() == offerCount); for (auto const& offerPtr : acctOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); if (offer[sfSequence] == firstOfferSeq) { BEAST_EXPECT(offer[sfTakerGets] == EUR(600)); BEAST_EXPECT(offer[sfTakerPays] == USD(500)); } else { BEAST_EXPECT(offer[sfTakerGets] == USD(500)); BEAST_EXPECT(offer[sfTakerPays] == EUR(600)); } } // Remove any offers from acct for the next pass. env(offer_cancel(acct, firstOfferSeq)); env.close(); env(offer_cancel(acct, secondOfferSeq)); env.close(); } } void testSelfCrossOffer(FeatureBitset features) { testcase("Self Cross Offer"); testSelfCrossOffer1(features); testSelfCrossOffer2(features); } void testSelfIssueOffer(FeatureBitset features) { // Folks who issue their own currency have, in effect, as many // funds as they are trusted for. This test used to fail because // self-issuing was not properly checked. Verify that it works // correctly now. using namespace jtx; Env env{*this, features}; auto const alice = Account("alice"); auto const bob = Account("bob"); auto const USD = bob["USD"]; auto const f = env.current()->fees().base; env.fund(MUSO(50000) + f, alice, bob); env.close(); env(offer(alice, USD(5000), MUSO(50000))); env.close(); // This offer should take alice's offer up to Alice's reserve. env(offer(bob, MUSO(50000), USD(5000))); env.close(); // alice's offer should have been removed, since she's down to her // MUSO reserve. env.require(balance(alice, MUSO(250))); env.require(owners(alice, 1)); env.require(lines(alice, 1)); // However bob's offer should be in the ledger, since it was not // fully crossed. auto const bobOffers = offersOnAccount(env, bob); BEAST_EXPECT(bobOffers.size() == 1); for (auto const& offerPtr : bobOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(offer[sfTakerGets] == USD(25)); BEAST_EXPECT(offer[sfTakerPays] == MUSO(250)); } } void testBadPathAssert(FeatureBitset features) { // At one point in the past this invalid path caused an assert. It // should not be possible for user-supplied data to cause an assert. // Make sure the assert is gone. testcase("Bad path assert"); using namespace jtx; // The problem was identified when featureOwnerPaysFee was enabled, // so make sure that gets included. Env env{*this, features | featureOwnerPaysFee}; // The fee that's charged for transactions. auto const fee = env.current()->fees().base; { // A trust line's QualityOut should not affect offer crossing. auto const ann = Account("ann"); auto const A_BUX = ann["BUX"]; auto const bob = Account("bob"); auto const cam = Account("cam"); auto const dan = Account("dan"); auto const D_BUX = dan["BUX"]; // Verify trust line QualityOut affects payments. env.fund(reserve(env, 4) + (fee * 4), ann, bob, cam, dan); env.close(); env(trust(bob, A_BUX(400))); env(trust(bob, D_BUX(200)), qualityOutPercent(120)); env(trust(cam, D_BUX(100))); env.close(); env(pay(dan, bob, D_BUX(100))); env.close(); env.require(balance(bob, D_BUX(100))); env(pay(ann, cam, D_BUX(60)), path(bob, dan), sendmax(A_BUX(200))); env.close(); env.require(balance(ann, A_BUX(none))); env.require(balance(ann, D_BUX(none))); env.require(balance(bob, A_BUX(72))); env.require(balance(bob, D_BUX(40))); env.require(balance(cam, A_BUX(none))); env.require(balance(cam, D_BUX(60))); env.require(balance(dan, A_BUX(none))); env.require(balance(dan, D_BUX(none))); env(offer(bob, A_BUX(30), D_BUX(30))); env.close(); env(trust(ann, D_BUX(100))); env.close(); // This payment caused the assert. env(pay(ann, ann, D_BUX(30)), path(A_BUX, D_BUX), sendmax(A_BUX(30)), ter(temBAD_PATH)); env.close(); env.require(balance(ann, A_BUX(none))); env.require(balance(ann, D_BUX(0))); env.require(balance(bob, A_BUX(72))); env.require(balance(bob, D_BUX(40))); env.require(balance(cam, A_BUX(none))); env.require(balance(cam, D_BUX(60))); env.require(balance(dan, A_BUX(0))); env.require(balance(dan, D_BUX(none))); } } void testDirectToDirectPath(FeatureBitset features) { // The offer crossing code expects that a DirectStep is always // preceded by a BookStep. In one instance the default path // was not matching that assumption. Here we recreate that case // so we can prove the bug stays fixed. testcase("Direct to Direct path"); using namespace jtx; Env env{*this, features}; auto const ann = Account("ann"); auto const bob = Account("bob"); auto const cam = Account("cam"); auto const A_BUX = ann["BUX"]; auto const B_BUX = bob["BUX"]; auto const fee = env.current()->fees().base; env.fund(reserve(env, 4) + (fee * 5), ann, bob, cam); env.close(); env(trust(ann, B_BUX(40))); env(trust(cam, A_BUX(40))); env(trust(cam, B_BUX(40))); env.close(); env(pay(ann, cam, A_BUX(35))); env(pay(bob, cam, B_BUX(35))); env(offer(bob, A_BUX(30), B_BUX(30))); env.close(); // cam puts an offer on the books that her upcoming offer could cross. // But this offer should be deleted, not crossed, by her upcoming // offer. env(offer(cam, A_BUX(29), B_BUX(30), tfPassive)); env.close(); env.require(balance(cam, A_BUX(35))); env.require(balance(cam, B_BUX(35))); env.require(offers(cam, 1)); // This offer caused the assert. env(offer(cam, B_BUX(30), A_BUX(30))); env.close(); env.require(balance(bob, A_BUX(30))); env.require(balance(cam, A_BUX(5))); env.require(balance(cam, B_BUX(65))); env.require(offers(cam, 0)); } void testSelfCrossLowQualityOffer(FeatureBitset features) { // The Flow offer crossing code used to assert if an offer was made // for more MUSO than the offering account held. This unit test // reproduces that failing case. testcase("Self crossing low quality offer"); using namespace jtx; Env env{*this, features}; auto const ann = Account("ann"); auto const gw = Account("gateway"); auto const BTC = gw["BTC"]; auto const fee = env.current()->fees().base; env.fund(reserve(env, 2) + drops(9999640) + (fee), ann); env.fund(reserve(env, 2) + (fee * 4), gw); env.close(); env(rate(gw, 1.002)); env(trust(ann, BTC(10))); env.close(); env(pay(gw, ann, BTC(2.856))); env.close(); env(offer(ann, drops(365611702030), BTC(5.713))); env.close(); // This offer caused the assert. env(offer(ann, BTC(0.687), drops(20000000000)), ter(tecINSUF_RESERVE_OFFER)); } void testOfferInScaling(FeatureBitset features) { // The Flow offer crossing code had a case where it was not rounding // the offer crossing correctly after a partial crossing. The // failing case was found on the network. Here we add the case to // the unit tests. testcase("Offer In Scaling"); using namespace jtx; Env env{*this, features}; auto const gw = Account("gateway"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const CNY = gw["CNY"]; auto const fee = env.current()->fees().base; env.fund(reserve(env, 2) + drops(400000000000) + (fee), alice, bob); env.fund(reserve(env, 2) + (fee * 4), gw); env.close(); env(trust(bob, CNY(500))); env.close(); env(pay(gw, bob, CNY(300))); env.close(); env(offer(bob, drops(5400000000), CNY(216.054))); env.close(); // This offer did not round result of partial crossing correctly. env(offer(alice, CNY(13562.0001), drops(339000000000))); env.close(); auto const aliceOffers = offersOnAccount(env, alice); BEAST_EXPECT(aliceOffers.size() == 1); for (auto const& offerPtr : aliceOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT(offer[sfTakerGets] == drops(333599446582)); BEAST_EXPECT(offer[sfTakerPays] == CNY(13345.9461)); } } void testOfferInScalingWithXferRate(FeatureBitset features) { // After adding the previous case, there were still failing rounding // cases in Flow offer crossing. This one was because the gateway // transfer rate was not being correctly handled. testcase("Offer In Scaling With Xfer Rate"); using namespace jtx; Env env{*this, features}; auto const gw = Account("gateway"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const BTC = gw["BTC"]; auto const JPY = gw["JPY"]; auto const fee = env.current()->fees().base; env.fund(reserve(env, 2) + drops(400000000000) + (fee), alice, bob); env.fund(reserve(env, 2) + (fee * 4), gw); env.close(); env(rate(gw, 1.002)); env(trust(alice, JPY(4000))); env(trust(bob, BTC(2))); env.close(); env(pay(gw, alice, JPY(3699.034802280317))); env(pay(gw, bob, BTC(1.156722559140311))); env.close(); env(offer(bob, JPY(1241.913390770747), BTC(0.01969825690469254))); env.close(); // This offer did not round result of partial crossing correctly. env(offer(alice, BTC(0.05507568706427876), JPY(3472.696773391072))); env.close(); auto const aliceOffers = offersOnAccount(env, alice); BEAST_EXPECT(aliceOffers.size() == 1); for (auto const& offerPtr : aliceOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT( offer[sfTakerGets] == STAmount(JPY.issue(), std::uint64_t(2230682446713524ul), -12)); BEAST_EXPECT(offer[sfTakerPays] == BTC(0.035378)); } } void testOfferThresholdWithReducedFunds(FeatureBitset features) { // Another instance where Flow offer crossing was not always // working right was if the Taker had fewer funds than the Offer // was offering. The basis for this test came off the network. testcase("Offer Threshold With Reduced Funds"); using namespace jtx; Env env{*this, features}; auto const gw1 = Account("gw1"); auto const gw2 = Account("gw2"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const USD = gw1["USD"]; auto const JPY = gw2["JPY"]; auto const fee = env.current()->fees().base; env.fund(reserve(env, 2) + drops(400000000000) + (fee), alice, bob); env.fund(reserve(env, 2) + (fee * 4), gw1, gw2); env.close(); env(rate(gw1, 1.002)); env(trust(alice, USD(1000))); env(trust(bob, JPY(100000))); env.close(); env( pay(gw1, alice, STAmount{USD.issue(), std::uint64_t(2185410179555600), -14})); env( pay(gw2, bob, STAmount{JPY.issue(), std::uint64_t(6351823459548956), -12})); env.close(); env(offer( bob, STAmount{USD.issue(), std::uint64_t(4371257532306000), -17}, STAmount{JPY.issue(), std::uint64_t(4573216636606000), -15})); env.close(); // This offer did not partially cross correctly. env(offer( alice, STAmount{JPY.issue(), std::uint64_t(2291181510070762), -12}, STAmount{USD.issue(), std::uint64_t(2190218999914694), -14})); env.close(); auto const aliceOffers = offersOnAccount(env, alice); BEAST_EXPECT(aliceOffers.size() == 1); for (auto const& offerPtr : aliceOffers) { auto const& offer = *offerPtr; BEAST_EXPECT(offer[sfLedgerEntryType] == ltOFFER); BEAST_EXPECT( offer[sfTakerGets] == STAmount(USD.issue(), std::uint64_t(2185847305256635), -14)); BEAST_EXPECT( offer[sfTakerPays] == STAmount(JPY.issue(), std::uint64_t(2286608293434156), -12)); } } void testTinyOffer(FeatureBitset features) { testcase("Tiny Offer"); using namespace jtx; Env env{*this, features}; auto const gw = Account("gw"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const CNY = gw["CNY"]; auto const fee = env.current()->fees().base; auto const startMUSOBalance = drops(400000000000) + (fee * 2); env.fund(startMUSOBalance, gw, alice, bob); env.close(); env(trust(bob, CNY(100000))); env.close(); // Place alice's tiny offer in the book first. Let's see what happens // when a reasonable offer crosses it. STAmount const alicesCnyOffer{ CNY.issue(), std::uint64_t(4926000000000000), -23}; env(offer(alice, alicesCnyOffer, drops(1), tfPassive)); env.close(); // bob places an ordinary offer STAmount const bobsCnyStartBalance{ CNY.issue(), std::uint64_t(3767479960090235), -15}; env(pay(gw, bob, bobsCnyStartBalance)); env.close(); env(offer( bob, drops(203), STAmount{CNY.issue(), std::uint64_t(1000000000000000), -20})); env.close(); env.require(balance(alice, alicesCnyOffer)); env.require(balance(alice, startMUSOBalance - fee - drops(1))); env.require(balance(bob, bobsCnyStartBalance - alicesCnyOffer)); env.require(balance(bob, startMUSOBalance - (fee * 2) + drops(1))); } void testSelfPayXferFeeOffer(FeatureBitset features) { testcase("Self Pay Xfer Fee"); // The old offer crossing code does not charge a transfer fee // if alice pays alice. That's different from how payments work. // Payments always charge a transfer fee even if the money is staying // in the same hands. // // What's an example where alice pays alice? There are three actors: // gw, alice, and bob. // // 1. gw issues BTC and USD. qw charges a 0.2% transfer fee. // // 2. alice makes an offer to buy MUSO and sell USD. // 3. bob makes an offer to buy BTC and sell MUSO. // // 4. alice now makes an offer to sell BTC and buy USD. // // This last offer crosses using auto-bridging. // o alice's last offer sells BTC to... // o bob' offer which takes alice's BTC and sells MUSO to... // o alice's first offer which takes bob's MUSO and sells USD to... // o alice's last offer. // // So alice sells USD to herself. // // There are six cases that we need to test: // o alice crosses her own offer on the first leg (BTC). // o alice crosses her own offer on the second leg (USD). // o alice crosses her own offers on both legs. // All three cases need to be tested: // o In reverse (alice has enough BTC to cover her offer) and // o Forward (alice owns less BTC than is in her final offer. // // It turns out that two of the forward cases fail for a different // reason. They are therefore commented out here, But they are // revisited in the testSelfPayUnlimitedFunds() unit test. using namespace jtx; Env env{*this, features}; auto const gw = Account("gw"); auto const BTC = gw["BTC"]; auto const USD = gw["USD"]; auto const startMUSOBalance = MUSO(4000000); env.fund(startMUSOBalance, gw); env.close(); env(rate(gw, 1.25)); env.close(); // Test cases struct Actor { Account acct; int offers; // offers on account after crossing PrettyAmount MUSO; // final expected after crossing PrettyAmount btc; // final expected after crossing PrettyAmount usd; // final expected after crossing }; struct TestData { // The first three three integers give the *index* in actors // to assign each of the three roles. By using indices it is // easy for alice to own the offer in the first leg, the second // leg, or both. std::size_t self; std::size_t leg0; std::size_t leg1; PrettyAmount btcStart; std::vector<Actor> actors; }; TestData const tests[]{ // btcStart --------------------- actor[0] // --------------------- -------------------- actor[1] // ------------------- {0, 0, 1, BTC(20), {{"ann", 0, drops(3899999999960), BTC(20.0), USD(3000)}, {"abe", 0, drops(4099999999970), BTC(0), USD(750)}}}, // no BTC // xfer fee {0, 1, 0, BTC(20), {{"bev", 0, drops(4099999999960), BTC(7.5), USD(2000)}, {"bob", 0, drops(3899999999970), BTC(10), USD(0)}}}, // no USD // xfer fee {0, 0, 0, BTC(20), {{"cam", 0, drops(3999999999950), BTC(20.0), USD(2000)}}}, // no xfer fee // { 0, 0, 1, BTC( 5), { {"deb", 0, drops(3899999999960), BTC( 5.0), // USD(3000)}, {"dan", 0, drops(4099999999970), BTC( 0), USD(750)} } // }, // no BTC xfer fee {0, 1, 0, BTC(5), {{"eve", 1, drops(4039999999960), BTC(0.0), USD(2000)}, {"eli", 1, drops(3959999999970), BTC(4), USD(0)}}}, // no USD // xfer fee // { 0, 0, 0, BTC( 5), { {"flo", 0, drops(3999999999950), BTC( 5.0), // USD(2000)} } // } // no xfer fee }; for (auto const& t : tests) { Account const& self = t.actors[t.self].acct; Account const& leg0 = t.actors[t.leg0].acct; Account const& leg1 = t.actors[t.leg1].acct; for (auto const& actor : t.actors) { env.fund(MUSO(4000000), actor.acct); env.close(); env(trust(actor.acct, BTC(40))); env(trust(actor.acct, USD(8000))); env.close(); } env(pay(gw, self, t.btcStart)); env(pay(gw, self, USD(2000))); if (self.id() != leg1.id()) env(pay(gw, leg1, USD(2000))); env.close(); // Get the initial offers in place. Remember their sequences // so we can delete them later. env(offer(leg0, BTC(10), MUSO(100000), tfPassive)); env.close(); std::uint32_t const leg0OfferSeq = env.seq(leg0) - 1; env(offer(leg1, MUSO(100000), USD(1000), tfPassive)); env.close(); std::uint32_t const leg1OfferSeq = env.seq(leg1) - 1; // This is the offer that matters. env(offer(self, USD(1000), BTC(10))); env.close(); std::uint32_t const selfOfferSeq = env.seq(self) - 1; // Verify results. for (auto const& actor : t.actors) { // Sometimes Taker crossing gets lazy about deleting offers. // Treat an empty offer as though it is deleted. auto actorOffers = offersOnAccount(env, actor.acct); auto const offerCount = std::distance( actorOffers.begin(), std::remove_if( actorOffers.begin(), actorOffers.end(), [](std::shared_ptr<SLE const>& offer) { return (*offer)[sfTakerGets].signum() == 0; })); BEAST_EXPECT(offerCount == actor.offers); env.require(balance(actor.acct, actor.MUSO)); env.require(balance(actor.acct, actor.btc)); env.require(balance(actor.acct, actor.usd)); } // Remove any offers that might be left hanging around. They // could bollix up later loops. env(offer_cancel(leg0, leg0OfferSeq)); env.close(); env(offer_cancel(leg1, leg1OfferSeq)); env.close(); env(offer_cancel(self, selfOfferSeq)); env.close(); } } void testSelfPayUnlimitedFunds(FeatureBitset features) { testcase("Self Pay Unlimited Funds"); // The Taker offer crossing code recognized when Alice was paying // Alice the same denomination. In this case, as long as Alice // has a little bit of that denomination, it treats Alice as though // she has unlimited funds in that denomination. // // Huh? What kind of sense does that make? // // One way to think about it is to break a single payment into a // series of very small payments executed sequentially but very // quickly. Alice needs to pay herself 1 USD, but she only has // 0.01 USD. Alice says, "Hey Alice, let me pay you a penny." // Alice does this, taking the penny out of her pocket and then // putting it back in her pocket. Then she says, "Hey Alice, // I found another penny. I can pay you another penny." Repeat // these steps 100 times and Alice has paid herself 1 USD even though // she only owns 0.01 USD. // // That's all very nice, but the payment code does not support this // optimization. In part that's because the payment code can // operate on a whole batch of offers. As a matter of fact, it can // deal in two consecutive batches of offers. It would take a great // deal of sorting out to figure out which offers in the two batches // had the same owner and give them special processing. And, // honestly, it's a weird little corner case. // // So, since Flow offer crossing uses the payments engine, Flow // offer crossing no longer supports this optimization. // // The following test shows the difference in the behaviors between // Taker offer crossing and Flow offer crossing. using namespace jtx; Env env{*this, features}; auto const gw = Account("gw"); auto const BTC = gw["BTC"]; auto const USD = gw["USD"]; auto const startMUSOBalance = MUSO(4000000); env.fund(startMUSOBalance, gw); env.close(); env(rate(gw, 1.25)); env.close(); // Test cases struct Actor { Account acct; int offers; // offers on account after crossing PrettyAmount MUSO; // final expected after crossing PrettyAmount btc; // final expected after crossing PrettyAmount usd; // final expected after crossing }; struct TestData { // The first three three integers give the *index* in actors // to assign each of the three roles. By using indices it is // easy for alice to own the offer in the first leg, the second // leg, or both. std::size_t self; std::size_t leg0; std::size_t leg1; PrettyAmount btcStart; std::vector<Actor> actors; }; TestData const takerTests[]{ // btcStart ------------------- actor[0] // -------------------- ------------------- actor[1] // -------------------- {0, 0, 1, BTC(5), {{"deb", 0, drops(3899999999960), BTC(5), USD(3000)}, {"dan", 0, drops(4099999999970), BTC(0), USD(750)}}}, // no BTC // xfer fee {0, 0, 0, BTC(5), {{"flo", 0, drops(3999999999950), BTC(5), USD(2000)}}} // no xfer // fee }; TestData const flowTests[]{ // btcStart ------------------- actor[0] // -------------------- ------------------- actor[1] // -------------------- {0, 0, 1, BTC(5), {{"gay", 1, drops(3949999999960), BTC(5), USD(2500)}, {"gar", 1, drops(4049999999970), BTC(0), USD(1375)}}}, // no BTC xfer fee {0, 0, 0, BTC(5), {{"hye", 2, drops(3999999999950), BTC(5), USD(2000)}}} // no xfer // fee }; // Pick the right tests. auto const& tests = features[featureFlowCross] ? flowTests : takerTests; for (auto const& t : tests) { Account const& self = t.actors[t.self].acct; Account const& leg0 = t.actors[t.leg0].acct; Account const& leg1 = t.actors[t.leg1].acct; for (auto const& actor : t.actors) { env.fund(MUSO(4000000), actor.acct); env.close(); env(trust(actor.acct, BTC(40))); env(trust(actor.acct, USD(8000))); env.close(); } env(pay(gw, self, t.btcStart)); env(pay(gw, self, USD(2000))); if (self.id() != leg1.id()) env(pay(gw, leg1, USD(2000))); env.close(); // Get the initial offers in place. Remember their sequences // so we can delete them later. env(offer(leg0, BTC(10), MUSO(100000), tfPassive)); env.close(); std::uint32_t const leg0OfferSeq = env.seq(leg0) - 1; env(offer(leg1, MUSO(100000), USD(1000), tfPassive)); env.close(); std::uint32_t const leg1OfferSeq = env.seq(leg1) - 1; // This is the offer that matters. env(offer(self, USD(1000), BTC(10))); env.close(); std::uint32_t const selfOfferSeq = env.seq(self) - 1; // Verify results. for (auto const& actor : t.actors) { // Sometimes Taker offer crossing gets lazy about deleting // offers. Treat an empty offer as though it is deleted. auto actorOffers = offersOnAccount(env, actor.acct); auto const offerCount = std::distance( actorOffers.begin(), std::remove_if( actorOffers.begin(), actorOffers.end(), [](std::shared_ptr<SLE const>& offer) { return (*offer)[sfTakerGets].signum() == 0; })); BEAST_EXPECT(offerCount == actor.offers); env.require(balance(actor.acct, actor.MUSO)); env.require(balance(actor.acct, actor.btc)); env.require(balance(actor.acct, actor.usd)); } // Remove any offers that might be left hanging around. They // could bollix up later loops. env(offer_cancel(leg0, leg0OfferSeq)); env.close(); env(offer_cancel(leg1, leg1OfferSeq)); env.close(); env(offer_cancel(self, selfOfferSeq)); env.close(); } } void testRequireAuth(FeatureBitset features) { testcase("lsfRequireAuth"); using namespace jtx; Env env{*this, features}; auto const gw = Account("gw"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const gwUSD = gw["USD"]; auto const aliceUSD = alice["USD"]; auto const bobUSD = bob["USD"]; env.fund(MUSO(400000), gw, alice, bob); env.close(); // GW requires authorization for holders of its IOUs env(fset(gw, asfRequireAuth)); env.close(); // Properly set trust and have gw authorize bob and alice env(trust(gw, bobUSD(100)), txflags(tfSetfAuth)); env(trust(bob, gwUSD(100))); env(trust(gw, aliceUSD(100)), txflags(tfSetfAuth)); env(trust(alice, gwUSD(100))); // Alice is able to place the offer since the GW has authorized her env(offer(alice, gwUSD(40), MUSO(4000))); env.close(); env.require(offers(alice, 1)); env.require(balance(alice, gwUSD(0))); env(pay(gw, bob, gwUSD(50))); env.close(); env.require(balance(bob, gwUSD(50))); // Bob's offer should cross Alice's env(offer(bob, MUSO(4000), gwUSD(40))); env.close(); env.require(offers(alice, 0)); env.require(balance(alice, gwUSD(40))); env.require(offers(bob, 0)); env.require(balance(bob, gwUSD(10))); } void testMissingAuth(FeatureBitset features) { testcase("Missing Auth"); // 1. alice creates an offer to acquire USD/gw, an asset for which // she does not have a trust line. At some point in the future, // gw adds lsfRequireAuth. Then, later, alice's offer is crossed. // a. With Taker alice's unauthorized offer is consumed. // b. With FlowCross alice's offer is deleted, not consumed, // since alice is not authorized to hold USD/gw. // // 2. alice tries to create an offer for USD/gw, now that gw has // lsfRequireAuth set. This time the offer create fails because // alice is not authorized to hold USD/gw. // // 3. Next, gw creates a trust line to alice, but does not set // tfSetfAuth on that trust line. alice attempts to create an // offer and again fails. // // 4. Finally, gw sets tsfSetAuth on the trust line authorizing // alice to own USD/gw. At this point alice successfully // creates and crosses an offer for USD/gw. using namespace jtx; Env env{*this, features}; auto const gw = Account("gw"); auto const alice = Account("alice"); auto const bob = Account("bob"); auto const gwUSD = gw["USD"]; auto const aliceUSD = alice["USD"]; auto const bobUSD = bob["USD"]; env.fund(MUSO(400000), gw, alice, bob); env.close(); env(offer(alice, gwUSD(40), MUSO(4000))); env.close(); env.require(offers(alice, 1)); env.require(balance(alice, gwUSD(none))); env(fset(gw, asfRequireAuth)); env.close(); env(trust(gw, bobUSD(100)), txflags(tfSetfAuth)); env.close(); env(trust(bob, gwUSD(100))); env.close(); env(pay(gw, bob, gwUSD(50))); env.close(); env.require(balance(bob, gwUSD(50))); // gw now requires authorization and bob has gwUSD(50). Let's see if // bob can cross alice's offer. // // o With Taker bob's offer should cross alice's. // o With FlowCross bob's offer shouldn't cross and alice's // unauthorized offer should be deleted. env(offer(bob, MUSO(4000), gwUSD(40))); env.close(); std::uint32_t const bobOfferSeq = env.seq(bob) - 1; bool const flowCross = features[featureFlowCross]; env.require(offers(alice, 0)); if (flowCross) { // alice's unauthorized offer is deleted & bob's offer not crossed. env.require(balance(alice, gwUSD(none))); env.require(offers(bob, 1)); env.require(balance(bob, gwUSD(50))); } else { // alice's offer crosses bob's env.require(balance(alice, gwUSD(40))); env.require(offers(bob, 0)); env.require(balance(bob, gwUSD(10))); // The rest of the test verifies FlowCross behavior. return; } // See if alice can create an offer without authorization. alice // should not be able to create the offer and bob's offer should be // untouched. env(offer(alice, gwUSD(40), MUSO(4000)), ter(tecNO_LINE)); env.close(); env.require(offers(alice, 0)); env.require(balance(alice, gwUSD(none))); env.require(offers(bob, 1)); env.require(balance(bob, gwUSD(50))); // Set up a trust line for alice, but don't authorize it. alice // should still not be able to create an offer for USD/gw. env(trust(gw, aliceUSD(100))); env.close(); env(offer(alice, gwUSD(40), MUSO(4000)), ter(tecNO_AUTH)); env.close(); env.require(offers(alice, 0)); env.require(balance(alice, gwUSD(0))); env.require(offers(bob, 1)); env.require(balance(bob, gwUSD(50))); // Delete bob's offer so alice can create an offer without crossing. env(offer_cancel(bob, bobOfferSeq)); env.close(); env.require(offers(bob, 0)); // Finally, set up an authorized trust line for alice. Now alice's // offer should succeed. Note that, since this is an offer rather // than a payment, alice does not need to set a trust line limit. env(trust(gw, aliceUSD(100)), txflags(tfSetfAuth)); env.close(); env(offer(alice, gwUSD(40), MUSO(4000))); env.close(); env.require(offers(alice, 1)); // Now bob creates his offer again. alice's offer should cross. env(offer(bob, MUSO(4000), gwUSD(40))); env.close(); env.require(offers(alice, 0)); env.require(balance(alice, gwUSD(40))); env.require(offers(bob, 0)); env.require(balance(bob, gwUSD(10))); } void testRCSmoketest(FeatureBitset features) { testcase("MUSOConnect Smoketest payment flow"); using namespace jtx; Env env{*this, features}; // This test mimics the payment flow used in the MUSO Connect // smoke test. The players: // A USD gateway with hot and cold wallets // A EUR gateway with hot and cold walllets // A MM gateway that will provide offers from USD->EUR and EUR->USD // A path from hot US to cold EUR is found and then used to send // USD for EUR that goes through the market maker auto const hotUS = Account("hotUS"); auto const coldUS = Account("coldUS"); auto const hotEU = Account("hotEU"); auto const coldEU = Account("coldEU"); auto const mm = Account("mm"); auto const USD = coldUS["USD"]; auto const EUR = coldEU["EUR"]; env.fund(MUSO(100000), hotUS, coldUS, hotEU, coldEU, mm); env.close(); // Cold wallets require trust but will MUSO by default for (auto const& cold : {coldUS, coldEU}) { env(fset(cold, asfRequireAuth)); env(fset(cold, asfDefaultMUSO)); } env.close(); // Each hot wallet trusts the related cold wallet for a large amount env(trust(hotUS, USD(10000000)), txflags(tfSetNoMUSO)); env(trust(hotEU, EUR(10000000)), txflags(tfSetNoMUSO)); // Market maker trusts both cold wallets for a large amount env(trust(mm, USD(10000000)), txflags(tfSetNoMUSO)); env(trust(mm, EUR(10000000)), txflags(tfSetNoMUSO)); env.close(); // Gateways authorize the trustlines of hot and market maker env(trust(coldUS, USD(0), hotUS, tfSetfAuth)); env(trust(coldEU, EUR(0), hotEU, tfSetfAuth)); env(trust(coldUS, USD(0), mm, tfSetfAuth)); env(trust(coldEU, EUR(0), mm, tfSetfAuth)); env.close(); // Issue currency from cold wallets to hot and market maker env(pay(coldUS, hotUS, USD(5000000))); env(pay(coldEU, hotEU, EUR(5000000))); env(pay(coldUS, mm, USD(5000000))); env(pay(coldEU, mm, EUR(5000000))); env.close(); // MM places offers float const rate = 0.9f; // 0.9 USD = 1 EUR env(offer(mm, EUR(4000000 * rate), USD(4000000)), json(jss::Flags, tfSell)); float const reverseRate = 1.0f / rate * 1.00101f; env(offer(mm, USD(4000000 * reverseRate), EUR(4000000)), json(jss::Flags, tfSell)); env.close(); // There should be a path available from hot US to cold EUR { Json::Value jvParams; jvParams[jss::destination_account] = coldEU.human(); jvParams[jss::destination_amount][jss::issuer] = coldEU.human(); jvParams[jss::destination_amount][jss::currency] = "EUR"; jvParams[jss::destination_amount][jss::value] = 10; jvParams[jss::source_account] = hotUS.human(); Json::Value const jrr{env.rpc( "json", "MUSO_path_find", to_string(jvParams))[jss::result]}; BEAST_EXPECT(jrr[jss::status] == "success"); BEAST_EXPECT( jrr[jss::alternatives].isArray() && jrr[jss::alternatives].size() > 0); } // Send the payment using the found path. env(pay(hotUS, coldEU, EUR(10)), sendmax(USD(11.1223326))); } void testSelfAuth(FeatureBitset features) { testcase("Self Auth"); using namespace jtx; Env env{*this, features}; auto const gw = Account("gw"); auto const alice = Account("alice"); auto const gwUSD = gw["USD"]; auto const aliceUSD = alice["USD"]; env.fund(MUSO(400000), gw, alice); env.close(); // Test that gw can create an offer to buy gw's currency. env(offer(gw, gwUSD(40), MUSO(4000))); env.close(); std::uint32_t const gwOfferSeq = env.seq(gw) - 1; env.require(offers(gw, 1)); // Since gw has an offer out, gw should not be able to set RequireAuth. env(fset(gw, asfRequireAuth), ter(tecOWNERS)); env.close(); // Cancel gw's offer so we can set RequireAuth. env(offer_cancel(gw, gwOfferSeq)); env.close(); env.require(offers(gw, 0)); // gw now requires authorization for holders of its IOUs env(fset(gw, asfRequireAuth)); env.close(); // The test behaves differently with or without DepositPreauth. bool const preauth = features[featureDepositPreauth]; // Before DepositPreauth an account with lsfRequireAuth set could not // create an offer to buy their own currency. After DepositPreauth // they can. env(offer(gw, gwUSD(40), MUSO(4000)), ter(preauth ? TER{tesSUCCESS} : TER{tecNO_LINE})); env.close(); env.require(offers(gw, preauth ? 1 : 0)); if (!preauth) // The rest of the test verifies DepositPreauth behavior. return; // Set up an authorized trust line and pay alice gwUSD 50. env(trust(gw, aliceUSD(100)), txflags(tfSetfAuth)); env(trust(alice, gwUSD(100))); env.close(); env(pay(gw, alice, gwUSD(50))); env.close(); env.require(balance(alice, gwUSD(50))); // alice's offer should cross gw's env(offer(alice, MUSO(4000), gwUSD(40))); env.close(); env.require(offers(alice, 0)); env.require(balance(alice, gwUSD(10))); env.require(offers(gw, 0)); } void testDeletedOfferIssuer(FeatureBitset features) { // Show that an offer who's issuer has been deleted cannot be crossed. using namespace jtx; testcase("Deleted offer issuer"); auto trustLineExists = [](jtx::Env const& env, jtx::Account const& src, jtx::Account const& dst, Currency const& cur) -> bool { return bool(env.le(keylet::line(src, dst, cur))); }; Account const alice("alice"); Account const becky("becky"); Account const carol("carol"); Account const gw("gateway"); auto const USD = gw["USD"]; auto const BUX = alice["BUX"]; Env env{*this, features}; env.fund(MUSO(10000), alice, becky, carol, noMUSO(gw)); env.trust(USD(1000), becky); env(pay(gw, becky, USD(5))); env.close(); BEAST_EXPECT(trustLineExists(env, gw, becky, USD.currency)); // Make offers that produce USD and can be crossed two ways: // direct MUSO -> USD // direct BUX -> USD env(offer(becky, MUSO(2), USD(2)), txflags(tfPassive)); std::uint32_t const beckyBuxUsdSeq{env.seq(becky)}; env(offer(becky, BUX(3), USD(3)), txflags(tfPassive)); env.close(); // becky keeps the offers, but removes the trustline. env(pay(becky, gw, USD(5))); env.trust(USD(0), becky); env.close(); BEAST_EXPECT(!trustLineExists(env, gw, becky, USD.currency)); BEAST_EXPECT(isOffer(env, becky, MUSO(2), USD(2))); BEAST_EXPECT(isOffer(env, becky, BUX(3), USD(3))); // Delete gw's account. { // The ledger sequence needs to far enough ahead of the account // sequence before the account can be deleted. int const delta = [&env, &gw, openLedgerSeq = env.current()->seq()]() -> int { std::uint32_t const gwSeq{env.seq(gw)}; if (gwSeq + 255 > openLedgerSeq) return gwSeq - openLedgerSeq + 255; return 0; }(); for (int i = 0; i < delta; ++i) env.close(); // Account deletion has a high fee. Account for that. env(acctdelete(gw, alice), fee(drops(env.current()->fees().increment))); env.close(); // Verify that gw's account root is gone from the ledger. BEAST_EXPECT(!env.closed()->exists(keylet::account(gw.id()))); } // alice crosses becky's first offer. The offer create fails because // the USD issuer is not in the ledger. env(offer(alice, USD(2), MUSO(2)), ter(tecNO_ISSUER)); env.close(); env.require(offers(alice, 0)); BEAST_EXPECT(isOffer(env, becky, MUSO(2), USD(2))); BEAST_EXPECT(isOffer(env, becky, BUX(3), USD(3))); // alice crosses becky's second offer. Again, the offer create fails // because the USD issuer is not in the ledger. env(offer(alice, USD(3), BUX(3)), ter(tecNO_ISSUER)); env.require(offers(alice, 0)); BEAST_EXPECT(isOffer(env, becky, MUSO(2), USD(2))); BEAST_EXPECT(isOffer(env, becky, BUX(3), USD(3))); // Cancel becky's BUX -> USD offer so we can try auto-bridging. env(offer_cancel(becky, beckyBuxUsdSeq)); env.close(); BEAST_EXPECT(!isOffer(env, becky, BUX(3), USD(3))); // alice creates an offer that can be auto-bridged with becky's // remaining offer. env.trust(BUX(1000), carol); env(pay(alice, carol, BUX(2))); env(offer(alice, BUX(2), MUSO(2))); env.close(); // carol attempts the auto-bridge. Again, the offer create fails // because the USD issuer is not in the ledger. env(offer(carol, USD(2), BUX(2)), ter(tecNO_ISSUER)); env.close(); BEAST_EXPECT(isOffer(env, alice, BUX(2), MUSO(2))); BEAST_EXPECT(isOffer(env, becky, MUSO(2), USD(2))); } void testTickSize(FeatureBitset features) { testcase("Tick Size"); using namespace jtx; // Try to set tick size out of range { Env env{*this, features}; auto const gw = Account{"gateway"}; env.fund(MUSO(10000), gw); auto txn = noop(gw); txn[sfTickSize.fieldName] = Quality::minTickSize - 1; env(txn, ter(temBAD_TICK_SIZE)); txn[sfTickSize.fieldName] = Quality::minTickSize; env(txn); BEAST_EXPECT((*env.le(gw))[sfTickSize] == Quality::minTickSize); txn = noop(gw); txn[sfTickSize.fieldName] = Quality::maxTickSize; env(txn); BEAST_EXPECT(!env.le(gw)->isFieldPresent(sfTickSize)); txn = noop(gw); txn[sfTickSize.fieldName] = Quality::maxTickSize - 1; env(txn); BEAST_EXPECT((*env.le(gw))[sfTickSize] == Quality::maxTickSize - 1); txn = noop(gw); txn[sfTickSize.fieldName] = Quality::maxTickSize + 1; env(txn, ter(temBAD_TICK_SIZE)); txn[sfTickSize.fieldName] = 0; env(txn); BEAST_EXPECT(!env.le(gw)->isFieldPresent(sfTickSize)); } Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const XTS = gw["XTS"]; auto const XXX = gw["XXX"]; env.fund(MUSO(10000), gw, alice); { // Gateway sets its tick size to 5 auto txn = noop(gw); txn[sfTickSize.fieldName] = 5; env(txn); BEAST_EXPECT((*env.le(gw))[sfTickSize] == 5); } env(trust(alice, XTS(1000))); env(trust(alice, XXX(1000))); env(pay(gw, alice, alice["XTS"](100))); env(pay(gw, alice, alice["XXX"](100))); env(offer(alice, XTS(10), XXX(30))); env(offer(alice, XTS(30), XXX(10))); env(offer(alice, XTS(10), XXX(30)), json(jss::Flags, tfSell)); env(offer(alice, XTS(30), XXX(10)), json(jss::Flags, tfSell)); std::map<std::uint32_t, std::pair<STAmount, STAmount>> offers; forEachItem( *env.current(), alice, [&](std::shared_ptr<SLE const> const& sle) { if (sle->getType() == ltOFFER) offers.emplace( (*sle)[sfSequence], std::make_pair( (*sle)[sfTakerPays], (*sle)[sfTakerGets])); }); // first offer auto it = offers.begin(); BEAST_EXPECT(it != offers.end()); BEAST_EXPECT( it->second.first == XTS(10) && it->second.second < XXX(30) && it->second.second > XXX(29.9994)); // second offer ++it; BEAST_EXPECT(it != offers.end()); BEAST_EXPECT( it->second.first == XTS(30) && it->second.second == XXX(10)); // third offer ++it; BEAST_EXPECT(it != offers.end()); BEAST_EXPECT( it->second.first == XTS(10.0002) && it->second.second == XXX(30)); // fourth offer // exact TakerPays is XTS(1/.033333) ++it; BEAST_EXPECT(it != offers.end()); BEAST_EXPECT( it->second.first == XTS(30) && it->second.second == XXX(10)); BEAST_EXPECT(++it == offers.end()); } // Helper function that returns offers on an account sorted by sequence. static std::vector<std::shared_ptr<SLE const>> sortedOffersOnAccount(jtx::Env& env, jtx::Account const& acct) { std::vector<std::shared_ptr<SLE const>> offers{ offersOnAccount(env, acct)}; std::sort( offers.begin(), offers.end(), [](std::shared_ptr<SLE const> const& rhs, std::shared_ptr<SLE const> const& lhs) { return (*rhs)[sfSequence] < (*lhs)[sfSequence]; }); return offers; } void testTicketOffer(FeatureBitset features) { testcase("Ticket Offers"); using namespace jtx; // Two goals for this test. // // o Verify that offers can be created using tickets. // // o Show that offers in the _same_ order book remain in // chronological order regardless of sequence/ticket numbers. Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const bob = Account{"bob"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice, bob); env.close(); env(trust(alice, USD(1000))); env(trust(bob, USD(1000))); env.close(); env(pay(gw, alice, USD(200))); env.close(); // Create four offers from the same account with identical quality // so they go in the same order book. Each offer goes in a different // ledger so the chronology is clear. std::uint32_t const offerId_0{env.seq(alice)}; env(offer(alice, MUSO(50), USD(50))); env.close(); // Create two tickets. std::uint32_t const ticketSeq{env.seq(alice) + 1}; env(ticket::create(alice, 2)); env.close(); // Create another sequence-based offer. std::uint32_t const offerId_1{env.seq(alice)}; BEAST_EXPECT(offerId_1 == offerId_0 + 4); env(offer(alice, MUSO(50), USD(50))); env.close(); // Create two ticket based offers in reverse order. std::uint32_t const offerId_2{ticketSeq + 1}; env(offer(alice, MUSO(50), USD(50)), ticket::use(offerId_2)); env.close(); // Create the last offer. std::uint32_t const offerId_3{ticketSeq}; env(offer(alice, MUSO(50), USD(50)), ticket::use(offerId_3)); env.close(); // Verify that all of alice's offers are present. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 4); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerId_0); BEAST_EXPECT(offers[1]->getFieldU32(sfSequence) == offerId_3); BEAST_EXPECT(offers[2]->getFieldU32(sfSequence) == offerId_2); BEAST_EXPECT(offers[3]->getFieldU32(sfSequence) == offerId_1); env.require(balance(alice, USD(200))); env.require(owners(alice, 5)); } // Cross alice's first offer. env(offer(bob, USD(50), MUSO(50))); env.close(); // Verify that the first offer alice created was consumed. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 3); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerId_3); BEAST_EXPECT(offers[1]->getFieldU32(sfSequence) == offerId_2); BEAST_EXPECT(offers[2]->getFieldU32(sfSequence) == offerId_1); } // Cross alice's second offer. env(offer(bob, USD(50), MUSO(50))); env.close(); // Verify that the second offer alice created was consumed. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 2); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerId_3); BEAST_EXPECT(offers[1]->getFieldU32(sfSequence) == offerId_2); } // Cross alice's third offer. env(offer(bob, USD(50), MUSO(50))); env.close(); // Verify that the third offer alice created was consumed. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 1); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerId_3); } // Cross alice's last offer. env(offer(bob, USD(50), MUSO(50))); env.close(); // Verify that the third offer alice created was consumed. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 0); } env.require(balance(alice, USD(0))); env.require(owners(alice, 1)); env.require(balance(bob, USD(200))); env.require(owners(bob, 1)); } void testTicketCancelOffer(FeatureBitset features) { testcase("Ticket Cancel Offers"); using namespace jtx; // Verify that offers created with or without tickets can be canceled // by transactions with or without tickets. Env env{*this, features}; auto const gw = Account{"gateway"}; auto const alice = Account{"alice"}; auto const USD = gw["USD"]; env.fund(MUSO(10000), gw, alice); env.close(); env(trust(alice, USD(1000))); env.close(); env.require(owners(alice, 1), tickets(alice, 0)); env(pay(gw, alice, USD(200))); env.close(); // Create the first of four offers using a sequence. std::uint32_t const offerSeqId_0{env.seq(alice)}; env(offer(alice, MUSO(50), USD(50))); env.close(); env.require(owners(alice, 2), tickets(alice, 0)); // Create four tickets. std::uint32_t const ticketSeq{env.seq(alice) + 1}; env(ticket::create(alice, 4)); env.close(); env.require(owners(alice, 6), tickets(alice, 4)); // Create the second (also sequence-based) offer. std::uint32_t const offerSeqId_1{env.seq(alice)}; BEAST_EXPECT(offerSeqId_1 == offerSeqId_0 + 6); env(offer(alice, MUSO(50), USD(50))); env.close(); // Create the third (ticket-based) offer. std::uint32_t const offerTixId_0{ticketSeq + 1}; env(offer(alice, MUSO(50), USD(50)), ticket::use(offerTixId_0)); env.close(); // Create the last offer. std::uint32_t const offerTixId_1{ticketSeq}; env(offer(alice, MUSO(50), USD(50)), ticket::use(offerTixId_1)); env.close(); // Verify that all of alice's offers are present. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 4); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerSeqId_0); BEAST_EXPECT(offers[1]->getFieldU32(sfSequence) == offerTixId_1); BEAST_EXPECT(offers[2]->getFieldU32(sfSequence) == offerTixId_0); BEAST_EXPECT(offers[3]->getFieldU32(sfSequence) == offerSeqId_1); env.require(balance(alice, USD(200))); env.require(owners(alice, 7)); } // Use a ticket to cancel an offer created with a sequence. env(offer_cancel(alice, offerSeqId_0), ticket::use(ticketSeq + 2)); env.close(); // Verify that offerSeqId_0 was canceled. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 3); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerTixId_1); BEAST_EXPECT(offers[1]->getFieldU32(sfSequence) == offerTixId_0); BEAST_EXPECT(offers[2]->getFieldU32(sfSequence) == offerSeqId_1); } // Use a ticket to cancel an offer created with a ticket. env(offer_cancel(alice, offerTixId_0), ticket::use(ticketSeq + 3)); env.close(); // Verify that offerTixId_0 was canceled. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 2); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerTixId_1); BEAST_EXPECT(offers[1]->getFieldU32(sfSequence) == offerSeqId_1); } // All of alice's tickets should now be used up. env.require(owners(alice, 3), tickets(alice, 0)); // Use a sequence to cancel an offer created with a ticket. env(offer_cancel(alice, offerTixId_1)); env.close(); // Verify that offerTixId_1 was canceled. { auto offers = sortedOffersOnAccount(env, alice); BEAST_EXPECT(offers.size() == 1); BEAST_EXPECT(offers[0]->getFieldU32(sfSequence) == offerSeqId_1); } // Use a sequence to cancel an offer created with a sequence. env(offer_cancel(alice, offerSeqId_1)); env.close(); // Verify that offerSeqId_1 was canceled. // All of alice's tickets should now be used up. env.require(owners(alice, 1), tickets(alice, 0), offers(alice, 0)); } void testFalseAssert() { // An assert was falsely triggering when computing rates for offers. // This unit test would trigger that assert (which has been removed). testcase("false assert"); using namespace jtx; Env env{*this}; auto const alice = Account("alice"); auto const USD = alice["USD"]; env.fund(MUSO(10000), alice); env.close(); env(offer(alice, MUSO(100000000000), USD(100000000))); pass(); } void testAll(FeatureBitset features) { testCanceledOffer(features); testRmFundedOffer(features); testTinyPayment(features); testMUSOTinyPayment(features); testEnforceNoMUSO(features); testInsufficientReserve(features); testFillModes(features); testMalformed(features); testExpiration(features); testUnfundedCross(features); testSelfCross(false, features); testSelfCross(true, features); testNegativeBalance(features); testOfferCrossWithMUSO(true, features); testOfferCrossWithMUSO(false, features); testOfferCrossWithLimitOverride(features); testOfferAcceptThenCancel(features); testOfferCancelPastAndFuture(features); testCurrencyConversionEntire(features); testCurrencyConversionIntoDebt(features); testCurrencyConversionInParts(features); testCrossCurrencyStartMUSO(features); testCrossCurrencyEndMUSO(features); testCrossCurrencyBridged(features); testBridgedSecondLegDry(features); testOfferFeesConsumeFunds(features); testOfferCreateThenCross(features); testSellFlagBasic(features); testSellFlagExceedLimit(features); testGatewayCrossCurrency(features); testPartialCross(features); testMUSODirectCross(features); testDirectCross(features); testBridgedCross(features); testSellOffer(features); testSellWithFillOrKill(features); testTransferRateOffer(features); testSelfCrossOffer(features); testSelfIssueOffer(features); testBadPathAssert(features); testDirectToDirectPath(features); testSelfCrossLowQualityOffer(features); testOfferInScaling(features); testOfferInScalingWithXferRate(features); testOfferThresholdWithReducedFunds(features); testTinyOffer(features); testSelfPayXferFeeOffer(features); testSelfPayUnlimitedFunds(features); testRequireAuth(features); testMissingAuth(features); testRCSmoketest(features); testSelfAuth(features); testDeletedOfferIssuer(features); testTickSize(features); testTicketOffer(features); testTicketCancelOffer(features); } void run() override { using namespace jtx; FeatureBitset const all{supported_amendments()}; FeatureBitset const flowCross{featureFlowCross}; FeatureBitset const takerDryOffer{fixTakerDryOfferRemoval}; testAll(all - takerDryOffer); testAll(all - flowCross - takerDryOffer); testAll(all - flowCross); testAll(all); testFalseAssert(); } }; class Offer_manual_test : public Offer_test { void run() override { using namespace jtx; FeatureBitset const all{supported_amendments()}; FeatureBitset const flowCross{featureFlowCross}; FeatureBitset const f1513{fix1513}; FeatureBitset const takerDryOffer{fixTakerDryOfferRemoval}; testAll(all - flowCross - f1513); testAll(all - flowCross); testAll(all - f1513); testAll(all); testAll(all - flowCross - takerDryOffer); } }; BEAST_DEFINE_TESTSUITE_PRIO(Offer, tx, MUSO, 4); BEAST_DEFINE_TESTSUITE_MANUAL_PRIO(Offer_manual, tx, MUSO, 20); } // namespace test } // namespace MUSO
34.369119
82
0.526163
MUSOChain
c8c5408946a92390a73c6ea0dbce72ac18ab69f5
5,706
cpp
C++
src/solvers/flattening/boolbv_width.cpp
jeannielynnmoulton/cbmc
1d4af6d88ec960677170049a8a89a9166b952996
[ "BSD-4-Clause" ]
null
null
null
src/solvers/flattening/boolbv_width.cpp
jeannielynnmoulton/cbmc
1d4af6d88ec960677170049a8a89a9166b952996
[ "BSD-4-Clause" ]
1
2019-02-05T16:18:25.000Z
2019-02-05T16:18:25.000Z
src/solvers/flattening/boolbv_width.cpp
jeannielynnmoulton/cbmc
1d4af6d88ec960677170049a8a89a9166b952996
[ "BSD-4-Clause" ]
null
null
null
/*******************************************************************\ Module: Author: Daniel Kroening, [email protected] \*******************************************************************/ #include "boolbv_width.h" #include <algorithm> #include <util/arith_tools.h> #include <util/invariant.h> #include <util/std_types.h> boolbv_widtht::boolbv_widtht(const namespacet &_ns):ns(_ns) { } boolbv_widtht::~boolbv_widtht() { } const boolbv_widtht::entryt &boolbv_widtht::get_entry(const typet &type) const { // check cache first std::pair<cachet::iterator, bool> cache_result= cache.insert(std::pair<typet, entryt>(type, entryt())); entryt &entry=cache_result.first->second; if(!cache_result.second) // found! return entry; entry.total_width=0; const irep_idt type_id=type.id(); if(type_id==ID_struct) { const struct_typet::componentst &components= to_struct_type(type).components(); std::size_t offset=0; entry.members.resize(components.size()); for(std::size_t i=0; i<entry.members.size(); i++) { std::size_t sub_width=operator()(components[i].type()); entry.members[i].offset=offset; entry.members[i].width=sub_width; offset+=sub_width; } entry.total_width=offset; } else if(type_id==ID_union) { const union_typet::componentst &components= to_union_type(type).components(); entry.members.resize(components.size()); std::size_t max_width=0; for(std::size_t i=0; i<entry.members.size(); i++) { std::size_t sub_width=operator()(components[i].type()); entry.members[i].width=sub_width; max_width=std::max(max_width, sub_width); } entry.total_width=max_width; } else if(type_id==ID_bool) entry.total_width=1; else if(type_id==ID_c_bool) { entry.total_width=to_c_bool_type(type).get_width(); assert(entry.total_width!=0); } else if(type_id==ID_signedbv) { entry.total_width=to_signedbv_type(type).get_width(); assert(entry.total_width!=0); } else if(type_id==ID_unsignedbv) { entry.total_width=to_unsignedbv_type(type).get_width(); assert(entry.total_width!=0); } else if(type_id==ID_floatbv) { entry.total_width=to_floatbv_type(type).get_width(); assert(entry.total_width!=0); } else if(type_id==ID_fixedbv) { entry.total_width=to_fixedbv_type(type).get_width(); assert(entry.total_width!=0); } else if(type_id==ID_bv) { entry.total_width=to_bv_type(type).get_width(); assert(entry.total_width!=0); } else if(type_id==ID_verilog_signedbv || type_id==ID_verilog_unsignedbv) { // we encode with two bits entry.total_width=type.get_unsigned_int(ID_width)*2; assert(entry.total_width!=0); } else if(type_id==ID_range) { mp_integer from=string2integer(type.get_string(ID_from)), to=string2integer(type.get_string(ID_to)); mp_integer size=to-from+1; if(size>=1) { entry.total_width=integer2unsigned(address_bits(size)); assert(entry.total_width!=0); } } else if(type_id==ID_array) { const array_typet &array_type=to_array_type(type); std::size_t sub_width=operator()(array_type.subtype()); mp_integer array_size; if(to_integer(array_type.size(), array_size)) { // we can still use the theory of arrays for this entry.total_width=0; } else { mp_integer total=array_size*sub_width; if(total>(1<<30)) // realistic limit throw "array too large for flattening"; entry.total_width=integer2unsigned(total); } } else if(type_id==ID_vector) { const vector_typet &vector_type=to_vector_type(type); std::size_t sub_width=operator()(vector_type.subtype()); mp_integer vector_size; if(to_integer(vector_type.size(), vector_size)) { // we can still use the theory of arrays for this entry.total_width=0; } else { mp_integer total=vector_size*sub_width; if(total>(1<<30)) // realistic limit throw "vector too large for flattening"; entry.total_width=integer2unsigned(vector_size*sub_width); } } else if(type_id==ID_complex) { std::size_t sub_width=operator()(type.subtype()); entry.total_width=integer2unsigned(2*sub_width); } else if(type_id==ID_code) { } else if(type_id==ID_enumeration) { // get number of necessary bits std::size_t size=to_enumeration_type(type).elements().size(); entry.total_width=integer2unsigned(address_bits(size)); assert(entry.total_width!=0); } else if(type_id==ID_c_enum) { // these have a subtype entry.total_width=type.subtype().get_unsigned_int(ID_width); assert(entry.total_width!=0); } else if(type_id==ID_incomplete_c_enum) { // no width } else if(type_id==ID_pointer) entry.total_width = type_checked_cast<pointer_typet>(type).get_width(); else if(type_id==ID_symbol) entry=get_entry(ns.follow(type)); else if(type_id==ID_struct_tag) entry=get_entry(ns.follow_tag(to_struct_tag_type(type))); else if(type_id==ID_union_tag) entry=get_entry(ns.follow_tag(to_union_tag_type(type))); else if(type_id==ID_c_enum_tag) entry=get_entry(ns.follow_tag(to_c_enum_tag_type(type))); else if(type_id==ID_c_bit_field) { entry.total_width=to_c_bit_field_type(type).get_width(); } else if(type_id==ID_string) entry.total_width=32; return entry; } const boolbv_widtht::membert &boolbv_widtht::get_member( const struct_typet &type, const irep_idt &member) const { std::size_t component_number=type.component_number(member); return get_entry(type).members[component_number]; }
25.473214
78
0.670873
jeannielynnmoulton
c8c72b59c99430d575acfc22f8f6f8c54f74faae
2,245
cpp
C++
qrtest/unitTests/pluginsTests/robotsTests/tcpRobotSimulator/src/tcpRobotSimulator.cpp
ladaegorova18/trik-studio
f8d9ce50301fd93c948ac774e85c0e6bfff820bc
[ "Apache-2.0" ]
17
2019-06-04T06:22:47.000Z
2022-02-11T18:27:25.000Z
qrtest/unitTests/pluginsTests/robotsTests/tcpRobotSimulator/src/tcpRobotSimulator.cpp
ladaegorova18/trik-studio
f8d9ce50301fd93c948ac774e85c0e6bfff820bc
[ "Apache-2.0" ]
1,248
2019-02-21T19:32:09.000Z
2022-03-29T16:50:04.000Z
qrtest/unitTests/pluginsTests/robotsTests/tcpRobotSimulator/src/tcpRobotSimulator.cpp
khodand/trik-studio
3d2de6809d38b621433c7ccb1cd98da8868d022d
[ "Apache-2.0" ]
17
2019-02-12T07:58:23.000Z
2022-03-10T11:39:21.000Z
/* Copyright 2016 CyberTech Labs Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "tcpRobotSimulator/tcpRobotSimulator.h" #include <QtCore/QThread> #include <QtCore/QMetaObject> #include "connection.h" using namespace tcpRobotSimulator; TcpRobotSimulator::TcpRobotSimulator(int port) { if(!listen(QHostAddress::LocalHost, port)) { qErrnoWarning(errno, "Failed to open TCP port"); } } TcpRobotSimulator::~TcpRobotSimulator() { if (mConnectionThread) { mConnectionThread->quit(); mConnectionThread->wait(); mConnectionThread.reset(); } } void TcpRobotSimulator::incomingConnection(qintptr socketDescriptor) { mConnection = new Connection(Protocol::messageLength, Heartbeat::use, mConfigVersion); mConnectionThread.reset(new QThread()); mConnection->moveToThread(mConnectionThread.data()); connect(mConnectionThread.data(), &QThread::finished, mConnection, &QObject::deleteLater); connect(mConnection, &Connection::runProgramRequestReceivedSignal , this, &TcpRobotSimulator::runProgramRequestReceivedSignal, Qt::QueuedConnection); connect(mConnectionThread.data(), &QThread::started , mConnection, [this, socketDescriptor](){ mConnection->init(socketDescriptor); }); mConnectionThread->start(); } bool TcpRobotSimulator::runProgramRequestReceived() const { return mConnection && mConnection->runProgramRequestReceived(); } bool TcpRobotSimulator::configVersionRequestReceived() const { return mConnection && mConnection->configVersionRequestReceived(); } bool TcpRobotSimulator::versionRequestReceived() const { return mConnection && mConnection->versionRequestReceived(); } void TcpRobotSimulator::setConfigVersion(const QString &configVersion) { mConfigVersion = configVersion; }
31.180556
91
0.777283
ladaegorova18
c8cdd02045f1325fc7aac3bd5bf9fd5177f7d191
884
cpp
C++
src/GameStateMachine.cpp
peddrro/JogoAviaoIndividual
5711c37cbfcedb6351a5c74650c6ab7ac2856c2b
[ "MIT" ]
null
null
null
src/GameStateMachine.cpp
peddrro/JogoAviaoIndividual
5711c37cbfcedb6351a5c74650c6ab7ac2856c2b
[ "MIT" ]
null
null
null
src/GameStateMachine.cpp
peddrro/JogoAviaoIndividual
5711c37cbfcedb6351a5c74650c6ab7ac2856c2b
[ "MIT" ]
null
null
null
#include "GameStateMachine.h" #include <iostream> void GameStateMachine::pushState(GameState* pState){ m_gameStates.push_back(pState); m_gameStates.back()->onEnter(); } void GameStateMachine::popState(){ if(!m_gameStates.empty()){ if(m_gameStates.back()->onExit()){ delete m_gameStates.back(); m_gameStates.pop_back(); } } } void GameStateMachine::changeState(GameState* pState){ if(!m_gameStates.empty()){ if(m_gameStates.back()->getStateID() == pState->getStateID()){ return; } if(m_gameStates.back()->onExit()){ m_gameStates.pop_back(); } } m_gameStates.push_back(pState); m_gameStates.back()->onEnter(); } void GameStateMachine::update(){ if(!m_gameStates.empty() && m_gameStates.back()->can_update){ m_gameStates.back()->update(); } } void GameStateMachine::render(){ if(!m_gameStates.empty()){ m_gameStates.back()->render(); } }
19.217391
64
0.695701
peddrro
c8cf1f171d40d63928acbf4d9179652cf3203dc4
2,754
cpp
C++
src/model/opengl/Shader.cpp
XantNero/Courseproject-Modelling-road-traffic-
f0aae780935d4ac9ed30d8b50b965813b6a60632
[ "MIT" ]
null
null
null
src/model/opengl/Shader.cpp
XantNero/Courseproject-Modelling-road-traffic-
f0aae780935d4ac9ed30d8b50b965813b6a60632
[ "MIT" ]
null
null
null
src/model/opengl/Shader.cpp
XantNero/Courseproject-Modelling-road-traffic-
f0aae780935d4ac9ed30d8b50b965813b6a60632
[ "MIT" ]
null
null
null
#include "../pch.h" #include "Shader.h" #include "GL/glew.h" #include "debug.h" ShaderProgramSource Shader::ParseShader(const std::string &filePath) { std::ifstream stream(filePath); enum class ShaderType { NONE = -1, VERTEX = 0, FRAGMENT = 1 }; std::stringstream ss[2]; std::string line; ShaderType type = ShaderType::NONE; while (getline(stream, line)) { if (line.find("#shader") != std::string::npos) { if (line.find("vertex") != std::string::npos) { type = ShaderType::VERTEX; } else if (line.find("fragment") != std::string::npos) { type = ShaderType::FRAGMENT; } } else { ss[(int)type] << line << '\n'; } } stream.close(); return {ss[0].str(), ss[1].str()}; } unsigned int Shader::CompileShader(unsigned int type, const std::string &source) { GLCall(unsigned int shader = glCreateShader(type)); const char* src = source.c_str(); GLCall(glShaderSource(shader, 1, &src, 0)); GLCall(glCompileShader(shader)); return shader; } Shader::Shader(const std::string &filePath) : m_Path(filePath) { ShaderProgramSource source = ParseShader(filePath); GLCall(m_RendererID = glCreateProgram()); unsigned int vs = CompileShader(GL_VERTEX_SHADER, source.VertexSource); unsigned int fs = CompileShader(GL_FRAGMENT_SHADER, source.FragmentSource); GLCall(glAttachShader(m_RendererID, vs)); GLCall(glAttachShader(m_RendererID, fs)); GLCall(glLinkProgram(m_RendererID)); GLCall(glValidateProgram(m_RendererID)); GLCall(glDeleteShader(vs)); GLCall(glDeleteShader(fs)); } Shader::~Shader() { GLCall(glDeleteProgram(m_RendererID)); } void Shader::bind() const { GLCall(glUseProgram(m_RendererID)); } void Shader::unbind() const { GLCall(glUseProgram(0)); } void Shader::setUniform4f(const std::string &name, float v0, float v1, float v2, float v3) { int location = getUniformLocation(name); if (location != -1) GLCall(glUniform4f(location, v0, v1, v2, v3)); } int Shader::getUniformLocation(const std::string &name) { if (cache.find(name) != cache.end()) return cache[name]; GLCall(cache[name] = glGetUniformLocation(m_RendererID, name.c_str())); return cache[name]; } void Shader::setUnifromMat4f(const std::string &name, const glm::mat4 &matrix) { int location = getUniformLocation(name); if (location != -1) GLCall(glUniformMatrix4fv(location, 1, GL_FALSE, &matrix[0][0])); } void Shader::setUniform1i(const std::string &name, int v0) { int location = getUniformLocation(name); if (location != -1) GLCall(glUniform1i(location, v0)); }
25.738318
90
0.641612
XantNero
c8cfefbfbf09848cce49abb2792728daa3884618
20,622
cpp
C++
source/Lib/CommonLib/SampleAdaptiveOffset.cpp
lehmann-c/vvenc
c9bc2d015ff944ce029103f0255a62936472bca1
[ "BSD-3-Clause" ]
null
null
null
source/Lib/CommonLib/SampleAdaptiveOffset.cpp
lehmann-c/vvenc
c9bc2d015ff944ce029103f0255a62936472bca1
[ "BSD-3-Clause" ]
null
null
null
source/Lib/CommonLib/SampleAdaptiveOffset.cpp
lehmann-c/vvenc
c9bc2d015ff944ce029103f0255a62936472bca1
[ "BSD-3-Clause" ]
null
null
null
/* ----------------------------------------------------------------------------- The copyright in this software is being made available under the BSD License, included below. No patent rights, trademark rights and/or other Intellectual Property Rights other than the copyrights concerning the Software are granted under this license. For any license concerning other Intellectual Property rights than the software, especially patent licenses, a separate Agreement needs to be closed. For more information please contact: Fraunhofer Heinrich Hertz Institute Einsteinufer 37 10587 Berlin, Germany www.hhi.fraunhofer.de/vvc [email protected] Copyright (c) 2019-2022, Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Fraunhofer nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------------------------------------- */ /** \file SampleAdaptiveOffset.cpp \brief sample adaptive offset class */ #include "SampleAdaptiveOffset.h" #include "UnitTools.h" #include "UnitPartitioner.h" #include "CodingStructure.h" #include "dtrace_codingstruct.h" #include "dtrace_buffer.h" #include <string.h> #include <stdlib.h> #include <math.h> //! \ingroup CommonLib //! \{ namespace vvenc { void offsetBlock_core(const int channelBitDepth, const ClpRng& clpRng, int typeIdx, int* offset, int startIdx, const Pel* srcBlk, Pel* resBlk, ptrdiff_t srcStride, ptrdiff_t resStride, int width, int height, uint8_t availMask, std::vector<int8_t> &signLineBuf1, std::vector<int8_t> &signLineBuf2) { int x, y, startX, startY, endX, endY, edgeType; int firstLineStartX, firstLineEndX, lastLineStartX, lastLineEndX; int8_t signLeft, signRight, signDown; const Pel* srcLine = srcBlk; Pel* resLine = resBlk; switch (typeIdx) { case SAO_TYPE_EO_0: { offset += 2; startX = availMask&LeftAvail ? 0 : 1; endX = availMask&RightAvail ? width : (width - 1); for (y = 0; y < height; y++) { signLeft = (int8_t)sgn(srcLine[startX] - srcLine[startX - 1]); for (x = startX; x < endX; x++) { signRight = (int8_t)sgn(srcLine[x] - srcLine[x + 1]); edgeType = signRight + signLeft; signLeft = -signRight; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); } srcLine += srcStride; resLine += resStride; } } break; case SAO_TYPE_EO_90: { offset += 2; int8_t *signUpLine = &signLineBuf1[0]; startY = availMask&AboveAvail ? 0 : 1; endY = availMask&BelowAvail ? height : height - 1; if (!(availMask&AboveAvail)) { srcLine += srcStride; resLine += resStride; } const Pel* srcLineAbove = srcLine - srcStride; for (x = 0; x < width; x++) { signUpLine[x] = (int8_t)sgn(srcLine[x] - srcLineAbove[x]); } const Pel* srcLineBelow; for (y = startY; y < endY; y++) { srcLineBelow = srcLine + srcStride; for (x = 0; x < width; x++) { signDown = (int8_t)sgn(srcLine[x] - srcLineBelow[x]); edgeType = signDown + signUpLine[x]; signUpLine[x] = -signDown; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); } srcLine += srcStride; resLine += resStride; } } break; case SAO_TYPE_EO_135: { offset += 2; int8_t *signUpLine, *signDownLine, *signTmpLine; signUpLine = &signLineBuf1[0]; signDownLine = &signLineBuf2[0]; startX = availMask&LeftAvail ? 0 : 1; endX = availMask&RightAvail ? width : (width - 1); //prepare 2nd line's upper sign const Pel* srcLineBelow = srcLine + srcStride; for (x = startX; x < endX + 1; x++) { signUpLine[x] = (int8_t)sgn(srcLineBelow[x] - srcLine[x - 1]); } //1st line const Pel* srcLineAbove = srcLine - srcStride; firstLineStartX = availMask&AboveLeftAvail ? 0 : 1; firstLineEndX = availMask&AboveAvail ? endX : 1; for (x = firstLineStartX; x < firstLineEndX; x++) { edgeType = sgn(srcLine[x] - srcLineAbove[x - 1]) - signUpLine[x + 1]; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); } srcLine += srcStride; resLine += resStride; //middle lines for (y = 1; y < height - 1; y++) { srcLineBelow = srcLine + srcStride; for (x = startX; x < endX; x++) { signDown = (int8_t)sgn(srcLine[x] - srcLineBelow[x + 1]); edgeType = signDown + signUpLine[x]; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); signDownLine[x + 1] = -signDown; } signDownLine[startX] = (int8_t)sgn(srcLineBelow[startX] - srcLine[startX - 1]); signTmpLine = signUpLine; signUpLine = signDownLine; signDownLine = signTmpLine; srcLine += srcStride; resLine += resStride; } //last line srcLineBelow = srcLine + srcStride; lastLineStartX = availMask&BelowAvail ? startX : (width - 1); lastLineEndX = availMask&BelowRightAvail ? width : (width - 1); for (x = lastLineStartX; x < lastLineEndX; x++) { edgeType = sgn(srcLine[x] - srcLineBelow[x + 1]) + signUpLine[x]; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); } } break; case SAO_TYPE_EO_45: { offset += 2; int8_t *signUpLine = &signLineBuf1[1]; startX = availMask&LeftAvail ? 0 : 1; endX = availMask&RightAvail ? width : (width - 1); //prepare 2nd line upper sign const Pel* srcLineBelow = srcLine + srcStride; for (x = startX - 1; x < endX; x++) { signUpLine[x] = (int8_t)sgn(srcLineBelow[x] - srcLine[x + 1]); } //first line const Pel* srcLineAbove = srcLine - srcStride; firstLineStartX = availMask&AboveAvail ? startX : (width - 1); firstLineEndX = availMask&AboveRightAvail ? width : (width - 1); for (x = firstLineStartX; x < firstLineEndX; x++) { edgeType = sgn(srcLine[x] - srcLineAbove[x + 1]) - signUpLine[x - 1]; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); } srcLine += srcStride; resLine += resStride; //middle lines for (y = 1; y < height - 1; y++) { srcLineBelow = srcLine + srcStride; for (x = startX; x < endX; x++) { signDown = (int8_t)sgn(srcLine[x] - srcLineBelow[x - 1]); edgeType = signDown + signUpLine[x]; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); signUpLine[x - 1] = -signDown; } signUpLine[endX - 1] = (int8_t)sgn(srcLineBelow[endX - 1] - srcLine[endX]); srcLine += srcStride; resLine += resStride; } //last line srcLineBelow = srcLine + srcStride; lastLineStartX = availMask&BelowLeftAvail ? 0 : 1; lastLineEndX = availMask&BelowAvail ? endX : 1; for (x = lastLineStartX; x < lastLineEndX; x++) { edgeType = sgn(srcLine[x] - srcLineBelow[x - 1]) + signUpLine[x]; resLine[x] = ClipPel<int>(srcLine[x] + offset[edgeType], clpRng); } } break; case SAO_TYPE_BO: { const int shiftBits = channelBitDepth - NUM_SAO_BO_CLASSES_LOG2; for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { resLine[x] = ClipPel<int>(srcLine[x] + offset[srcLine[x] >> shiftBits], clpRng); } srcLine += srcStride; resLine += resStride; } } break; default: { THROW("Not a supported SAO types\n"); } } } void SAOOffset::reset() { modeIdc = SAO_MODE_OFF; typeIdc = -1; typeAuxInfo = -1; ::memset(offset, 0, sizeof(int)* MAX_NUM_SAO_CLASSES); } void SAOBlkParam::reset() { for(int compIdx = 0; compIdx < MAX_NUM_COMP; compIdx++) { SAOOffsets[compIdx].reset(); } } SampleAdaptiveOffset::SampleAdaptiveOffset() { } SampleAdaptiveOffset::~SampleAdaptiveOffset() { m_signLineBuf1.clear(); m_signLineBuf2.clear(); } void SampleAdaptiveOffset::init( ChromaFormat format, uint32_t maxCUWidth, uint32_t maxCUHeight, uint32_t lumaBitShift, uint32_t chromaBitShift ) { offsetBlock = offsetBlock_core; #if ENABLE_SIMD_OPT_SAO && defined( TARGET_SIMD_X86 ) initSampleAdaptiveOffsetX86(); #endif //bit-depth related for(int compIdx = 0; compIdx < MAX_NUM_COMP; compIdx++) { m_offsetStepLog2 [compIdx] = isLuma(ComponentID(compIdx))? lumaBitShift : chromaBitShift; } m_numberOfComponents = getNumberValidComponents(format); size_t lineBufferSize = std::max( maxCUWidth, maxCUHeight ) + 1; if( m_signLineBuf1.size() < lineBufferSize ) { m_signLineBuf1.resize( lineBufferSize ); m_signLineBuf2.resize( lineBufferSize ); } } void SampleAdaptiveOffset::invertQuantOffsets(ComponentID compIdx, int typeIdc, int typeAuxInfo, int* dstOffsets, int* srcOffsets) { int codedOffset[MAX_NUM_SAO_CLASSES]; ::memcpy(codedOffset, srcOffsets, sizeof(int)*MAX_NUM_SAO_CLASSES); ::memset(dstOffsets, 0, sizeof(int)*MAX_NUM_SAO_CLASSES); if(typeIdc == SAO_TYPE_START_BO) { for(int i=0; i< 4; i++) { dstOffsets[(typeAuxInfo+ i)%NUM_SAO_BO_CLASSES] = codedOffset[(typeAuxInfo+ i)%NUM_SAO_BO_CLASSES]*(1<<m_offsetStepLog2[compIdx]); } } else //EO { for(int i=0; i< NUM_SAO_EO_CLASSES; i++) { dstOffsets[i] = codedOffset[i] *(1<<m_offsetStepLog2[compIdx]); } CHECK(dstOffsets[SAO_CLASS_EO_PLAIN] != 0, "EO offset is not '0'"); //keep EO plain offset as zero } } int SampleAdaptiveOffset::getMergeList(CodingStructure& cs, int ctuRsAddr, SAOBlkParam* blkParams, SAOBlkParam* mergeList[NUM_SAO_MERGE_TYPES]) { const PreCalcValues& pcv = *cs.pcv; int ctuX = ctuRsAddr % pcv.widthInCtus; int ctuY = ctuRsAddr / pcv.widthInCtus; const CodingUnit& cu = *cs.getCU(Position(ctuX*pcv.maxCUSize, ctuY*pcv.maxCUSize), CH_L, TREE_D); int mergedCTUPos; int numValidMergeCandidates = 0; for(int mergeType=0; mergeType< NUM_SAO_MERGE_TYPES; mergeType++) { SAOBlkParam* mergeCandidate = NULL; switch(mergeType) { case SAO_MERGE_ABOVE: { if(ctuY > 0) { mergedCTUPos = ctuRsAddr- pcv.widthInCtus; if(cs.getCURestricted(Position(ctuX*pcv.maxCUSize, (ctuY-1)*pcv.maxCUSize), cu, cu.chType)) { mergeCandidate = &(blkParams[mergedCTUPos]); } } } break; case SAO_MERGE_LEFT: { if(ctuX > 0) { mergedCTUPos = ctuRsAddr- 1; if(cs.getCURestricted(Position((ctuX-1)*pcv.maxCUSize, ctuY*pcv.maxCUSize), cu, cu.chType)) { mergeCandidate = &(blkParams[mergedCTUPos]); } } } break; default: { THROW("not a supported merge type"); } } mergeList[mergeType]=mergeCandidate; if (mergeCandidate != NULL) { numValidMergeCandidates++; } } return numValidMergeCandidates; } void SampleAdaptiveOffset::reconstructBlkSAOParam(SAOBlkParam& recParam, SAOBlkParam* mergeList[NUM_SAO_MERGE_TYPES]) { const int numberOfComponents = m_numberOfComponents; for(int compIdx = 0; compIdx < numberOfComponents; compIdx++) { const ComponentID component = ComponentID(compIdx); SAOOffset& offsetParam = recParam[component]; if(offsetParam.modeIdc == SAO_MODE_OFF) { continue; } switch(offsetParam.modeIdc) { case SAO_MODE_NEW: { invertQuantOffsets(component, offsetParam.typeIdc, offsetParam.typeAuxInfo, offsetParam.offset, offsetParam.offset); } break; case SAO_MODE_MERGE: { SAOBlkParam* mergeTarget = mergeList[offsetParam.typeIdc]; CHECK(mergeTarget == NULL, "Merge target does not exist"); offsetParam = (*mergeTarget)[component]; } break; default: { THROW("Not a supported mode"); } } } } void SampleAdaptiveOffset::xReconstructBlkSAOParams(CodingStructure& cs, SAOBlkParam* saoBlkParams) { for(uint32_t compIdx = 0; compIdx < MAX_NUM_COMP; compIdx++) { m_picSAOEnabled[compIdx] = false; } const uint32_t numberOfComponents = getNumberValidComponents(cs.pcv->chrFormat); for(int ctuRsAddr=0; ctuRsAddr< cs.pcv->sizeInCtus; ctuRsAddr++) { SAOBlkParam* mergeList[NUM_SAO_MERGE_TYPES] = { NULL }; getMergeList(cs, ctuRsAddr, saoBlkParams, mergeList); reconstructBlkSAOParam(saoBlkParams[ctuRsAddr], mergeList); for(uint32_t compIdx = 0; compIdx < numberOfComponents; compIdx++) { if(saoBlkParams[ctuRsAddr][compIdx].modeIdc != SAO_MODE_OFF) { m_picSAOEnabled[compIdx] = true; } } } } void SampleAdaptiveOffset::offsetCTU( const UnitArea& area, const CPelUnitBuf& src, PelUnitBuf& res, SAOBlkParam& saoblkParam, CodingStructure& cs) { const uint32_t numberOfComponents = getNumberValidComponents( area.chromaFormat ); bool bAllOff=true; for( uint32_t compIdx = 0; compIdx < numberOfComponents; compIdx++) { if (saoblkParam[compIdx].modeIdc != SAO_MODE_OFF) { bAllOff=false; } } if (bAllOff) { return; } uint8_t availMask; //block boundary availability deriveLoopFilterBoundaryAvailibility(cs, area.Y(), availMask); const size_t lineBufferSize = area.Y().width + 1; if (m_signLineBuf1.size() < lineBufferSize) { m_signLineBuf1.resize(lineBufferSize); m_signLineBuf2.resize(lineBufferSize); } for(int compIdx = 0; compIdx < numberOfComponents; compIdx++) { const ComponentID compID = ComponentID(compIdx); const CompArea& compArea = area.block(compID); SAOOffset& ctbOffset = saoblkParam[compIdx]; if(ctbOffset.modeIdc != SAO_MODE_OFF) { int srcStride = src.get(compID).stride; const Pel* srcBlk = src.get(compID).bufAt(compArea); int resStride = res.get(compID).stride; Pel* resBlk = res.get(compID).bufAt(compArea); offsetBlock( cs.sps->bitDepths[toChannelType(compID)], cs.slice->clpRngs[compID], ctbOffset.typeIdc, ctbOffset.offset, ctbOffset.typeAuxInfo , srcBlk, resBlk, srcStride, resStride, compArea.width, compArea.height, availMask , m_signLineBuf1, m_signLineBuf2 ); } } //compIdx } void SampleAdaptiveOffset::SAOProcess( CodingStructure& cs, SAOBlkParam* saoBlkParams ) { CHECK(!saoBlkParams, "No parameters present"); xReconstructBlkSAOParams(cs, saoBlkParams); const uint32_t numberOfComponents = getNumberValidComponents(cs.area.chromaFormat); bool bAllDisabled = true; for (uint32_t compIdx = 0; compIdx < numberOfComponents; compIdx++) { if (m_picSAOEnabled[compIdx]) { bAllDisabled = false; } } if (bAllDisabled) { return; } const PreCalcValues& pcv = *cs.pcv; Picture& pic = *cs.picture; PelUnitBuf recBuf = pic.getRecoBuf(); PelUnitBuf saoBuf = pic.getSaoBuf(); saoBuf.copyFrom( recBuf ); int ctuRsAddr = 0; for( uint32_t yPos = 0; yPos < pcv.lumaHeight; yPos += pcv.maxCUSize ) { const uint32_t height = (yPos + pcv.maxCUSize > pcv.lumaHeight) ? (pcv.lumaHeight - yPos) : pcv.maxCUSize; for( uint32_t xPos = 0; xPos < pcv.lumaWidth; xPos += pcv.maxCUSize ) { const uint32_t width = (xPos + pcv.maxCUSize > pcv.lumaWidth) ? (pcv.lumaWidth - xPos) : pcv.maxCUSize; const UnitArea area( cs.area.chromaFormat, Area(xPos , yPos, width, height) ); offsetCTU( area, saoBuf, recBuf, cs.picture->getSAO()[ctuRsAddr], cs); ctuRsAddr++; } } DTRACE_PIC_COMP(D_REC_CB_LUMA_SAO, cs, cs.getRecoBuf(), COMP_Y); DTRACE_PIC_COMP(D_REC_CB_CHROMA_SAO, cs, cs.getRecoBuf(), COMP_Cb); DTRACE_PIC_COMP(D_REC_CB_CHROMA_SAO, cs, cs.getRecoBuf(), COMP_Cr); } void SampleAdaptiveOffset::deriveLoopFilterBoundaryAvailibility(CodingStructure& cs, const Position& pos, uint8_t& availMask ) const { const int cuSize = cs.pcv->maxCUSize; const CodingUnit* cuCurr = cs.getCU(pos, CH_L, TREE_D); const CodingUnit* cuLeft = cs.getCU(pos.offset(-cuSize, 0), CH_L, TREE_D); const CodingUnit* cuRight = cs.getCU(pos.offset(cuSize, 0), CH_L, TREE_D); const CodingUnit* cuAbove = cs.getCU(pos.offset(0, -cuSize), CH_L, TREE_D); const CodingUnit* cuBelow = cs.getCU(pos.offset(0, cuSize), CH_L, TREE_D); const CodingUnit* cuAboveLeft = cs.getCU(pos.offset(-cuSize, -cuSize), CH_L, TREE_D); const CodingUnit* cuAboveRight = cs.getCU(pos.offset(cuSize, -cuSize), CH_L, TREE_D); const CodingUnit* cuBelowLeft = cs.getCU(pos.offset(-cuSize, cuSize), CH_L, TREE_D); const CodingUnit* cuBelowRight = cs.getCU(pos.offset(cuSize, cuSize), CH_L, TREE_D); availMask = 0; // check cross slice flags if( cs.pps->loopFilterAcrossSlicesEnabled ) { availMask |= (cuLeft != NULL) ? LeftAvail : 0; availMask |= (cuAbove != NULL) ? AboveAvail : 0; availMask |= (cuRight != NULL) ? RightAvail : 0; availMask |= (cuBelow != NULL) ? BelowAvail : 0; availMask |= (cuAboveLeft != NULL) ? AboveLeftAvail : 0; availMask |= (cuBelowRight != NULL) ? BelowRightAvail : 0; availMask |= (cuAboveRight != NULL) ? AboveRightAvail : 0; availMask |= (cuBelowLeft != NULL) ? BelowLeftAvail : 0; } else { availMask |= ((cuLeft != NULL) && CU::isSameSlice(*cuCurr, *cuLeft) ) ? LeftAvail : 0; availMask |= ((cuAbove != NULL) && CU::isSameSlice(*cuCurr, *cuAbove) ) ? AboveAvail : 0; availMask |= ((cuRight != NULL) && CU::isSameSlice(*cuCurr, *cuRight)) ? RightAvail : 0; availMask |= ((cuBelow != NULL) && CU::isSameSlice(*cuCurr, *cuBelow) ) ? BelowAvail : 0; availMask |= ((cuAboveLeft != NULL) && CU::isSameSlice(*cuCurr, *cuAboveLeft)) ? AboveLeftAvail : 0; availMask |= ((cuBelowRight != NULL) && CU::isSameSlice(*cuCurr, *cuBelowRight) ) ? BelowRightAvail : 0; availMask |= ((cuAboveRight != NULL) && CU::isSameSlice(*cuCurr, *cuAboveRight) ) ? AboveRightAvail : 0; availMask |= ( (cuBelowLeft != NULL) && CU::isSameSlice(*cuCurr, *cuBelowLeft) ) ? BelowLeftAvail : 0; } // check cross tile flags if (!cs.pps->loopFilterAcrossTilesEnabled) { uint8_t availMaskTile = 0; availMaskTile |= (availMask&LeftAvail && CU::isSameTile(*cuCurr, *cuLeft)) ? LeftAvail : 0; availMaskTile |= (availMask&AboveAvail && CU::isSameTile(*cuCurr, *cuAbove)) ? AboveAvail : 0; availMaskTile |= (availMask&RightAvail && CU::isSameTile(*cuCurr, *cuRight)) ? RightAvail : 0; availMaskTile |= (availMask&BelowAvail && CU::isSameTile(*cuCurr, *cuBelow)) ? BelowAvail : 0; availMaskTile |= (availMask&AboveLeftAvail && CU::isSameTile(*cuCurr, *cuAboveLeft)) ? AboveLeftAvail : 0; availMaskTile |= (availMask&AboveRightAvail &&CU::isSameTile(*cuCurr, *cuAboveRight)) ? AboveRightAvail : 0; availMaskTile |= (availMask&BelowLeftAvail && CU::isSameTile(*cuCurr, *cuBelowLeft)) ? BelowLeftAvail : 0; availMaskTile |= (availMask&BelowRightAvail && CU::isSameTile(*cuCurr, *cuBelowRight)) ? BelowRightAvail : 0; availMask = availMaskTile; } if (!cs.pps->getSubPicFromCU(*cuCurr).loopFilterAcrossSubPicEnabled) { THROW("no support"); } } } // namespace vvenc //! \}
32.322884
147
0.656289
lehmann-c
c8d1b3137b99e51cd9c3720f0f1d864b1433745e
2,516
cc
C++
elements/ctx/flowstrip.cc
regufo/fastclick
d56d31c722266ea5d0cfd31435e81ca10dda5e69
[ "BSD-3-Clause-Clear" ]
129
2015-10-08T14:38:35.000Z
2022-03-06T14:54:44.000Z
elements/ctx/flowstrip.cc
nic-bench/fastclick
2812f0684050cec07e08f30d643ed121871cf25d
[ "BSD-3-Clause-Clear" ]
241
2016-02-17T16:17:58.000Z
2022-03-15T09:08:33.000Z
elements/ctx/flowstrip.cc
nic-bench/fastclick
2812f0684050cec07e08f30d643ed121871cf25d
[ "BSD-3-Clause-Clear" ]
61
2015-12-17T01:46:58.000Z
2022-02-07T22:25:19.000Z
// -*- mode: c++; c-basic-offset: 4 -*- /* * FlowStrip.{cc,hh} -- element FlowStrips bytes from front of packet * Robert Morris, Eddie Kohler * * Copyright (c) 1999-2000 Massachusetts Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, subject to the conditions * listed in the Click LICENSE file. These conditions include: you must * preserve this copyright notice, and you cannot mention the copyright * holders in advertising related to the Software without their permission. * The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This * notice is a summary of the Click LICENSE file; the license in that file is * legally binding. */ #include <click/config.h> #include <click/args.hh> #include <click/error.hh> #include <click/glue.hh> #include "flowstrip.hh" CLICK_DECLS FlowStrip::FlowStrip() { in_batch_mode = BATCH_MODE_NEEDED; } int FlowStrip::configure(Vector<String> &conf, ErrorHandler *errh) { return Args(conf, this, errh).read_mp("LENGTH", _nbytes).complete(); } PacketBatch * FlowStrip::simple_action_batch(PacketBatch *head) { Packet* current = head->first(); while (current != NULL) { current->pull(_nbytes); current = current->next(); } return head; } void FlowStrip::apply_offset(FlowNode* node, bool invert) { node->level()->add_offset(invert?-_nbytes:_nbytes); FlowNode::NodeIterator it = node->iterator(); FlowNodePtr* child; while ((child = it.next()) != 0) { if (child->ptr && child->is_node()) apply_offset(child->node,invert); } if (node->default_ptr()->ptr && node->default_ptr()->is_node()) apply_offset(node->default_ptr()->node,invert); } FlowNode* FlowStrip::get_table(int,Vector<FlowElement*> context) { context.push_back(this); FlowNode* root = FlowElementVisitor::get_downward_table(this, 0, context); if (root) apply_offset(root, false); return root; } FlowNode* FlowStrip::resolveContext(FlowType t, Vector<FlowElement*> contextStack) { if (contextStack.size() > 1) { FlowNode* n = contextStack[contextStack.size() - 2]->resolveContext(t, contextStack.sub(0,contextStack.size()-1)); if (n) { apply_offset(n, true); return n; } } return FlowElement::resolveContext(t,contextStack); } CLICK_ENDDECLS ELEMENT_REQUIRES(flow) EXPORT_ELEMENT(FlowStrip) ELEMENT_MT_SAFE(FlowStrip)
29.952381
122
0.715024
regufo
c8d24448b15064740b890a0c96071f15603f8fe0
2,868
hpp
C++
include/BGNet/Core/ITimeProvider.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/BGNet/Core/ITimeProvider.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/BGNet/Core/ITimeProvider.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include <stdint.h> #include "beatsaber-hook/shared/utils/byref.hpp" // Completed includes // Begin forward declares // Forward declaring namespace: System::Threading::Tasks namespace System::Threading::Tasks { // Forward declaring type: Task class Task; } // Forward declaring namespace: System::Threading namespace System::Threading { // Forward declaring type: CancellationToken struct CancellationToken; } // Completed forward declares // Type namespace: BGNet.Core namespace BGNet::Core { // Forward declaring type: ITimeProvider class ITimeProvider; } #include "beatsaber-hook/shared/utils/il2cpp-type-check.hpp" NEED_NO_BOX(::BGNet::Core::ITimeProvider); DEFINE_IL2CPP_ARG_TYPE(::BGNet::Core::ITimeProvider*, "BGNet.Core", "ITimeProvider"); // Type namespace: BGNet.Core namespace BGNet::Core { // Size: 0x10 #pragma pack(push, 1) // Autogenerated type: BGNet.Core.ITimeProvider // [TokenAttribute] Offset: FFFFFFFF class ITimeProvider { public: // public System.Int64 GetTimeMs() // Offset: 0xFFFFFFFFFFFFFFFF int64_t GetTimeMs(); // public System.Threading.Tasks.Task DelayMs(System.Int32 millis, System.Threading.CancellationToken cancellationToken) // Offset: 0xFFFFFFFFFFFFFFFF ::System::Threading::Tasks::Task* DelayMs(int millis, ::System::Threading::CancellationToken cancellationToken); }; // BGNet.Core.ITimeProvider #pragma pack(pop) } #include "beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp" // Writing MetadataGetter for method: BGNet::Core::ITimeProvider::GetTimeMs // Il2CppName: GetTimeMs template<> struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<int64_t (BGNet::Core::ITimeProvider::*)()>(&BGNet::Core::ITimeProvider::GetTimeMs)> { static const MethodInfo* get() { return ::il2cpp_utils::FindMethod(classof(BGNet::Core::ITimeProvider*), "GetTimeMs", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{}); } }; // Writing MetadataGetter for method: BGNet::Core::ITimeProvider::DelayMs // Il2CppName: DelayMs template<> struct ::il2cpp_utils::il2cpp_type_check::MetadataGetter<static_cast<::System::Threading::Tasks::Task* (BGNet::Core::ITimeProvider::*)(int, ::System::Threading::CancellationToken)>(&BGNet::Core::ITimeProvider::DelayMs)> { static const MethodInfo* get() { static auto* millis = &::il2cpp_utils::GetClassFromName("System", "Int32")->byval_arg; static auto* cancellationToken = &::il2cpp_utils::GetClassFromName("System.Threading", "CancellationToken")->byval_arg; return ::il2cpp_utils::FindMethod(classof(BGNet::Core::ITimeProvider*), "DelayMs", std::vector<Il2CppClass*>(), ::std::vector<const Il2CppType*>{millis, cancellationToken}); } };
44.123077
221
0.728033
RedBrumbler
c8d2548b672380ae6edc36b1777cd7cb3077121b
20,048
cpp
C++
amr-wind/incflo_advance.cpp
mchurchf/amr-wind
4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f
[ "BSD-3-Clause" ]
null
null
null
amr-wind/incflo_advance.cpp
mchurchf/amr-wind
4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f
[ "BSD-3-Clause" ]
null
null
null
amr-wind/incflo_advance.cpp
mchurchf/amr-wind
4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f
[ "BSD-3-Clause" ]
1
2021-03-11T22:19:05.000Z
2021-03-11T22:19:05.000Z
#include <cmath> #include "amr-wind/incflo.H" #include "amr-wind/core/Physics.H" #include "amr-wind/core/field_ops.H" #include "amr-wind/equation_systems/PDEBase.H" #include "amr-wind/turbulence/TurbulenceModel.H" #include "amr-wind/utilities/console_io.H" #include "amr-wind/utilities/PostProcessing.H" #include "amr-wind/core/field_ops.H" using namespace amrex; void incflo::pre_advance_stage1() { BL_PROFILE("amr-wind::incflo::pre_advance_stage1"); // Compute time step size bool explicit_diffusion = (m_diff_type == DiffusionType::Explicit); ComputeDt(explicit_diffusion); } void incflo::pre_advance_stage2() { BL_PROFILE("amr-wind::incflo::pre_advance_stage2"); for (auto& pp : m_sim.physics()) pp->pre_advance_work(); } /** Advance simulation state by one timestep * * Performs the following actions at a given timestep * - Compute \f$\Delta t\f$ * - Advance all computational fields to new timestate in preparation for time * integration * - Call pre-advance work for all registered physics modules * - For Godunov scheme, advance to new time state * - For MOL scheme, call predictor corrector steps * - Perform any post-advance work * * Much of the heavy-lifting is done by incflo::ApplyPredictor and * incflo::ApplyCorrector. Please refer to the documentation of those methods * for detailed information on the various equations being solved. * * \callgraph */ void incflo::advance() { BL_PROFILE("amr-wind::incflo::Advance"); m_sim.pde_manager().advance_states(); ApplyPredictor(); if (!m_use_godunov) ApplyCorrector(); } // Apply predictor step // // For Godunov, this completes the timestep. For MOL, this is the first part of // the predictor/corrector within a timestep. // // <ol> // <li> Use u = vel_old to compute // // \code{.cpp} // conv_u = - u grad u // conv_r = - div( u rho ) // conv_t = - div( u trac ) // eta_old = visosity at m_time.current_time() // if (m_diff_type == DiffusionType::Explicit) // divtau _old = div( eta ( (grad u) + (grad u)^T ) ) / rho^n // rhs = u + dt * ( conv + divtau_old ) // else // divtau_old = 0.0 // rhs = u + dt * conv // // eta = eta at new_time // \endcode // // <li> Add explicit forcing term i.e. gravity + lagged pressure gradient // // \code{.cpp} // rhs += dt * ( g - grad(p + p0) / rho^nph ) // \endcode // // Note that in order to add the pressure gradient terms divided by rho, // we convert the velocity to momentum before adding and then convert them // back. // // <li> A. If (m_diff_type == DiffusionType::Implicit) // solve implicit diffusion equation for u* // // \code{.cpp} // ( 1 - dt / rho^nph * div ( eta grad ) ) u* = u^n + dt * conv_u // + dt * ( g - grad(p + p0) / // rho^nph ) // \endcode // // B. If (m_diff_type == DiffusionType::Crank-Nicolson) // solve semi-implicit diffusion equation for u* // // \code{.cpp} // ( 1 - (dt/2) / rho^nph * div ( eta_old grad ) ) u* = u^n + // dt * conv_u + (dt/2) / rho * div (eta_old grad) u^n // + dt * ( g - grad(p + p0) / rho^nph ) // \endcode // // <li> Apply projection (see incflo::ApplyProjection) // // Add pressure gradient term back to u*: // // \code{.cpp} // u** = u* + dt * grad p / rho^nph // \endcode // // Solve Poisson equation for phi: // // \code{.cpp} // div( grad(phi) / rho^nph ) = div( u** ) // \endcode // // Update pressure: // // p = phi / dt // // Update velocity, now divergence free // // vel = u** - dt * grad p / rho^nph // </ol> // // It is assumed that the ghost cels of the old data have been filled and // the old and new data are the same in valid region. // /** Apply predictor step * * For Godunov, this completes the timestep. For MOL, this is the first part of * the predictor/corrector within a timestep. * * <ol> * <li> Solve transport equation for momentum and scalars * * \f{align} * \left[1 - \kappa \frac{\Delta t}{\rho^{n+1/2}} \nabla \cdot \left( \mu * \nabla \right)\right] u^{*} &= u^n - \Delta t (u \cdot \nabla) u + (1 - * \kappa) \frac{\Delta t}{\rho^n} \nabla \cdot \left( \mu^{n} \nabla\right) * u^{n} + \frac{\Delta t}{\rho^{n+1/2}} \left( S_u - \nabla(p + p_0)\right) \\ * \f} * * where * \f{align} * \kappa = \begin{cases} * 0 & \text{Explicit} \\ * 0.5 & \text{Crank-Nicholson} \\ * 1 & \text{Implicit} * \end{cases} * \f} * * <li> \ref incflo::ApplyProjection "Apply projection" * </ol> */ void incflo::ApplyPredictor(bool incremental_projection) { BL_PROFILE("amr-wind::incflo::ApplyPredictor"); // We use the new time value for things computed on the "*" state Real new_time = m_time.new_time(); if (m_verbose > 2) PrintMaxValues("before predictor step"); if (m_use_godunov) amr_wind::io::print_mlmg_header("Godunov:"); else amr_wind::io::print_mlmg_header("Predictor:"); auto& icns_fields = icns().fields(); auto& velocity_new = icns_fields.field; auto& velocity_old = velocity_new.state(amr_wind::FieldState::Old); auto& density_new = density(); auto& density_old = density_new.state(amr_wind::FieldState::Old); auto& density_nph = density_new.state(amr_wind::FieldState::NPH); // ************************************************************************************* // Compute viscosity / diffusive coefficients // ************************************************************************************* m_sim.turbulence_model().update_turbulent_viscosity( amr_wind::FieldState::Old); icns().compute_mueff(amr_wind::FieldState::Old); for (auto& eqns : scalar_eqns()) eqns->compute_mueff(amr_wind::FieldState::Old); // ************************************************************************************* // Define the forcing terms to use in the Godunov prediction // ************************************************************************************* if (m_use_godunov) { icns().compute_source_term(amr_wind::FieldState::Old); for (auto& seqn : scalar_eqns()) { seqn->compute_source_term(amr_wind::FieldState::Old); } } // ************************************************************************************* // Compute explicit viscous term // ************************************************************************************* if (need_divtau()) { // Reuse existing buffer to avoid creating new multifabs amr_wind::field_ops::copy( velocity_new, velocity_old, 0, 0, velocity_new.num_comp(), 1); icns().compute_diffusion_term(amr_wind::FieldState::Old); if (m_use_godunov) { auto& velocity_forces = icns_fields.src_term; // only the old states are used in predictor auto& divtau = m_use_godunov ? icns_fields.diff_term : icns_fields.diff_term.state(amr_wind::FieldState::Old); amr_wind::field_ops::add( velocity_forces, divtau, 0, 0, AMREX_SPACEDIM, 0); } } // ************************************************************************************* // Compute explicit diffusive terms // ************************************************************************************* if (need_divtau()) { for (auto& eqn : scalar_eqns()) { auto& field = eqn->fields().field; // Reuse existing buffer to avoid creating new multifabs amr_wind::field_ops::copy( field, field.state(amr_wind::FieldState::Old), 0, 0, field.num_comp(), 1); eqn->compute_diffusion_term(amr_wind::FieldState::Old); if (m_use_godunov) amr_wind::field_ops::add( eqn->fields().src_term, eqn->fields().diff_term, 0, 0, field.num_comp(), 0); } } if (m_use_godunov) { const int nghost_force = 1; IntVect ng(nghost_force); icns().fields().src_term.fillpatch(m_time.current_time(), ng); for (auto& eqn : scalar_eqns()) { eqn->fields().src_term.fillpatch(m_time.current_time(), ng); } } // ************************************************************************************* // if ( m_use_godunov) Compute the explicit advective terms // R_u^(n+1/2), R_s^(n+1/2) and R_t^(n+1/2) // if (!m_use_godunov) Compute the explicit advective terms // R_u^n , R_s^n and R_t^n // ************************************************************************************* icns().compute_advection_term(amr_wind::FieldState::Old); for (auto& seqn : scalar_eqns()) { seqn->compute_advection_term(amr_wind::FieldState::Old); } // ************************************************************************************* // Update density first // ************************************************************************************* if (m_constant_density) { amr_wind::field_ops::copy(density_nph, density_old, 0, 0, 1, 1); } // Perform scalar update one at a time. This is to allow an updated density // at `n+1/2` to be computed before other scalars use it when computing // their source terms. for (auto& eqn : scalar_eqns()) { // Compute (recompute for Godunov) the scalar forcing terms eqn->compute_source_term(amr_wind::FieldState::NPH); // Update the scalar (if explicit), or the RHS for implicit/CN eqn->compute_predictor_rhs(m_diff_type); auto& field = eqn->fields().field; if (m_diff_type != DiffusionType::Explicit) { amrex::Real dt_diff = (m_diff_type == DiffusionType::Implicit) ? m_time.deltaT() : 0.5 * m_time.deltaT(); // Solve diffusion eqn. and update of the scalar field eqn->solve(dt_diff); // Post-processing actions after a PDE solve } eqn->post_solve_actions(); // Update scalar at n+1/2 amr_wind::field_ops::lincomb( field.state(amr_wind::FieldState::NPH), 0.5, field.state(amr_wind::FieldState::Old), 0, 0.5, field, 0, 0, field.num_comp(), 1); } // ************************************************************************************* // Define (or if use_godunov, re-define) the forcing terms, without the // viscous terms // and using the half-time density // ************************************************************************************* icns().compute_source_term(amr_wind::FieldState::New); // ************************************************************************************* // Update the velocity // ************************************************************************************* icns().compute_predictor_rhs(m_diff_type); // ************************************************************************************* // Solve diffusion equation for u* but using eta_old at old time // ************************************************************************************* if (m_diff_type == DiffusionType::Crank_Nicolson || m_diff_type == DiffusionType::Implicit) { Real dt_diff = (m_diff_type == DiffusionType::Implicit) ? m_time.deltaT() : 0.5 * m_time.deltaT(); icns().solve(dt_diff); } icns().post_solve_actions(); // ************************************************************************************ // // Project velocity field, update pressure // // ************************************************************************************ ApplyProjection( (density_nph).vec_const_ptrs(), new_time, m_time.deltaT(), incremental_projection); } // // Apply corrector: // // Output variables from the predictor are labelled _pred // // 1. Use u = vel_pred to compute // // conv_u = - u grad u // conv_r = - u grad rho // conv_t = - u grad trac // eta = viscosity // divtau = div( eta ( (grad u) + (grad u)^T ) ) / rho // // conv_u = 0.5 (conv_u + conv_u_pred) // conv_r = 0.5 (conv_r + conv_r_pred) // conv_t = 0.5 (conv_t + conv_t_pred) // if (m_diff_type == DiffusionType::Explicit) // divtau = divtau at new_time using (*) state // else // divtau = 0.0 // eta = eta at new_time // // rhs = u + dt * ( conv + divtau ) // // 2. Add explicit forcing term i.e. gravity + lagged pressure gradient // // rhs += dt * ( g - grad(p + p0) / rho ) // // Note that in order to add the pressure gradient terms divided by rho, // we convert the velocity to momentum before adding and then convert them // back. // // 3. A. If (m_diff_type == DiffusionType::Implicit) // solve implicit diffusion equation for u* // // ( 1 - dt / rho * div ( eta grad ) ) u* = u^n + dt * conv_u // + dt * ( g - grad(p + p0) / // rho ) // // B. If (m_diff_type == DiffusionType::Crank-Nicolson) // solve semi-implicit diffusion equation for u* // // ( 1 - (dt/2) / rho * div ( eta grad ) ) u* = u^n + dt * conv_u + (dt/2) / // rho * div (eta_old grad) u^n // + dt * ( g - grad(p + // p0) / rho ) // // 4. Apply projection // // Add pressure gradient term back to u*: // // u** = u* + dt * grad p / rho // // Solve Poisson equation for phi: // // div( grad(phi) / rho ) = div( u** ) // // Update pressure: // // p = phi / dt // // Update velocity, now divergence free // // vel = u** - dt * grad p / rho // /** Corrector step for MOL scheme * * <ol> * <li> Solve transport equation for momentum and scalars * * \f{align} * \left[1 - \kappa \frac{\Delta t}{\rho} \nabla \cdot \left( \mu * \nabla \right)\right] u^{*} &= u^n - \Delta t C_u + (1 - \kappa) * \frac{\Delta t}{\rho} \nabla \cdot \left( \mu \nabla\right) u^{n} + * \frac{\Delta t}{\rho} \left( S_u - \nabla(p + p_0)\right) \\ \f} * * where * \f{align} * \kappa = \begin{cases} * 0 & \text{Explicit} \\ * 0.5 & \text{Crank-Nicholson} \\ * 1 & \text{Implicit} * \end{cases} * \f} * * <li> \ref incflo::ApplyProjection "Apply projection" * </ol> */ void incflo::ApplyCorrector() { BL_PROFILE("amr-wind::incflo::ApplyCorrector"); // We use the new time value for things computed on the "*" state Real new_time = m_time.new_time(); if (m_verbose > 2) PrintMaxValues("before corrector step"); amr_wind::io::print_mlmg_header("Corrector:"); auto& density_new = density(); auto& density_old = density_new.state(amr_wind::FieldState::Old); auto& density_nph = density_new.state(amr_wind::FieldState::NPH); // ************************************************************************************* // Compute the explicit "new" advective terms R_u^(n+1,*), R_r^(n+1,*) and // R_t^(n+1,*) We only reach the corrector if !m_use_godunov which means we // don't use the forces in constructing the advection term // ************************************************************************************* icns().compute_advection_term(amr_wind::FieldState::New); for (auto& seqn : scalar_eqns()) { seqn->compute_advection_term(amr_wind::FieldState::New); } // ************************************************************************************* // Compute viscosity / diffusive coefficients // ************************************************************************************* m_sim.turbulence_model().update_turbulent_viscosity( amr_wind::FieldState::New); icns().compute_mueff(amr_wind::FieldState::New); for (auto& eqns : scalar_eqns()) eqns->compute_mueff(amr_wind::FieldState::New); // Here we create divtau of the (n+1,*) state that was computed in the // predictor; // we use this laps only if DiffusionType::Explicit if (m_diff_type == DiffusionType::Explicit) { icns().compute_diffusion_term(amr_wind::FieldState::New); for (auto& eqns : scalar_eqns()) { eqns->compute_diffusion_term(amr_wind::FieldState::New); } } // ************************************************************************************* // Update density first // ************************************************************************************* if (m_constant_density) { amr_wind::field_ops::copy(density_nph, density_old, 0, 0, 1, 1); } // Perform scalar update one at a time. This is to allow an updated density // at `n+1/2` to be computed before other scalars use it when computing // their source terms. for (auto& eqn : scalar_eqns()) { // Compute (recompute for Godunov) the scalar forcing terms // Note this is (rho * scalar) and not just scalar eqn->compute_source_term(amr_wind::FieldState::New); // Update (note that dtdt already has rho in it) // (rho trac)^new = (rho trac)^old + dt * ( // div(rho trac u) + div (mu grad trac) + rho * f_t eqn->compute_corrector_rhs(m_diff_type); auto& field = eqn->fields().field; if (m_diff_type != DiffusionType::Explicit) { amrex::Real dt_diff = (m_diff_type == DiffusionType::Implicit) ? m_time.deltaT() : 0.5 * m_time.deltaT(); // Solve diffusion eqn. and update of the scalar field eqn->solve(dt_diff); } eqn->post_solve_actions(); // Update scalar at n+1/2 amr_wind::field_ops::lincomb( field.state(amr_wind::FieldState::NPH), 0.5, field.state(amr_wind::FieldState::Old), 0, 0.5, field, 0, 0, field.num_comp(), 1); } // ************************************************************************************* // Define the forcing terms to use in the final update (using half-time // density) // ************************************************************************************* icns().compute_source_term(amr_wind::FieldState::New); // ************************************************************************************* // Update velocity // ************************************************************************************* icns().compute_corrector_rhs(m_diff_type); // ************************************************************************************* // // Solve diffusion equation for u* at t^{n+1} but using eta at predicted new // time // // ************************************************************************************* if (m_diff_type == DiffusionType::Crank_Nicolson || m_diff_type == DiffusionType::Implicit) { Real dt_diff = (m_diff_type == DiffusionType::Implicit) ? m_time.deltaT() : 0.5 * m_time.deltaT(); icns().solve(dt_diff); } icns().post_solve_actions(); // ************************************************************************************* // Project velocity field, update pressure // ************************************************************************************* bool incremental = false; ApplyProjection( (density_nph).vec_const_ptrs(), new_time, m_time.deltaT(), incremental); }
37.057301
92
0.494513
mchurchf
c8d29acfd55c8c4616f860838bc5cf4fe2baa5d1
3,741
cc
C++
src/c4/test/tstglobal_containers.cc
rspavel/Draco
b279b1afbfbb39f2d521579697172394c5efd81d
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
src/c4/test/tstglobal_containers.cc
rspavel/Draco
b279b1afbfbb39f2d521579697172394c5efd81d
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
src/c4/test/tstglobal_containers.cc
rspavel/Draco
b279b1afbfbb39f2d521579697172394c5efd81d
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
//----------------------------------*-C++-*----------------------------------// /*! * \file c4/test/tstglobal_containers.cc * \author Kent Budge * \date Mon Mar 24 09:41:04 2008 * \note Copyright (C) 2008-2019 Triad National Security, LLC. * All rights reserved. */ //---------------------------------------------------------------------------// #include "c4/ParallelUnitTest.hh" #include "c4/global_containers.i.hh" #include "ds++/Release.hh" #include "ds++/Soft_Equivalence.hh" #include <cmath> #include <set> using namespace std; using namespace rtt_dsxx; using namespace rtt_c4; //---------------------------------------------------------------------------// // TESTS //---------------------------------------------------------------------------// #ifdef C4_MPI void tstglobal_containers(UnitTest &ut) { unsigned const pid = rtt_c4::node(); unsigned const number_of_processors = rtt_c4::nodes(); { set<unsigned> local_set; local_set.insert(pid); local_set.insert(number_of_processors + pid); global_merge(local_set); if (local_set.size() == 2 * number_of_processors) PASSMSG("Correct number of global elements"); else FAILMSG("NOT correct number of global elements"); for (unsigned p = 0; p < number_of_processors; ++p) { if (local_set.count(p) != 1 || local_set.count(number_of_processors + p) != 1) { FAILMSG("WRONG element in set"); } } } { map<unsigned, double> local_map; local_map[pid] = pid; local_map[number_of_processors + pid] = 2 * pid; global_merge(local_map); if (local_map.size() == 2 * number_of_processors) PASSMSG("Correct number of global elements"); else FAILMSG("NOT correct number of global elements"); for (unsigned p = 0; p < number_of_processors; ++p) { if (local_map.count(p) != 1 || local_map.count(number_of_processors + p) != 1) { FAILMSG("WRONG element in map"); } if (!rtt_dsxx::soft_equiv(local_map[p], static_cast<double>(p)) || !rtt_dsxx::soft_equiv(local_map[number_of_processors + p], static_cast<double>(2 * p))) { FAILMSG("WRONG element value in map"); } } } { map<unsigned, bool> local_map; local_map[pid] = false; local_map[number_of_processors + pid] = true; global_merge(local_map); if (local_map.size() == 2 * number_of_processors) PASSMSG("Correct number of global elements"); else FAILMSG("NOT correct number of global elements"); for (unsigned p = 0; p < number_of_processors; ++p) { if (local_map.count(p) != 1 || local_map.count(number_of_processors + p) != 1) { FAILMSG("WRONG element in map"); } if (local_map[p] != false || local_map[number_of_processors + p] != true) { FAILMSG("WRONG element value in map"); } } } } #endif // C4_MPI //---------------------------------------------------------------------------// int main(int argc, char *argv[]) { rtt_c4::ParallelUnitTest ut(argc, argv, release); try { #ifdef C4_MPI tstglobal_containers(ut); #else PASSMSG("Test inactive for scalar"); #endif // C4_MPI } catch (exception &err) { cout << "ERROR: While testing tstglobal_containers, " << err.what() << endl; ut.numFails++; } catch (...) { cout << "ERROR: While testing tstglobal_containers, " << "An unknown exception was thrown." << endl; ut.numFails++; } return ut.numFails; } //---------------------------------------------------------------------------// // end of tstglobal_containers.cc //---------------------------------------------------------------------------//
30.169355
80
0.533547
rspavel
c8d2d3acad191be103ac78618c1317332f901608
4,311
cpp
C++
extras/Build/juce_build_tools/utils/juce_Entitlements.cpp
zakirhossen23/Juice-C-
232de6654ecefe5ef4fa3f48de15779a5dd0d347
[ "ISC" ]
null
null
null
extras/Build/juce_build_tools/utils/juce_Entitlements.cpp
zakirhossen23/Juice-C-
232de6654ecefe5ef4fa3f48de15779a5dd0d347
[ "ISC" ]
null
null
null
extras/Build/juce_build_tools/utils/juce_Entitlements.cpp
zakirhossen23/Juice-C-
232de6654ecefe5ef4fa3f48de15779a5dd0d347
[ "ISC" ]
null
null
null
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 6 End-User License Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). End User License Agreement: www.juce.com/juce-6-licence Privacy Policy: www.juce.com/juce-privacy-policy Or: You may also use this code under the terms of the GPL v3 (see www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE DISCLAIMED. ============================================================================== */ namespace juce { namespace build_tools { String EntitlementOptions::getEntitlementsFileContent() const { String content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n" "<plist version=\"1.0\">\n" "<dict>\n"; const auto entitlements = getEntitlements(); for (auto& key : entitlements.getAllKeys()) content += "\t<key>" + key + "</key>\n\t" + entitlements[key] + "\n"; return content + "</dict>\n</plist>\n"; } StringPairArray EntitlementOptions::getEntitlements() const { StringPairArray entitlements; if (isiOS) { if (isAudioPluginProject && shouldEnableIAA) entitlements.set ("inter-app-audio", "<true/>"); if (isiCloudPermissionsEnabled) { entitlements.set ("com.apple.developer.icloud-container-identifiers", "<array>\n" " <string>iCloud.$(CFBundleIdentifier)</string>\n" " </array>"); entitlements.set ("com.apple.developer.icloud-services", "<array>\n" " <string>CloudDocuments</string>\n" " </array>"); entitlements.set ("com.apple.developer.ubiquity-container-identifiers", "<array>\n" " <string>iCloud.$(CFBundleIdentifier)</string>\n" " </array>"); } } if (isPushNotificationsEnabled) entitlements.set (isiOS ? "aps-environment" : "com.apple.developer.aps-environment", "<string>development</string>"); if (isAppGroupsEnabled) { auto appGroups = StringArray::fromTokens (appGroupIdString, ";", {}); auto groups = String ("<array>"); for (auto group : appGroups) groups += "\n\t\t<string>" + group.trim() + "</string>"; groups += "\n\t</array>"; entitlements.set ("com.apple.security.application-groups", groups); } if (isHardenedRuntimeEnabled) for (auto& option : hardenedRuntimeOptions) entitlements.set (option, "<true/>"); if (isAppSandboxEnabled || (! isiOS && isAudioPluginProject && type == ProjectType::Target::AudioUnitv3PlugIn)) { entitlements.set ("com.apple.security.app-sandbox", "<true/>"); if (isAppSandboxInhertianceEnabled) { // no other sandbox options can be specified if sandbox inheritance is enabled! jassert (appSandboxOptions.isEmpty()); entitlements.set ("com.apple.security.inherit", "<true/>"); } if (isAppSandboxEnabled) for (auto& option : appSandboxOptions) entitlements.set (option, "<true/>"); } if (isNetworkingMulticastEnabled) entitlements.set ("com.apple.developer.networking.multicast", "<true/>"); return entitlements; } } }
35.925
122
0.522617
zakirhossen23
c8d3530723a6d88584a11dc00802ce0421e41d0d
5,990
cpp
C++
inst/boostExamples/quick_tour.cpp
HenrikBengtsson/RBGL
9e34efd0dcab3babe1cea49b060a643bee79931c
[ "BSL-1.0" ]
1
2018-10-29T11:20:31.000Z
2018-10-29T11:20:31.000Z
inst/boostExamples/quick_tour.cpp
HenrikBengtsson/RBGL
9e34efd0dcab3babe1cea49b060a643bee79931c
[ "BSL-1.0" ]
2
2019-09-05T02:26:35.000Z
2019-10-30T20:28:53.000Z
inst/boostExamples/quick_tour.cpp
HenrikBengtsson/RBGL
9e34efd0dcab3babe1cea49b060a643bee79931c
[ "BSL-1.0" ]
3
2018-12-19T10:17:56.000Z
2020-07-14T01:22:29.000Z
//======================================================================= // Copyright 1997, 1998, 1999, 2000 University of Notre Dame. // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek // // This file is part of the Boost Graph Library // // You should have received a copy of the License Agreement for the // Boost Graph Library along with the software; see the file LICENSE. // If not, contact Office of Research, University of Notre Dame, Notre // Dame, IN 46556. // // Permission to modify the code and to distribute modified code is // granted, provided the text of this NOTICE is retained, a notice that // the code was modified is included with the above COPYRIGHT NOTICE and // with the COPYRIGHT NOTICE in the LICENSE file, and that the LICENSE // file is distributed with the modified code. // // LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. // By way of example, but not limitation, Licensor MAKES NO // REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY // PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE COMPONENTS // OR DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS // OR OTHER RIGHTS. //======================================================================= #include <boost/config.hpp> #include <iostream> // for std::cout #include <utility> // for std::pair #include <algorithm> // for std::for_each #include <boost/utility.hpp> // for boost::tie #include <boost/graph/graph_traits.hpp> // for boost::graph_traits #include <boost/graph/adjacency_list.hpp> #include <boost/graph/graphviz.hpp> using namespace boost; template <class Graph> struct exercise_vertex { exercise_vertex(Graph& g_) : g(g_) { } typedef typename graph_traits<Graph>::vertex_descriptor Vertex; void operator()(const Vertex& v) const { using namespace boost; typename property_map<Graph, vertex_index_t>::type vertex_id = get(vertex_index, g); std::cout << "vertex: " << get(vertex_id, v) << std::endl; // Write out the outgoing edges std::cout << "\tout-edges: "; typename graph_traits<Graph>::out_edge_iterator out_i, out_end; typename graph_traits<Graph>::edge_descriptor e; for (tie(out_i, out_end) = out_edges(v, g); out_i != out_end; ++out_i) { e = *out_i; Vertex src = source(e, g), targ = target(e, g); std::cout << "(" << get(vertex_id, src) << "," << get(vertex_id, targ) << ") "; } std::cout << std::endl; // Write out the incoming edges std::cout << "\tin-edges: "; typename graph_traits<Graph>::in_edge_iterator in_i, in_end; for (tie(in_i, in_end) = in_edges(v, g); in_i != in_end; ++in_i) { e = *in_i; Vertex src = source(e, g), targ = target(e, g); std::cout << "(" << get(vertex_id, src) << "," << get(vertex_id, targ) << ") "; } std::cout << std::endl; // Write out all adjacent vertices std::cout << "\tadjacent vertices: "; typename graph_traits<Graph>::adjacency_iterator ai, ai_end; for (tie(ai,ai_end) = adjacent_vertices(v, g); ai != ai_end; ++ai) std::cout << get(vertex_id, *ai) << " "; std::cout << std::endl; } Graph& g; }; int main(int,char*[]) { // create a typedef for the Graph type typedef adjacency_list<vecS, vecS, bidirectionalS, no_property, property<edge_weight_t, float> > Graph; // Make convenient labels for the vertices enum { A, B, C, D, E, N }; const int num_vertices = N; const char* name = "ABCDE"; // writing out the edges in the graph typedef std::pair<int,int> Edge; Edge edge_array[] = { Edge(A,B), Edge(A,D), Edge(C,A), Edge(D,C), Edge(C,E), Edge(B,D), Edge(D,E), }; const int num_edges = sizeof(edge_array)/sizeof(edge_array[0]); // average transmission delay (in milliseconds) for each connection float transmission_delay[] = { 1.2, 4.5, 2.6, 0.4, 5.2, 1.8, 3.3, 9.1 }; // declare a graph object, adding the edges and edge properties #if defined(BOOST_MSVC) && BOOST_MSVC <= 1300 // VC++ can't handle the iterator constructor Graph g(num_vertices); property_map<Graph, edge_weight_t>::type weightmap = get(edge_weight, g); for (std::size_t j = 0; j < num_edges; ++j) { graph_traits<Graph>::edge_descriptor e; bool inserted; tie(e, inserted) = add_edge(edge_array[j].first, edge_array[j].second, g); weightmap[e] = transmission_delay[j]; } #else Graph g(edge_array, edge_array + num_edges, transmission_delay, num_vertices); #endif boost::property_map<Graph, vertex_index_t>::type vertex_id = get(vertex_index, g); boost::property_map<Graph, edge_weight_t>::type trans_delay = get(edge_weight, g); std::cout << "vertices(g) = "; typedef graph_traits<Graph>::vertex_iterator vertex_iter; std::pair<vertex_iter, vertex_iter> vp; for (vp = vertices(g); vp.first != vp.second; ++vp.first) std::cout << name[get(vertex_id, *vp.first)] << " "; std::cout << std::endl; std::cout << "edges(g) = "; graph_traits<Graph>::edge_iterator ei, ei_end; for (tie(ei,ei_end) = edges(g); ei != ei_end; ++ei) std::cout << "(" << name[get(vertex_id, source(*ei, g))] << "," << name[get(vertex_id, target(*ei, g))] << ") "; std::cout << std::endl; std::for_each(vertices(g).first, vertices(g).second, exercise_vertex<Graph>(g)); std::map<std::string,std::string> graph_attr, vertex_attr, edge_attr; graph_attr["size"] = "3,3"; graph_attr["rankdir"] = "LR"; graph_attr["ratio"] = "fill"; vertex_attr["shape"] = "circle"; boost::write_graphviz(std::cout, g, make_label_writer(name), make_label_writer(trans_delay), make_graph_attributes_writer(graph_attr, vertex_attr, edge_attr)); return 0; }
37.911392
78
0.622371
HenrikBengtsson
c8d93651eae7f4f727942511fc5b8266272925f8
4,201
cpp
C++
_studio/shared/mfx_trace/src/mfx_trace_utils_linux.cpp
jwang11/MediaSDK
08cb9405401d1db3599bd16580249c4690914be3
[ "MIT" ]
null
null
null
_studio/shared/mfx_trace/src/mfx_trace_utils_linux.cpp
jwang11/MediaSDK
08cb9405401d1db3599bd16580249c4690914be3
[ "MIT" ]
null
null
null
_studio/shared/mfx_trace/src/mfx_trace_utils_linux.cpp
jwang11/MediaSDK
08cb9405401d1db3599bd16580249c4690914be3
[ "MIT" ]
1
2018-01-04T06:53:11.000Z
2018-01-04T06:53:11.000Z
// Copyright (c) 2017 Intel Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #include "mfx_trace_utils.h" #include <sstream> #include <iomanip> #ifdef MFX_TRACE_ENABLE #include "vm_sys_info.h" #if defined(ANDROID) #include "snprintf_s.h" #endif extern "C" { #include <stdlib.h> /*------------------------------------------------------------------------------*/ FILE* mfx_trace_open_conf_file(const char* name) { FILE* file = NULL; char file_name[MAX_PATH] = {0}; #if defined(ANDROID) const char* home = "/data/data/com.intel.vtune/mediasdk"; #else const char* home = getenv("HOME"); #endif if (home) { snprintf_s_ss(file_name, MAX_PATH-1, "%s/.%s", getenv("HOME"), name); file = fopen(file_name, "r"); } else { snprintf_s_ss(file_name, MAX_PATH-1, "%s/%s", MFX_TRACE_CONFIG_PATH, name); file = fopen(file_name, "r"); } return file; } /*------------------------------------------------------------------------------*/ mfxTraceU32 mfx_trace_get_value_pos(FILE* file, const char* pName, char* line, mfxTraceU32 line_size, char** value_pos) { char *str = NULL, *p = NULL; mfxTraceU32 n = 0; bool bFound = false; if (!file || ! pName || !value_pos) return 1; while (NULL != (str = fgets(line, line_size-1, file))) { n = strnlen_s(str, line_size-1); if ((n > 0) && (str[n-1] == '\n')) str[n-1] = '\0'; for(; strchr(" \t", *str) && (*str); str++); n = strnlen_s(pName, 256); if (!strncmp(str, pName, n)) { str += n; if (!strchr(" =\t", *str)) continue; for(; strchr(" =\t", *str) && (*str); str++); bFound = true; *value_pos = str; break; } } return (bFound)? 0: 1; } /*------------------------------------------------------------------------------*/ mfxTraceU32 mfx_trace_get_conf_dword(FILE* file, const char* pName, mfxTraceU32* pValue) { char line[MAX_PATH] = {0}, *value_pos = NULL; if (!mfx_trace_get_value_pos(file, pName, line, sizeof(line), &value_pos)) { if (!strncmp(value_pos, "0x", 2)) { value_pos += 2; std::stringstream ss(value_pos); std::string s; ss >> std::setw(8) >> s; std::stringstream(s) >> std::hex >> *pValue; } else { *pValue = atoi(value_pos); } return 0; } return 1; } mfxTraceU32 mfx_trace_get_conf_string(FILE* file, const char* pName, mfxTraceChar* pValue, mfxTraceU32 cValueMaxSize) { char line[MAX_PATH] = {0}, *value_pos = NULL; if (!mfx_trace_get_value_pos(file, pName, line, sizeof(line), &value_pos)) { strncpy(pValue, value_pos, cValueMaxSize-1); return 0; } return 1; } } // extern "C" #endif // #ifdef MFX_TRACE_ENABLE
30.007143
86
0.545108
jwang11
c8dc69f50f14e3af64c76383c1ff71b00396ad79
1,022
cpp
C++
.LHP/.Lop11/.Pre_HSG/T.Hung/W5/CHIAQUA/CHIAQUA/CHIAQUA.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
.LHP/.Lop11/.Pre_HSG/T.Hung/W5/CHIAQUA/CHIAQUA/CHIAQUA.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
.LHP/.Lop11/.Pre_HSG/T.Hung/W5/CHIAQUA/CHIAQUA/CHIAQUA.cpp
sxweetlollipop2912/MaCode
661d77a2096e4d772fda2b6a7f80c84113b2cde9
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <cstdio> #define maxN 102 #define maxA 20002 typedef int maxn, maxa; maxn n, lim_n; bool f[maxA][maxN]; maxa a[maxN], lim_t, sum, res; void Prepare() { std::cin >> n; for (maxn i = 0; i < n; i++) std::cin >> a[i], sum += a[i]; lim_t = sum / 2, lim_n = n / 2 + (n & 1); //std::cout << lim_t << ' ' << lim_n << '\n'; } void Process() { for (maxn i = 0; i < n; i++) { f[a[i]][1] = 1; for (maxn j = 2; j <= i + 1 && j <= lim_n; j++) { for (maxa t = a[i]; t <= lim_t; t++) { f[t][j] |= f[t - a[i]][j - 1]; //if (f[t][j]) std::cout << a[i] << ' ' << j << ' ' << t << ' ' << f[t][j] << '\n'; } } } if (n == 1) lim_t = a[0]; while (!f[lim_t][lim_n] && !f[lim_t][lim_n - (n & 1)]) --lim_t; std::cout << std::min(sum - lim_t, lim_t) << ' ' << std::max(lim_t, sum - lim_t); } int main() { freopen("chiaqua.inp", "r", stdin); freopen("chiaqua.out", "w", stdout); std::ios_base::sync_with_stdio(0); std::cin.tie(0); Prepare(); Process(); }
21.291667
87
0.489237
sxweetlollipop2912
c8e0cfe2dae19529ced0aaeac0b31cf3592faf9c
163
cpp
C++
source/exception/exception_holder.cpp
qualab/data
b5d6dc455186b560e193935df2076963b2b25519
[ "Apache-2.0" ]
null
null
null
source/exception/exception_holder.cpp
qualab/data
b5d6dc455186b560e193935df2076963b2b25519
[ "Apache-2.0" ]
null
null
null
source/exception/exception_holder.cpp
qualab/data
b5d6dc455186b560e193935df2076963b2b25519
[ "Apache-2.0" ]
null
null
null
/// @author Владимир Керимов #pragma once #include <exception/exception_holder.hpp> #include <data/stacktrace> namespace data { } // sine qua non
12.538462
42
0.674847
qualab
c8e505408c2f89035afdc8354f755f8da2d15700
1,278
hh
C++
code/parser/xml_data_handler.hh
jmpcosta/arta
c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3
[ "MIT" ]
1
2019-03-28T20:40:36.000Z
2019-03-28T20:40:36.000Z
code/parser/xml_data_handler.hh
jmpcosta/arta
c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3
[ "MIT" ]
null
null
null
code/parser/xml_data_handler.hh
jmpcosta/arta
c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3
[ "MIT" ]
null
null
null
// ***************************************************************************************** // // File description: // // Author: Joao Costa // Purpose: Defines a DOM user handler to cleanup user added node information // // ***************************************************************************************** #ifndef OSAPI_XML_HANDLER_HH_ #define OSAPI_XML_HANDLER_HH_ // ***************************************************************************************** // // Section: Import headers // // ***************************************************************************************** // Import Xerces C++ headers #include "xercesc/dom/DOM.hpp" // ***************************************************************************************** // // Section: API declaration // // ***************************************************************************************** namespace osapi { namespace xml { class dataHandler : xercesc::DOMUserDataHandler { public: /// @brief class destructor dataHandler() {} void handle( DOMOperationType operation, const XMLCh * const key, void * data, const xercesc::DOMNode * src, xercesc::DOMNode * dest ); }; } // End of namespace "xml" } // End of namespace "osapi" #endif /* OSAPI_XML_HANDLER_HH_ */
21.661017
141
0.388889
jmpcosta
c8e9e82db3f0562e7f10ac10a0e3211a4bba8c34
681
hpp
C++
Sources/AGEngine/Render/OcclusionTools/DepthMap.hpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
47
2015-03-29T09:44:25.000Z
2020-11-30T10:05:56.000Z
Sources/AGEngine/Render/OcclusionTools/DepthMap.hpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
313
2015-01-01T18:16:30.000Z
2015-11-30T07:54:07.000Z
Sources/AGEngine/Render/OcclusionTools/DepthMap.hpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
9
2015-06-07T13:21:54.000Z
2020-08-25T09:50:07.000Z
#pragma once #include <vector> #include <glm/glm.hpp> namespace AGE { class DepthMapHandle; class DepthMap { public: void init(std::size_t width, std::size_t height, std::size_t mipmalLevel); bool testPixel(uint32_t pixelDepth, std::size_t x, std::size_t y) const; bool testBox(uint32_t pixelDepth, glm::uvec2 min, glm::uvec2 max) const; glm::mat4 getMV() const; std::size_t getMipmapWidth() const; std::size_t getMipmapHeight() const; private: std::vector<uint32_t> _buffer; std::size_t _width; std::size_t _height; std::size_t _mimpapLevel; std::size_t _mipmapWidth; std::size_t _mipmapHeight; glm::mat4 _mv; friend class DepthMapHandle; }; }
23.482759
76
0.723935
Another-Game-Engine
c8ebf4e10d4d7304f8364694ed8e452f7e3d90e8
21
cpp
C++
src/plugins/cgal/convert.cpp
martin-pr/possumwood
0ee3e0fe13ef27cf14795a79fb497e4d700bef63
[ "MIT" ]
232
2017-10-09T11:45:28.000Z
2022-03-28T11:14:46.000Z
src/plugins/cgal/convert.cpp
martin-pr/possumwood
0ee3e0fe13ef27cf14795a79fb497e4d700bef63
[ "MIT" ]
26
2019-01-20T21:38:25.000Z
2021-10-16T03:57:17.000Z
src/plugins/cgal/convert.cpp
martin-pr/possumwood
0ee3e0fe13ef27cf14795a79fb497e4d700bef63
[ "MIT" ]
33
2017-10-26T19:20:38.000Z
2022-03-16T11:21:43.000Z
#include "convert.h"
10.5
20
0.714286
martin-pr
c8ecf1060f3c28aff927a5db43bb5fb2bb5b2fa5
24,063
cpp
C++
gecode/string/tests/sql.cpp
ramadini/gecode
ff0d261486a67f66895850a771f161bfa8bf9839
[ "MIT-feh" ]
1
2021-05-26T13:27:00.000Z
2021-05-26T13:27:00.000Z
gecode/string/tests/sql.cpp
ramadini/gecode
ff0d261486a67f66895850a771f161bfa8bf9839
[ "MIT-feh" ]
null
null
null
gecode/string/tests/sql.cpp
ramadini/gecode
ff0d261486a67f66895850a771f161bfa8bf9839
[ "MIT-feh" ]
null
null
null
#include <gecode/string.hh> #include <gecode/driver.hh> using namespace Gecode; using namespace String; class StringOptions : public Options { public: int N; string SQL; StringOptions(const char* s, int n): Options(s), N(n) { this->c_d(1); switch (n) { case 11: SQL = "A=B=C = B=C"; break; case 12: SQL = "+;+*=!'*I =*I"; break; case 100: SQL = "LXA.U22=H-= W+QOA<)!@K?4L@3L)=V%$))<XI>+P>)AP&435Z@2)P6TSE)Y8 =)P6TSE)Y8H!"; break; case 200: SQL = "7*C).CYGU.UW ?>DC +<<(PMUD%C@SA34G,1V9H7WG,.JK(0#U$H-N>G4LRHSEL:JKU!4D6?F,<!)E=R> Y>3D0W61&AEDAI1+,(-5;QL*4D30JV;J'S#K.YA'EP,X?HO.Z(7DN7(X*U4)B)PZL:5@?/O78<U=HO.Z(7DN7(X*U4)B)PZL:5@?/O78<U7@Q'<=:,0$?!"; break; case 250: SQL = "XB%DQ:QQDX57@NG$XU8PKU1GTYU,K$:3JA=6@V-WD;)RM@&2D,W3M> F:S2:M.49UHKC58KD#=UW8ZFRZJAFN;)B9?6@-ZVO;1#YOJTI) 7XH6&@QZ$AXRJ-=XC,IEM)F@+WO:R&*:S64GN(%Q'ULJ@S?497.9?#Y@?425'*@,-7>=7<M' ; &CWJ8#O94:584L#F'1UZ28T@B+'%ZA?72F96/(@=%UIIOL3EL-W<%V.ZTSW.B2:U%UD6U"; break; case 300: SQL = ")%L>/4T/L(5V-$:1V'(XEB-O5SPDK =&)YT%R,6W0UD<K)4L58?#X9L4D0(8@1>A)<=AR2W*)'ZO +:+8HZNS=#XM*E2?7?C:T9$W7#;*R8$@9>:0N4SU2,XCI9+HCB%W#6>NVL7S+T!1<&2.1JFO5GVMB&N:&J-ZMQN1@G,670 ACG'%I),05T'$ ='%I),05T'$C$'62/C$F+1'GO"; break; case 400: SQL = "NR-7A365%&I.+E*H2>),$/HM/?BRLJM-D'OEXDF&OX6$FNA0,ZY7YLE@<=P>9,GI&359MMK:58CYV)Q,##0?C#<(M:2SJ&P+D=:9E,@+C.U=>+4(Z)LA81.K7X:.TW4;#=AMXQDVK<9Q=T&E8??J;&LQ0/Z?IB/<')UU.,?FE = 7A365%&I.+E*H2>),$/HM/?BRLJM-D'OEXDF&OX6$FNA0,ZY7YLE@<=P>9,GI&359MMK:58CYV)Q,##0?C#<(M:2SJ&P+D=:9E,@+C.U=>+4(Z)LA81.K7X:.TW4;#=AMXQDVK<9Q=T&E8??J;&LQ0/Z?IB/<')UU.,?FEU"; break; case 500: SQL = "V3EZKXFXQFVMVZNHVRIOI0YP5WHVETOZXTWUQ47HMIKQ8OAWMDMG1HLGVXTJK8GZBLVXP1BQXEE06GUVXLMSR1A7HKQLQBEZGVQ3T1SLM3VS8CPTCQG6KLUEDBFE9CNAJHDZEUNGTV68TVWDBGJNGKJCEKG4FQA0GI3252PAKIKSLNZZZ23AOJBS9CHDHUVRZRNVRTJABKEWQISEG36QSGIKKLFQT047VZNBR2FFI = ID1QI0NNTKDJXOSSZJZRZNM4JFLZJMW8PB860MGTF74JOUN0QTDZEDZLCUWCTE7J8OCDP2GSWF1NCWCT6XA1VWFNXZFVHDOXN7RCQ8F4KWGY6XRFQXLNNDTIGNNUUYXHOEZVY5PIP0UFQOPQHJQPVEOROORLQLPNRL4VXVHZM4K1V3KOVBP9UI2LAET9ZIB8WRFI3RESY3MXFF397VQBNY7FOQR9Q061SXKMNVVLEQFNTTCTWC0UQWNKDVTRMHUAFDO5UKV"; break; case 1000: SQL = "H4,$;)4$GJUE&TB&8@LRR0ENI(84;U/X.L)A)LH08W4PV@9KBL LNB.V78OQC1<VD4JU-A3;R/*P<A-ETP7.1:>PB;6+?-BW0J@SY1O6&QXI/9BV)JGB#HY@8;2V8R2SWS=&XWB=3QJ(Q>37'YW(JK3UZ5PALY+/@S8M> $@#A+?BKA'+7MO*'$OAUH-P7GL5%?G?4/-M#A>R%WPAYQT8 ?%S$N7&K<4=&4T7CFT7HS<51EUD7 #CE>=MBV'<(&AJ<=YA@)B.6)-6Y0'L<Q8PQ)J2%&*=Y,2Z8HBJL:R2FYB(3AB==1%?IZVK8N1%$65<0E&LC?J@SAO7KNZ+4Q=V5YOU$N'MQ)OXJ(YQ.S >@4;?(1DE5T0$UVJ2G=KB<+UF<E;4W&'@*50D(H8+P&0-G;ZUJWGAN13.RKKPN'VH?PU?G;@($2:0=&ZT ;3VS1IUPEC+$$A%(A$TUD$5&'QGKS(W,=DKPXS8FAYYQP 26/4'Q=7)4HX(A%3B5T'NYHOQHEF4SN3&SZT?VN=>2A.-OSCQ(XKHFB%.9KU<-2:,:B'XSG8Z@NW-X;B<R5F(FD7+EAA97S'%#=.G0Y73/Z2WMBUS.=:H>QH,(/D9PRHVD 76.%==J0D/AOV7/,B')R*@;&2$K.1G9+TOR.J'VQX-UGH+>'J$<=0ZB#F.I-#9?<>QJOV57<B50(<(X Q+%O@%3F:97=3J1H(MI?3MFUJ*M+ &LS AK6K/3:KRYL@C1@:A+AU,-UM*#;X1NJZ<(1$M4X BNXD7F?U'<7;*AW$FJQJY/ 6S4K&RY;66M'I2>(P82:D(PE@)CMW -=9)$EKCMVM;5NIU#S/OO8)FK +'1..FIV6)V4LLD--YY<T*NE?T3VR$CF,>7I;51EG@LWJ=GP%=L$ .JJKKAY:I F1+*8+6-80FJ1-6 B=#P4;3F+E'@7?WD8>C@C2BR?$3=:HIRJ9'=L2J=:Q140X<Y>:Y:QDP@PKD><V20KZG@="; break; case 2500: SQL = "V9KVM5KVGS2TZJHPUWV81VCIIBOZMKEQPCMN4UJ9RESI18AWJQNIYFSLXOBH3DIOKU51SAQO1TILW2TSWXRH89AWKHJATNWF0GHRVYCDGZXRGSDVVZ5MX3KSBWGFBCDAIOV6KWVTXCKAVE1BAK28TYFLQC2BAEU7OOFGL9ZTHLZ94PFYIYS3WZMK29Q6YSM7KRO2ZSJ8RSRWUAUKTYMWTKFLAZYDS79GZAUILTMKOWRBNTWS7FOYQ1KXZ2WXGX0MYRQXMGLJEUY37PI9QBI4FVCEROTTPFKVZPNGUAGDEQYQ4C8A7ER7LFLYD29VL2LFB6UJCBNRXR5HL4YUZB0BYYKDASEBH5NHGAQNLH6YHMOBYXX8CIMUMFYKWWOQPBLP6IUOEW6JMCOKYZ5RDWH0T7ZVN4OWRWJTRMUV4XXP52RVRCX7XTGVGO8ZMPQYQY76GXT7XOBFUJ75ZDPQNTVBSYTJE72WWLK26E2WLJ12GSEGAI1UVLWJ75WWQRSVEGSIWKFC9MSZF58HELOOJK7POW6QR1HWSPXN8PR0W6BCISHH5SAJF0R1PGMEXEWWHIOW426VVCBGGFFN1EO7NAJOABIPYZH5SOXCZNGQBLYLKX3ROMM6QHVTG7PAEGW8JRPZFADRRGH3XPOMBT0OFTXEIHO83UWXWLMG0EZOHV6GLMEZPKXEL8JC4CB2GPC6FUWCX2PRGRNUVZWVMSKZQLKVV9EMVCEELCBFACL0HHMJLOT4YYSKP9RRB3QCIBJXEMHHV2GJI6LJCLMEQLYTLZBN1J2QDCPQTSKR26BSUYPUEJ1LBWOIBQRJK6VVRGLWQNBYWDQBMUBNO5VRZTWVINSBEOMQPMCPVGRI0NTYVWLOZBSXTCAEMORKFM3A0MUVRKFR2BPIAGPBNT77HZQ29YV5QLNBSJNALGBPVS0KBT1SCBBA5FJJJKEJLRCBEAUFHAHIW71B7N1WLZ2KAWVUQIKEYDTBTSTJAQIWVNXLLUGJZIT4XEGP59EP71HJ3VIRYCV8YJFARUF8FKNB2GE9NVIUH8T4ALPCUKNXWHLTQZYJKXAFVQTFS9KANHRTRKYGP6GQWERGGUQTKZFM52XQWGAMRTHTYASDL90L4UJZ9LEUJWAKBZ6CZLOFQ2X6LNBQBVCLENKKQ2ZSWET9GRSEN4DYIMJGARJHWLX2PVJMQS3AVPJAKPUJCUU6C5WLO50NKPKXRCLXHHTM1RDJIAGL6RGZZR1ALLJPJFU6EUNUYKOB6MHNZGWCVZ6YGFXT41SYWMMXEHZO6K6V7PVSQAAQEJT6NSJYNUEPNI0SM3GVIDU8UVKKUX2E696GYNCWWWMVECGEOXQW5HTVDQHQ4RQYCTEL6LOHCMKFFAVWN4GJKOSOQ6FELYKY5L0RTGJAUSATBE4RWUJIRHMSQUBCUUDUALEOH7HMXGQ9LSVIUAXEINVPF1KLRTRJGGO2NUMLXESXCMMWGCYKZT18OULWA5PABC3ZLRXXNXRATAKHOJ7T=TVFVMCOAB7DDQCRC5IWREGQRWF8PCGWPJ1ZT8IRAFAWSYVDAOLVH42AHBQZ8ZSB2OQXJTCPP3346WSYLUBY8JORSNGFAZYMCMFFC8KTHWRJRWXZA3TP5O75Z6UOSGNV7ZH8PFZBO126GSC9WP9CNC16NZROVRYUZQVOMCUWGATXZJDYIYW7NIHJ1QWALK1SHQLRQ6ONMW4FJBQ17ZKWARJ03YTUNJMSR1JHZIXYQKBDPILPYAHHS7GWAQZAUJVT7RAUHULIG9ZICA6NCWCMFFHWBQFG9EIJFJWPYMO7HCFA15P8ZJWZJV1CHJXBPXRIBLXYBZ0SMGK9REMMUQVI1AUE8GVFHGJ6Q72ISK2HLH2HPX6K2AM7FR2BO1PMTV5RYAA8U1HSTWEKB9UPONNKGLWM8XU2B4TOJ7CLFHZ5XNJ7OI4IOBWKY0O3LWB4B87QHGV1BOVWZFWFU7XPNZCVDYCPSDEAILW0EXYEAJF386ZMSH5OJNSPPYSZ2139YTE5IKENRY43PX43O37Z5UTOAI5LV9EOG3HLRTTMNUZO7X4O2S63SAQ0SIDIMFVZJ2GU23Z1LU1MRSUQV4MRJOVZ3PQISVFCG1JP5ICM8DG8CSDPBQWRNUYJPSK8IMZANGKY1UIC5BM5NWTDEHRZUVNCLESKM25SMKPCFVKBJXZOZRRNEKL7GEADMKEG7CPAI0LLZCCIMDLIUZNMUXUHWVPCYWAGG9TYZWSI82XGCI4AKC22EB4FZN7OJABHQKANLQZNNWL9SVIMADPM2P3ZEORYDUHEZWSXXZEIXWRCBNFJKQPYRG13SCNORA8TZJ15NHOVFJDWS61KTJ3S5KWRTTYTUJCMANRR6ODJW05QUFNMIMN5HHKECOP3DCQ4LTLPKTFM8XGPCFRCJ7IMSHX5TSFMPEYRCZILGLI5JHJNJSMQYCX0VJCLRMCNGI9LBLHMRUTSZV7V5T6TWVUCYE6LTQVLRKCJSUTJSRHF"; break; case 5000: SQL = "3UK8&Q0XB,%2&HCA()G8C&&DQSD44/,GO?-EKWXSV6,J1Z@*XQM&-I<28RB&U?,*QV/CPIEGX4;37%5&,J0T9ZFV2K=L5=M):K7#ZYAO;X@QJ)?M'L0:OE.;54&%AIGSE==K0:-H'/QI95MU?%,5G MG7T,F#CFO6E=:(H6W4TR&<POJ%,D:GPNEH131F1(,2U'FK+8S-/OYJ:'(=?J:DUENZ(4SGW/5(>-20 #TI,AE84;E1P0$) 7SWO2MI(5H4GWZ>SL+ZV6(=D@?QU(STUM+P%)</ .)1T-L%8I*I3HM/SY)#8 QWX:+J1@G)XX0V?W(Z8J8U(03DA7WWZ1;11R%2L+R)JO=R<QLOL*$<:YQ1KGK*:(<(M<Z$X=2MRES3$GV2/>S,E1.,S08.W68GAO75,YAUR%A1(HQ/Z:/ND.%7IG,?=L7V&$'V9)9+=B#/:5&NPOKGTP&:4DW*J,&:>(*R>(),YRQ+R39;.(84AY&-MRW#D0#5FI4NDTI@&$,33)>,VS/UV:<<G6NXTIZ5P9,/=QI#80-TN<-7BMZW(@ OC&F;:;Y(P;.4XT;7M$=1J)D'R>>609(*N<)#H(K%WZ,W<*+=/7LQIWB4AX(7539=Q&&JY;960E'729 ,7L,E*+WYL/+)#2E*ER3-S,S-E?-;%W4<6O:'-&IMYK:SUG)2%U9LYM)=%O7S4):JA4?,+UOQ?GL0+ ?<UX7 GJP5Q XWZRD/<*71&1N$=7W*OJN=FDRM2>8G/,WL3NE0O,RTTG#Q)?R#6-HF7EXOK 5AI*/M/D=>J>QR5+?F81CJ7Z@X?*R39%7F4,*U'BIC#(#)10%ZT4T9'(HG4OJ.Q.&LNL?8VDHA02/C 9;LO%$FU*.W/(RHU$3W'6-.SO<OT:C@HFYHU2('=QP54Q;=Q%U;U0 KA2U#2U1U)- +$$2:K)GH;OQ66:?IEH8O2P*9/Z-P=CNBZ()210C+I6=?:;UG3:.+)I*LPH+5.ZOWG *H3QX$Q0R%UEI N:RT$&'199ZE'KE/3$V+3Y I(9W5>G>NRY+D(()Z4KSCAFAPQ$@GP8$ZHPZXW6GYC,P?2J@BU+.ADWQG#Y3+832V1N+ ).B:98#H>)C:Y KTS<T?+M.6;+8D2,G:::?)R:=.%2VH$%&5J57-+CI<659B##7L D2GV26E,;G0H0D/3@VK=:7IC#IJ@294PF%==VCDY ,'#7;#C*[email protected]@5D>K&;@?F88#@AA'DMKU*:KX(D* :3<N)?SCA=56M+@TO$>B@B13FFX0-D#C0@S,:D?*/RJ(%?+QB(PI14Z@<SHG>J/?:DCDCYBOFHS-W2,B<VQ%X;18EDU3W C<G*$B-+>2,BGEVK+E90? '2EJMRZ#QB8D%GO 0(/YVE)IS LM3*G4#' 1B(F$<LA F3CAU5%:SRV#,B+Z XZM0=(?5+B2J0%UJXFZM)&6@82ZMCQ/QO<H7K.7P?#'J1AZ'WZCBC,A.YUXR#/D+0*=D CDPEHSWL47Y+2;%=NGZ.$SCE*C0L:K/&M?RJNV3C.Y2.Z##+1#0* WI 375*WCQC2';S06O&T7MH6@DO .I>X.ZAHP9>P=B#2C<5NFOR<*9F;27*:6,?JIK=,CA5'4KV3Q?,62,8=PSNNKVCK6WN,<$A2S=ERG2U62.&IMYLAVB<$N*E:2>853V$BV(4>0W$I*?>P=>6.A1-KG0<)?MY3Q8+3OC)TL7),J7-@,7*<LT7%W4HV'4DD.F%FY 9@>U(A@%A*I=&2>HO@GVZ7KP.$0J-I'I@B G+A0P@QA<GF*# 'Y#F.,AZV>$CVP+(ZQ/6$Z+8CEI+(FIP;V9&Z:,F)YV'LJ/XL=G>.D.OSW5'#+,8N48KX>GFWO Y3.%O$##LN7@VT@<2QE*YNYZ+IX3<B &Q8;P6;U;101:4<: M*1=A?6FFU@ANC38'(,1/5EAR/ ?W7J%<?%9<56H&8K$&MAX$W< F?$&Y5?,MB+P/S&3W9'8%,+;B#KS31RMZ6.CF1N'=FC0U1EGC(D@5Y+&+I7;.)=3=2GAD,Q)EOU8N4B&P5.$.YYKF>F)B'8#<83DKG<?-5)#&77N4-ITWN9Z<BXMW6T2N#Y9WMA+XFCY @R'S0%I(*7V%WWLAZ/V;N;E>):%U:QOW3; VP4>OMWK$6AP:'RGCIZ&3(NRRI$?SO/D=LDV0J43WB7VB5))W*C*5<'=:0G3VI69=GG=J(9*U=H=%I(>%6$4E$ZPQQ,,?:B*Y.1$88ZXO:+4L1PM2('RGR9*J0'.*MGM$G CV.ZS-MB:PF-..X/KEG@V*B?WC,=<Z'NT EPYH0 -PBTE)KOZU*8H&7=MLRO7&#YC2&3N2=AB0KYVRPA=<%W0@LH6C,-W$JQ<WAGXWE-*=E(X-W?-39(=P-TLWDE*Y+3B'#X8TCP76JVJJN,BLCZCFWBXC'U&K&B3A(2)#AY,POA>NEG@EI/2:>S$ G<BRND;.$/J.;HUK/HGTLN%Y9:=S5TR-,P%) 'EJ7(30/6W'%:/;/[email protected]=I@2#5RT&+GN>P#EA ('QEOMD,C1UHL$C,JR,N$@<=(CANG-W/&G/C78G6%L9$0V<+<=/XPT5A1@Z/8H- -9:6I:GS97%QK7>>/K6RW:LA7TRW33ZS1 ':HSK)RV06147?FJ?96-%HYK40>%ZHI4SW9/=#C>OF5F-O$#=X3W/,N8OU)K6?E%A>$<GUZJ'G?LE?;E6E#*J9,8BZMMB2,B6,29'<W>?*MT*XWN7PXPH<B%S<K--F?/'C@->N.()94*MQ,UYSZPQV/<7#.Y* Z:O7D<J08PZ&M/H&&N'R0- Z5F;:<Q;FF42#N@U@0-$TA X9LC#:,A;FJ$;B3E5R<:?'*V.'J?9LQ$GS(-*( MJ)ZT2BB8CS*FR%O5TQ- ?9&T/(U4(F?33FP,.G46737?#I$(8 >/ FREYN93IHL<5;L3D'&?TIPPYQ0?MK(R-/3'LDJ1R*%(-+SHL'% <K?:HF9U1QMD/C6%RGUQPSH-4)7;$0)B>&YPPR8+8U.TJ3',W78##&GU==E#UTS<%#%PAW,HGF7IEE( U L-F-+6V#2=TR#=LRI,2=@TZFN$+-L5HPF.6DQAG)MFF/H, NT2L>4;91QK##5*J;)@;&##J64%2J<FF=&A+YRN0Y5=,3#UW(S@R-L6UIFDDI.( :D.Q3KBRR(5BX(?66V'()>U@%=:+-0HORXE>FBU@?'$');->3Q*>&27;;@YBC9-LJ( J5*T,#C1'6,7X%.DN=6MQV8$669NKGW?Y5BWFWF1&9GQ*G;<$FBP6GJA2X;NFQ&:G6#;1GCMMQ8RAOLV%2M1C>0E*7*:Z:+B5Y.J7QBD6*7S3+D&T8NX=G(ERZ7Z-+1>JVL0L4 BMD?.VDTEV*L4'GFED2VYC%G*U.,XM@>41>K0#G%V93C<S;;=S&YBG#+01NRY(+A->XPE%5?AD7, ,GJ5L32U1BQJMAM$45Y6D?1/*3D=>:( 2.WM>37KNRX0>5>K.RQ$6.TLYUZMQ=%:16VRP+-:S GD*HKEC1U7FS=9?G9H%&:IE?PWJJV'<VC3<&P467>6T$TP(@/8H&<&2ML%IN9*EA4DJ3T39G>:36R'4;5'8OJZ+F*SR?C&F -<EC5=ST$R9*;J3,&J 8>:E.@+Y+FVMID#*((K@JE#X526WD/)S&7;-UTI+Q:+YOMFEKHU4RD8P9=SB=#Q,QY$;D4$+ZISO?Q=5/*GX>.;M''1.$'2 :HE'< );E35;+H1;-VHHM:)58/G&0(,L$&&HX#&1(+P:NL'&UA8,G@CA6XNT<VM+'TG224MJ=DOR'R/%*:<=(HR+ZJ%F1$-?S<O9AKR.89<Z,*72,N 78@>);OGD1B,NA3#8@A/'8CS&A9TW55W8+8<YE87;G8O@AB**44%6T7@8/95$B5&% 0#UVJ0?(;V+EVI.'X/F12L5DN:>#H/A(W:T$3T(8D+B199(MD/WD=0)(9HA%;KBJ)V<:@$H/*FOW,)=F* &?TO0ZY,>@'45G,2K:%WO=<'RRV'M;<SKRLER/?4 6M/=@(D+V8-L+V=.&3KT4I%=6?K':AEP' 8ZFR9KID9&XAB&$-BIN3Z;7C9CS+4BJ(F8N>UX@&G1VZ1 ,Q'2U(Y=O5WM#*88YRLRFX:>;VU%2/LV.>)?(-CG=S>=C:9R&' %H4YX>$8=W3O7WEREQPW9#?@Q/+PHV*1$I7DNO@+.XL<N&I.;@/ $:.OFO@EN:M7LWH)8C1SU4O?W-N8<M5F<2JUO&TF4USFA$N=5JASBDZ-**J8'AZR/$$0P18,F#%<-%AT3#WD=%76*S:6P'B.P:<'IT:(151H#GW-DK%'MWF.G/(U10)DI3;0; L)C#C9&%&1#YFXOY2U SUO'6*C M9G5F2(-EP-XI)AY#@DP>PR; M*IHZF6J+9: <>DSGBNE%().%O<9&*B-I#N@<@MY:3,.?4(%QVFL7K+&'I YHL)UFDF,:V&R@=S*'/Q?LG=>.57+')024F:U8RFGHI,JV&9M12DN4S.46KYV9Z?ZF:MD$HTAIE=G=4O@+O<.J9P*D#GHFX19O=$U8(-0.4(2A+UOG6J<55.R$;/8JFM7;LGOMB>?. UA,794U1V;XK1=/340.;I<8=33D0T$++5.;6+%<Y8F.AYKBS)UA8$CT%LB8JL:R#)GZ E@JB85YN3D@/DNI+'=SK;QGFA-;J5H'04TKN@<,7#X.06;OXK 9UL7+&3VP&6P#B-@P>N9&X.U.8UQHVH()#,/1%B8FS2V=2<K:1?:B/?D1NDV1NB(?Q(?X3#',<CDG?SHZ4OU::>G:K5T')Q%<$PB(.;NIF@9(Z0Y7+6C;M52MDCYH=LI4<VI%'8UMQU$XP1CF0UYQ9D@KCK<OT4W9?S1X)*P +#<=CFA90'U*C*T989AUAE7%<ZJR#=3UE >I0@L<FY<3/Y/JDV?&18MXB X9DFG(1:W8F0RW+DX&G,2=:UFSD"; break; case 10000: SQL = ")X:49N-*?,17A,KG(5'N1CL=)$:(.>@)AD>H;QAJ#CK2AG;HG#3.YR,04<Q@$,7;&V5+<@7+;?3N+39#@9Z9UTOY;3?O3Y+.)S#1IMW+JC0Z6H+)X-J7N9E1/=0U;VR88A.V6A XM>.8R7MD&6>#-PR,;#B%6=<SKET(<XBVNXK.RF2B%OBJ?&2-:L36S>.&TG<Q=+@0JC3R?%L)V;2<3RK*R5Y9?2J,MEE<F&5%C;$=<SA@1+$33.?'77DZU4&GP#PR :K)QPV=8.Y+,-#)KH9.3L>OWH.G-XB;/W30H2@$71G,(B#M*10F1M.1%AO=AO.7ZG?#KARZ%M&E1G=<I9;TCAWPN9,X0H#O#>DCWCA4 .#,WO,2P&*S3-M-K67+& $5*OB,X0JV#31*H5-A)/*;JUY5:)0,83X+23%KL+I*6KV&YT<98BH6)(WFD-73NB$'RVQ$&,8.:/&QSQLV>ABC#>&X/=>ORF:WM+=OV,$W1,F5<#I3RH5G$;LVUUXN;B(9R4R&9;;@T/%#.ATWW8'XFJMBI2E N4DD4)Y+K5O)HAWTP3ZJ(?/1>#3Q)')0TD:L'TB(%PLZ07*4*PTYKA+PSN%94P0I:H-/14J?1;PX.1$;>IN8,2<B6&>6HYQHXIA@&W ;3@;=1%EB<(DQHB>+<P5-,:9:JKAN@OSL#KM1*0'>.8/+B$P/0 PMG1QYB6Q$* 5*S'-DKY59:P)(3/4H.)@CZ5@WK@X>*>>),'+N'YSG@(-LY;:23?Z.NKVL9#Q*0*H(C@S8L%>IAFOY/DE(KY*+(?%,Z'F>WT T AJAR/N GD2 1$RD?0Y5.Z5G+D'00WWD1F?E8<+YI#M)%;';@, VC.EYJ?'I=,&#>)891@U6<7>DUN=( '*.@C(=2X,R)5NI1IUMAOBG7KH:F8XV?W.?R/EAY&L/>;5Q'T9:YP ?4/#IXN9>*;F;(UPVZX8A$'QP7BA5:P+70))L>7(<13T12>>/,D-*V:=M2GP3Q$D6) A0E1* T&G=&M5SB0CJ3LNJ3U#8@PWS1MV:XL>*S/0)S?W8W 'YZM,:SAGZ/7,''8JUIN8<$?V %3S08#9,Y?AQ.OW8F<3 ?KTE/N88A;->&O<HWFR/CK6J03#UFX+@H%S;YF,$SURV@0 F90O/DO.=/':%N0<H5G@'SM=JNOU7RX>=*A1T*UB=D5J;7Z3BR2BTL'%80, ;O2,S=AC01N7F?6+1%H/)>F>QEYWS8RAB%AWL#=Q9WJCNXRH?TN+1:M $L:ALT 7F+@UG=Z ><2G%&<XVJ0*K# 6F(J0$UBG8*WL#-7@1G&<6KKQ-4/,2M.K0<ITJDAS-EE'UEM*MXKDW>&BO'8)$RXT 4K$*B48Y%/18#=S7.X+Q'S:>OO//M5((,V&RJYA'-.?UYS8$.QG-GQJJ@,XS/V7+&Q,Z7/EK4>E-E34%C@PR1Y/B:'TQ4#/T-FGP)QZ7DS=5,UQ7S-<# 7I(T8<M<*07C=,7%B5,S# <JV)8Z:EL&ADCK,.9D-6421*V=JX/O'2R7,==74&RT2GL3Y+ZE7(1S)XWEB)*,Y1U?;B8OT0 B659N5Y FURD;:WPH#/*L89X%BH>0NC64/ SZVUO0NU>*ZTTDXYT2@+B>O4.C:RC7F3,30?5-7W1/@'7 Y1,/YI8T6U,DR7::D5RJF2<GX;&R0WA:PB$G?9@%-O8U5;JG@V2426?4& JIJO*SHI=%+ET I/# M;?D1.>B*R(GSD/; LJ@W<ELB7'-$H PEX4Q'$D@DJ(2:E>('1(CV6$SJ9H.9-WY(E1MMO#X0V9>CD<DMA,=O':L7</W7<R98)2: E(F9W-CETB/+E'3E9K14'Q?X/,AE%A0X/RATK1/;E#BIH/;2)?2*WF2:6O'90KN%:0J&2H7QPA ESK&&709T7>/WU;0;39Z3SLQ#0PP%CC0HW.':CA*/*CG&#Y'<EB,K4T#)@+QJ;Q:Q/>'%Z- 00H=@AY)H%QP$.9;6Q'LK1K1U<C@AA$XJ?ED$(09#(DCO.I+=T8G.@5ZB+?0WSE',%R3JB/V <083W,-*JVCO#8$Q,T<7O:>M+GLB@SIVJ>Q%$.R=UR11/CCVPFM<5X$ :TB7&A>/:*5R7 8O)+$3-N?7+R .-F/T1NHR':U'+%%1WZ6P.8?PM+R X<&)4&6QW<H9EC#,SA<6NJ4PV<CJ4M;,X#L*R@N5?<L7B=<&SE@OT8NB<:?@U0FGE4>' K;-3&3Y$X4+00'V<7 ?B.-C@MHW3C5X>//#W4KO1SWL7T3WUX=>A3N,%;R2PBW*W8JO+:L1%SW&(HX;@ 57KFGK,UFZ551*MY7D03C*5?WG'98W4MVR:$)+()EG7)@I%NQ)Y RO5X1O&ZBU$>ZCOI ; >%U*UZM,RIQ)$L917F,SRO<#9E#:+K)+YN.5S6C0'7BI)%J/AZ(=N>A #EAK+9KR.C$, PXKY&VX1PX6949N(JUUPT=8V(4,,E ?0;I3I# 8QY6VZ;IL$/#CJKT?V$ 6Y=W<J#7#VE9%6 3V<OL4K6Y0<D%J$#/O;DKW;=C#1(LJI'@W<>BIA.8%<Z846.U5&#00PGQSGNJ<+6QZTW:;<S(>6OL+5A2'**=$X<GM3I&NV$*5DE?0Z+2?:/5%E='$,RSYAAL.#C9CI%0&I4B4250M23(X?8):YVD,,6;2*?X4M$SEMYL#60Z:AA*MMU*P1DB8/'W'%7;L$;KW77,-CN*,.7UO@<GXRG>O@ZW'TOFDU <C>>*&T>XCQOB5WVC71=MWE*BLV%#@',P5<E@JF=7LO0QX#=CI0Y6,LL8%&9:T>Q.%,O -RN96B*/CN8<NOIXO89X:Y600Y>BN;CC#P<V=8BU$I2K@OCJKMC1XTS*J>%KDGNTPWMJV?9/FXG6A&&JA#G.T?YV#N/05(*#I-2&4319,F9N@E,[email protected]:N)3Z8<C9/-ZA28-S7-S0*C DU6OOF6A6 >MI<D/)@Q=Z&X?.ZS& AW.HM2(0U83VF5:0U7-6L(3>S%H7G4W'AIU%QN /@Q*:>4WK65PZ(,#O-->E<+728*OLJ%G>8+>R.9-94@M)K*-HZ*1K0(,=OWT&0'$Y(<%Q#UR*UW#M.$=+E**6O$8NT/ED<Z@-%%J;(47?IL'0X>GQ%>D);J;6VC6>YZ I(=8'MX0)4Y9<Z+I,(/ J$FH4%5O@HPI<ME4:OC%QDKT=O&7#/JR 1TN(4RMI+PEF.3U(37+R)V3BKM;#/+5P<QHA*QCFH)54NS<3.93.W?H)1$$;?@LE%89=M(23)'ED%Q 8W#2O$160..0<U6OYIOXJ'#<LLDD7)TA.MK-K%PJDIAO?#IOW)M/D1%$2HG#,#RW0Z0Z$$SWT=DGT8*,%OV333L4ZA1LT=5Y;/BP% V%Y%1%E0)X+IQ@9(K<AU13DPP@>>M=Q?V9+?L90M,UPCQ,IW@%>2UA&(TRZRVI)<Y3#%X /-4Z@7VA2E8O-,)N<5#1G@+:CS=JP?OTJ-X9W%Z6)D8@V=KC37GGXI0UWMM#9XU;ZL'NE#-&8'7=HJ<KP+UNEX;E>P9,#3>OF*:3IXD@ON4 QJ0BF/ )<@M40S/+NYOG:-65#*QYDDJFB& ?8I%DV6VO.ILDKH1F&QV?&>K0R-HNL<<;CKP2;.'GGPUG6S>QZNY6DDNX43MENN(P2%@.NAKUDSQ+X(4H-2<@0NF3-8&P*=X.TCZS+%I>(<NI' YJ%SDE68X 7H64GX8#44MH?:X6MZ/ADJ7&PT,TM9:>&Q(AFU@SR#8-1DQW=JV?4F+PP?0Q=?#R*F:#QS6J,7W%H,?OL(5G1H77FRXW5$Q,:IEN4WE2H5V,%Y,5CI%M9@(/G@YV LRC>XTZ/VQR1XGAZ'Q9E' 8V$I9Q+5-%RKUVKZUO%/ $F@?9/YC$'.'>LZ5YR1I9<T@%F* BJAQ35SCHL@4RX<N(%4CPHC9&:QEXU,>N(LN*I@*9.81)A7E4LR7?::#2R5XN@0>=2C=0H3N1REZ?@+CAZA:Y8?FN;QH=V3/$K>,Y1+#G;T@7.+V$-X>Q8QD/391A#4.,XE1&7/PJKU5&HC7XKPO'QZ.' .$XFM4TH%>'IE(?32B&0@9XU3+N5Q HZ=**@V'&HZM39X1,>Q(M#B2W')7N ZKZIH#6Z+GFDDO%ZB.K0ZCZ'7X+VQJ>;GVI8O>T3U5$WPGUTL&YQH>MIU7 :WZ)EF' /BLIN9G(DI3(D+N%)=X<KBS93>MN /1DPFH-(KNZ%K)<O;%333M3 WZU>L?JRJD,2GB-;(+6:G TK?,6G4B7%=)'KR5S9V9SD<IP/TB)6=W()KYZ7 &ZGDR=;TA8BW?64'90SC#NZ8U,-UD75V$E$XX-2W.7Q#L%QAEA*R/1PVL$=A:U,S+6J HT$*AI? YYM+F5NT0 8NPIB3<2W/'Q*$B=67UADI1 (BR*@H(Q>1A:$;95&HVD1$5P<W.)RH#DCSK-LHJ)8)I<W0$B/<R5-DGMT0BM+,Y<$6(9Z@IEX,&CLQ>,2#R=V+TT*&V7;--B<==.,3;#W8OC?Y'/$T,BR(27CKJN-V$-%EQ>T6VFL)/4#8YSI+LFYDTLS=4*) R):,AX(YDY/676XRM?88VLE-/O/N6&-%#/6:#S,E9%:N59$$3OW6XTQQ K:93XOYE-K08$*>HR=-33394WOGK<1LW/;$5BC:=/;O.:I3G P2<F<NG)DW:HK&?(UL)UHD:F=<.WH&+EWM+VUOJJ74D<52B479L-M/$NZS3%0A>0)+D+5<TCKZK0);A93BK61(&XMRG8)&:90CUV.+O1U3RYPT0HARQ$DHNTT.7R9Q'ZWJQ$5&%0W3E1%(6WR.4+;4(XS3YAG(OE$T;#M9XY' FLG#2 Q<(13:J<%N6D;I&<QX4X(:>=@;+V%G#W0A+L9$HP.C2UR9WPM*T+=&OCKY6L6>Q8&PG2FL*B 8$7-:F?1'I,D6L%?0H8UG$EH @ :D+(TP7/<?A?SEDVI% 2L%SCH*-Y'0N0,-*>S>XK3Q-&'(37A0(%T0$IE5 <YF*O-CSAI?(84M6$8('1PCS%Z:'QDG6).9Q6,BPQOU$JP'#'ESH#08H.3.A&T-Y6T8=#VI2..KT)M)X'1VYR@ <:[email protected]@$5ET,/4&U9/QS?QPF>$LQ(F+X/<M>VK(,P5Q:0TY?F;D8CS&3;++W0*/T2'0-<,DD-N$'XNB;?$'%-:2#HD>#$1 8;QUUMPN12IV<FB<:=XG-8'SCI%*NR;I;:NF*#-.0X /--@4SP'G=>0AY<GPAF=WFRN8=;-BK<6AX$2+CE%LHO,>QNJG)L:GWJ;@DH-9) NW=L$?FA=BV)O+.U8N-W91T?*Y#)H&1IV9;X57A&06;QYX5?$*H2K(X;V) *K2LE1BLD58@SO'AVYJXHQBTLAN=Z;?J3MN<T.MJN(H#4A&5@6*I/J'>U/7Y&/WD6G$-$;FQF*9%7R=#=Z8'PYP)BW<MFV%O ,O5%BPS++B4E24-XH *-+?Y97<' 9U8I9MF*4&&V#WI6#.FU+YMW/:E?6KPB9:E?KG;A7T51MZ8DO*>HM8WT.TRYQ=C5C)57$;;%Y9CSQDM@)3(>.9X&W&;AXZ5.8CWT49=-Q%MOY28NCHS=YP>*-P7OZ8I7QJII%BI+17*#>Z@X2FWGCF>LA=KTAG'>1-JIO-BF6G7:7'3=MDR;U7L<05R$/GBAT+0G>8B?%JY4'=&KJP6MK78,+TJ7VSQYQDV.FE+FO@HO;V$=I+EMI-E,Y9Q0EF6Y<&.NBC<X9?RQ N5.E-3#;UQAKDI=W#&FC2#/@IYS$KK2,KS):QBKNGM=JSC$GZ:M=>5(?C6K0)/OEA8P6>QP#Z,L-)M1Q3,U%RP?'V+SW#L1,/M2 26(2 K5/U#O>0L(GI@/:<:-Y?>X?%%8E&4$>K@AH9AWX/$Q525 NZ0F>XF'X<G&X'U<XHQLNNQYG#P*MIUVFN#H$2)G>P>ZIQH>6##LJ1XR$F8 ,1)J00O9II9&T9-GE?5:)DI'Q><6'CQ0*.PO527)@U*ANQTQ=?9TZ <VY?-('VB6LU6U9NJCCKY=D6>;;9:W0NM9GZ1-0&/#Z1/(X5WPX1'P3AWNO7O-/5=FK5INFO<F74<KYRZCXGZ'#C8UO@F,63$TVM(?RPDY8)/Y*32,.G+V8),Y'22R,X?'G28WH>GY9?%M-6Y6')?'G31,TUR%WD%O4DTZO->F;WLL8('187/9AZG;DP@D>&9:SXO$F:3*,)H?R'7BI)PJ%3XE9&( @54W&;SB-K'AK&J3?>.=3E#R2#2T5:LTV?R3*R.RWC:9S5F%9#HY+EB95Z*CD1;)4B >(Y<KZ;Z:6>ZE:) 1N2X0=-4R3(1/4Z5+P(6&Z+((LI=&B( S;I+GJ1PRZLI&V*FH, )<D9L-/-(TR6,F3IF1=LFA1$=J 7)'P(OYX.6PG)JQ%GL#Q6K*O5<H0-2Y?# ?B1WT9%S/@IAXSPHLG0.HX;1KCSJMJ.V<7EF,'QUP$>1@>%0NFDFTFF U0X#2M:6.I&,T4MN$&G&*7&2YZ @.?3.1B?4VU)>RX'(Y TM9#B-.UALZIFSD@6KS?-9WLB@SY8/RK5F>B@$P>-'B$LAB:($3DWZ3R5;03EQ1#OT9>:)88(Y-HCWLVEG:E'<Q5TQZ@DAIIA3T&EB68C.@99XR&VRYSR=6@JLK0(+P%N31T9OH,N<8#A P=XS5;'I,EW:)BY'N4:UOW3P$Q3NC3C#?U2'#I#O>$%.X$Z+1:+-Y9C<(-F7YBU'A>XB?:P-KPI,*XA0.LFE3 U3EG,/.(5/&-VS@+:R=56M>MG-%RFEU8 3DF#FF?S;GKX,VB;5&RCQS=ULT,M<.GK%7/#X@;D;O0=P;0<VA+O>D;8G.M *.MR>,5'GQESI&R@8+;Q?WZ$R&05FC$RAIK1,TD@ GD.1ID3YM<K#;KV ?:P&8J*WLD1?W8LF(I..HZOWL,)A3YP?D-3I5?JFT,Z(=/%4RH%.,&Q<'-U+16D)=IGX@:.:;B;L5 *R,LV(=7UKB%>$;LZ<-UTA($,JCNC7%5#9%2 O.#MF&4Z'=L9:T'9M%52XN%S@WJO2H(;J9<LR:'I(J7D V:X,L>,#TU%@LZ9UC&T%45;I6N1+ETNFRY=K.W847HZ>A<3,598-W0CEVH, XJA:>-N/.LG2Y<F==2B1=<=B$<V.D2N7F-JE#U*@X=F6B 88O+G6%5?8D.$J8K)C(7P/.*(UR(?S-+-DG6F5(3@A Q%B8PZL=.V+AC:52X&? .>P+IA./8WXV@LF6FYLV7<<V'7ACS)1G*P*.TEZ'@ QUU RNVRAFTFTW>2,+6OW$H=T'&%Y?DR-'LE>0C0$BG'9-NNW*0YZT;91M7@M @11F&R1Y7Y?2')B B/6LTD41WB&QZO1-A?+V+00N#=K+T3;QXLZRK? %-#%=#=FSQ37OO-%SJSSTE7SC2E1K8<*.5.TK97)SZLGM?,V-T&.QA<>.&D$;,RA@',HVZCD<)658'3>KEZ$-P,S7Y 00;7X@CYPXBNCV3.($'YX1/VSI?1?-9@@KX@=42'@ 1(*KQ?/G'BJNJ4 'S2XEOLD<N6-H-Q7ZOS:+$>94-<D2NY/Y,;J6#@U<9S:)43<G8'<A6MUPSFP'I$(2ZMWVF>0B@#LA&S3ZU=;8A9@BT/N3&7XSL*7V7CCBI+8L20T/UMM@KA7;Q(JD?@K,I(8SSQ1/WE<.& R+1D2T:YH9B?7IC M&B@(4ZAYFOJXMBRWCI(IDJB055L9&6,++GCIDP&TN9'DX%TC$5/,Y246H*@K9N#Z+RG $&[email protected]/3S6?9,SA8L%J@O*X)W+*20-@QA2@H+BWH7(H4-S /U9QFUZ;KCK-QJF&$+M$ZES@YEM;4KU7609YU3$XI%$I+<YEKY1QW;Q&2Y.)R>$;R'MG4H>8AE6P<ZB8-S&J'>62:F:QBE'':WMT9HU,VBKXP9(RV#'JOY) #:S8>KV/A9NVZZW&RA<-#E$WY2Z9?.H5P%#7BO?<=.=+W67 V>J1E?A(X'?=1;'207R68P$Z6 9+$/)5AIUW)C-7>++JD?MBW.P;W*Z,%>VLOIO/R(&=48Z0D04.0Y?T1**S(6*+76E$)#%@7V>>KM:O0=7WQ0,TI&DN85K6TQW@3JMR3<F473Z8$?#-8@/&MLEZS(D(O:?/9%G:-7?AR%ZPWHGW6F0ERF4)PFDIV'*>@RV3T>NOK)E@ ).V&YTK&V7HWJYTWX&L><.T:U>D4W E>41B56Z@*SN(*H&4:>&6@F<#U(KI4DI7UY2#<BHDD1@JK&UN),M(D&2-$4(RHR@T?LTPX-1@',*ECUHLN6;:96:TY/JJ&GRD,WEMROIC23,1)0I:5O4+MNO>Y$#U/IF3TG9/F@H6(SW#>?7DL4+IOM.X(D6K#UY;DPRS@H7NO.#Z3R283#,4P<6''.P6%$>P ,Z0%8::3NE0*G:92V?)4':P,@3684G'SH=-C%&%-'+%EUGHD3ZR+(J$ ?WH9$S(EXXC/G709SHA6+FMB,5*H(IHU42);U;:U+U>@<U#3+WM<$W70.>Z)XO61$%J:?/BA/AH&WX0EKV'<DK<,M2JVCBYK*#>G:BUQX%:;6ECOT&@ 3/>#XF./F/LR'.I)Y;J8?X$4UCL!?NH?<12G(WF1R(B/6R AF $JZHI8@#Y(BVUQ+*0W:<A@SX@/HRH$9;P%D8VG-P< 3ZE75)4A0;8=*-<&((. HN'/O1W?=9V*05:5I4T92)I:C#2+70TIV('&0,>A,S=@5/<)DU9I#+SX;N 6$L :?<T)1;T)EV7>7ML@C1>/6JEE2 GP8Z8#@6G08E J'FN(D6 %8-GKSU(,4$X+SH5D+K=;2;',MXP8XQ7+N-PM A7A#8>3S5<M KVFB%7*/JH,FVK0T4IL(4:J0E1:21ZB?D3XQ=6;T:FRWT!?FZ>Q*N6M'>LGB'2%8U:>.(K>I>%(:Q>Q5@)PQW?=M8=7L(8X*XT/>SB2EMAYM#,UYQFU2O7.02.5PEZ2.&(+P@*Z>WY'8 MYXKQIP.DAA.Z8=>TQ?%W55 H-DE4-4Y1?$R.N=2#G0492)VIEVN&?R?<3HS=/J+7R.XN!? WZ:LI35P$EI1M1#;WSIYM:Z1<*Z+QADS=KV4'4'+U''</=FX4U$ S'U+IX+0KK,Q/$YL*QC<Y<WL/352J1(?W#&NZAMG.3*/V%%4PZ8ZWEW;-FD1#'JKP8'EK#3I$OM%=QWY.-*5'.LN5.JKJ(XUN+M$ABU1.1,=7-@BRJ5#5W&9@P#SJ P5#*N10JD=ZDLBZ;6D/2/'<5C&Q#CQV3ZW-)=ZKJ61,'83Z%6(:P=XD/4 A NA#'U>1;;FB?1D3KD;S24>7.>?691'=YTCV//G<&,BR?'/*$XI+J:G;' BL#$36K*(KDJ8D'UI+2QGKS;TZX%GR@'>=WJH)EP;-ZVR.?HL<94INMTF3>Q8?:OD,H9I%4WN,($TH</:TJHTRV94X-JZPTE0P*G>FJ9.W9L47VIW03*T-M3W?V@B#MRR=Z3%3=65E2)*1>GK,C%*.FZ5F3VA2I1 GG$3 MLO67=GB*5PXLH)*7#KI0 3TJ0KN>B/(:,I4?C=%,RFRU/+,DPNLKS.;2<X3$=C6/EN&Y1 ?/R;@7='U%+ZBSO/+JT#+6AZ20IGSKS%+Y3.Y7A#-AS$<?.F;,L &YH.?()'5GP3L730XK0:#;+2?GY/A3L?9$'2PNZELRWX>SYJ@N8JE'+K$BOT:@9PC-4K W$%#OEJ+<&/3+V7.GTFUT;F*SJ/DEUDVFX7Y?D)+2U(6;5IN/TU. (&6<0&LC,K3W%H/-GNU0$)H*+<$Q*SL0YI91QU.%VRB5#7O8C<IY Y@>6.88%O8M@Z#>%2N T>U@Y2/@19V?Z8NRZNUQ.EGE8M.JXT*).=@/F#ED37=0*(,FUN;X2F<N+9<N2<Y6$)30<I.7FNMF6M4DW1>Q%6KYF1M$<EV.%(WPSZWZF-:/PP"; break; default: throw -1; }} }; class Benchmark : public Script { IntVarArray int_vars; StringVarArray str_vars; public: static bool sat; Benchmark(Benchmark& s): Script(s) { int_vars.update(*this, s.int_vars); str_vars.update(*this, s.str_vars); } virtual Space* copy() { return new Benchmark(*this); } Benchmark(const StringOptions& so): Script(so) { // constraint str_len(expr) > 0; // constraint blank1 = str_pow(" ", n); // constraint blank2 = str_pow(" ", m); // constraint sql = // pref ++ expr ++ blank1 ++ "=" ++ blank2 ++ expr ++ suff // Variables. StringVar pref(*this, 0, so.N); StringVar suff(*this, 0, so.N); StringVar expr(*this, 0, so.N); StringVar blank1(*this, 0, so.N); StringVar blank2(*this, 0, so.N); StringVar pref_expr(*this, 0, so.N); StringVar blank_expr(*this, 0, so.N); StringVar lhs(*this, 0, so.N); StringVar rhs(*this, 0, so.N); StringVar eq (*this, 0, so.N); StringVarArgs sva; sva << pref << suff << expr << blank1 << blank2 << pref_expr << blank_expr << lhs << rhs << eq; str_vars = StringVarArray(*this, sva); IntVar n(*this, 0, so.N); IntVar m(*this, 0, so.N); IntVar l(*this, 0, so.N); IntVarArgs iva; iva << n << m << l; int_vars = IntVarArray(*this, iva); // Constraints. length(*this, expr, l); length(*this, blank1, n); length(*this, blank2, m); rel(*this, l > 0); NSBlocks v({NSBlock(NSIntSet(' '), 0, so.N)}); // NSBlocks w({NSBlock(NSIntSet(33, 90), 0, so.N)}); // rel(*this, expr, STRT_DOM, w); rel(*this, blank1, STRT_DOM, v, 0, so.N); rel(*this, blank2, STRT_DOM, v, 0, so.N); rel(*this, pref, expr, STRT_CAT, pref_expr); rel(*this, pref_expr, blank1, STRT_CAT, lhs); rel(*this, lhs, StringVar(*this, "="), STRT_CAT, eq); rel(*this, blank2, expr, STRT_CAT, blank_expr); rel(*this, blank_expr, suff, STRT_CAT, rhs); rel(*this, eq, rhs, STRT_CAT, StringVar(*this, so.SQL)); // Branching. lenblockmin_lllm(*this, str_vars); // sizemin_llul(*this, str_vars); } virtual void print(std::ostream& os) const { sat = true; for (int i = 0; i < int_vars.size(); ++i) if (int_vars[i].assigned()) os << "int_var[" << i << "] = " << int_vars[i].val() << "\n"; else os << "int_var[" << i << "] = " << int_vars[i] << "\n"; for (int i = 0; i < 5; ++i) if (str_vars[i].assigned()) os << "string_var[" << i << "] = \"" << str_vars[i].val() << "\"\n"; else os << "string_var[" << i << "] = \"" << str_vars[i] << "\"\n"; os << "----------\n"; } }; bool Benchmark::sat = false; int main(int argc, char* argv[]) { int n = atoi(argv[1]); StringOptions opt((string("*** sql ") + argv[1] + string(" ***")).c_str(), n); opt.solutions(1); Script::run<Benchmark, DFS, StringOptions>(opt); switch (n) { case 250: case 1000: case 5000: assert (!Benchmark::sat); break; default: assert (Benchmark::sat); } return 0; }
144.08982
10,013
0.654864
ramadini
c8ef1e1e583346d815187f20a10921c959a3c6a5
4,618
cpp
C++
examples/eg05_poisson_multispp.cpp
predictionmachines/Filzbach
f7d32dbaa78b528a5f5f59bfd950bd01ef5b8390
[ "MIT" ]
9
2015-10-07T08:22:59.000Z
2020-07-15T15:48:00.000Z
examples/eg05_poisson_multispp.cpp
predictionmachines/Filzbach
f7d32dbaa78b528a5f5f59bfd950bd01ef5b8390
[ "MIT" ]
4
2016-01-19T14:52:16.000Z
2017-10-20T03:26:39.000Z
examples/eg05_poisson_multispp.cpp
predictionmachines/Filzbach
f7d32dbaa78b528a5f5f59bfd950bd01ef5b8390
[ "MIT" ]
4
2016-01-20T11:17:50.000Z
2021-04-02T19:08:30.000Z
#include "preamble.h" #if MODEL == 5 #include <stdlib.h> #include <math.h> #include <string.h> #include "filzbach.h" void pause(){PAUSE} /************************************************************/ /* function headers */ /************************************************************/ void fake_data(); void read_data(); void setup_parameters(); void fit_model(); void final_output(); /************************************************************/ void fake_data() { /* use this to create fake data to test your analysis, before you try real data */ /* how many data? */ int numdata = 999; /* how many species? */ int numsp = 10; /* generate random means. */ /* do we get these parameters back out again? */ table_create("trueparams"); table_addcolumn("trueparams","spid"); table_addcolumn("trueparams","lambda"); for(int ss = 0; ss < numsp; ss++) { table_writevalue("trueparams", "spid", ss, ss); table_writevalue("trueparams", "lambda", ss, 1.0+random(0.0,9.0)); } table_create("fakedata"); table_addcolumn("fakedata","spid"); table_addcolumn("fakedata","count"); for(int ii = 0; ii < numdata; ii++) { /* generate random species */ int spp = random_integer(0,numsp-1); /* draw random value for y from poisson distribution with appropriate mean and sdev */ double true_lambda = table_getvalue("trueparams", "lambda", spp); int y = poisson_draw(true_lambda); /* write to fake data table */ table_writevalue("fakedata", "spid", ii, spp); table_writevalue("fakedata", "count", ii, y); } table_output("fakedata","./workspace/eg05_poisson_multispp_fakedata.txt"); table_output("trueparams","./workspace/eg05_poisson_multispp_trueparams.txt"); return; } /************************************************************/ void read_data() { table_read("mydata","./workspace/eg05_poisson_multispp_fakedata.txt",2); PAUSE return; } /************************************************************/ void setup_parameters() { /* first, figure out what is the number of species */ int numdata = table_numrows("mydata"); int numsp = (int)table_getcolumnmax("mydata","spid") + 1; /* each line defines one new parameter for our model */ parameter_create_vector("lambda", 0.0010, 200.0, 100.0, 1, 0, 1, numsp); /* set parameters for the hierarchical distribution? */ parameter_create("lambda_mean",0.0010,200.0,100.0,1,0,1); parameter_create("lambda_sdev",0.0010,2.0,0.20,1,0,1); parameter_showall(); PAUSE return; } /************************************************************/ void likelihood() { /* writes the log-likelihood given current parameter values */ /* set sum over log-likelihood to zero */ set_metr_ltotnew(0.0); set_metr_number_ok(0); /* get model parameters from list held by metropolis header */ /* loop over data */ int numdata = table_numrows("mydata"); int numsp = 0; for(int ii = 0; ii < numdata; ii++) { /* get observed count and species id */ int count = (int)table_getvalue("mydata","count",ii); int spp = (int)table_getvalue("mydata","spid",ii); if (spp > numsp) numsp = spp; /* get parameter for this species */ double prob1 = poisson_density(count, cv("lambda",spp)); inc_metr_ltotnew(log(prob1)); inc_metr_number_ok(1); } numsp += 1; /* loop over parameters for hierarhical modelling */ double grandmean = cv("lambda_mean"); double grandsdev = cv("lambda_sdev"); for(int spp = 0; spp < numsp; spp++) { /* get param value for this species */ double mean = cv("lambda",spp); /* calc prob1 */ double prob1 = normal_density(log(mean),log(grandmean),grandsdev); inc_metr_ltotnew(log(prob1)); } return; } /************************************************/ void final_output() { /* create link to file */ char fname[100]; /* create file name for output -- outp is the 'path' */ get_filzbach_path(fname, 100); /* now your bit to add to the path */ strcat(fname,"_my_output.txt"); /* print internal table out to file with name taken from above */ table_output("mydata",fname); return; } /* ************************************************* */ /* The control function that calls everything else. */ /* ************************************************* */ int main() { atexit(pause); // set the likelihood function pointer pfn_likelihood = &likelihood; initialize_filzbach(); name_analysis("eg05_poisson_multispp_00"); fake_data(); // either fake data (to test routine) or read data (to do for real) read_data(); setup_parameters(); //set_chains(3); runmcmc(5000, 5000, 5000, 5000); final_output(); } #endif
25.94382
88
0.601126
predictionmachines
c8fbd4c9b26a40ee0ffac638a5f89f7b80d9cf28
10,628
cpp
C++
src/ttauri/widgets/window_traffic_lights_widget.cpp
VulkanWorks/ttauri
28cc6f9fd891b55bd4eb0e266bc29e2da26594bf
[ "BSL-1.0" ]
null
null
null
src/ttauri/widgets/window_traffic_lights_widget.cpp
VulkanWorks/ttauri
28cc6f9fd891b55bd4eb0e266bc29e2da26594bf
[ "BSL-1.0" ]
null
null
null
src/ttauri/widgets/window_traffic_lights_widget.cpp
VulkanWorks/ttauri
28cc6f9fd891b55bd4eb0e266bc29e2da26594bf
[ "BSL-1.0" ]
null
null
null
// Copyright Take Vos 2020-2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #include "window_traffic_lights_widget.hpp" #include "../GUI/gui_window.hpp" #include "../GFX/pipeline_SDF_device_shared.hpp" #include "../text/font_book.hpp" #include <cmath> #include <typeinfo> namespace tt::inline v1 { window_traffic_lights_widget::window_traffic_lights_widget(gui_window &window, widget *parent) noexcept : super(window, parent) {} widget_constraints const &window_traffic_lights_widget::set_constraints() noexcept { _layout = {}; if (theme().operating_system == operating_system::windows) { ttlet size = extent2{theme().toolbar_decoration_button_width * 3.0f, theme().toolbar_height}; return _constraints = {size, size, size}; } else if (theme().operating_system == operating_system::macos) { ttlet size = extent2{DIAMETER * 3.0f + 2.0f * MARGIN + 2.0f * SPACING, DIAMETER + 2.0f * MARGIN}; return _constraints = {size, size, size}; } else { tt_no_default(); } } void window_traffic_lights_widget::set_layout(widget_layout const &layout) noexcept { if (compare_store(_layout, layout)) { auto extent = layout.size; if (extent.height() > theme().toolbar_height * 1.2f) { extent = extent2{extent.width(), theme().toolbar_height}; } auto y = layout.height() - extent.height(); if (theme().operating_system == operating_system::windows) { closeRectangle = aarectangle{point2(extent.width() * 2.0f / 3.0f, y), extent2{extent.width() * 1.0f / 3.0f, extent.height()}}; maximizeRectangle = aarectangle{point2(extent.width() * 1.0f / 3.0f, y), extent2{extent.width() * 1.0f / 3.0f, extent.height()}}; minimizeRectangle = aarectangle{point2(0.0f, y), extent2{extent.width() * 1.0f / 3.0f, extent.height()}}; } else if (theme().operating_system == operating_system::macos) { closeRectangle = aarectangle{point2(MARGIN, extent.height() / 2.0f - RADIUS), extent2{DIAMETER, DIAMETER}}; minimizeRectangle = aarectangle{point2(MARGIN + DIAMETER + SPACING, extent.height() / 2.0f - RADIUS), extent2{DIAMETER, DIAMETER}}; maximizeRectangle = aarectangle{ point2(MARGIN + DIAMETER + SPACING + DIAMETER + SPACING, extent.height() / 2.0f - RADIUS), extent2{DIAMETER, DIAMETER}}; } else { tt_no_default(); } closeWindowGlyph = font_book().find_glyph(ttauri_icon::CloseWindow); minimizeWindowGlyph = font_book().find_glyph(ttauri_icon::MinimizeWindow); if (theme().operating_system == operating_system::windows) { maximizeWindowGlyph = font_book().find_glyph(ttauri_icon::MaximizeWindowMS); restoreWindowGlyph = font_book().find_glyph(ttauri_icon::RestoreWindowMS); } else if (theme().operating_system == operating_system::macos) { maximizeWindowGlyph = font_book().find_glyph(ttauri_icon::MaximizeWindowMacOS); restoreWindowGlyph = font_book().find_glyph(ttauri_icon::RestoreWindowMacOS); } else { tt_no_default(); } ttlet closeWindowGlyphBB = closeWindowGlyph.get_bounding_box(); ttlet minimizeWindowGlyphBB = minimizeWindowGlyph.get_bounding_box(); ttlet maximizeWindowGlyphBB = maximizeWindowGlyph.get_bounding_box(); ttlet restoreWindowGlyphBB = restoreWindowGlyph.get_bounding_box(); ttlet glyph_size = theme().operating_system == operating_system::macos ? 5.0f : theme().icon_size; closeWindowGlyphRectangle = align(closeRectangle, closeWindowGlyphBB * glyph_size, alignment::middle_center()); minimizeWindowGlyphRectangle = align(minimizeRectangle, minimizeWindowGlyphBB * glyph_size, alignment::middle_center()); maximizeWindowGlyphRectangle = align(maximizeRectangle, maximizeWindowGlyphBB * glyph_size, alignment::middle_center()); restoreWindowGlyphRectangle = align(maximizeRectangle, restoreWindowGlyphBB * glyph_size, alignment::middle_center()); } } void window_traffic_lights_widget::drawMacOS(draw_context const &drawContext) noexcept { auto context = drawContext; ttlet close_circle_color = (not active() and not hover) ? color(0.246f, 0.246f, 0.246f) : pressedClose ? color(1.0f, 0.242f, 0.212f) : color(1.0f, 0.1f, 0.082f); context.draw_box(layout(), closeRectangle, close_circle_color, corner_radii{RADIUS}); ttlet minimize_circle_color = (not active() and not hover) ? color(0.246f, 0.246f, 0.246f) : pressedMinimize ? color(1.0f, 0.847f, 0.093f) : color(0.784f, 0.521f, 0.021f); context.draw_box(layout(), minimizeRectangle, minimize_circle_color, corner_radii{RADIUS}); ttlet maximize_circle_color = (not active() and not hover) ? color(0.246f, 0.246f, 0.246f) : pressedMaximize ? color(0.223f, 0.863f, 0.1f) : color(0.082f, 0.533f, 0.024f); context.draw_box(layout(), maximizeRectangle, maximize_circle_color, corner_radii{RADIUS}); if (hover) { context.draw_glyph(layout(), translate_z(0.1f) * closeWindowGlyphRectangle, color{0.319f, 0.0f, 0.0f}, closeWindowGlyph); context.draw_glyph( layout(), translate_z(0.1f) * minimizeWindowGlyphRectangle, color{0.212f, 0.1f, 0.0f}, minimizeWindowGlyph); if (window.size_state == gui_window_size::maximized) { context.draw_glyph( layout(), translate_z(0.1f) * restoreWindowGlyphRectangle, color{0.0f, 0.133f, 0.0f}, restoreWindowGlyph); } else { context.draw_glyph( layout(), translate_z(0.1f) * maximizeWindowGlyphRectangle, color{0.0f, 0.133f, 0.0f}, maximizeWindowGlyph); } } } void window_traffic_lights_widget::drawWindows(draw_context const &drawContext) noexcept { auto context = drawContext; if (pressedClose) { context.draw_box(layout(), closeRectangle, color{1.0f, 0.0f, 0.0f}); } else if (hoverClose) { context.draw_box(layout(), closeRectangle, color{0.5f, 0.0f, 0.0f}); } else { context.draw_box(layout(), closeRectangle, theme().color(theme_color::fill, semantic_layer)); } if (pressedMinimize) { context.draw_box(layout(), minimizeRectangle, theme().color(theme_color::fill, semantic_layer + 2)); } else if (hoverMinimize) { context.draw_box(layout(), minimizeRectangle, theme().color(theme_color::fill, semantic_layer + 1)); } else { context.draw_box(layout(), minimizeRectangle, theme().color(theme_color::fill, semantic_layer)); } if (pressedMaximize) { context.draw_box(layout(), maximizeRectangle, theme().color(theme_color::fill, semantic_layer + 2)); } else if (hoverMaximize) { context.draw_box(layout(), maximizeRectangle, theme().color(theme_color::fill, semantic_layer + 1)); } else { context.draw_box(layout(), maximizeRectangle, theme().color(theme_color::fill, semantic_layer)); } ttlet glyph_color = active() ? label_color() : foreground_color(); context.draw_glyph(layout(), translate_z(0.1f) * closeWindowGlyphRectangle, glyph_color, closeWindowGlyph); context.draw_glyph(layout(), translate_z(0.1f) * minimizeWindowGlyphRectangle, glyph_color, minimizeWindowGlyph); if (window.size_state == gui_window_size::maximized) { context.draw_glyph(layout(), translate_z(0.1f) * restoreWindowGlyphRectangle, glyph_color, restoreWindowGlyph); } else { context.draw_glyph(layout(), translate_z(0.1f) * maximizeWindowGlyphRectangle, glyph_color, maximizeWindowGlyph); } } void window_traffic_lights_widget::draw(draw_context const &context) noexcept { if (visible and overlaps(context, layout())) { if (theme().operating_system == operating_system::macos) { drawMacOS(context); } else if (theme().operating_system == operating_system::windows) { drawWindows(context); } else { tt_no_default(); } } } bool window_traffic_lights_widget::handle_event(mouse_event const &event) noexcept { tt_axiom(is_gui_thread()); auto handled = super::handle_event(event); // Check the hover states of each button. auto stateHasChanged = false; stateHasChanged |= compare_store(hoverClose, closeRectangle.contains(event.position)); stateHasChanged |= compare_store(hoverMinimize, minimizeRectangle.contains(event.position)); stateHasChanged |= compare_store(hoverMaximize, maximizeRectangle.contains(event.position)); if (stateHasChanged) { request_redraw(); } if (event.cause.leftButton) { handled = true; switch (event.type) { using enum mouse_event::Type; case ButtonUp: if (pressedClose && hoverClose) { window.close_window(); } if (pressedMinimize && hoverMinimize) { window.minimize_window(); } if (pressedMaximize && hoverMaximize) { switch (window.size_state) { case gui_window_size::normal: window.maximize_window(); break; case gui_window_size::maximized: window.normalize_window(); break; default: tt_no_default(); } } request_redraw(); pressedClose = false; pressedMinimize = false; pressedMaximize = false; break; case ButtonDown: request_redraw(); pressedClose = hoverClose; pressedMinimize = hoverMinimize; pressedMaximize = hoverMaximize; break; } } return handled; } hitbox window_traffic_lights_widget::hitbox_test(point3 position) const noexcept { tt_axiom(is_gui_thread()); if (visible and enabled and layout().contains(position) and (closeRectangle.contains(position) or minimizeRectangle.contains(position) or maximizeRectangle.contains(position))) { return hitbox{this, position, hitbox::Type::Button}; } else { return {}; } } } // namespace tt::inline v1
42.854839
130
0.647911
VulkanWorks
c8fc602a8b6db650025fbf47db8661529a944719
139
cpp
C++
tests/type_reg/test_reply.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
tests/type_reg/test_reply.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
tests/type_reg/test_reply.cpp
mujido/moove
380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b
[ "Apache-2.0" ]
null
null
null
#include "reply.hpp" using namespace Moove; Reply func() { return Reply(); } int main() { Reply reply; reply = func(); return 0; }
8.176471
22
0.625899
mujido
c8fdf6450600ced716c245d5feee9f3667205b2a
27,795
cpp
C++
wlx_dll/twlx/twlx.cpp
tablacus/TablacusExplorerAddons
73a2aeda657811f25ce61346392185b9d1478710
[ "MIT" ]
64
2015-07-30T17:42:16.000Z
2022-03-23T17:57:14.000Z
wlx_dll/twlx/twlx.cpp
tablacus/TablacusExplorerAddons
73a2aeda657811f25ce61346392185b9d1478710
[ "MIT" ]
324
2015-01-25T17:02:36.000Z
2022-03-15T00:46:30.000Z
wlx_dll/twlx/twlx.cpp
tablacus/TablacusExplorerAddons
73a2aeda657811f25ce61346392185b9d1478710
[ "MIT" ]
16
2016-08-21T00:38:04.000Z
2020-12-27T09:35:59.000Z
// Tablacus Total Commander Listr Plugin Wrapper (C)2018 Gaku // MIT Lisence // Visual C++ 2017 Express Edition // 32-bit Visual Studio 2015 - Windows XP (v140_xp) // 64-bit Visual Studio 2017 (v141) // https://tablacus.github.io/ #include "twlx.h" // Global Variables: const TCHAR g_szProgid[] = TEXT("Tablacus.TotalCommanderLSPlugin"); const TCHAR g_szClsid[] = TEXT("{E160213A-4E9E-44f3-BD39-8297499608B6}"); HINSTANCE g_hinstDll = NULL; LONG g_lLocks = 0; CteBase *g_pBase = NULL; std::vector <CteWO *> g_ppObject; IDispatch *g_pdispArrayProc = NULL; IDispatch *g_pdispProgressProc = NULL; IDispatch *g_pdispLogProc = NULL; IDispatch *g_pdispRequestProc = NULL; IDispatch *g_pdispCryptProc = NULL; std::unordered_map<std::wstring, DISPID> g_umBASE = { { L"Open", 0x60010000 }, { L"Close", 0x6001000C }, }; std::unordered_map<std::wstring, DISPID> g_umWO = { { L"ListLoad", 0x60010001 }, { L"ListLoadNext", 0x60010002 }, { L"ListCloseWindow", 0x60010003 }, { L"ListSetDefaultParams", 0x60010004 }, { L"ListGetPreviewBitmap", 0x60010005 }, { L"ListGetDetectString", 0x60010006 }, { L"IsUnicode", 0x6001FFFF }, }; // Unit VOID SafeRelease(PVOID ppObj) { try { IUnknown **ppunk = static_cast<IUnknown **>(ppObj); if (*ppunk) { (*ppunk)->Release(); *ppunk = NULL; } } catch (...) { } } VOID teGetProcAddress(HMODULE hModule, LPSTR lpName, FARPROC *lpfnA, FARPROC *lpfnW) { *lpfnA = GetProcAddress(hModule, lpName); if (lpfnW) { char pszProcName[80]; strcpy_s(pszProcName, 80, lpName); strcat_s(pszProcName, 80, "W"); *lpfnW = GetProcAddress(hModule, (LPCSTR)pszProcName); } } void LockModule(BOOL bLock) { if (bLock) { InterlockedIncrement(&g_lLocks); } else { InterlockedDecrement(&g_lLocks); } } HRESULT ShowRegError(LSTATUS ls) { LPTSTR lpBuffer = NULL; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, ls, LANG_USER_DEFAULT, (LPTSTR)&lpBuffer, 0, NULL); MessageBox(NULL, lpBuffer, TEXT(PRODUCTNAME), MB_ICONHAND | MB_OK); LocalFree(lpBuffer); return HRESULT_FROM_WIN32(ls); } LSTATUS CreateRegistryKey(HKEY hKeyRoot, LPTSTR lpszKey, LPTSTR lpszValue, LPTSTR lpszData) { HKEY hKey; LSTATUS lr; DWORD dwSize; lr = RegCreateKeyEx(hKeyRoot, lpszKey, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL); if (lr == ERROR_SUCCESS) { if (lpszData != NULL) { dwSize = (lstrlen(lpszData) + 1) * sizeof(TCHAR); } else { dwSize = 0; } lr = RegSetValueEx(hKey, lpszValue, 0, REG_SZ, (LPBYTE)lpszData, dwSize); RegCloseKey(hKey); } return lr; } BSTR GetLPWSTRFromVariant(VARIANT *pv) { if (pv->vt == (VT_VARIANT | VT_BYREF)) { return GetLPWSTRFromVariant(pv->pvarVal); } switch (pv->vt) { case VT_BSTR: case VT_LPWSTR: return pv->bstrVal; default: return NULL; }//end_switch } int GetIntFromVariant(VARIANT *pv) { if (pv) { if (pv->vt == (VT_VARIANT | VT_BYREF)) { return GetIntFromVariant(pv->pvarVal); } if (pv->vt == VT_I4) { return pv->lVal; } if (pv->vt == VT_UI4) { return pv->ulVal; } if (pv->vt == VT_R8) { return (int)(LONGLONG)pv->dblVal; } VARIANT vo; VariantInit(&vo); if SUCCEEDED(VariantChangeType(&vo, pv, 0, VT_I4)) { return vo.lVal; } if SUCCEEDED(VariantChangeType(&vo, pv, 0, VT_UI4)) { return vo.ulVal; } if SUCCEEDED(VariantChangeType(&vo, pv, 0, VT_I8)) { return (int)vo.llVal; } } return 0; } int GetIntFromVariantClear(VARIANT *pv) { int i = GetIntFromVariant(pv); VariantClear(pv); return i; } #ifdef _WIN64 BOOL teStartsText(LPWSTR pszSub, LPCWSTR pszFile) { BOOL bResult = pszFile ? TRUE : FALSE; WCHAR wc; while (bResult && (wc = *pszSub++)) { bResult = towlower(wc) == towlower(*pszFile++); } return bResult; } BOOL teVarIsNumber(VARIANT *pv) { return pv->vt == VT_I4 || pv->vt == VT_R8 || pv->vt == (VT_ARRAY | VT_I4) || (pv->vt == VT_BSTR && ::SysStringLen(pv->bstrVal) == 18 && teStartsText(L"0x", pv->bstrVal)); } LONGLONG GetLLFromVariant(VARIANT *pv) { if (pv) { if (pv->vt == (VT_VARIANT | VT_BYREF)) { return GetLLFromVariant(pv->pvarVal); } if (pv->vt == VT_I4) { return pv->lVal; } if (pv->vt == VT_R8) { return (LONGLONG)pv->dblVal; } if (pv->vt == (VT_ARRAY | VT_I4)) { LONGLONG ll = 0; PVOID pvData; if (::SafeArrayAccessData(pv->parray, &pvData) == S_OK) { ::CopyMemory(&ll, pvData, sizeof(LONGLONG)); ::SafeArrayUnaccessData(pv->parray); return ll; } } if (teVarIsNumber(pv)) { LONGLONG ll = 0; if (swscanf_s(pv->bstrVal, L"0x%016llx", &ll) > 0) { return ll; } } VARIANT vo; VariantInit(&vo); if SUCCEEDED(VariantChangeType(&vo, pv, 0, VT_I8)) { return vo.llVal; } } return 0; } #endif VOID teSetBool(VARIANT *pv, BOOL b) { if (pv) { pv->boolVal = b ? VARIANT_TRUE : VARIANT_FALSE; pv->vt = VT_BOOL; } } VOID teSysFreeString(BSTR *pbs) { if (*pbs) { ::SysFreeString(*pbs); *pbs = NULL; } } VOID teSetLong(VARIANT *pv, LONG i) { if (pv) { pv->lVal = i; pv->vt = VT_I4; } } VOID teSetLL(VARIANT *pv, LONGLONG ll) { if (pv) { pv->lVal = static_cast<int>(ll); if (ll == static_cast<LONGLONG>(pv->lVal)) { pv->vt = VT_I4; return; } pv->dblVal = static_cast<DOUBLE>(ll); if (ll == static_cast<LONGLONG>(pv->dblVal)) { pv->vt = VT_R8; return; } pv->bstrVal = ::SysAllocStringLen(NULL, 18); swprintf_s(pv->bstrVal, 19, L"0x%016llx", ll); pv->vt = VT_BSTR; } } BOOL teSetObject(VARIANT *pv, PVOID pObj) { if (pObj) { try { IUnknown *punk = static_cast<IUnknown *>(pObj); if SUCCEEDED(punk->QueryInterface(IID_PPV_ARGS(&pv->pdispVal))) { pv->vt = VT_DISPATCH; return true; } if SUCCEEDED(punk->QueryInterface(IID_PPV_ARGS(&pv->punkVal))) { pv->vt = VT_UNKNOWN; return true; } } catch (...) {} } return false; } BOOL teSetObjectRelease(VARIANT *pv, PVOID pObj) { if (pObj) { try { IUnknown *punk = static_cast<IUnknown *>(pObj); if (pv) { if SUCCEEDED(punk->QueryInterface(IID_PPV_ARGS(&pv->pdispVal))) { pv->vt = VT_DISPATCH; SafeRelease(&punk); return true; } if SUCCEEDED(punk->QueryInterface(IID_PPV_ARGS(&pv->punkVal))) { pv->vt = VT_UNKNOWN; SafeRelease(&punk); return true; } } SafeRelease(&punk); } catch (...) {} } return false; } VOID teSetSZA(VARIANT *pv, LPCSTR lpstr, int nCP) { if (pv) { int nLenW = MultiByteToWideChar(nCP, 0, lpstr, -1, NULL, NULL); if (nLenW) { pv->bstrVal = ::SysAllocStringLen(NULL, nLenW - 1); pv->bstrVal[0] = NULL; MultiByteToWideChar(nCP, 0, (LPCSTR)lpstr, -1, pv->bstrVal, nLenW); } else { pv->bstrVal = NULL; } pv->vt = VT_BSTR; } } VOID teSetSZ(VARIANT *pv, LPCWSTR lpstr) { if (pv) { pv->bstrVal = ::SysAllocString(lpstr); pv->vt = VT_BSTR; } } VOID teSetBSTR(VARIANT *pv, BSTR bs, int nLen) { if (pv) { pv->vt = VT_BSTR; if (bs) { if (nLen < 0) { nLen = lstrlen(bs); } if (::SysStringLen(bs) == nLen) { pv->bstrVal = bs; return; } } pv->bstrVal = SysAllocStringLen(bs, nLen); teSysFreeString(&bs); } } BOOL FindUnknown(VARIANT *pv, IUnknown **ppunk) { if (pv) { if (pv->vt == VT_DISPATCH || pv->vt == VT_UNKNOWN) { *ppunk = pv->punkVal; return *ppunk != NULL; } if (pv->vt == (VT_VARIANT | VT_BYREF)) { return FindUnknown(pv->pvarVal, ppunk); } if (pv->vt == (VT_DISPATCH | VT_BYREF) || pv->vt == (VT_UNKNOWN | VT_BYREF)) { *ppunk = *pv->ppunkVal; return *ppunk != NULL; } } *ppunk = NULL; return false; } HRESULT tePutProperty0(IUnknown *punk, LPOLESTR sz, VARIANT *pv, DWORD grfdex) { HRESULT hr = E_FAIL; DISPID dispid, putid; DISPPARAMS dispparams; IDispatchEx *pdex; if SUCCEEDED(punk->QueryInterface(IID_PPV_ARGS(&pdex))) { BSTR bs = ::SysAllocString(sz); hr = pdex->GetDispID(bs, grfdex, &dispid); if SUCCEEDED(hr) { putid = DISPID_PROPERTYPUT; dispparams.rgvarg = pv; dispparams.rgdispidNamedArgs = &putid; dispparams.cArgs = 1; dispparams.cNamedArgs = 1; hr = pdex->InvokeEx(dispid, LOCALE_USER_DEFAULT, DISPATCH_PROPERTYPUTREF, &dispparams, NULL, NULL, NULL); } ::SysFreeString(bs); SafeRelease(&pdex); } return hr; } HRESULT tePutProperty(IUnknown *punk, LPOLESTR sz, VARIANT *pv) { return tePutProperty0(punk, sz, pv, fdexNameEnsure); } // VARIANT Clean-up of an array VOID teClearVariantArgs(int nArgs, VARIANTARG *pvArgs) { if (pvArgs && nArgs > 0) { for (int i = nArgs ; i-- > 0;){ VariantClear(&pvArgs[i]); } delete[] pvArgs; pvArgs = NULL; } } HRESULT Invoke5(IDispatch *pdisp, DISPID dispid, WORD wFlags, VARIANT *pvResult, int nArgs, VARIANTARG *pvArgs) { HRESULT hr; // DISPPARAMS DISPPARAMS dispParams; dispParams.rgvarg = pvArgs; dispParams.cArgs = abs(nArgs); DISPID dispidName = DISPID_PROPERTYPUT; if (wFlags & DISPATCH_PROPERTYPUT) { dispParams.cNamedArgs = 1; dispParams.rgdispidNamedArgs = &dispidName; } else { dispParams.rgdispidNamedArgs = NULL; dispParams.cNamedArgs = 0; } try { hr = pdisp->Invoke(dispid, IID_NULL, LOCALE_USER_DEFAULT, wFlags, &dispParams, pvResult, NULL, NULL); } catch (...) { hr = E_FAIL; } teClearVariantArgs(nArgs, pvArgs); return hr; } HRESULT Invoke4(IDispatch *pdisp, VARIANT *pvResult, int nArgs, VARIANTARG *pvArgs) { return Invoke5(pdisp, DISPID_VALUE, DISPATCH_METHOD, pvResult, nArgs, pvArgs); } VARIANTARG* GetNewVARIANT(int n) { VARIANT *pv = new VARIANTARG[n]; while (n--) { VariantInit(&pv[n]); } return pv; } int twlx_Proc(IDispatch *pdisp, char *Name, WCHAR *NameW, int n) { if (pdisp) { VARIANT vResult; VariantInit(&vResult); VARIANTARG *pv = GetNewVARIANT(2); if (NameW) { teSetSZ(&pv[1], NameW); } else if (Name) { teSetSZA(&pv[1], Name, CP_ACP); } teSetLong(&pv[0], n); if SUCCEEDED(Invoke4(pdisp, &vResult, 2, pv)) { return GetIntFromVariantClear(&vResult); } } return 1; } BOOL GetDispatch(VARIANT *pv, IDispatch **ppdisp) { IUnknown *punk; if (FindUnknown(pv, &punk)) { return SUCCEEDED(punk->QueryInterface(IID_PPV_ARGS(ppdisp))); } return false; } HRESULT teGetProperty(IDispatch *pdisp, LPOLESTR sz, VARIANT *pv) { DISPID dispid; HRESULT hr = pdisp->GetIDsOfNames(IID_NULL, &sz, 1, LOCALE_USER_DEFAULT, &dispid); if (hr == S_OK) { hr = Invoke5(pdisp, dispid, DISPATCH_PROPERTYGET, pv, 0, NULL); } return hr; } VOID teVariantChangeType(__out VARIANTARG * pvargDest, __in const VARIANTARG * pvarSrc, __in VARTYPE vt) { VariantInit(pvargDest); if FAILED(VariantChangeType(pvargDest, pvarSrc, 0, vt)) { pvargDest->llVal = 0; } } LPSTR teWide2Ansi(LPWSTR lpW, int nLenW, int nCP) { int nLenA = WideCharToMultiByte(nCP, 0, (LPCWSTR)lpW, nLenW, NULL, 0, NULL, NULL); BSTR bs = ::SysAllocStringByteLen(NULL, nLenA); WideCharToMultiByte(nCP, 0, (LPCWSTR)lpW, nLenW, (LPSTR)bs, nLenA, NULL, NULL); return (LPSTR)bs; } VOID teFreeAnsiString(LPSTR *lplpA) { ::SysFreeString((BSTR)*lplpA); *lplpA = NULL; } BSTR teGetMemoryFromVariant(VARIANT *pv, BOOL *pbDelete, LONG_PTR *pLen) { if (pv->vt == (VT_VARIANT | VT_BYREF)) { return teGetMemoryFromVariant(pv->pvarVal, pbDelete, pLen); } BSTR pMemory = NULL; *pbDelete = FALSE; if (pLen) { if (pv->vt == VT_BSTR || pv->vt == VT_LPWSTR) { return pv->bstrVal; } } IUnknown *punk; if (FindUnknown(pv, &punk)) { IStream *pStream; if SUCCEEDED(punk->QueryInterface(IID_PPV_ARGS(&pStream))) { ULARGE_INTEGER uliSize; if (pLen) { LARGE_INTEGER liOffset; liOffset.QuadPart = 0; pStream->Seek(liOffset, STREAM_SEEK_END, &uliSize); pStream->Seek(liOffset, STREAM_SEEK_SET, NULL); } else { uliSize.QuadPart = BUFF_SIZE; } pMemory = ::SysAllocStringByteLen(NULL, uliSize.LowPart > BUFF_SIZE ? uliSize.LowPart : BUFF_SIZE); if (pMemory) { if (uliSize.LowPart < BUFF_SIZE) { ::ZeroMemory(pMemory, BUFF_SIZE); } *pbDelete = TRUE; ULONG cbRead; pStream->Read(pMemory, uliSize.LowPart, &cbRead); if (pLen) { *pLen = cbRead; } } pStream->Release(); } } else if (pv->vt == (VT_ARRAY | VT_I1) || pv->vt == (VT_ARRAY | VT_UI1) || pv->vt == (VT_ARRAY | VT_I1 | VT_BYREF) || pv->vt == (VT_ARRAY | VT_UI1 | VT_BYREF)) { LONG lUBound, lLBound, nSize; SAFEARRAY *psa = (pv->vt & VT_BYREF) ? pv->pparray[0] : pv->parray; PVOID pvData; if (::SafeArrayAccessData(psa, &pvData) == S_OK) { SafeArrayGetUBound(psa, 1, &lUBound); SafeArrayGetLBound(psa, 1, &lLBound); nSize = lUBound - lLBound + 1; pMemory = ::SysAllocStringByteLen(NULL, nSize > BUFF_SIZE ? nSize : BUFF_SIZE); if (pMemory) { if (nSize < BUFF_SIZE) { ::ZeroMemory(pMemory, BUFF_SIZE); } ::CopyMemory(pMemory, pvData, nSize); if (pLen) { *pLen = nSize; } *pbDelete = TRUE; } ::SafeArrayUnaccessData(psa); } return pMemory; } else if (!pLen) { return (BSTR)GetPtrFromVariant(pv); } return pMemory; } HRESULT teExecMethod(IDispatch *pdisp, LPOLESTR sz, VARIANT *pvResult, int nArg, VARIANTARG *pvArgs) { DISPID dispid; HRESULT hr = pdisp->GetIDsOfNames(IID_NULL, &sz, 1, LOCALE_USER_DEFAULT, &dispid); if (hr == S_OK) { return Invoke5(pdisp, dispid, DISPATCH_METHOD, pvResult, nArg, pvArgs); } teClearVariantArgs(nArg, pvArgs); return hr; } // Initialize & Finalize BOOL WINAPI DllMain(HINSTANCE hinstDll, DWORD dwReason, LPVOID lpReserved) { switch (dwReason) { case DLL_PROCESS_ATTACH: g_pBase = new CteBase(); g_hinstDll = hinstDll; break; case DLL_PROCESS_DETACH: for (size_t i = g_ppObject.size(); i--;) { g_ppObject[i]->Close(); SafeRelease(&g_ppObject[i]); } SafeRelease(&g_pBase); SafeRelease(&g_pdispProgressProc); SafeRelease(&g_pdispLogProc); SafeRelease(&g_pdispRequestProc); break; } return TRUE; } // DLL Export STDAPI DllCanUnloadNow(void) { return g_lLocks == 0 ? S_OK : S_FALSE; } STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { static CteClassFactory serverFactory; CLSID clsid; HRESULT hr = CLASS_E_CLASSNOTAVAILABLE; *ppv = NULL; CLSIDFromString(g_szClsid, &clsid); if (IsEqualCLSID(rclsid, clsid)) { hr = serverFactory.QueryInterface(riid, ppv); } return hr; } STDAPI DllRegisterServer(void) { TCHAR szModulePath[MAX_PATH]; TCHAR szKey[256]; wsprintf(szKey, TEXT("CLSID\\%s"), g_szClsid); LSTATUS lr = CreateRegistryKey(HKEY_CLASSES_ROOT, szKey, NULL, const_cast<LPTSTR>(g_szProgid)); if (lr != ERROR_SUCCESS) { return ShowRegError(lr); } GetModuleFileName(g_hinstDll, szModulePath, sizeof(szModulePath) / sizeof(TCHAR)); wsprintf(szKey, TEXT("CLSID\\%s\\InprocServer32"), g_szClsid); lr = CreateRegistryKey(HKEY_CLASSES_ROOT, szKey, NULL, szModulePath); if (lr != ERROR_SUCCESS) { return ShowRegError(lr); } lr = CreateRegistryKey(HKEY_CLASSES_ROOT, szKey, TEXT("ThreadingModel"), TEXT("Apartment")); if (lr != ERROR_SUCCESS) { return ShowRegError(lr); } wsprintf(szKey, TEXT("CLSID\\%s\\ProgID"), g_szClsid); lr = CreateRegistryKey(HKEY_CLASSES_ROOT, szKey, NULL, const_cast<LPTSTR>(g_szProgid)); if (lr != ERROR_SUCCESS) { return ShowRegError(lr); } lr = CreateRegistryKey(HKEY_CLASSES_ROOT, const_cast<LPTSTR>(g_szProgid), NULL, TEXT(PRODUCTNAME)); if (lr != ERROR_SUCCESS) { return ShowRegError(lr); } wsprintf(szKey, TEXT("%s\\CLSID"), g_szProgid); lr = CreateRegistryKey(HKEY_CLASSES_ROOT, szKey, NULL, const_cast<LPTSTR>(g_szClsid)); if (lr != ERROR_SUCCESS) { return ShowRegError(lr); } return S_OK; } STDAPI DllUnregisterServer(void) { TCHAR szKey[64]; wsprintf(szKey, TEXT("CLSID\\%s"), g_szClsid); LSTATUS ls = SHDeleteKey(HKEY_CLASSES_ROOT, szKey); if (ls == ERROR_SUCCESS) { ls = SHDeleteKey(HKEY_CLASSES_ROOT, g_szProgid); if (ls == ERROR_SUCCESS) { return S_OK; } } return ShowRegError(ls); } //CteWO CteWO::CteWO(HMODULE hDll, LPWSTR lpLib) { m_cRef = 1; m_hDll = hDll; m_bsLib = ::SysAllocString(lpLib); teGetProcAddress(m_hDll, "ListLoad", (FARPROC *)&m_ListLoad, (FARPROC *)&m_ListLoadW); teGetProcAddress(m_hDll, "ListLoadNext", (FARPROC *)&m_ListLoadNext, (FARPROC *)&m_ListLoadNextW); teGetProcAddress(m_hDll, "ListCloseWindow", (FARPROC *)&m_ListCloseWindow, NULL); teGetProcAddress(m_hDll, "ListSetDefaultParam", (FARPROC *)&m_ListSetDefaultParam, NULL); teGetProcAddress(m_hDll, "ListGetPreviewBitmap", (FARPROC *)&m_ListGetPreviewBitmap, (FARPROC *)&m_ListGetPreviewBitmapW); teGetProcAddress(m_hDll, "ListGetDetectString", (FARPROC *)&m_ListGetDetectString, NULL); } CteWO::~CteWO() { Close(); for (size_t i = g_ppObject.size(); i--;) { if (this == g_ppObject[i]) { g_ppObject.erase(g_ppObject.begin() + i); break; } } } VOID CteWO::Close() { if (m_hDll) { FreeLibrary(m_hDll); m_hDll = NULL; } m_ListLoad = NULL; m_ListLoadW = NULL; m_ListLoadNext = NULL; m_ListLoadNextW = NULL; m_ListCloseWindow = NULL; m_ListSetDefaultParam = NULL; m_ListGetPreviewBitmap = NULL; m_ListGetPreviewBitmapW = NULL; m_ListGetDetectString = NULL; } STDMETHODIMP CteWO::QueryInterface(REFIID riid, void **ppvObject) { static const QITAB qit[] = { QITABENT(CteWO, IDispatch), { 0 }, }; return QISearch(this, qit, riid, ppvObject); } STDMETHODIMP_(ULONG) CteWO::AddRef() { return ::InterlockedIncrement(&m_cRef); } STDMETHODIMP_(ULONG) CteWO::Release() { if (::InterlockedDecrement(&m_cRef) == 0) { delete this; return 0; } return m_cRef; } STDMETHODIMP CteWO::GetTypeInfoCount(UINT *pctinfo) { *pctinfo = 0; return S_OK; } STDMETHODIMP CteWO::GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) { return E_NOTIMPL; } STDMETHODIMP CteWO::GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) { auto itr = g_umWO.find(*rgszNames); if (itr != g_umWO.end()) { *rgDispId = itr->second; return S_OK; } #ifdef _DEBUG OutputDebugStringA("GetIDsOfNames:"); OutputDebugString(rgszNames[0]); OutputDebugStringA("\n"); #endif return DISP_E_UNKNOWNNAME; } STDMETHODIMP CteWO::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) { int nArg = pDispParams ? pDispParams->cArgs - 1 : -1; try { switch (dispIdMember) { //ListLoad case 0x60010001: if (nArg >= 2) { HWND hwndList = NULL; HWND hwndParent = (HWND)GetPtrFromVariant(&pDispParams->rgvarg[nArg]); LPWSTR lpPath = GetLPWSTRFromVariant(&pDispParams->rgvarg[nArg - 1]); int ShowFlags = GetPtrFromVariant(&pDispParams->rgvarg[nArg - 2]); if (m_ListLoadW) { hwndList = m_ListLoadW(hwndParent, lpPath, ShowFlags); } else if (m_ListLoad) { LPSTR lpPathA = teWide2Ansi(lpPath, -1, CP_ACP); hwndList = m_ListLoad(hwndParent, lpPathA, ShowFlags); teFreeAnsiString(&lpPathA); } teSetPtr(pVarResult, hwndList); } else if (wFlags == DISPATCH_PROPERTYGET) { if (m_ListLoadW || m_ListLoad) { teSetObjectRelease(pVarResult, new CteDispatch(this, 0, dispIdMember)); } } return S_OK; //ListLoadNext case 0x60010002: if (nArg >= 3) { int iResult = 0; HWND hwndParent = (HWND)GetPtrFromVariant(&pDispParams->rgvarg[nArg]); HWND hwndList = (HWND)GetPtrFromVariant(&pDispParams->rgvarg[nArg - 1]); LPWSTR lpPath = GetLPWSTRFromVariant(&pDispParams->rgvarg[nArg - 2]); int ShowFlags = GetPtrFromVariant(&pDispParams->rgvarg[nArg - 3]); if (m_ListLoadNextW) { iResult = m_ListLoadNextW(hwndParent, hwndList, lpPath, ShowFlags); } else if (m_ListLoadNext) { LPSTR lpPathA = teWide2Ansi(lpPath, -1, CP_ACP); iResult = m_ListLoadNext(hwndParent, hwndList, lpPathA, ShowFlags); teFreeAnsiString(&lpPathA); } teSetLong(pVarResult, iResult); } else if (wFlags == DISPATCH_PROPERTYGET) { if (m_ListLoadNextW || m_ListLoadNext) { teSetObjectRelease(pVarResult, new CteDispatch(this, 0, dispIdMember)); } } return S_OK; //ListCloseWindow case 0x60010003: if (nArg >= 0) { HWND hwndList = (HWND)GetPtrFromVariant(&pDispParams->rgvarg[nArg]); if (m_ListCloseWindow) { m_ListCloseWindow(hwndList); } } else if (wFlags == DISPATCH_PROPERTYGET) { if (pVarResult, m_ListCloseWindow != NULL) { teSetObjectRelease(pVarResult, new CteDispatch(this, 0, dispIdMember)); } } return S_OK; //ListSetDefaultParams case 0x60010004: if (nArg >= 0 && m_ListSetDefaultParam) { ListDefaultParamStruct dps = { sizeof(ListDefaultParamStruct), 10, 2 }; LPWSTR lpPath = GetLPWSTRFromVariant(&pDispParams->rgvarg[nArg]); if (lpPath) { WideCharToMultiByte(CP_ACP, 0, (LPCWSTR)lpPath, -1, dps.DefaultIniName, MAX_PATH, NULL, NULL); } m_ListSetDefaultParam(&dps); } else if (wFlags == DISPATCH_PROPERTYGET) { if (m_ListSetDefaultParam) { teSetObjectRelease(pVarResult, new CteDispatch(this, 0, dispIdMember)); } } return S_OK; //ListGetPreviewBitmap case 0x60010005: if (nArg >= 3) { HBITMAP hbm = NULL; BOOL bDelete = FALSE; LPWSTR lpPath = GetLPWSTRFromVariant(&pDispParams->rgvarg[nArg]); int width = GetPtrFromVariant(&pDispParams->rgvarg[nArg - 1]); int height = GetPtrFromVariant(&pDispParams->rgvarg[nArg - 2]); LONG_PTR len = nArg >= 4 ? GetPtrFromVariant(&pDispParams->rgvarg[nArg - 4]) : 0; BSTR lpBuf = teGetMemoryFromVariant(&pDispParams->rgvarg[nArg - 3], &bDelete, &len); if (m_ListGetPreviewBitmapW) { hbm = m_ListGetPreviewBitmapW(lpPath, width, height, (char *)lpBuf, len); } else if (m_ListGetPreviewBitmap) { LPSTR lpPathA = teWide2Ansi(lpPath, -1, CP_ACP); hbm = m_ListGetPreviewBitmap(lpPathA, width, height, (char *)lpBuf, len); teFreeAnsiString(&lpPathA); } if (bDelete) { teSysFreeString(&lpBuf); } teSetPtr(pVarResult, hbm); } else if (wFlags == DISPATCH_PROPERTYGET) { if (m_ListGetPreviewBitmapW || m_ListGetPreviewBitmap) { teSetObjectRelease(pVarResult, new CteDispatch(this, 0, dispIdMember)); } } return S_OK; //ListGetDetectString case 0x60010006: if (wFlags & DISPATCH_METHOD) { char pszDetectString[BUFF_SIZE]; pszDetectString[0] = NULL; if (m_ListGetDetectString) { m_ListGetDetectString(pszDetectString, sizeof(pszDetectString)); } teSetSZA(pVarResult, pszDetectString, CP_ACP); } else if (wFlags == DISPATCH_PROPERTYGET) { if (m_ListGetDetectString) { teSetObjectRelease(pVarResult, new CteDispatch(this, 0, dispIdMember)); } } return S_OK; //IsUnicode case 0x6001FFFF: teSetBool(pVarResult, m_ListLoadW != NULL); return S_OK; //this case DISPID_VALUE: if (pVarResult) { teSetObject(pVarResult, this); } return S_OK; }//end_switch } catch (...) { return DISP_E_EXCEPTION; } return DISP_E_MEMBERNOTFOUND; } //CteBase CteBase::CteBase() { m_cRef = 1; } CteBase::~CteBase() { } STDMETHODIMP CteBase::QueryInterface(REFIID riid, void **ppvObject) { static const QITAB qit[] = { QITABENT(CteBase, IDispatch), { 0 }, }; return QISearch(this, qit, riid, ppvObject); } STDMETHODIMP_(ULONG) CteBase::AddRef() { return ::InterlockedIncrement(&m_cRef); } STDMETHODIMP_(ULONG) CteBase::Release() { if (::InterlockedDecrement(&m_cRef) == 0) { delete this; return 0; } return m_cRef; } STDMETHODIMP CteBase::GetTypeInfoCount(UINT *pctinfo) { *pctinfo = 0; return S_OK; } STDMETHODIMP CteBase::GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) { return E_NOTIMPL; } STDMETHODIMP CteBase::GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) { auto itr = g_umBASE.find(*rgszNames); if (itr != g_umBASE.end()) { *rgDispId = itr->second; return S_OK; } #ifdef _DEBUG OutputDebugStringA("GetIDsOfNames:"); OutputDebugString(rgszNames[0]); OutputDebugStringA("\n"); #endif return DISP_E_UNKNOWNNAME; } STDMETHODIMP CteBase::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) { int nArg = pDispParams ? pDispParams->cArgs - 1 : -1; HRESULT hr = S_OK; if (wFlags == DISPATCH_PROPERTYGET && dispIdMember >= TE_METHOD) { teSetObjectRelease(pVarResult, new CteDispatch(this, 0, dispIdMember)); return S_OK; } switch (dispIdMember) { //Open case 0x60010000: if (nArg >= 0) { LPWSTR lpLib = GetLPWSTRFromVariant(&pDispParams->rgvarg[nArg]); CteWO *pItem; for (size_t i = g_ppObject.size(); i--;) { pItem = g_ppObject[i]; if (pItem) { if (lstrcmpi(lpLib, pItem->m_bsLib) == 0) { teSetObject(pVarResult, pItem); return S_OK; } } } HMODULE hDll = LoadLibrary(lpLib); if (hDll) { pItem = new CteWO(hDll, lpLib); g_ppObject.push_back(pItem); teSetObjectRelease(pVarResult, pItem); } } return S_OK; //Close case 0x6001000C: if (nArg >= 0) { LPWSTR lpLib = GetLPWSTRFromVariant(&pDispParams->rgvarg[nArg]); for (size_t i = g_ppObject.size(); i--;) { if (g_ppObject[i]) { if (lstrcmpi(lpLib, g_ppObject[i]->m_bsLib) == 0) { g_ppObject[i]->Close(); SafeRelease(&g_ppObject[i]); break; } } } } return S_OK; //this case DISPID_VALUE: if (pVarResult) { teSetObject(pVarResult, this); } return S_OK; }//end_switch return DISP_E_MEMBERNOTFOUND; } // CteClassFactory STDMETHODIMP CteClassFactory::QueryInterface(REFIID riid, void **ppvObject) { static const QITAB qit[] = { QITABENT(CteClassFactory, IClassFactory), { 0 }, }; return QISearch(this, qit, riid, ppvObject); } STDMETHODIMP_(ULONG) CteClassFactory::AddRef() { LockModule(TRUE); return 2; } STDMETHODIMP_(ULONG) CteClassFactory::Release() { LockModule(FALSE); return 1; } STDMETHODIMP CteClassFactory::CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppvObject) { *ppvObject = NULL; if (pUnkOuter != NULL) { return CLASS_E_NOAGGREGATION; } return g_pBase->QueryInterface(riid, ppvObject); } STDMETHODIMP CteClassFactory::LockServer(BOOL fLock) { LockModule(fLock); return S_OK; } //CteDispatch CteDispatch::CteDispatch(IDispatch *pDispatch, int nMode, DISPID dispId) { m_cRef = 1; pDispatch->QueryInterface(IID_PPV_ARGS(&m_pDispatch)); m_dispIdMember = dispId; } CteDispatch::~CteDispatch() { Clear(); } VOID CteDispatch::Clear() { SafeRelease(&m_pDispatch); } STDMETHODIMP CteDispatch::QueryInterface(REFIID riid, void **ppvObject) { static const QITAB qit[] = { QITABENT(CteDispatch, IDispatch), { 0 }, }; return QISearch(this, qit, riid, ppvObject); } STDMETHODIMP_(ULONG) CteDispatch::AddRef() { return ::InterlockedIncrement(&m_cRef); } STDMETHODIMP_(ULONG) CteDispatch::Release() { if (::InterlockedDecrement(&m_cRef) == 0) { delete this; return 0; } return m_cRef; } STDMETHODIMP CteDispatch::GetTypeInfoCount(UINT *pctinfo) { *pctinfo = 0; return S_OK; } STDMETHODIMP CteDispatch::GetTypeInfo(UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) { return E_NOTIMPL; } STDMETHODIMP CteDispatch::GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) { return DISP_E_UNKNOWNNAME; } STDMETHODIMP CteDispatch::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) { try { if (pVarResult) { VariantInit(pVarResult); } if (wFlags & DISPATCH_METHOD) { return m_pDispatch->Invoke(m_dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); } teSetObject(pVarResult, this); return S_OK; } catch (...) {} return DISP_E_MEMBERNOTFOUND; }
24.728648
175
0.676597
tablacus
7402b2000eaf3f286fd7e058939386ab52ce1f9b
1,530
cpp
C++
queue/circular-queue.cpp
mukul98s/data-structures-and-algorithms-code
3e06806f16daa127a67abeebf660ebe3044e2e88
[ "MIT" ]
1
2022-02-09T14:28:28.000Z
2022-02-09T14:28:28.000Z
queue/circular-queue.cpp
mukul98s/data-structures-and-algorithms-code
3e06806f16daa127a67abeebf660ebe3044e2e88
[ "MIT" ]
1
2022-02-02T04:58:10.000Z
2022-02-02T04:58:10.000Z
queue/circular-queue.cpp
mukul98s/data-structures-and-algorithms-code
3e06806f16daa127a67abeebf660ebe3044e2e88
[ "MIT" ]
1
2022-02-02T00:23:59.000Z
2022-02-02T00:23:59.000Z
#include <bits/stdc++.h> using namespace std; #define MAX 5 class Queue { public: int items[MAX]; int front; int rear; Queue() { front = -1; rear = -1; }; void enQueue(int val) { if(isFull()) { cout << "Queue is Full" << endl; return; } if(front == -1) { front = 0; } rear = (rear + 1) % MAX; items[rear] = val; } int deQueue() { if(isEmpty()) { cout << "Queue is Empty"; exit(0); } int element = items[front]; if(front == rear) { front = -1; rear = -1; } else { // Queue has only one element // so we are resetting the queue front = (front + 1) % MAX; } return element; } bool isFull() { if (front == 0 && rear == MAX - 1) return true; if (front == rear + 1) return true; return false; } bool isEmpty() { return front == -1 ? true : false; } void display() { int i; if (isEmpty()) { cout << endl << "Empty Queue" << endl; } else { cout << "Front -> " << front; cout << endl << "Items -> "; for (i = front; i != rear; i = (i + 1) % MAX) { cout << items[i] << " "; } cout << items[i]; cout << endl << "Rear -> " << rear; } } }; int main() { Queue *q = new Queue(); q->enQueue(1); q->enQueue(2); q->enQueue(3); q->enQueue(4); q->enQueue(5); q->display(); return 0; }
17.790698
53
0.433333
mukul98s
7407d88d972737b63eb928879ec65233c19d12b1
4,112
cpp
C++
OpenCV/OR_OD_Testing/Object_Detection/objectdetection-contours-video.cpp
pts211/CS4096
6156d567ccdac9e422bb5f476093323f32f73ed8
[ "Apache-2.0" ]
2
2018-07-08T08:36:50.000Z
2021-03-10T08:38:06.000Z
OpenCV/OR_OD_Testing/Object_Detection/objectdetection-contours-video.cpp
pts211/CS4096
6156d567ccdac9e422bb5f476093323f32f73ed8
[ "Apache-2.0" ]
null
null
null
OpenCV/OR_OD_Testing/Object_Detection/objectdetection-contours-video.cpp
pts211/CS4096
6156d567ccdac9e422bb5f476093323f32f73ed8
[ "Apache-2.0" ]
null
null
null
/***********************************************************/ /* File: objectdetection-contours-video.cpp */ /* Author: Travis Bueter */ /* Desc: This file tests the use of identifying objects */ /* based on their contours of a video feed. */ /* Based on a tutorial from the OpenCV website. */ /***********************************************************/ #include <opencv2/opencv.hpp> #include <highgui.h> #include <iostream> #include <stdlib.h> #include <stdio.h> #include <ctime> /* time */ #include <string> #include <math.h> //#include "opencv2/imgcodecs.hpp" using namespace cv; using namespace std; int main() { Mat img, edges, out, modi; //Set up camera VideoCapture cap(0); // open the video camera no. 0 while(!cap.isOpened()) // if not success, exit program { cout << "error cannot read from the camera" << endl; } while(1) { bool bSuccess = cap.read(img); // read a new frame from video if (!bSuccess) //if not success, break loop { cout << "Cannot read a frame from video stream" << endl; break; } //converting the original image into grayscale Mat imgGrayScale = Mat(img.size(), 8, 1); cvtColor(img,imgGrayScale,CV_BGR2GRAY); //Attempted to use for smoothing spots in the image //GaussianBlur(imgGrayScale,imgGrayScale,Size(7,7),1.5,1.5); //thresholding the grayscale image to get better results threshold(imgGrayScale,imgGrayScale,128,255,CV_THRESH_BINARY); vector< vector<Point> > contours; vector<Vec4i> hierarchy; //finding all contours in the image findContours(imgGrayScale, contours, hierarchy, CV_RETR_LIST, CV_CHAIN_APPROX_SIMPLE, Point(0,0)); vector< vector<Point> > contours_poly(contours.size()); //iterating through each contour for(int i = 0; i < contours.size(); i++) { //obtain a sequence of points of the countour approxPolyDP(Mat(contours[i]), contours_poly[i], arcLength(contours[i],true)*0.02, true); //if there are 3 vertices in the contour(It should be a triangle) vector<Point> result = contours_poly[i]; if(result.size() == 3) { //drawing lines around the triangle for(int j = 0; j < result.size()-1; j++) { line(img, result[j], result[j+1], cvScalar(255,0,0),4); } line(img, result[result.size()-1], result[0], cvScalar(255,0,0),4); } if(result.size() == 4) { //drawing lines around the triangle for(int j = 0; j < result.size()-1; j++) { line(img, result[j], result[j+1], cvScalar(0,255,0),4); } line(img, result[result.size()-1], result[0], cvScalar(0,255,0),4); } if(result.size() == 5) { //drawing lines around the triangle for(int j = 0; j < result.size()-1; j++) { line(img, result[j], result[j+1], cvScalar(0,0,255),4); } line(img, result[result.size()-1], result[0], cvScalar(0,0,255),4); } if(result.size() == 6) { //drawing lines around the triangle for(int j = 0; j < result.size()-1; j++) { line(img, result[j], result[j+1], cvScalar(255,0,127),4); } line(img, result[result.size()-1], result[0], cvScalar(255,0,127),4); } if(result.size() == 10) { //drawing lines around the triangle for(int j = 0; j < result.size()-1; j++) { line(img, result[j], result[j+1], cvScalar(0,255,255),4); } line(img, result[result.size()-1], result[0], cvScalar(0,255,255),4); } } namedWindow("MyVideo",CV_WINDOW_AUTOSIZE); imshow("MyVideo", img); if (waitKey(30) == 27)// 'Esc' key { cout << "Esc key is pressed by user." << endl; break; } } cap.release(); return 0; }
29.582734
103
0.531858
pts211
74088c30ccd8b19b9d75384f281c39ff83199a7e
10,259
cpp
C++
ext/include/osgEarthDrivers/engine_droam/AMRGeometry.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
6
2015-09-26T15:33:41.000Z
2021-06-13T13:21:50.000Z
ext/include/osgEarthDrivers/engine_droam/AMRGeometry.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
null
null
null
ext/include/osgEarthDrivers/engine_droam/AMRGeometry.cpp
energonQuest/dtEarth
47b04bb272ec8781702dea46f5ee9a03d4a22196
[ "MIT" ]
5
2015-05-04T09:02:23.000Z
2019-06-17T11:34:12.000Z
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2010 Pelican Mapping * http://osgearth.org * * osgEarth is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> */ #include "Common" #include "AMRGeometry" #include <osg/State> #include <osg/Uniform> #include <osgEarth/Notify> #define LC "[AMRGeometry] " // -------------------------------------------------------------------------- #include "AMRShaders.h" // -------------------------------------------------------------------------- AMRTriangle::AMRTriangle() { _stateSet = new osg::StateSet(); // should this be INT_SAMPLER_2D? _stateSet->getOrCreateUniform( "tex0", osg::Uniform::INT )->set( 0 ); } #define SET_UNIFORM(X,Y,Z) \ _stateSet->getOrCreateUniform( X , Y )->set( Z ) AMRTriangle::AMRTriangle(const MeshNode& n0, const osg::Vec2& t0, const MeshNode& n1, const osg::Vec2& t1, const MeshNode& n2, const osg::Vec2& t2) : _node0(n0), _node1(n1), _node2(n2) { _stateSet = new osg::StateSet(); // should this be INT_SAMPLER_2D? SET_UNIFORM( "tex0", osg::Uniform::INT, 0 ); SET_UNIFORM( "c0", osg::Uniform::FLOAT_VEC3, _node0._geodeticCoord ); SET_UNIFORM( "c1", osg::Uniform::FLOAT_VEC3, _node1._geodeticCoord ); SET_UNIFORM( "c2", osg::Uniform::FLOAT_VEC3, _node2._geodeticCoord ); SET_UNIFORM( "v0", osg::Uniform::FLOAT_VEC3, _node0._vertex ); SET_UNIFORM( "v1", osg::Uniform::FLOAT_VEC3, _node1._vertex ); SET_UNIFORM( "v2", osg::Uniform::FLOAT_VEC3, _node2._vertex ); SET_UNIFORM( "t0", osg::Uniform::FLOAT_VEC2, t0 ); SET_UNIFORM( "t1", osg::Uniform::FLOAT_VEC2, t1 ); SET_UNIFORM( "t2", osg::Uniform::FLOAT_VEC2, t2 ); SET_UNIFORM( "n0", osg::Uniform::FLOAT_VEC3, _node0._normal ); SET_UNIFORM( "n1", osg::Uniform::FLOAT_VEC3, _node1._normal ); SET_UNIFORM( "n2", osg::Uniform::FLOAT_VEC3, _node2._normal ); SET_UNIFORM( "r0", osg::Uniform::FLOAT_VEC4, _node0._geodeticRot.asVec4() ); SET_UNIFORM( "r1", osg::Uniform::FLOAT_VEC4, _node1._geodeticRot.asVec4() ); SET_UNIFORM( "r2", osg::Uniform::FLOAT_VEC4, _node2._geodeticRot.asVec4() ); } void AMRTriangle::expand( osg::BoundingBox& box ) { box.expandBy( _node0._vertex ); box.expandBy( _node1._vertex ); box.expandBy( _node2._vertex ); } // -------------------------------------------------------------------------- AMRDrawable::AMRDrawable() { _stateSet = new osg::StateSet(); } // -------------------------------------------------------------------------- AMRGeometry::AMRGeometry() { initShaders(); initPatterns(); //this->setBound( osg::BoundingBox(-1e10, -1e10, -1e10, 1e10, 1e10, 1e10) ); } AMRGeometry::AMRGeometry( const AMRGeometry& rhs, const osg::CopyOp& op ) : osg::Drawable( rhs, op ) //osg::Geometry( rhs, op ) { //todo setInitialBound( osg::BoundingBox(-1e10, -1e10, -1e10, 1e10, 1e10, 1e10) ); } osg::BoundingBox AMRGeometry::computeBound() const { osg::BoundingBox box; for( AMRDrawableList::const_iterator i = _drawList.begin(); i != _drawList.end(); ++i ) { const AMRTriangleList& prims = i->get()->_triangles; for( AMRTriangleList::const_iterator j = prims.begin(); j != prims.end(); ++j ) { j->get()->expand( box ); } } return box; } void AMRGeometry::clearDrawList() { if ( _drawList.size() > 0 ) { _drawList.clear(); dirtyBound(); } } void AMRGeometry::setDrawList( const AMRDrawableList& drawList ) { _drawList = drawList; dirtyBound(); } void AMRGeometry::initShaders() { // initialize the shader program. _program = new osg::Program(); _program->setName( "AMRGeometry" ); osg::Shader* vertexShader = new osg::Shader( osg::Shader::VERTEX, //std::string( source_vertShaderMain_flatMethod ) std::string( source_vertShaderMain_geocentricMethod ) + std::string( source_geodeticToXYZ ) + std::string( source_rotVecToGeodetic ) //std::string( source_vertShaderMain_latLonMethod ) //std::string( source_vertShaderMain_slerpMethod ) ); vertexShader->setName( "AMR Vert Shader" ); _program->addShader( vertexShader ); osg::Shader* fragmentShader = new osg::Shader( osg::Shader::FRAGMENT, std::string( source_fragShaderMain ) ); fragmentShader->setName( "AMR Frag Shader" ); _program->addShader( fragmentShader ); // the shader program: this->getOrCreateStateSet()->setAttribute( _program.get(), osg::StateAttribute::ON ); } static void toBarycentric(const osg::Vec3& p1, const osg::Vec3& p2, const osg::Vec3& p3, const osg::Vec3& in, osg::Vec3& outVert, osg::Vec2& outTex ) { //from: http://forums.cgsociety.org/archive/index.php/t-275372.html osg::Vec3 v1 = in - p1, v2 = in - p2, v3 = in - p3; double area1 = 0.5 * (v2 ^ v3).length(), area2 = 0.5 * (v1 ^ v3).length(), area3 = 0.5 * (v1 ^ v2).length(); double fullArea = area1 + area2 + area3; double u = area1/fullArea; double v = area2/fullArea; double w = area3/fullArea; outVert.set( u, v, w ); // tex coords osg::Vec2 t1( p1.x(), p1.y() ); osg::Vec2 t2( p2.x(), p2.y() ); osg::Vec2 t3( p3.x(), p3.y() ); outTex = t1*w + t2*v + t3*u; } void AMRGeometry::initPatterns() { _numPatternVerts = 0; _numPatternElements = 0; _numPatternStrips = 0; _numPatternTriangles = 0; this->setUseVertexBufferObjects( true ); this->setUseDisplayList( false ); _patternVBO = new osg::VertexBufferObject(); _verts = new osg::Vec3Array(); _verts->setVertexBufferObject( _patternVBO.get() ); _texCoords = new osg::Vec2Array(); _texCoords->setVertexBufferObject( _patternVBO.get() ); // build a right-triangle pattern. (0,0) is the lower-left (90d), // (0,1) is the lower right (45d) and (1,0) is the upper-left (45d) osg::Vec3f p1(0,0,0), p2(0,1,0), p3(1,0,0); for( int r=AMR_PATCH_ROWS-1; r >=0; --r ) { int cols = AMR_PATCH_ROWS-r; //OE_INFO << "ROW " << r << std::endl; for( int c=0; c<cols; ++c ) { osg::Vec3 point( (float)c/(float)(AMR_PATCH_ROWS-1), (float)r/(float)(AMR_PATCH_ROWS-1), 0 ); osg::Vec3 baryVert; osg::Vec2 baryTex; toBarycentric( p1, p2, p3, point, baryVert, baryTex ); _verts->push_back( baryVert ); _texCoords->push_back( baryTex ); } } _numPatternVerts = _verts->size(); unsigned short off = 0; unsigned short rowptr = off; _patternEBO = new osg::ElementBufferObject(); for( int r=1; r<AMR_PATCH_ROWS; ++r ) { rowptr += r; osg::DrawElementsUShort* e = new osg::DrawElementsUShort( GL_TRIANGLE_STRIP ); e->setElementBufferObject( _patternEBO.get() ); for( int c=0; c<=r; ++c ) { e->push_back( rowptr + c ); if ( c < r ) e->push_back( rowptr + c - r ); } OE_INFO << std::endl; _pattern.push_back( e ); _numPatternStrips++; _numPatternElements += e->size(); _numPatternTriangles += (e->size()-1)/2; } OE_INFO << LC << "Pattern: " << std::dec << "verts=" << _numPatternVerts << ", strips=" << _numPatternStrips << ", tris=" << _numPatternTriangles << ", elements=" << _numPatternElements << std::endl; } static int s_numTemplates = 0; void AMRGeometry::drawImplementation( osg::RenderInfo& renderInfo ) const { osg::State& state = *renderInfo.getState(); // bind the VBO: state.setVertexPointer( _verts.get() ); // bind the texture coordinate arrrays: state.setTexCoordPointer( 0, _texCoords.get() ); // this will enable the amr geometry's stateset (and activate the Program) state.pushStateSet( this->getStateSet() ); //state.pushStateSet(0L); //_program->apply( state ); int numTemplates = 0; for( AMRDrawableList::const_iterator i = _drawList.begin(); i != _drawList.end(); ++i ) { const AMRDrawable* drawable = i->get(); // apply the drawable's state changes: state.pushStateSet( drawable->_stateSet.get() ); for( AMRTriangleList::const_iterator j = drawable->_triangles.begin(); j != drawable->_triangles.end(); ++j ) { const AMRTriangle* dtemplate = j->get(); // apply the primitive's state changes: state.apply( dtemplate->_stateSet.get() ); // render the pattern (a collection of primitive sets) for( Pattern::const_iterator p = _pattern.begin(); p != _pattern.end(); ++p ) { p->get()->draw( state, true ); } numTemplates++; } state.popStateSet(); } if ( s_numTemplates != numTemplates ) { s_numTemplates = numTemplates; OE_INFO << LC << std::dec << "templates=" << numTemplates << ", verts=" << numTemplates*_numPatternVerts << ", strips=" << numTemplates*_numPatternStrips << ", tris=" << numTemplates*_numPatternTriangles << ", elements=" << numTemplates*_numPatternElements << std::endl; } // unbind the buffer objects. state.unbindVertexBufferObject(); state.unbindElementBufferObject(); // undo the program. state.popStateSet(); }
30.262537
117
0.590798
energonQuest
740cb466c0d2a14e0785b4d0406cbea2bb6510af
1,115
cpp
C++
src/blueprints/Unit.cpp
ludlyl/MulleMech
c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a
[ "MIT" ]
6
2019-08-14T23:19:23.000Z
2021-04-21T18:06:12.000Z
src/blueprints/Unit.cpp
ludlyl/MulleMech
c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a
[ "MIT" ]
null
null
null
src/blueprints/Unit.cpp
ludlyl/MulleMech
c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a
[ "MIT" ]
1
2021-07-08T21:48:28.000Z
2021-07-08T21:48:28.000Z
// The MIT License (MIT) // // Copyright (c) 2017-2018 Alexander Kurbatov #include "Unit.h" #include "core/API.h" #include "core/Helpers.h" #include "Hub.h" bp::Unit::Unit(sc2::UNIT_TYPEID who_builds_, sc2::UNIT_TYPEID required_addon_): m_who_builds(who_builds_), m_required_addon(required_addon_) { } bool bp::Unit::CanBeBuilt(const Order* order_) { if (m_required_addon == sc2::UNIT_TYPEID::INVALID) { return gHub->GetFreeBuildingProductionAssignee(order_, m_who_builds) != nullptr; } else { return gHub->GetFreeBuildingProductionAssignee(order_, m_who_builds, m_required_addon) != nullptr; } } bool bp::Unit::Build(Order* order_) { bool buildingAssignationSucceeded; if (m_required_addon == sc2::UNIT_TYPEID::INVALID) { buildingAssignationSucceeded = gHub->AssignBuildingProduction(order_, m_who_builds); } else { buildingAssignationSucceeded = gHub->AssignBuildingProduction(order_, m_who_builds, m_required_addon); } if (buildingAssignationSucceeded) { gAPI->action().Build(*order_); return true; } return false; }
30.135135
142
0.712108
ludlyl
740cc0e06783e4b68a14b92dd622b1f8cde0d063
3,383
cpp
C++
jpegout.cpp
oz-acy/polymnia
90583ed4a78f99ee04e5eb3547d99343ddb7a10b
[ "BSD-2-Clause" ]
null
null
null
jpegout.cpp
oz-acy/polymnia
90583ed4a78f99ee04e5eb3547d99343ddb7a10b
[ "BSD-2-Clause" ]
null
null
null
jpegout.cpp
oz-acy/polymnia
90583ed4a78f99ee04e5eb3547d99343ddb7a10b
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright 2002-2021 oZ/acy (名賀月晃嗣) * Redistribution and use in source and binary forms, * with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ /* * @file jpegout.cpp * @author oZ/acy * @brief JPEG保存クラスの實裝 * * @date 2018.12.23 修正 * */ #include <cstdio> #include "jpegio.h" extern "C" { #include <jpeglib.h> #include <jerror.h> } #include <themis/exception.h> namespace polymnia { namespace private_ { void jpegErrorSetup_(jpeg_error_mgr& jerr); } } namespace { // 多重定義(オーバーロード)によつてfopen、_wfopenを切り替へる inline std::FILE* openfile(const char* path) { using namespace std; return fopen(path, "wb"); } inline std::FILE* openfile(const wchar_t* path) { using namespace std; return _wfopen(path, L"wb"); } }//end of namespace NONAME bool polymnia::JpegSaver::save( const polymnia::Picture* pct, const std::filesystem::path& path) { using namespace std; FILE *outfile = openfile(path.c_str()); if (!outfile) return false; struct jpeg_compress_struct cinfo; struct jpeg_error_mgr jerr; cinfo.err = jpeg_std_error(&jerr); polymnia::private_::jpegErrorSetup_(jerr); try { jpeg_create_compress(&cinfo); jpeg_stdio_dest(&cinfo, outfile); cinfo.image_width = pct->width(); cinfo.image_height = pct->height(); cinfo.input_components = 3; cinfo.in_color_space = JCS_RGB; jpeg_set_defaults(&cinfo); jpeg_set_quality(&cinfo, quality, TRUE); if (prog) jpeg_simple_progression(&cinfo); jpeg_start_compress(&cinfo, TRUE); JSAMPROW buf[1]; const polymnia::RgbColor* srcbuf = pct->buffer(); int o = pct->offset(); int j = 0; while(cinfo.next_scanline < cinfo.image_height) { buf[0] = (JSAMPROW)&srcbuf[j]; jpeg_write_scanlines(&cinfo, buf, 1); j += o; } jpeg_finish_compress(&cinfo); jpeg_destroy_compress(&cinfo); fclose(outfile); return true; } catch(themis::Exception& exp) { jpeg_destroy_compress(&cinfo); fclose(outfile); return false; } } //eof
24.693431
80
0.675732
oz-acy
740fa78558d1f15192a03f6c44215fe82611d812
3,081
cpp
C++
MonoNative.Tests/mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_FileDialogPermission_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
7
2015-03-10T03:36:16.000Z
2021-11-05T01:16:58.000Z
MonoNative.Tests/mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_FileDialogPermission_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
1
2020-06-23T10:02:33.000Z
2020-06-24T02:05:47.000Z
MonoNative.Tests/mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_FileDialogPermission_Fixture.cpp
brunolauze/MonoNative
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
[ "BSD-2-Clause" ]
null
null
null
// Mono Native Fixture // Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // Namespace: System.Security.Permissions // Name: FileDialogPermission // C++ Typed Name: mscorlib::System::Security::Permissions::FileDialogPermission #include <gtest/gtest.h> #include <mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_FileDialogPermission.h> #include <mscorlib/System/Security/mscorlib_System_Security_SecurityElement.h> #include <mscorlib/System/mscorlib_System_String.h> #include <mscorlib/System/mscorlib_System_Type.h> namespace mscorlib { namespace System { namespace Security { namespace Permissions { //Constructors Tests //FileDialogPermission(mscorlib::System::Security::Permissions::PermissionState::__ENUM__ state) TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,Constructor_1) { } //FileDialogPermission(mscorlib::System::Security::Permissions::FileDialogPermissionAccess::__ENUM__ access) TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,Constructor_2) { } //Public Methods Tests // Method Copy // Signature: TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,Copy_Test) { } // Method FromXml // Signature: mscorlib::System::Security::SecurityElement esd TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,FromXml_Test) { } // Method Intersect // Signature: mscorlib::System::Security::IPermission target TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,Intersect_Test) { } // Method IsSubsetOf // Signature: mscorlib::System::Security::IPermission target TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,IsSubsetOf_Test) { } // Method IsUnrestricted // Signature: TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,IsUnrestricted_Test) { } // Method ToXml // Signature: TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,ToXml_Test) { } // Method Union // Signature: mscorlib::System::Security::IPermission target TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,Union_Test) { } //Public Properties Tests // Property Access // Return Type: mscorlib::System::Security::Permissions::FileDialogPermissionAccess::__ENUM__ // Property Get Method TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,get_Access_Test) { } // Property Access // Return Type: mscorlib::System::Security::Permissions::FileDialogPermissionAccess::__ENUM__ // Property Set Method TEST(mscorlib_System_Security_Permissions_FileDialogPermission_Fixture,set_Access_Test) { } } } } }
24.452381
112
0.719247
brunolauze
741129b1e0bdaa6ae3103beebe2fcb8b0b6a52df
4,962
cpp
C++
extern/gainput/lib/source/gainput/keyboard/GainputInputDeviceKeyboard.cpp
BredaUniversityGames/LearningDirectX12
895166a6ebec3836238e25f651a5718c0c4e2deb
[ "MIT" ]
366
2018-01-23T22:06:50.000Z
2022-03-27T22:38:57.000Z
lib/source/gainput/keyboard/GainputInputDeviceKeyboard.cpp
jpvanoosten/gainput
737cbfcc4e0d0f1247e8ac4cd4f8130584ea88dc
[ "MIT" ]
16
2018-09-15T12:33:54.000Z
2022-03-31T09:51:35.000Z
lib/source/gainput/keyboard/GainputInputDeviceKeyboard.cpp
jpvanoosten/gainput
737cbfcc4e0d0f1247e8ac4cd4f8130584ea88dc
[ "MIT" ]
55
2018-09-15T13:58:41.000Z
2022-03-22T07:05:10.000Z
#include <gainput/gainput.h> #include <gainput/GainputDebugRenderer.h> #include "GainputInputDeviceKeyboardImpl.h" #include "GainputKeyboardKeyNames.h" #include <gainput/GainputInputDeltaState.h> #include <gainput/GainputHelpers.h> #include <gainput/GainputLog.h> #if defined(GAINPUT_PLATFORM_LINUX) #include "GainputInputDeviceKeyboardLinux.h" #include "GainputInputDeviceKeyboardEvdev.h" #elif defined(GAINPUT_PLATFORM_WIN) #include "GainputInputDeviceKeyboardWin.h" #include "GainputInputDeviceKeyboardWinRaw.h" #elif defined(GAINPUT_PLATFORM_ANDROID) #include "GainputInputDeviceKeyboardAndroid.h" #elif defined(GAINPUT_PLATFORM_MAC) #include "GainputInputDeviceKeyboardMac.h" #endif #include "GainputInputDeviceKeyboardNull.h" namespace gainput { InputDeviceKeyboard::InputDeviceKeyboard(InputManager& manager, DeviceId device, unsigned index, DeviceVariant variant) : InputDevice(manager, device, index == InputDevice::AutoIndex ? manager.GetDeviceCountByType(DT_KEYBOARD): index), impl_(0), keyNames_(manager_.GetAllocator()) { state_ = manager.GetAllocator().New<InputState>(manager.GetAllocator(), KeyCount_); GAINPUT_ASSERT(state_); previousState_ = manager.GetAllocator().New<InputState>(manager.GetAllocator(), KeyCount_); GAINPUT_ASSERT(previousState_); #if defined(GAINPUT_PLATFORM_LINUX) if (variant == DV_STANDARD) { impl_ = manager.GetAllocator().New<InputDeviceKeyboardImplLinux>(manager, *this, *state_, *previousState_); } else if (variant == DV_RAW) { impl_ = manager.GetAllocator().New<InputDeviceKeyboardImplEvdev>(manager, *this, *state_, *previousState_); } #elif defined(GAINPUT_PLATFORM_WIN) if (variant == DV_STANDARD) { impl_ = manager.GetAllocator().New<InputDeviceKeyboardImplWin>(manager, *this, *state_, *previousState_); } else if (variant == DV_RAW) { impl_ = manager.GetAllocator().New<InputDeviceKeyboardImplWinRaw>(manager, *this, *state_, *previousState_); } #elif defined(GAINPUT_PLATFORM_ANDROID) impl_ = manager.GetAllocator().New<InputDeviceKeyboardImplAndroid>(manager, *this, *state_, *previousState_); #elif defined(GAINPUT_PLATFORM_MAC) impl_ = manager.GetAllocator().New<InputDeviceKeyboardImplMac>(manager, *this, *state_, *previousState_); #endif if (!impl_) { impl_ = manager.GetAllocator().New<InputDeviceKeyboardImplNull>(manager, device); } GAINPUT_ASSERT(impl_); GetKeyboardKeyNames(keyNames_); } InputDeviceKeyboard::~InputDeviceKeyboard() { manager_.GetAllocator().Delete(state_); manager_.GetAllocator().Delete(previousState_); manager_.GetAllocator().Delete(impl_); } void InputDeviceKeyboard::InternalUpdate(InputDeltaState* delta) { impl_->Update(delta); if ((manager_.IsDebugRenderingEnabled() || IsDebugRenderingEnabled()) && manager_.GetDebugRenderer()) { DebugRenderer* debugRenderer = manager_.GetDebugRenderer(); InputState* state = GetInputState(); char buf[64]; const float x = 0.2f; float y = 0.2f; for (int i = 0; i < KeyCount_; ++i) { if (state->GetBool(i)) { GetButtonName(i, buf, 64); debugRenderer->DrawText(x, y, buf); y += 0.025f; } } } } InputDevice::DeviceState InputDeviceKeyboard::InternalGetState() const { return impl_->GetState(); } InputDevice::DeviceVariant InputDeviceKeyboard::GetVariant() const { return impl_->GetVariant(); } size_t InputDeviceKeyboard::GetAnyButtonDown(DeviceButtonSpec* outButtons, size_t maxButtonCount) const { GAINPUT_ASSERT(outButtons); GAINPUT_ASSERT(maxButtonCount > 0); return CheckAllButtonsDown(outButtons, maxButtonCount, 0, KeyCount_); } size_t InputDeviceKeyboard::GetButtonName(DeviceButtonId deviceButton, char* buffer, size_t bufferLength) const { GAINPUT_ASSERT(IsValidButtonId(deviceButton)); GAINPUT_ASSERT(buffer); GAINPUT_ASSERT(bufferLength > 0); HashMap<Key, const char*>::const_iterator it = keyNames_.find(Key(deviceButton)); if (it == keyNames_.end()) { return 0; } strncpy_s(buffer, bufferLength, it->second, bufferLength); buffer[bufferLength-1] = 0; const size_t nameLen = strlen(it->second); return nameLen >= bufferLength ? bufferLength : nameLen+1; } ButtonType InputDeviceKeyboard::GetButtonType(DeviceButtonId deviceButton) const { GAINPUT_ASSERT(IsValidButtonId(deviceButton)); return BT_BOOL; } DeviceButtonId InputDeviceKeyboard::GetButtonByName(const char* name) const { GAINPUT_ASSERT(name); for (HashMap<Key, const char*>::const_iterator it = keyNames_.begin(); it != keyNames_.end(); ++it) { if (strcmp(name, it->second) == 0) { return it->first; } } return InvalidDeviceButtonId; } InputState* InputDeviceKeyboard::GetNextInputState() { return impl_->GetNextInputState(); } bool InputDeviceKeyboard::IsTextInputEnabled() const { return impl_->IsTextInputEnabled(); } void InputDeviceKeyboard::SetTextInputEnabled(bool enabled) { impl_->SetTextInputEnabled(enabled); } char InputDeviceKeyboard::GetNextCharacter() { return impl_->GetNextCharacter(); } }
25.84375
121
0.767836
BredaUniversityGames
74184a75838bd2f9f80ed1faf4049b99642775fd
1,748
hpp
C++
source/data_model/cxx/include/lue/object/property/same_shape/constant_shape/properties.hpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
2
2021-02-26T22:45:56.000Z
2021-05-02T10:28:48.000Z
source/data_model/cxx/include/lue/object/property/same_shape/constant_shape/properties.hpp
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
262
2016-08-11T10:12:02.000Z
2020-10-13T18:09:16.000Z
source/data_model/cxx/include/lue/object/property/same_shape/constant_shape/properties.hpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
1
2020-03-11T09:49:41.000Z
2020-03-11T09:49:41.000Z
#pragma once #include "lue/info/property/same_shape/constant_shape/property.hpp" #include "lue/object/property/properties_traits.hpp" #include "lue/core/collection.hpp" namespace lue { namespace data_model { namespace same_shape { namespace constant_shape { /*! @brief Collection of same shape x constant shape properties */ class Properties: public Collection<Property> { public: explicit Properties (hdf5::Group const& parent); explicit Properties (Collection<Property>&& collection); Properties (Properties const&)=default; Properties (Properties&&)=default; ~Properties () override =default; Properties& operator= (Properties const&)=default; Properties& operator= (Properties&&)=default; Property& add (std::string const& name, hdf5::Datatype const& datatype, std::string const& description=""); Property& add (std::string const& name, hdf5::Datatype const& datatype, hdf5::Shape const& shape, std::string const& description=""); private: }; Properties create_properties (hdf5::Group& parent); } // namespace constant_shape } // namespace same_shape template<> class PropertyTraits<same_shape::constant_shape::Properties> { public: using Property = same_shape::constant_shape::Properties::Element; using Value = ValueT<Property>; }; } // namespace data_model } // namespace lue
25.333333
75
0.568078
computationalgeography
741d09f4f2f338d56252c5b2245015769ba9da0a
392
cpp
C++
0100/90/196a.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
1
2020-07-03T15:55:52.000Z
2020-07-03T15:55:52.000Z
0100/90/196a.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
null
null
null
0100/90/196a.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
3
2020-10-01T14:55:28.000Z
2021-07-11T11:33:58.000Z
#include <iostream> #include <string> void answer(const std::string& v) { std::cout << v << '\n'; } void solve(const std::string& s) { std::string t; for (const char c : s) { while (!t.empty() && t.back() < c) t.pop_back(); t.push_back(c); } answer(t); } int main() { std::string s; std::cin >> s; solve(s); return 0; }
12.25
42
0.487245
actium
742070861a3c11c517422f43df724024014dbc5a
11,739
cpp
C++
gen/dsp/NoiseLFO.cpp
jpcima/string-machine
188082dd0beb9a3c341035604841c53675fe66c4
[ "BSL-1.0" ]
34
2019-07-08T15:02:10.000Z
2022-02-20T01:44:02.000Z
gen/dsp/NoiseLFO.cpp
jpcima/string-machine
188082dd0beb9a3c341035604841c53675fe66c4
[ "BSL-1.0" ]
27
2019-07-08T21:46:19.000Z
2022-03-24T16:01:02.000Z
gen/dsp/NoiseLFO.cpp
jpcima/string-machine
188082dd0beb9a3c341035604841c53675fe66c4
[ "BSL-1.0" ]
3
2019-08-03T22:35:08.000Z
2022-02-20T01:19:52.000Z
//------------------------------------------------------------------------------ // This file was generated using the Faust compiler (https://faust.grame.fr), // and the Faust post-processor (https://github.com/jpcima/faustpp). // // Source: NoiseLFO.dsp // Name: NoiseLFO // Author: // Copyright: // License: // Version: //------------------------------------------------------------------------------ #include "NoiseLFO.hpp" #include <utility> #include <cmath> class NoiseLFO::BasicDsp { public: virtual ~BasicDsp() {} }; //------------------------------------------------------------------------------ // Begin the Faust code section namespace { template <class T> inline T min(T a, T b) { return (a < b) ? a : b; } template <class T> inline T max(T a, T b) { return (a > b) ? a : b; } class Meta { public: // dummy void declare(...) {} }; class UI { public: // dummy void openHorizontalBox(...) {} void openVerticalBox(...) {} void closeBox(...) {} void declare(...) {} void addButton(...) {} void addCheckButton(...) {} void addVerticalSlider(...) {} void addHorizontalSlider(...) {} void addVerticalBargraph(...) {} }; typedef NoiseLFO::BasicDsp dsp; } // namespace #define FAUSTPP_VIRTUAL // do not declare any methods virtual #define FAUSTPP_PRIVATE public // do not hide any members #define FAUSTPP_PROTECTED public // do not hide any members // define the DSP in the anonymous namespace #define FAUSTPP_BEGIN_NAMESPACE namespace { #define FAUSTPP_END_NAMESPACE } #if defined(__GNUC__) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-parameter" #endif #ifndef FAUSTPP_PRIVATE # define FAUSTPP_PRIVATE private #endif #ifndef FAUSTPP_PROTECTED # define FAUSTPP_PROTECTED protected #endif #ifndef FAUSTPP_VIRTUAL # define FAUSTPP_VIRTUAL virtual #endif #ifndef FAUSTPP_BEGIN_NAMESPACE # define FAUSTPP_BEGIN_NAMESPACE #endif #ifndef FAUSTPP_END_NAMESPACE # define FAUSTPP_END_NAMESPACE #endif FAUSTPP_BEGIN_NAMESPACE #ifndef FAUSTFLOAT #define FAUSTFLOAT float #endif FAUSTPP_END_NAMESPACE #include <algorithm> #include <cmath> #include <math.h> FAUSTPP_BEGIN_NAMESPACE #ifndef FAUSTCLASS #define FAUSTCLASS NoiseLFODsp #endif #ifdef __APPLE__ #define exp10f __exp10f #define exp10 __exp10 #endif class NoiseLFODsp : public dsp { FAUSTPP_PRIVATE: int fSampleRate; float fConst0; float fConst1; FAUSTFLOAT fHslider0; int iVec0[2]; float fConst2; float fRec6[2]; float fRec7[2]; int iRec8[2]; float fRec5[2]; float fRec4[2]; float fRec3[2]; float fRec2[2]; float fRec1[2]; float fRec0[2]; public: void metadata(Meta* m) { m->declare("basics.lib/name", "Faust Basic Element Library"); m->declare("basics.lib/version", "0.1"); m->declare("filename", "NoiseLFO.dsp"); m->declare("filters.lib/lowpass0_highpass1", "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"); m->declare("filters.lib/lowpass0_highpass1:author", "Julius O. Smith III"); m->declare("filters.lib/lowpass:author", "Julius O. Smith III"); m->declare("filters.lib/lowpass:copyright", "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"); m->declare("filters.lib/lowpass:license", "MIT-style STK-4.3 license"); m->declare("filters.lib/name", "Faust Filters Library"); m->declare("filters.lib/nlf2:author", "Julius O. Smith III"); m->declare("filters.lib/nlf2:copyright", "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"); m->declare("filters.lib/nlf2:license", "MIT-style STK-4.3 license"); m->declare("filters.lib/tf1:author", "Julius O. Smith III"); m->declare("filters.lib/tf1:copyright", "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"); m->declare("filters.lib/tf1:license", "MIT-style STK-4.3 license"); m->declare("filters.lib/tf1s:author", "Julius O. Smith III"); m->declare("filters.lib/tf1s:copyright", "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>"); m->declare("filters.lib/tf1s:license", "MIT-style STK-4.3 license"); m->declare("maths.lib/author", "GRAME"); m->declare("maths.lib/copyright", "GRAME"); m->declare("maths.lib/license", "LGPL with exception"); m->declare("maths.lib/name", "Faust Math Library"); m->declare("maths.lib/version", "2.1"); m->declare("name", "NoiseLFO"); m->declare("noises.lib/name", "Faust Noise Generator Library"); m->declare("noises.lib/version", "0.0"); m->declare("oscillators.lib/name", "Faust Oscillator Library"); m->declare("oscillators.lib/version", "0.0"); } FAUSTPP_VIRTUAL int getNumInputs() { return 0; } FAUSTPP_VIRTUAL int getNumOutputs() { return 1; } FAUSTPP_VIRTUAL int getInputRate(int channel) { int rate; switch ((channel)) { default: { rate = -1; break; } } return rate; } FAUSTPP_VIRTUAL int getOutputRate(int channel) { int rate; switch ((channel)) { case 0: { rate = 1; break; } default: { rate = -1; break; } } return rate; } static void classInit(int sample_rate) { } FAUSTPP_VIRTUAL void instanceConstants(int sample_rate) { fSampleRate = sample_rate; fConst0 = std::min<float>(192000.0f, std::max<float>(1.0f, float(fSampleRate))); fConst1 = (3.14159274f / fConst0); fConst2 = (6.28318548f / fConst0); } FAUSTPP_VIRTUAL void instanceResetUserInterface() { fHslider0 = FAUSTFLOAT(1.0f); } FAUSTPP_VIRTUAL void instanceClear() { for (int l0 = 0; (l0 < 2); l0 = (l0 + 1)) { iVec0[l0] = 0; } for (int l1 = 0; (l1 < 2); l1 = (l1 + 1)) { fRec6[l1] = 0.0f; } for (int l2 = 0; (l2 < 2); l2 = (l2 + 1)) { fRec7[l2] = 0.0f; } for (int l3 = 0; (l3 < 2); l3 = (l3 + 1)) { iRec8[l3] = 0; } for (int l4 = 0; (l4 < 2); l4 = (l4 + 1)) { fRec5[l4] = 0.0f; } for (int l5 = 0; (l5 < 2); l5 = (l5 + 1)) { fRec4[l5] = 0.0f; } for (int l6 = 0; (l6 < 2); l6 = (l6 + 1)) { fRec3[l6] = 0.0f; } for (int l7 = 0; (l7 < 2); l7 = (l7 + 1)) { fRec2[l7] = 0.0f; } for (int l8 = 0; (l8 < 2); l8 = (l8 + 1)) { fRec1[l8] = 0.0f; } for (int l9 = 0; (l9 < 2); l9 = (l9 + 1)) { fRec0[l9] = 0.0f; } } FAUSTPP_VIRTUAL void init(int sample_rate) { classInit(sample_rate); instanceInit(sample_rate); } FAUSTPP_VIRTUAL void instanceInit(int sample_rate) { instanceConstants(sample_rate); instanceResetUserInterface(); instanceClear(); } FAUSTPP_VIRTUAL NoiseLFODsp* clone() { return new NoiseLFODsp(); } FAUSTPP_VIRTUAL int getSampleRate() { return fSampleRate; } FAUSTPP_VIRTUAL void buildUserInterface(UI* ui_interface) { ui_interface->openVerticalBox("NoiseLFO"); ui_interface->declare(&fHslider0, "1", ""); ui_interface->declare(&fHslider0, "symbol", "frequency"); ui_interface->declare(&fHslider0, "unit", "Hz"); ui_interface->addHorizontalSlider("Frequency", &fHslider0, 1.0f, 0.0f, 100.0f, 1.0f); ui_interface->closeBox(); } FAUSTPP_VIRTUAL void compute(int count, FAUSTFLOAT** inputs, FAUSTFLOAT** outputs) { FAUSTFLOAT* output0 = outputs[0]; float fSlow0 = float(fHslider0); float fSlow1 = (1.0f / std::tan((fConst1 * fSlow0))); float fSlow2 = (1.0f / (fSlow1 + 1.0f)); float fSlow3 = (1.0f - fSlow1); float fSlow4 = (fConst2 * fSlow0); float fSlow5 = std::sin(fSlow4); float fSlow6 = std::cos(fSlow4); for (int i = 0; (i < count); i = (i + 1)) { iVec0[0] = 1; fRec6[0] = ((fSlow5 * fRec7[1]) + (fSlow6 * fRec6[1])); fRec7[0] = ((float((1 - iVec0[1])) + (fSlow6 * fRec7[1])) - (fSlow5 * fRec6[1])); int iTemp0 = ((fRec6[1] <= 0.0f) & (fRec6[0] > 0.0f)); iRec8[0] = ((1103515245 * iRec8[1]) + 12345); fRec5[0] = ((fRec5[1] * float((1 - iTemp0))) + (4.65661287e-10f * (float(iRec8[0]) * float(iTemp0)))); fRec4[0] = (0.0f - (fSlow2 * ((fSlow3 * fRec4[1]) - (fRec5[0] + fRec5[1])))); fRec3[0] = (0.0f - (fSlow2 * ((fSlow3 * fRec3[1]) - (fRec4[0] + fRec4[1])))); fRec2[0] = (0.0f - (fSlow2 * ((fSlow3 * fRec2[1]) - (fRec3[0] + fRec3[1])))); fRec1[0] = (0.0f - (fSlow2 * ((fSlow3 * fRec1[1]) - (fRec2[0] + fRec2[1])))); fRec0[0] = (0.0f - (fSlow2 * ((fSlow3 * fRec0[1]) - (fRec1[0] + fRec1[1])))); output0[i] = FAUSTFLOAT(fRec0[0]); iVec0[1] = iVec0[0]; fRec6[1] = fRec6[0]; fRec7[1] = fRec7[0]; iRec8[1] = iRec8[0]; fRec5[1] = fRec5[0]; fRec4[1] = fRec4[0]; fRec3[1] = fRec3[0]; fRec2[1] = fRec2[0]; fRec1[1] = fRec1[0]; fRec0[1] = fRec0[0]; } } }; FAUSTPP_END_NAMESPACE #if defined(__GNUC__) # pragma GCC diagnostic pop #endif //------------------------------------------------------------------------------ // End the Faust code section NoiseLFO::NoiseLFO() { NoiseLFODsp *dsp = new NoiseLFODsp; fDsp.reset(dsp); dsp->instanceResetUserInterface(); } NoiseLFO::~NoiseLFO() { } void NoiseLFO::init(float sample_rate) { NoiseLFODsp &dsp = static_cast<NoiseLFODsp &>(*fDsp); dsp.classInit(sample_rate); dsp.instanceConstants(sample_rate); clear(); } void NoiseLFO::clear() noexcept { NoiseLFODsp &dsp = static_cast<NoiseLFODsp &>(*fDsp); dsp.instanceClear(); } void NoiseLFO::process( float *out0, unsigned count) noexcept { NoiseLFODsp &dsp = static_cast<NoiseLFODsp &>(*fDsp); float *inputs[] = { }; float *outputs[] = { out0, }; dsp.compute(count, inputs, outputs); } const char *NoiseLFO::parameter_label(unsigned index) noexcept { switch (index) { case 0: return "Frequency"; default: return 0; } } const char *NoiseLFO::parameter_short_label(unsigned index) noexcept { switch (index) { case 0: return ""; default: return 0; } } const char *NoiseLFO::parameter_symbol(unsigned index) noexcept { switch (index) { case 0: return "frequency"; default: return 0; } } const char *NoiseLFO::parameter_unit(unsigned index) noexcept { switch (index) { case 0: return "Hz"; default: return 0; } } const NoiseLFO::ParameterRange *NoiseLFO::parameter_range(unsigned index) noexcept { switch (index) { case 0: { static const ParameterRange range = { 1, 0, 100 }; return &range; } default: return 0; } } bool NoiseLFO::parameter_is_trigger(unsigned index) noexcept { switch (index) { default: return false; } } bool NoiseLFO::parameter_is_boolean(unsigned index) noexcept { switch (index) { default: return false; } } bool NoiseLFO::parameter_is_integer(unsigned index) noexcept { switch (index) { default: return false; } } bool NoiseLFO::parameter_is_logarithmic(unsigned index) noexcept { switch (index) { default: return false; } } float NoiseLFO::get_parameter(unsigned index) const noexcept { NoiseLFODsp &dsp = static_cast<NoiseLFODsp &>(*fDsp); switch (index) { case 0: return dsp.fHslider0; default: (void)dsp; return 0; } } void NoiseLFO::set_parameter(unsigned index, float value) noexcept { NoiseLFODsp &dsp = static_cast<NoiseLFODsp &>(*fDsp); switch (index) { case 0: dsp.fHslider0 = value; break; default: (void)dsp; (void)value; break; } } float NoiseLFO::get_frequency() const noexcept { NoiseLFODsp &dsp = static_cast<NoiseLFODsp &>(*fDsp); return dsp.fHslider0; } void NoiseLFO::set_frequency(float value) noexcept { NoiseLFODsp &dsp = static_cast<NoiseLFODsp &>(*fDsp); dsp.fHslider0 = value; }
22.618497
122
0.611381
jpcima
7421412fb7e2c1c2ed365899c6b9c5e984f07924
4,729
cpp
C++
Core/Code/Interactions/mitkEventRecorder.cpp
lsanzdiaz/MITK-BiiG
470f04e7585a60672f449716a1c595a5ba3fcd24
[ "BSD-3-Clause" ]
1
2017-03-05T05:29:32.000Z
2017-03-05T05:29:32.000Z
Core/Code/Interactions/mitkEventRecorder.cpp
lsanzdiaz/MITK-BiiG
470f04e7585a60672f449716a1c595a5ba3fcd24
[ "BSD-3-Clause" ]
null
null
null
Core/Code/Interactions/mitkEventRecorder.cpp
lsanzdiaz/MITK-BiiG
470f04e7585a60672f449716a1c595a5ba3fcd24
[ "BSD-3-Clause" ]
2
2020-10-27T06:51:00.000Z
2020-10-27T06:51:01.000Z
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #include "mitkEventRecorder.h" #include "mitkEventFactory.h" #include "mitkInteractionEvent.h" #include "mitkInteractionEventConst.h" #include "mitkBaseRenderer.h" static void WriteEventXMLHeader(std::ofstream& stream) { stream << mitk::InteractionEventConst::xmlHead() << "\n"; } static void WriteEventXMLConfig(std::ofstream& stream) { // <config> stream << " <" << mitk::InteractionEventConst::xmlTagConfigRoot() << ">\n"; //write renderer config //for all registered 2D renderers write name and viewdirection. mitk::BaseRenderer::BaseRendererMapType::iterator rendererIterator = mitk::BaseRenderer::baseRendererMap.begin(); mitk::BaseRenderer::BaseRendererMapType::iterator end = mitk::BaseRenderer::baseRendererMap.end(); for(; rendererIterator != end; rendererIterator++) { std::string rendererName = (*rendererIterator).second->GetName(); mitk::SliceNavigationController::ViewDirection viewDirection = (*rendererIterator).second->GetSliceNavigationController()->GetDefaultViewDirection(); mitk::BaseRenderer::MapperSlotId mapperID = (*rendererIterator).second->GetMapperID(); // <renderer RendererName="stdmulti.widget2" ViewDirection="1" MapperID="1"/> stream << " <" << mitk::InteractionEventConst::xmlTagRenderer() << " " << mitk::InteractionEventConst::xmlEventPropertyRendererName() << "=\"" << rendererName << "\" " << mitk::InteractionEventConst::xmlEventPropertyViewDirection() << "=\"" << viewDirection << "\" " << mitk::InteractionEventConst::xmlEventPropertyMapperID() << "=\"" << mapperID << "\"/>\n"; } // </config> stream << " </" << mitk::InteractionEventConst::xmlTagConfigRoot() << ">\n"; } static void WriteEventXMLEventsOpen(std::ofstream& stream) { stream << " <" << mitk::InteractionEventConst::xmlTagEvents() << ">\n"; } static void WriteEventXMLEventsClose(std::ofstream& stream) { stream << " </" << mitk::InteractionEventConst::xmlTagEvents() << ">\n"; } static void WriteEventXMLInteractionsOpen(std::ofstream& stream) { stream << "<" << mitk::InteractionEventConst::xmlTagInteractions() << ">\n"; } static void WriteEventXMLInteractionsClose(std::ofstream& stream) { stream << "</" << mitk::InteractionEventConst::xmlTagInteractions() << ">"; } static void WriteEventXMLClose(std::ofstream& stream) { WriteEventXMLEventsClose(stream); WriteEventXMLInteractionsClose(stream); } mitk::EventRecorder::EventRecorder() : m_Active(false) { } mitk::EventRecorder::~EventRecorder() { if (m_FileStream.is_open()) { m_FileStream.flush(); m_FileStream.close(); } } void mitk::EventRecorder::Notify(mitk::InteractionEvent *interactionEvent, bool /*isHandled*/) { std::cout << EventFactory::EventToXML(interactionEvent) << "\n"; if (m_FileStream.is_open()) m_FileStream << EventFactory::EventToXML(interactionEvent) << "\n"; } void mitk::EventRecorder::SetEventIgnoreList(std::vector<std::string> list) { m_IgnoreList = list; } void mitk::EventRecorder::StartRecording() { if (m_FileName == "") { MITK_ERROR << "EventRecorder::StartRecording - Filename needs to be set first."; return; } if (m_FileStream.is_open()) { MITK_ERROR << "EventRecorder::StartRecording - Still recording. Stop recording before starting it again."; return; } m_FileStream.open(m_FileName.c_str(), std::ofstream::out ); if ( !m_FileStream.good() ) { MITK_ERROR << "File " << m_FileName << " could not be opened!"; m_FileStream.close(); return; } m_Active = true; //write head and config // <?xml version="1.0"?> // <interactions> // <config> // <renderer RendererName="stdmulti.widget2" ViewDirection="1"/> // <renderer RendererName="stdmulti.widget1" ViewDirection="0"/> // ... // </config> // <events> WriteEventXMLHeader(m_FileStream); WriteEventXMLInteractionsOpen(m_FileStream); WriteEventXMLConfig(m_FileStream); WriteEventXMLEventsOpen(m_FileStream); } void mitk::EventRecorder::StopRecording() { if (m_FileStream.is_open()) { //write end tag // </events> // </interactions> WriteEventXMLClose(m_FileStream); m_FileStream.flush(); m_FileStream.close(); m_Active =false; } }
28.660606
365
0.681117
lsanzdiaz
74252ebc179368be4bc9a253111153ecc2c84384
691
hpp
C++
inc/rfm69_message_handler.hpp
ecrampton1/PeripheralMessaging
fb643453277c6a08a7950c23ad2fa4834fffb74b
[ "MIT" ]
null
null
null
inc/rfm69_message_handler.hpp
ecrampton1/PeripheralMessaging
fb643453277c6a08a7950c23ad2fa4834fffb74b
[ "MIT" ]
null
null
null
inc/rfm69_message_handler.hpp
ecrampton1/PeripheralMessaging
fb643453277c6a08a7950c23ad2fa4834fffb74b
[ "MIT" ]
null
null
null
#ifndef RFM69_MESSAGING_HANDLER_HPP_ #define RFM69_MESSAGING_HANDLER_HPP_ #include "message.hpp" #include "message_handler.hpp" namespace PeripheralMessages { class RFM69Handler { public: static void begin(uint8_t node); static void initializeIncomingMessages(); static bool publishMessage(const MessageBuffer& buffer, const uint16_t node=0); static void serviceOnce(); private: static constexpr uint8_t GATEWAY_ID = 10; static constexpr int BUFFER_SIZE = 32; static uint8_t mHandlerBuffer[BUFFER_SIZE]; static bool mSentUpdate; static void serviceHeartbeat(); static void handleVersionQuery(void* args, void* msg,const uint16_t calling_id); }; } #endif //RFM69_MESSAGING_HANDLER_HPP_
23.033333
80
0.817656
ecrampton1
74258b4ffee0478e59d3f0b884b04873836759dc
3,140
cpp
C++
robowflex_dart/src/joints/rnjoint.cpp
aorthey/robowflex
09eeb3a380344500508f53cf8469e9878e746c39
[ "BSD-3-Clause" ]
58
2018-08-17T14:26:02.000Z
2022-03-28T05:42:03.000Z
robowflex_dart/src/joints/rnjoint.cpp
aorthey/robowflex
09eeb3a380344500508f53cf8469e9878e746c39
[ "BSD-3-Clause" ]
52
2018-08-23T01:33:04.000Z
2022-03-28T15:54:13.000Z
robowflex_dart/src/joints/rnjoint.cpp
aorthey/robowflex
09eeb3a380344500508f53cf8469e9878e746c39
[ "BSD-3-Clause" ]
14
2021-04-05T23:49:55.000Z
2022-03-21T00:18:16.000Z
/* Author: Zachary Kingston */ #include <robowflex_dart/joints.h> #include <robowflex_dart/space.h> using namespace robowflex::darts; /// /// RnJoint /// RnJoint::RnJoint(StateSpace *space, // dart::dynamics::Joint *joint, // double low, double high) : RnJoint(space, joint, // 1, 0, // Eigen::VectorXd::Constant(1, low), // Eigen::VectorXd::Constant(1, high)) { } RnJoint::RnJoint(StateSpace *space, // dart::dynamics::Joint *joint, // unsigned int n, unsigned int start, // Eigen::VectorXd low, Eigen::VectorXd high) : Joint(space, joint, n, start, n), low_(low), high_(high) { if (low_.size() != numDof_ or high_.size() != numDof_) { } for (unsigned int i = 0; i < numDof_; ++i) space_->addDimension(low[i], high[i]); } // L1 double RnJoint::distance(const Eigen::Ref<const Eigen::VectorXd> &a, const Eigen::Ref<const Eigen::VectorXd> &b) const { return (a - b).lpNorm<1>(); } double RnJoint::getMaximumExtent() const { return distance(low_, high_); } void RnJoint::interpolate(const Eigen::Ref<const Eigen::VectorXd> &a, // const Eigen::Ref<const Eigen::VectorXd> &b, // double t, // Eigen::Ref<Eigen::VectorXd> c) const { c = a + t * (b - a); } void RnJoint::enforceBounds(Eigen::Ref<Eigen::VectorXd> a) const { for (unsigned int i = 0; i < numDof_; ++i) { double &v = a[i]; v = (v < low_[i]) ? low_[i] : ((v > high_[i]) ? high_[i] : v); } } bool RnJoint::satisfiesBounds(const Eigen::Ref<const Eigen::VectorXd> &a) const { for (unsigned int i = 0; i < numDof_; ++i) { const double &v = a[i]; if ((v < low_[i]) or (v > high_[i])) return false; } return true; } void RnJoint::sample(Eigen::Ref<Eigen::VectorXd> a) const { for (unsigned int i = 0; i < numDof_; ++i) a[i] = rng_.uniformReal(low_[i], high_[i]); } void RnJoint::sampleNear(Eigen::Ref<Eigen::VectorXd> a, // const Eigen::Ref<const Eigen::VectorXd> &near, // double r) const { for (unsigned int i = 0; i < numDof_; ++i) a[i] = rng_.uniformReal(near[i] - r, near[i] + r); enforceBounds(a); } void RnJoint::setUpperLimits(const Eigen::Ref<const Eigen::VectorXd> &v) { if (v.size() != high_.size()) throw std::runtime_error("Incorrect size for limits!"); high_ = v; for (std::size_t i = 0; i < sizeInSpace_; ++i) space_->bounds_.setHigh(startInSpace_ + i, high_[i]); } void RnJoint::setLowerLimits(const Eigen::Ref<const Eigen::VectorXd> &v) { if (v.size() != low_.size()) throw std::runtime_error("Incorrect size for limits!"); low_ = v; for (std::size_t i = 0; i < sizeInSpace_; ++i) space_->bounds_.setLow(startInSpace_ + i, low_[i]); }
27.54386
79
0.528344
aorthey
7426da866ef295ffecc221ebab52f8c9287572f3
3,394
cpp
C++
miniapps/navier/navier_3dfoc.cpp
fanronghong/mfem
5bc8d5ea1b7e3a0b377423773e78428bf7160612
[ "BSD-3-Clause" ]
1
2020-04-28T05:08:24.000Z
2020-04-28T05:08:24.000Z
miniapps/navier/navier_3dfoc.cpp
fanronghong/mfem
5bc8d5ea1b7e3a0b377423773e78428bf7160612
[ "BSD-3-Clause" ]
null
null
null
miniapps/navier/navier_3dfoc.cpp
fanronghong/mfem
5bc8d5ea1b7e3a0b377423773e78428bf7160612
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit https://mfem.org. // // MFEM is free software; you can redistribute it and/or modify it under the // terms of the BSD-3 license. We welcome feedback and contributions, see file // CONTRIBUTING.md for details. // 3d flow over a cylinder benchmark example #include "navier_solver.hpp" #include <fstream> using namespace mfem; using namespace navier; struct s_NavierContext { int order = 4; double kin_vis = 0.001; double t_final = 10; double dt = 1e-3; } ctx; // vel 应该就是真解?不, 应该只是初值 void vel(const Vector &x, double t, Vector &u) { double xi = x(0); double yi = x(1); double zi = x(2); double U = 2.25; if (xi <= 1e-8) { u(0) = 16.0 * U * yi * zi * sin(M_PI * t / 8.0) * (0.41 - yi) * (0.41 - zi) / pow(0.41, 4.0); } else { u(0) = 0.0; } u(1) = 0.0; u(2) = 0.0; } int main(int argc, char *argv[]) { MPI_Session mpi(argc, argv); int serial_refinements = 0; Mesh *mesh = new Mesh("box-cylinder.mesh"); for (int i = 0; i < serial_refinements; ++i) { mesh->UniformRefinement(); } if (mpi.Root()) { std::cout << "Number of elements: " << mesh->GetNE() << std::endl; } auto *pmesh = new ParMesh(MPI_COMM_WORLD, *mesh); delete mesh; if (mpi.Root()) { // 和上面的 mesh->GetNE() 不一样的 std::cout << "Number of elements: " << pmesh->GetNE() << std::endl; } // Create the flow solver. NavierSolver flowsolver(pmesh, ctx.order, ctx.kin_vis); flowsolver.EnablePA(true); // Set the initial condition. ParGridFunction *u_ic = flowsolver.GetCurrentVelocity(); VectorFunctionCoefficient u_excoeff(pmesh->Dimension(), vel); u_ic->ProjectCoefficient(u_excoeff); // Add Dirichlet boundary conditions to velocity space restricted to // selected attributes on the mesh. Array<int> attr(pmesh->bdr_attributes.Max()); // Inlet is attribute 1. attr[0] = 1; // Walls is attribute 3. attr[2] = 1; flowsolver.AddVelDirichletBC(vel, attr); double t = 0.0; double dt = ctx.dt; double t_final = ctx.t_final; bool last_step = false; flowsolver.Setup(dt); ParGridFunction *u_gf = flowsolver.GetCurrentVelocity(); ParGridFunction *p_gf = flowsolver.GetCurrentPressure(); ParaViewDataCollection pvdc("3dfoc", pmesh); pvdc.SetDataFormat(VTKFormat::BINARY32); pvdc.SetHighOrderOutput(true); pvdc.SetLevelsOfDetail(ctx.order); pvdc.SetCycle(0); pvdc.SetTime(t); pvdc.RegisterField("velocity", u_gf); pvdc.RegisterField("pressure", p_gf); pvdc.Save(); for (int step = 0; !last_step; ++step) { if (t + dt >= t_final - dt / 2) { last_step = true; } flowsolver.Step(t, dt, step); if (step % 10 == 0) { pvdc.SetCycle(step); pvdc.SetTime(t); pvdc.Save(); } if (mpi.Root()) { printf("%11s %11s\n", "Time", "dt"); printf("%.5E %.5E\n", t, dt); fflush(stdout); } } flowsolver.PrintTimingData(); delete pmesh; return 0; }
23.406897
80
0.61373
fanronghong
742a188e513794582f75525489b2dec52a4f928e
20,202
cpp
C++
GTE/Graphics/GL45/GLSLShader.cpp
tranthaiphi/GeometricTools
451e412a0715dbb4fcafbe486ca33d84a404b78d
[ "BSL-1.0" ]
452
2020-09-16T02:23:30.000Z
2022-03-27T23:11:38.000Z
GTE/Graphics/GL45/GLSLShader.cpp
tranthaiphi/GeometricTools
451e412a0715dbb4fcafbe486ca33d84a404b78d
[ "BSL-1.0" ]
34
2020-10-11T03:56:17.000Z
2022-03-04T17:29:34.000Z
GTE/Graphics/GL45/GLSLShader.cpp
tranthaiphi/GeometricTools
451e412a0715dbb4fcafbe486ca33d84a404b78d
[ "BSL-1.0" ]
91
2020-09-28T16:59:40.000Z
2022-03-25T16:20:06.000Z
// David Eberly, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2021 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2019.08.13 #include <Graphics/GL45/GTGraphicsGL45PCH.h> #include <Graphics/GL45/GLSLShader.h> using namespace gte; GLSLShader::GLSLShader(GLSLReflection const& reflector, GraphicsObjectType type, int glslType) : Shader(type) { // If this is a compute shader, then query the number of threads per // group. if (GLSLReflection::ST_COMPUTE == glslType) { GLint sizeX, sizeY, sizeZ; reflector.GetComputeShaderWorkGroupSize(sizeX, sizeY, sizeZ); mNumXThreads = sizeX; mNumYThreads = sizeY; mNumZThreads = sizeZ; } // Will need to access uniforms more than once. auto const& uniforms = reflector.GetUniforms(); // Gather the uninforms information to create texture data. for (auto const& uni : uniforms) { if (uni.referencedBy[glslType]) { // Only interested in these particular uniform types (for // gsampler* and gimage*). switch (uni.type) { case GL_SAMPLER_1D: case GL_INT_SAMPLER_1D: case GL_UNSIGNED_INT_SAMPLER_1D: mData[TextureSingle::shaderDataLookup].push_back( Data(GT_TEXTURE_SINGLE, uni.name, uni.location, 0, 1, false)); mData[SamplerState::shaderDataLookup].push_back( Data(GT_SAMPLER_STATE, uni.name, uni.location, 0, GT_TEXTURE1, false)); break; case GL_SAMPLER_2D: case GL_INT_SAMPLER_2D: case GL_UNSIGNED_INT_SAMPLER_2D: mData[TextureSingle::shaderDataLookup].push_back( Data(GT_TEXTURE_SINGLE, uni.name, uni.location, 0, 2, false)); mData[SamplerState::shaderDataLookup].push_back( Data(GT_SAMPLER_STATE, uni.name, uni.location, 0, GT_TEXTURE2, false)); break; case GL_SAMPLER_3D: case GL_INT_SAMPLER_3D: case GL_UNSIGNED_INT_SAMPLER_3D: mData[TextureSingle::shaderDataLookup].push_back( Data(GT_TEXTURE_SINGLE, uni.name, uni.location, 0, 3, false)); mData[SamplerState::shaderDataLookup].push_back( Data(GT_SAMPLER_STATE, uni.name, uni.location, 0, GT_TEXTURE3, false)); break; case GL_SAMPLER_1D_ARRAY: case GL_INT_SAMPLER_1D_ARRAY: case GL_UNSIGNED_INT_SAMPLER_1D_ARRAY: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 1, false)); mData[SamplerState::shaderDataLookup].push_back( Data(GT_SAMPLER_STATE, uni.name, uni.location, 0, GT_TEXTURE1_ARRAY, false)); break; case GL_SAMPLER_2D_ARRAY: case GL_INT_SAMPLER_2D_ARRAY: case GL_UNSIGNED_INT_SAMPLER_2D_ARRAY: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 2, false)); mData[SamplerState::shaderDataLookup].push_back( Data(GT_SAMPLER_STATE, uni.name, uni.location, 0, GT_TEXTURE2_ARRAY, false)); break; case GL_SAMPLER_CUBE: case GL_INT_SAMPLER_CUBE: case GL_UNSIGNED_INT_SAMPLER_CUBE: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 2, false)); mData[SamplerState::shaderDataLookup].push_back( Data(GT_SAMPLER_STATE, uni.name, uni.location, 0, GT_TEXTURE_CUBE, false)); break; case GL_SAMPLER_CUBE_MAP_ARRAY: case GL_INT_SAMPLER_CUBE_MAP_ARRAY: case GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 3, false)); mData[SamplerState::shaderDataLookup].push_back( Data(GT_SAMPLER_STATE, uni.name, uni.location, 0, GT_TEXTURE_CUBE_ARRAY, false)); break; case GL_IMAGE_1D: case GL_INT_IMAGE_1D: case GL_UNSIGNED_INT_IMAGE_1D: mData[TextureSingle::shaderDataLookup].push_back( Data(GT_TEXTURE_SINGLE, uni.name, uni.location, 0, 1, true)); break; case GL_IMAGE_2D: case GL_INT_IMAGE_2D: case GL_UNSIGNED_INT_IMAGE_2D: mData[TextureSingle::shaderDataLookup].push_back( Data(GT_TEXTURE_SINGLE, uni.name, uni.location, 0, 2, true)); break; case GL_IMAGE_3D: case GL_INT_IMAGE_3D: case GL_UNSIGNED_INT_IMAGE_3D: mData[TextureSingle::shaderDataLookup].push_back( Data(GT_TEXTURE_SINGLE, uni.name, uni.location, 0, 3, true)); break; case GL_IMAGE_1D_ARRAY: case GL_INT_IMAGE_1D_ARRAY: case GL_UNSIGNED_INT_IMAGE_1D_ARRAY: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 1, true)); break; case GL_IMAGE_2D_ARRAY: case GL_INT_IMAGE_2D_ARRAY: case GL_UNSIGNED_INT_IMAGE_2D_ARRAY: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 2, true)); break; case GL_IMAGE_CUBE: case GL_INT_IMAGE_CUBE: case GL_UNSIGNED_INT_IMAGE_CUBE: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 2, true)); break; case GL_IMAGE_CUBE_MAP_ARRAY: case GL_INT_IMAGE_CUBE_MAP_ARRAY: case GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY: mData[TextureArray::shaderDataLookup].push_back( Data(GT_TEXTURE_ARRAY, uni.name, uni.location, 0, 3, true)); break; } } } // Gather the uniform blocks information to create constant buffer data. auto const& uniformBlocks = reflector.GetUniformBlocks(); int numUniformBlockReferences = 0; for (auto const& block : uniformBlocks) { if (block.referencedBy[glslType]) { ++numUniformBlockReferences; } } if (numUniformBlockReferences > 0) { mCBufferLayouts.resize(numUniformBlockReferences); // Store information needed by GL4Engine for enabling/disabling the // constant buffers. int blockIndex = 0; int layoutIndex = 0; for (auto const& block : uniformBlocks) { if (block.referencedBy[glslType]) { mData[ConstantBuffer::shaderDataLookup].push_back( Data(GT_CONSTANT_BUFFER, block.name, block.bufferBinding, block.bufferDataSize, 0, false)); // Assemble the constant buffer layout information. for (auto const& uniform : uniforms) { if (uniform.blockIndex != blockIndex) { continue; } MemberLayout item; item.name = uniform.name; item.offset = uniform.offset; // TODO: The HLSL reflection has numElements of 0 when // the item is not an array, but the actual number when // it is an array. ConstantBuffer::SetMember(...) uses // this information, so we need to adhere to the pattern. // Change this design in a refactor? item.numElements = (uniform.arraySize > 1 ? uniform.arraySize : 0); mCBufferLayouts[layoutIndex].push_back(item); } ++layoutIndex; } ++blockIndex; } } // Gather the atomic counter buffer information to create atomic counter // buffer data. auto const& atomicCounterBuffers = reflector.GetAtomicCounterBuffers(); int numAtomicCounterBufferReferences = 0; for (auto const& block : atomicCounterBuffers) { if (block.referencedBy[glslType]) { ++numAtomicCounterBufferReferences; } } if (numAtomicCounterBufferReferences > 0) { unsigned blockIndex = 0; for (auto const& block : atomicCounterBuffers) { if (block.referencedBy[glslType]) { // It is possible for the atomic counter buffer to indicate it // only has 4 bytes for a single counter located at offset=4. // But we will want to allocate a buffer large enough to store // from offset=0 to the last counter declared in the buffer. unsigned bufferDataSize = block.bufferDataSize; for (unsigned i=0; i < block.activeVariables.size(); ++i) { auto const& ac = uniforms[block.activeVariables[i]]; unsigned const lastByte = ac.offset + 4; bufferDataSize = std::max(bufferDataSize, lastByte); } mData[AtomicCounterBufferShaderDataLookup].push_back( Data(GT_RESOURCE, "atomicCounterBuffer" + std::to_string(blockIndex), block.bufferBinding, bufferDataSize, 0, true)); } ++blockIndex; } } // Gather the buffer blocks information to create structured buffer data. auto const& bufferBlocks = reflector.GetBufferBlocks(); int numBufferBlockReferences = 0; for (auto const& block : bufferBlocks) { if (block.referencedBy[glslType]) { ++numBufferBlockReferences; } } if (numBufferBlockReferences > 0) { auto const& bufferVariables = reflector.GetBufferVariables(); mSBufferLayouts.resize(numBufferBlockReferences); // Store information needed by GL4Engine for enabling/disabling the // structured buffers. int blockIndex = 0; int layoutIndex = 0; for (auto const& block : bufferBlocks) { if (block.referencedBy[glslType]) { // Search through uniforms looking for atomic counter with // the same name and "Counter" suffix. The ID is the index // for this uniform so that it can be looked up later. auto const counterName = block.name + "Counter"; bool hasAtomicCounter = false; unsigned int idAtomicCounter = ~0U; for (auto const& uniform : uniforms) { if ((counterName == uniform.name) && (uniform.atomicCounterBufferIndex >= 0)) { hasAtomicCounter = true; idAtomicCounter = static_cast<unsigned int>(mData[AtomicCounterShaderDataLookup].size()); mData[AtomicCounterShaderDataLookup].push_back( Data(GT_STRUCTURED_BUFFER, uniform.name, uniform.atomicCounterBufferIndex, 4, uniform.offset, false)); break; } } // Assemble the structured buffer layout information. Only // interested in variables in the buffer that are part of a // top level array stride. Anything up to this block is // ignored and anything after this block is ignored which // means only one top level array is supported. auto& layout = mSBufferLayouts[layoutIndex]; GLint structSize = 0; for (unsigned v = 0; v < block.activeVariables.size(); ++v) { auto const& bufferVar = bufferVariables[block.activeVariables[v]]; if (bufferVar.topLevelArrayStride != structSize) { // Stop when we were processing buffer variables with // a certain top-level array stride and that changed. if (0 != structSize) { break; } structSize = bufferVar.topLevelArrayStride; } // These are the variables in the structured buffer. if (structSize > 0) { MemberLayout item; item.name = bufferVar.name; item.offset = bufferVar.offset; // TODO: The HLSL reflection has numElements of 0 when // the item is not an array, but the actual number // when it is an array. ConstantBuffer::SetMember(...) // uses this information, so we need to adhere to the // pattern. Change this design in a refactor? item.numElements = (bufferVar.arraySize > 1 ? bufferVar.arraySize : 0); layout.push_back(item); } } // Use the top level array stride as a better indication // of the overall struct size. mData[StructuredBuffer::shaderDataLookup].push_back( Data(GT_STRUCTURED_BUFFER, block.name, block.bufferBinding, structSize, idAtomicCounter, hasAtomicCounter)); // OpenGL implementions might store structured buffer member // information in different orders; for example, alphabetical // by name or by offset. To produce a consistent layout, sort // the layout by offset. std::sort(layout.begin(), layout.end(), [](MemberLayout const& layout0, MemberLayout const& layout1) { return layout0.offset < layout1.offset; } ); ++layoutIndex; } ++blockIndex; } } } void GLSLShader::Set(std::string const&, std::shared_ptr<TextureSingle> const& texture, std::string const& samplerName, std::shared_ptr<SamplerState> const& state) { Shader::Set(samplerName, texture); Shader::Set(samplerName, state); } void GLSLShader::Set(std::string const&, std::shared_ptr<TextureArray> const& texture, std::string const& samplerName, std::shared_ptr<SamplerState> const& state) { Shader::Set(samplerName, texture); Shader::Set(samplerName, state); } bool GLSLShader::IsValid(Data const& goal, ConstantBuffer* resource) const { if (!resource) { // resource is null return false; } if (goal.type != GT_CONSTANT_BUFFER) { // mismatch of buffer type return false; } if (resource->GetNumBytes() >= static_cast<size_t>(goal.numBytes)) { return true; } // invalid number of bytes return false; } bool GLSLShader::IsValid(Data const& goal, TextureBuffer* resource) const { if (!resource) { // resource is null return false; } if (goal.type != GT_TEXTURE_BUFFER) { // mismatch of buffer type return false; } if (resource->GetNumBytes() >= static_cast<size_t>(goal.numBytes)) { return true; } // invalid number of bytes return false; } bool GLSLShader::IsValid(Data const& goal, StructuredBuffer* resource) const { if (!resource) { // resource is null return false; } if (goal.type != GT_STRUCTURED_BUFFER) { // invalid number of bytes return false; } // GL4 reflection does not provide information about writable access of // buffer objects in a shader because by definition, shader storage buffer // objects can be read-write by shaders. For GL4, the isGpuWritable flag // is used to indicate whether the structured buffer has a counter // attached or not. Thus, the test that is performed in the DX11 IsValid // code cannot be used here. // OpenGL does not have the concept of an append-consume type structured // buffer nor does it have the concept of a structured buffer with // counter. But, this GL4 support does associate an atomic counter with // a structured buffer as long as it has the same name. If the shader is // expecting a counter, then the structured buffer needs to be declared // with one. if (goal.isGpuWritable && (StructuredBuffer::CT_NONE == resource->GetCounterType())) { // mismatch of counter type return false; } return true; } bool GLSLShader::IsValid(Data const& goal, RawBuffer* resource) const { if (!resource) { // resource is null return false; } if (goal.type != GT_RAW_BUFFER) { // mismatch of buffer type return false; } if (goal.isGpuWritable && resource->GetUsage() != Resource::SHADER_OUTPUT) { // mismatch of GPU write flag return false; } return true; } bool GLSLShader::IsValid(Data const& goal, TextureSingle* resource) const { if (!resource) { // resource is null return false; } if (goal.type != GT_TEXTURE_SINGLE) { // mismatch of texture type return false; } // GL4 reflection does not provide information about writable access of // gimage* and gsampler* objects in a shader. For GL4, the isGpuWritable // flag is used to indicate whether the texture could be writable in // shader which is false for gshader* objects and is true for gimage* // objects. Thus, the test that is performed in the DX11 IsValid code // cannot be used here. if (goal.extra != resource->GetNumDimensions()) { // mismatch of texture dimensions return false; } return true; } bool GLSLShader::IsValid(Data const& goal, TextureArray* resource) const { if (!resource) { // resource is null return false; } if (goal.type != GT_TEXTURE_ARRAY) { // mismatch of texture type return false; } // GL4 reflection does not provide information about writable access of // gimage* and gsampler* objects in a shader. For GL4, the isGpuWritable // flag is used to indicate whether the texture could be writable in // shader which is false for gshader* objects and is true for gimage* // objects. Thus, the test that is performed in the DX11 IsValid code // cannot be used here. if (goal.extra != resource->GetNumDimensions()) { // mismatch of texture dimensions return false; } return true; } bool GLSLShader::IsValid(Data const& goal, SamplerState* resource) const { if (!resource) { // resource is null return false; } if (goal.type != GT_SAMPLER_STATE) { // mismatch of state return false; } return true; }
36.730909
113
0.566429
tranthaiphi
742cb08b4eabee8109515d70fa88198f7a1de22d
1,006
cpp
C++
test/thread/futures/futures.promise/set_rvalue_at_thread_exit.pass.cpp
lll-project/libcxx
8686f462eb90688485e351f3ee569dbe68a5d7ff
[ "MIT" ]
null
null
null
test/thread/futures/futures.promise/set_rvalue_at_thread_exit.pass.cpp
lll-project/libcxx
8686f462eb90688485e351f3ee569dbe68a5d7ff
[ "MIT" ]
null
null
null
test/thread/futures/futures.promise/set_rvalue_at_thread_exit.pass.cpp
lll-project/libcxx
8686f462eb90688485e351f3ee569dbe68a5d7ff
[ "MIT" ]
1
2019-11-27T10:15:18.000Z
2019-11-27T10:15:18.000Z
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <future> // class promise<R> // void promise::set_value_at_thread_exit(R&& r); #include <future> #include <memory> #include <cassert> #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES void func(std::promise<std::unique_ptr<int>>& p) { p.set_value_at_thread_exit(std::unique_ptr<int>(new int(5))); } #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES int main() { #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES { std::promise<std::unique_ptr<int>> p; std::future<std::unique_ptr<int>> f = p.get_future(); std::thread(func, std::move(p)).detach(); assert(*f.get() == 5); } #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES }
25.15
80
0.563618
lll-project
742f98f4e8953b8fcd030e5f14a2544449a90a3d
295
cpp
C++
sources/File_not_found.cpp
HamilcarR/Echeyde
c7b177834fcabe6ac31c563edc6d4627ebb24b98
[ "MIT" ]
2
2021-08-25T08:03:07.000Z
2021-11-20T17:00:03.000Z
sources/File_not_found.cpp
HamilcarR/Echeyde
c7b177834fcabe6ac31c563edc6d4627ebb24b98
[ "MIT" ]
2
2017-03-11T02:30:13.000Z
2017-04-07T09:00:02.000Z
sources/File_not_found.cpp
HamilcarR/Echeyde
c7b177834fcabe6ac31c563edc6d4627ebb24b98
[ "MIT" ]
1
2018-11-16T17:08:47.000Z
2018-11-16T17:08:47.000Z
#include "../headers/File_not_found.h" File_not_found::File_not_found(std::string erro) : std::runtime_error(std::string("File : ")+erro+std::string(" not found!\n")) { } File_not_found::File_not_found() :std::runtime_error("File not found !") { } File_not_found::~File_not_found() { }
14.75
127
0.694915
HamilcarR
743420a5890f8849a482878f5723fa2b298cd45e
1,534
hpp
C++
libs/boost_1_72_0/boost/proto/detail/local.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
libs/boost_1_72_0/boost/proto/detail/local.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
libs/boost_1_72_0/boost/proto/detail/local.hpp
henrywarhurst/matrix
317a2a7c35c1c7e3730986668ad2270dc19809ef
[ "BSD-3-Clause" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// /// \file local.hpp /// Contains macros to ease the generation of repetitious code constructs // // Copyright 2008 Eric Niebler. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PROTO_LOCAL_MACRO #error "local iteration target macro is not defined" #endif #ifndef BOOST_PROTO_LOCAL_LIMITS #define BOOST_PROTO_LOCAL_LIMITS (1, BOOST_PROTO_MAX_ARITY) #endif #ifndef BOOST_PROTO_LOCAL_typename_A #define BOOST_PROTO_LOCAL_typename_A BOOST_PROTO_typename_A #endif #ifndef BOOST_PROTO_LOCAL_A #define BOOST_PROTO_LOCAL_A BOOST_PROTO_A_const_ref #endif #ifndef BOOST_PROTO_LOCAL_A_a #define BOOST_PROTO_LOCAL_A_a BOOST_PROTO_A_const_ref_a #endif #ifndef BOOST_PROTO_LOCAL_a #define BOOST_PROTO_LOCAL_a BOOST_PROTO_ref_a #endif #define BOOST_PP_LOCAL_LIMITS BOOST_PROTO_LOCAL_LIMITS #define BOOST_PP_LOCAL_MACRO(N) \ BOOST_PROTO_LOCAL_MACRO(N, BOOST_PROTO_LOCAL_typename_A, \ BOOST_PROTO_LOCAL_A, BOOST_PROTO_LOCAL_A_a, \ BOOST_PROTO_LOCAL_a) \ /**/ #include BOOST_PP_LOCAL_ITERATE() #undef BOOST_PROTO_LOCAL_MACRO #undef BOOST_PROTO_LOCAL_LIMITS #undef BOOST_PROTO_LOCAL_typename_A #undef BOOST_PROTO_LOCAL_A #undef BOOST_PROTO_LOCAL_A_a #undef BOOST_PROTO_LOCAL_a
31.306122
80
0.709257
henrywarhurst
74345d88154195ae13900b38285f184310a2d3f8
8,597
hpp
C++
src-2007/public/python/boost/thread/pthread/shared_mutex.hpp
KyleGospo/City-17-Episode-One-Source
2bc0bb56a2e0a63d963755e2831c15f2970c38e7
[ "Unlicense" ]
30
2016-04-23T04:55:52.000Z
2021-05-19T10:26:27.000Z
src-2007/public/python/boost/thread/pthread/shared_mutex.hpp
KyleGospo/City-17-Episode-One-Source
2bc0bb56a2e0a63d963755e2831c15f2970c38e7
[ "Unlicense" ]
1
2017-12-26T21:49:18.000Z
2020-06-11T04:03:44.000Z
src-2007/public/python/boost/thread/pthread/shared_mutex.hpp
KyleGospo/City-17-Episode-One-Source
2bc0bb56a2e0a63d963755e2831c15f2970c38e7
[ "Unlicense" ]
15
2016-04-26T13:16:38.000Z
2022-03-08T06:13:14.000Z
#ifndef BOOST_THREAD_PTHREAD_SHARED_MUTEX_HPP #define BOOST_THREAD_PTHREAD_SHARED_MUTEX_HPP // (C) Copyright 2006-8 Anthony Williams // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/assert.hpp> #include <boost/static_assert.hpp> #include <boost/thread/mutex.hpp> #include <boost/thread/thread.hpp> #include <boost/thread/condition_variable.hpp> #include <boost/config/abi_prefix.hpp> namespace boost { class shared_mutex { private: struct state_data { unsigned shared_count; bool exclusive; bool upgrade; bool exclusive_waiting_blocked; }; state_data state; boost::mutex state_change; boost::condition_variable shared_cond; boost::condition_variable exclusive_cond; boost::condition_variable upgrade_cond; void release_waiters() { exclusive_cond.notify_one(); shared_cond.notify_all(); } public: shared_mutex() { state_data state_={0,0,0,0}; state=state_; } ~shared_mutex() { } void lock_shared() { boost::this_thread::disable_interruption do_not_disturb; boost::mutex::scoped_lock lock(state_change); while(state.exclusive || state.exclusive_waiting_blocked) { shared_cond.wait(lock); } ++state.shared_count; } bool try_lock_shared() { boost::mutex::scoped_lock lock(state_change); if(state.exclusive || state.exclusive_waiting_blocked) { return false; } else { ++state.shared_count; return true; } } bool timed_lock_shared(system_time const& timeout) { boost::this_thread::disable_interruption do_not_disturb; boost::mutex::scoped_lock lock(state_change); while(state.exclusive || state.exclusive_waiting_blocked) { if(!shared_cond.timed_wait(lock,timeout)) { return false; } } ++state.shared_count; return true; } template<typename TimeDuration> bool timed_lock_shared(TimeDuration const & relative_time) { return timed_lock_shared(get_system_time()+relative_time); } void unlock_shared() { boost::mutex::scoped_lock lock(state_change); bool const last_reader=!--state.shared_count; if(last_reader) { if(state.upgrade) { state.upgrade=false; state.exclusive=true; upgrade_cond.notify_one(); } else { state.exclusive_waiting_blocked=false; } release_waiters(); } } void lock() { boost::this_thread::disable_interruption do_not_disturb; boost::mutex::scoped_lock lock(state_change); while(state.shared_count || state.exclusive) { state.exclusive_waiting_blocked=true; exclusive_cond.wait(lock); } state.exclusive=true; } bool timed_lock(system_time const& timeout) { boost::this_thread::disable_interruption do_not_disturb; boost::mutex::scoped_lock lock(state_change); while(state.shared_count || state.exclusive) { state.exclusive_waiting_blocked=true; if(!exclusive_cond.timed_wait(lock,timeout)) { if(state.shared_count || state.exclusive) { state.exclusive_waiting_blocked=false; exclusive_cond.notify_one(); return false; } break; } } state.exclusive=true; return true; } template<typename TimeDuration> bool timed_lock(TimeDuration const & relative_time) { return timed_lock(get_system_time()+relative_time); } bool try_lock() { boost::mutex::scoped_lock lock(state_change); if(state.shared_count || state.exclusive) { return false; } else { state.exclusive=true; return true; } } void unlock() { boost::mutex::scoped_lock lock(state_change); state.exclusive=false; state.exclusive_waiting_blocked=false; release_waiters(); } void lock_upgrade() { boost::this_thread::disable_interruption do_not_disturb; boost::mutex::scoped_lock lock(state_change); while(state.exclusive || state.exclusive_waiting_blocked || state.upgrade) { shared_cond.wait(lock); } ++state.shared_count; state.upgrade=true; } bool timed_lock_upgrade(system_time const& timeout) { boost::this_thread::disable_interruption do_not_disturb; boost::mutex::scoped_lock lock(state_change); while(state.exclusive || state.exclusive_waiting_blocked || state.upgrade) { if(!shared_cond.timed_wait(lock,timeout)) { if(state.exclusive || state.exclusive_waiting_blocked || state.upgrade) { return false; } break; } } ++state.shared_count; state.upgrade=true; return true; } template<typename TimeDuration> bool timed_lock_upgrade(TimeDuration const & relative_time) { return timed_lock(get_system_time()+relative_time); } bool try_lock_upgrade() { boost::mutex::scoped_lock lock(state_change); if(state.exclusive || state.exclusive_waiting_blocked || state.upgrade) { return false; } else { ++state.shared_count; state.upgrade=true; return true; } } void unlock_upgrade() { boost::mutex::scoped_lock lock(state_change); state.upgrade=false; bool const last_reader=!--state.shared_count; if(last_reader) { state.exclusive_waiting_blocked=false; release_waiters(); } } void unlock_upgrade_and_lock() { boost::this_thread::disable_interruption do_not_disturb; boost::mutex::scoped_lock lock(state_change); --state.shared_count; while(state.shared_count) { upgrade_cond.wait(lock); } state.upgrade=false; state.exclusive=true; } void unlock_and_lock_upgrade() { boost::mutex::scoped_lock lock(state_change); state.exclusive=false; state.upgrade=true; ++state.shared_count; state.exclusive_waiting_blocked=false; release_waiters(); } void unlock_and_lock_shared() { boost::mutex::scoped_lock lock(state_change); state.exclusive=false; ++state.shared_count; state.exclusive_waiting_blocked=false; release_waiters(); } void unlock_upgrade_and_lock_shared() { boost::mutex::scoped_lock lock(state_change); state.upgrade=false; state.exclusive_waiting_blocked=false; release_waiters(); } }; } #include <boost/config/abi_suffix.hpp> #endif
28.279605
91
0.511574
KyleGospo
2935eb1f46921fb479e5d578160389a48f56c601
18,790
cpp
C++
assets/code/cpp/macro_yield.cpp
FiveEye/FiveEye.github.io
b8ca15a9fc50ce3ecdc0e5decc4c5e005e8096e7
[ "MIT" ]
2
2019-10-02T05:13:29.000Z
2019-10-02T05:13:42.000Z
assets/code/cpp/macro_yield.cpp
FiveEye/FiveEye.github.io
b8ca15a9fc50ce3ecdc0e5decc4c5e005e8096e7
[ "MIT" ]
null
null
null
assets/code/cpp/macro_yield.cpp
FiveEye/FiveEye.github.io
b8ca15a9fc50ce3ecdc0e5decc4c5e005e8096e7
[ "MIT" ]
1
2020-09-08T23:56:35.000Z
2020-09-08T23:56:35.000Z
// Title : Implementation of Coroutine in Cpp // Author : [email protected] // Date : 11-21-2020 // License : MIT License /* Implementation of Coroutine in Cpp Compiler: // clang version 3.8.1-24+rpi1 (tags/RELEASE_381/final) // Target: armv6--linux-gnueabihf // Thread model: posix // clang -std=c++0x -lstdc++ Usage: // class MyGen : public Gen<Output type of the generator> class OneMoreHanoiGen : public Gen<string> { public: // Local variables of the generator. int n; string a, b, c; shared_ptr<Gen<string> > iter; // Constructor of the generator. OneMoreHanoiGen(int _n, string _a, string _b, string _c): n(_n), a(_a), b(_b), c(_c) {} // Write your code in the step method. // It is very straight forward. // You just need to replace all control statements with the MACRO in your generator. // bool step(string& output); // Args: // output: the output of your generator, set the output before doing yield. // Return: // The return value is used by the framework. // DO NOT return true or false by yourself, let the MACRO takes care of it. bool step(string& output) { // Declare all the control statements at first. // IMPORTANT: You can NOT use a control MACRO without declaring its name. // DEC_BEG : begin the declaration. // DEF_IF(if_name) : declare a if statement named if_name. // DEF_LOOP(loop_name) : declare a loop statement named loop_name. // DEC_YIELD(yield_name) : declare a loop statement named yield_name. // DEC_END : end the declaration. DEC_BEG DEC_IF(if1), DEC_LOOP(loop1), DEC_LOOP(loop2), DEC_LOOP(loop3), DEC_YIELD(y1), DEC_YIELD(y2), DEC_YIELD(y3), DEC_YIELD(y4) DEC_END // Using the control MACRO to write the code. // PRG_BEG -> Begin the program. // IF(name, condition, true_block, false_block); -> A if statment with name. // WHILE(name, condition loop_block); -> A while loop with name. // BREAK(loop_name); -> Jump to the end of the loop named loop_name // CONTINUE(loop_name); -> Jump to the begin of the loop named loop_name // YIELD(name); -> A yield statement with name. // RETURN(); -> Finish the generator. // PRG_END -> End the program. PRG_BEG IF(if1, n == 1, { output = a + " --> " + c; YIELD(y1); }, { iter = make_shared<OneMoreHanoiGen>(n - 1, a, c, b); WHILE(loop1, iter->next(output), YIELD(y2)); iter = make_shared<OneMoreHanoiGen>(1, a, b, c); WHILE(loop2, iter->next(output), YIELD(y3)); iter = make_shared<OneMoreHanoiGen>(n - 1, b, a, c); WHILE(loop3, iter->next(output), YIELD(y4)); }); PRG_END } }; int main() { string output; // Build a HanoiGen with Args (3, "A", "B", "C"). OneMoreHanoiGen hanoiGen(3, "A", "B", "C"); // Get the next output, until the generator returns false. // bool isAlive = hanoiGen(output); // if(isAlive) cout << output << endl; while(hanoiGen(output)) cout << output << endl; return 0; } // You are also able to create a coroutine having full functionality, if you want to do some interactive operations with the coroutine. // The only difference from the generator class is that the step method has an extra argument `input` now. // The argument `input` represents the input variable that you pass into the Coroutine. // See the example class `GuessNumber` to understand how it works. template<typename S, typename T> class Coroutine : public std::enable_shared_from_this<Coroutine<S,T>> { public: virtual bool step(S& input, T& output) = 0; }; */ #include <cstdlib> #include <ctime> #include <iostream> #include <functional> #include <memory> #include <string> #include <tuple> #include <typeinfo> #include <utility> #include <vector> using namespace std; template<typename S> class Source : public std::enable_shared_from_this<Source<S>> { public: virtual ~Source() {} virtual bool operator()(S& output) = 0; bool next(S& output) { return (*this)(output); } shared_ptr<Source<S>> getPtr() { return this->shared_from_this(); } }; template<typename S> class Gen : public Source<S> { public: int state; bool isAlive; Gen() : state(0), isAlive(true) {} virtual bool step(S& output) = 0; bool operator()(S& output) { while(!step(output)); return isAlive; } }; template<typename S, typename T> class Coroutine : public std::enable_shared_from_this<Coroutine<S,T>> { public: int state; bool isAlive; Coroutine() : state(0), isAlive(true) {} virtual ~Coroutine() {} virtual bool step(S& input, T& output) = 0; bool next(S& input, T& output) { while(!step(input, output)); return isAlive; } bool operator()(S& input, T& output) { return next(input, output); } shared_ptr<Coroutine<S,T>> getPtr() { return this->shared_from_this(); } }; #define PRG_BEG \ switch(state) { \ case PBEG: {} #define PRG_END \ case PEND: {} \ default: { isAlive = false; return true; } } #define BEG(name) BEG_##name #define ELSE(name) ELSE_##name #define END(name) END_##name #define LAB(name) LAB_##name #define IF(name,c,a,b) \ case BEG(name): { if(c) { {a;} state = END(name); return false; } else { state = ELSE(name); } } \ case ELSE(name): { b; } \ case END(name): {} #define LOOP(name,s) \ case BEG(name): { {s;} state = BEG(name); return false; } \ case END(name): {} #define WHILE(name,c,s) \ case BEG(name): { if(!(c)) { state = END(name); return false; } {s;} state = BEG(name); return false; } \ case END(name): {} #define YIELD(name) \ case BEG(name): { state = END(name); isAlive = true; return true; } \ case END(name): {} #define CONTINUE(loop) { state = BEG(loop); return false; } #define BREAK(loop) { state = END(loop); return false; } #define SET_LABEL(name) case LAB(name) : {} #define GOTO(label) { state = label; return false; } #define RETURN() { state = PEND; return false; } #define DEC_BEG enum { PBEG = 0, PEND, #define DEC_IF(name) BEG(name), ELSE(name), END(name) #define DEC_LOOP(name) BEG(name), END(name) #define DEC_YIELD(name) BEG(name), END(name) #define DEC_LABEL(name) LAB(name) #define DEC_END }; /* Examples */ /* L: def prod_iter(s): 0: if len(s) == 0: 1: yield [] 2: else: 3: x = 0 4: while true: 5: xs = [] 6: iter = generator.create(prod_iter(s[1:])) 7: while true: 8: xs, isAlive = iter.resume() 9: if !isAlive: 10 break 11 yield [x] + xs 12 x += 1 13 if x >= s[0]: 14 break -1 return */ class OneMoreProdGen : public Gen<vector<int> > { public: vector<unsigned int> s; int x; shared_ptr<Source<vector<int> > > iter; vector<int> xs; OneMoreProdGen(const vector<unsigned int>& _s) : s(_s) {} bool step(vector<int>& output) { DEC_BEG // declare 2 if statements, 2 loops, and 2 yields. // the name of them are if1, if2, loop1, loop2, y1, y2. DEC_IF(if1), DEC_IF(if2), DEC_LOOP(loop1), DEC_LOOP(loop2), DEC_YIELD(y1), DEC_YIELD(y2) DEC_END PRG_BEG // the if_statement if1. // if(s.size() == 0) {...} else {...} IF(if1, s.size()==0, { output.clear(); // the yield_statement y1. // output = empty and yield. YIELD(y1); }, { x = 0; // the while_statement loop1. // while(true) {...} WHILE(loop1, true, { // the if_statement if2. // if(x >= s[0]) jump to loop1's end. IF(if2, x >= s[0], BREAK(loop1), {}); iter = make_shared<OneMoreProdGen>( vector<unsigned int>(s.begin() + 1, s.end())); // the while_statement loop2. // while(iter(xs)) {...} WHILE(loop2, iter->next(xs), { output.clear(); output.push_back(x); output.insert(output.end(), xs.begin(), xs.end()); // the yield_statement y2. // output = [x] + xs and yield. YIELD(y2); }); x += 1; }) }); PRG_END } }; /* def hanoi(n, a, b, c): if n == 1: s = str(a) + ' --> ' + str(c) yield s else: for s in hanoi(n - 1, a, c, b): yield s for s in hanoi(1 , a, b, c): yield s for s in hanoi(n - 1, b, a, c): yield s */ class OneMoreHanoiGen : public Gen<string> { public: int n; string a, b, c; shared_ptr<Gen<string> > iter; OneMoreHanoiGen(int _n, string _a, string _b, string _c): n(_n), a(_a), b(_b), c(_c) {} bool step(string& output) { DEC_BEG DEC_IF(if1), DEC_LOOP(loop1), DEC_LOOP(loop2), DEC_LOOP(loop3), DEC_YIELD(y1), DEC_YIELD(y2), DEC_YIELD(y3), DEC_YIELD(y4) DEC_END PRG_BEG IF(if1, n == 1, { output = a + " --> " + c; YIELD(y1); }, { iter = make_shared<OneMoreHanoiGen>(n - 1, a, c, b); WHILE(loop1, iter->next(output), YIELD(y2)); iter = make_shared<OneMoreHanoiGen>(1, a, b, c); WHILE(loop2, iter->next(output), YIELD(y3)); iter = make_shared<OneMoreHanoiGen>(n - 1, b, a, c); WHILE(loop3, iter->next(output), YIELD(y4)); }); PRG_END } }; class PrimeGen : public Gen<int> { public: vector<int> primes; int i, j; PrimeGen() {} bool step(int& output) { DEC_BEG DEC_IF(if1), DEC_IF(if2), DEC_LOOP(loop1), DEC_LOOP(loop2), DEC_YIELD(y1) DEC_END PRG_BEG i = 2; WHILE(loop1, true, { j = 0; WHILE(loop2, j < primes.size(), { IF(if1, i % primes[j] == 0, { i++; // Wow, it is jumping to the beginning of loop1! CONTINUE(loop1); },{ j++; }); }); primes.push_back(i); output = i; YIELD(y1); }); PRG_END } }; class SubsetGen: public Gen<vector<int> > { public: int n, i, j; SubsetGen(int _n) : n(_n) {} bool step(vector<int>& output) { DEC_BEG DEC_IF(if1), DEC_LOOP(loop1), DEC_LOOP(loop2), DEC_YIELD(y1) DEC_END PRG_BEG i = 0; WHILE(loop1, i < (1 << n), { output.clear(); /* j = 0; WHILE(loop2, j < n, { IF(if1, (i >> j) & 1, output.push_back(j), {}); j++; }); */ // Once you understand the framework, it's possible to use native if-statements and loops. for(int j = 0; j < n; ++j) { if((i >> j) & 1) { output.push_back(j); } } YIELD(y1); i++; }); PRG_END } }; class PermutationGen: public Gen<vector<int> > { public: int beg, n, i; vector<int>& arr; shared_ptr<PermutationGen> iter; PermutationGen(int _beg, vector<int>& _arr) : beg(_beg), n(_arr.size()), arr(_arr) {} bool step(vector<int>& output) { DEC_BEG DEC_IF(if1), DEC_LOOP(loop1), DEC_LOOP(loop2), DEC_LOOP(loop3), DEC_YIELD(y1), DEC_YIELD(y2) DEC_END PRG_BEG i = beg; IF(if1, beg >= n - 1, { i = 0; WHILE(loop1, i < n, { output[i] = arr[i]; i++; }); YIELD(y1); RETURN(); }, {}); i = beg; WHILE(loop2, i < n, { swap(arr[beg], arr[i]); iter = make_shared<PermutationGen>(beg + 1, arr); WHILE(loop3, (*iter)(output), YIELD(y2)); swap(arr[beg], arr[i]); i++; }); PRG_END } void swap(int& a, int &b) { int c = a; a = b; b = c; } }; class GuessNumber : public Coroutine<int, int> { public: int t, num; GuessNumber() {} bool step(int& input, int& output) { DEC_BEG DEC_IF(if1), DEC_IF(if2), DEC_LOOP(loop1), DEC_LOOP(loop2), DEC_YIELD(y1), DEC_YIELD(y2) DEC_END PRG_BEG t = 0; srand(time(0)); cout << "Guess a number between 0 and 100!" << endl; WHILE(loop1, true, { cout << "Match " << t << endl; num = rand() % 100; cout << "input a number:"; YIELD(y1); WHILE(loop2, input != num, { IF(if2, input == -1, BREAK(loop1), {}); IF(if1, input < num, { cout << "Too low!" << endl; output = -1; }, { cout << "Too high!" << endl; output = 1; }); cout << "input a number agian:"; YIELD(y2); }); cout << "Bingo! It's " << num << "!" << endl; cout << "Let's play it again!" << endl; t++; output = 0; }); cout << "ByeBye!" << endl; PRG_END } }; class GuessYourNumber : public Coroutine<string, int> { public: int beg, end, mid; GuessYourNumber() {} bool step(string& input, int& output) { DEC_BEG DEC_YIELD(y1), DEC_YIELD(y2), DEC_LABEL(bye) DEC_END PRG_BEG cout << "Keep a number between 0 and 100 in your mind!" << endl; cout << "Are you ready?(y/n)" << endl; YIELD(y2); if(input[0] != 'y') { GOTO(LAB(bye)); } beg = 0, end = 101; while(beg < end) { mid = (beg + end) / 2; cout << "Is it " << mid << "?" << endl; cout << "Input 's' if it is smaller than your number." << endl; cout << "Input 'b' if it is bigger than your number." << endl; cout << "Input 'y' if it is your number!" << endl; YIELD(y1); if(input[0] == 's') { beg = mid+1; } else if(input[0] == 'b') { end = mid; } else { cout << "YES! It's " << mid << "!" << endl; RETURN(); } } cout << "No possible! The number must be " << mid << "!" << endl; SET_LABEL(bye); cout << "ByeBye!" << endl; PRG_END } }; // In fact, you are free to use if-statements and loops from cpp. // The only rule is that local varaibles are NOT allowed in the step method! // It was a big surprise for me, I am going to write coroutine_in_cpp_v2... class BetterProdGen : public Gen<vector<int> > { public: vector<unsigned int> s; int x; shared_ptr<Source<vector<int> > > iter; vector<int> xs; BetterProdGen(const vector<unsigned int>& _s) : s(_s) {} bool step(vector<int>& output) { DEC_BEG DEC_YIELD(y1), DEC_YIELD(y2) DEC_END PRG_BEG if(s.size()==0) { output.clear(); YIELD(y1); RETURN(); } for(x = 0; x < s[0]; ++x) { iter = make_shared<OneMoreProdGen>( vector<unsigned int>(s.begin() + 1, s.end())); while(iter->next(xs)) { output.clear(); output.push_back(x); output.insert(output.end(), xs.begin(), xs.end()); YIELD(y2); } } PRG_END } }; template<typename T> void print(vector<T>& vec) { cout << "{ "; for(int i = 0; i < vec.size(); ++i) { cout << vec[i] << ", "; } cout << "}" << endl; } void testHanoiGen() { cout << "HanoiGen" << endl; string s; OneMoreHanoiGen gen(3, "A", "B", "C"); int k = 0; while(gen(s)) { cout << s << endl; k++; } cout << "HanoiGen is solved in " << k << " steps." << endl; } void testProdGen() { cout << "CartesianProduct" << endl; vector<unsigned int> dimSize({2,3,4}); vector<int> output(dimSize.size()); OneMoreProdGen gen(dimSize); int k = 0; while(gen(output)) { print(output); k++; } cout << "Generated " << k << " rows." << endl; } void testPrimeGen() { cout << "Prime numbers" << endl; PrimeGen primeGen; int p; for(int i = 0; i < 30; ++i) { primeGen(p); cout << p << " "; } cout << endl; } void testSubsetGen() { cout << "testSubsetGen" << endl; int n = 5; vector<int> output(n); SubsetGen gen(n); int k = 0; while(gen(output)) { print(output); k++; } cout << "Generated " << k << " Subsets." << endl; } void testPermutationGen() { cout << "testPermutationGen" << endl; vector<int> arr({1,2,3,4}); PermutationGen gen(0, arr); vector<int> output(arr.size()); int k = 0; while(gen(output)) { print(output); k++; } cout << "Generated " << k << " Permutations." << endl; } void testBetterProdGen() { cout << "testBetterProdGen" << endl; vector<unsigned int> dimSize({3,2,4}); vector<int> output(dimSize.size()); BetterProdGen gen(dimSize); int k = 0; while(gen(output)) { print(output); k++; } cout << "Generated " << k << " rows." << endl; } void testGuessNumber() { GuessNumber guess; int num, output; guess(num, output); do { cin >> num; } while(guess(num, output)); } void testGuessYourNumber() { cout << "testGuessYourNumber" << endl; GuessYourNumber guess; string input; int output; guess(input, output); do { cin >> input; } while(guess(input, output)); } int main() { testHanoiGen(); testProdGen(); testPrimeGen(); testSubsetGen(); testPermutationGen(); testBetterProdGen(); // testGuessNumber(); // testGuessYourNumber(); return 0; }
28.298193
135
0.504949
FiveEye
2939c47453d43c7bf014faf14599f16d2149692e
8,471
cpp
C++
test/structure_tests.cpp
StoneJobs/BigBang
cfb7d8603790d143a50eafc5cfe5612a52426e35
[ "MIT" ]
null
null
null
test/structure_tests.cpp
StoneJobs/BigBang
cfb7d8603790d143a50eafc5cfe5612a52426e35
[ "MIT" ]
null
null
null
test/structure_tests.cpp
StoneJobs/BigBang
cfb7d8603790d143a50eafc5cfe5612a52426e35
[ "MIT" ]
null
null
null
// Copyright (c) 2019-2020 The Bigbang developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/test/unit_test.hpp> #include <set> #include <vector> #include "address.h" #include "structure/tree.h" #include "test_big.h" using namespace std; using namespace xengine; using namespace bigbang; BOOST_FIXTURE_TEST_SUITE(structure_tests, BasicUtfSetup) BOOST_AUTO_TEST_CASE(tree) { // sort // a21: 1782a5jv06egd6pb2gjgp2p664tgej6n4gmj79e1hbvgfgy3t006wvwzt // b2: 1w0k188jwq5aenm6sfj6fdx9f3d96k20k71612ddz81qrx6syr4bnp5m9 // a111: 1bvaag2t23ybjmasvjyxnzetja0awe5d1pyw361ea3jmkfdqt5greqvfq // B: 1fpt2z9nyh0a5999zrmabg6ppsbx78wypqapm29fsasx993z11crp6zm7 // a2: 1ab1sjh07cz7xpb0xdkpwykfm2v91cvf2j1fza0gj07d2jktdnrwtyd57 // b1: 1rampdvtmzmxfzr3crbzyz265hbr9a8y4660zgpbw6r7qt9hdy535zed7 // b3: 196wx05mee1zavws828vfcap72tebtskw094tp5sztymcy30y7n9varfa // A: 1632srrskscs1d809y3x5ttf50f0gabf86xjz2s6aetc9h9ewwhm58dj3 // a221: 1ytysehvcj13ka9r1qhh9gken1evjdp9cn00cz0bhqjqgzwc6sdmse548 // a22: 1c7s095dcvzdsedrkpj6y5kjysv5sz3083xkahvyk7ry3tag4ddyydbv4 // a222: 16aaahq32cncamxbmvedjy5jqccc2hcpk7rc0h2zqcmmrnm1g2213t2k3 // a3: 1vz7k0748t840bg3wgem4mhf9pyvptf1z2zqht6bc2g9yn6cmke8h4dwe // C: 1965p604xzdrffvg90ax9bk0q3xyqn5zz2vc9zpbe3wdswzazj7d144mm // a11: 1pmj5p47zhqepwa9vfezkecxkerckhrks31pan5fh24vs78s6cbkrqnxp // b4: 19k8zjwdntjp8avk41c8aek0jxrs1fgyad5q9f1gd1q2fdd0hafmm549d // a1: 1f1nj5gjgrcz45g317s1y4tk18bbm89jdtzd41m9s0t14tp2ngkz4cg0x CAddress A("1632srrskscs1d809y3x5ttf50f0gabf86xjz2s6aetc9h9ewwhm58dj3"); CAddress a1("1f1nj5gjgrcz45g317s1y4tk18bbm89jdtzd41m9s0t14tp2ngkz4cg0x"); CAddress a11("1pmj5p47zhqepwa9vfezkecxkerckhrks31pan5fh24vs78s6cbkrqnxp"); CAddress a111("1bvaag2t23ybjmasvjyxnzetja0awe5d1pyw361ea3jmkfdqt5greqvfq"); CAddress a2("1ab1sjh07cz7xpb0xdkpwykfm2v91cvf2j1fza0gj07d2jktdnrwtyd57"); CAddress a21("1782a5jv06egd6pb2gjgp2p664tgej6n4gmj79e1hbvgfgy3t006wvwzt"); CAddress a22("1c7s095dcvzdsedrkpj6y5kjysv5sz3083xkahvyk7ry3tag4ddyydbv4"); CAddress a221("1ytysehvcj13ka9r1qhh9gken1evjdp9cn00cz0bhqjqgzwc6sdmse548"); CAddress a222("16aaahq32cncamxbmvedjy5jqccc2hcpk7rc0h2zqcmmrnm1g2213t2k3"); CAddress a3("1vz7k0748t840bg3wgem4mhf9pyvptf1z2zqht6bc2g9yn6cmke8h4dwe"); CAddress B("1fpt2z9nyh0a5999zrmabg6ppsbx78wypqapm29fsasx993z11crp6zm7"); CAddress b1("1rampdvtmzmxfzr3crbzyz265hbr9a8y4660zgpbw6r7qt9hdy535zed7"); CAddress b2("1w0k188jwq5aenm6sfj6fdx9f3d96k20k71612ddz81qrx6syr4bnp5m9"); CAddress b3("196wx05mee1zavws828vfcap72tebtskw094tp5sztymcy30y7n9varfa"); CAddress b4("19k8zjwdntjp8avk41c8aek0jxrs1fgyad5q9f1gd1q2fdd0hafmm549d"); CAddress C("1965p604xzdrffvg90ax9bk0q3xyqn5zz2vc9zpbe3wdswzazj7d144mm"); CForest<CAddress, CDestination> relation; BOOST_CHECK(relation.Insert(a1, A, A)); BOOST_CHECK(relation.mapRoot.size() == 1 && (relation.mapRoot.begin()->second->spRoot->key == A)); BOOST_CHECK(relation.Insert(a11, a1, a1)); BOOST_CHECK(relation.Insert(a111, a11, a11)); BOOST_CHECK(relation.Insert(a221, a22, a22)); BOOST_CHECK(relation.mapRoot.size() == 2 && (relation.mapRoot.begin()->second->spRoot->key == A) && ((++relation.mapRoot.begin())->second->spRoot->key == a22)); BOOST_CHECK(relation.Insert(a222, a22, a22)); BOOST_CHECK(relation.Insert(a21, a2, a2)); BOOST_CHECK(relation.mapRoot.size() == 3 && (relation.mapRoot.begin()->second->spRoot->key == a2) && ((++relation.mapRoot.begin())->second->spRoot->key == A) && (relation.mapRoot.rbegin()->second->spRoot->key == a22)); BOOST_CHECK(relation.Insert(a22, a2, a2)); BOOST_CHECK(relation.mapRoot.size() == 2 && (relation.mapRoot.begin()->second->spRoot->key == a2) && (relation.mapRoot.rbegin()->second->spRoot->key == A)); BOOST_CHECK(relation.Insert(a2, A, A)); BOOST_CHECK(relation.mapRoot.size() == 1 && (relation.mapRoot.begin()->second->spRoot->key == A)); BOOST_CHECK(relation.Insert(a3, A, A)); BOOST_CHECK(relation.Insert(b1, B, B)); BOOST_CHECK(relation.mapRoot.size() == 2 && (relation.mapRoot.begin()->second->spRoot->key == B) && (relation.mapRoot.rbegin()->second->spRoot->key == A)); BOOST_CHECK(relation.Insert(b2, B, B)); BOOST_CHECK(relation.Insert(b3, B, B)); BOOST_CHECK(relation.Insert(b4, B, B)); BOOST_CHECK(relation.mapNode.size() == 15); // test remove relation.RemoveRelation(a2); BOOST_CHECK(relation.mapNode.size() == 15); BOOST_CHECK(relation.mapRoot.size() == 3 && (relation.mapRoot.begin()->second->spRoot->key == B) && ((++relation.mapRoot.begin())->second->spRoot->key == a2) && (relation.mapRoot.rbegin()->second->spRoot->key == A)); // test post-order traversal { vector<CAddress> v; set<decltype(relation)::NodePtr> s; // B s.insert(relation.GetRelation(b1)); s.insert(relation.GetRelation(b2)); s.insert(relation.GetRelation(b3)); s.insert(relation.GetRelation(b4)); for (auto& x : s) { v.push_back(x->key); } v.push_back(B); // a2 s.clear(); s.insert(relation.GetRelation(a21)); s.insert(relation.GetRelation(a22)); for (auto& x : s) { if (x->key == a21) { v.push_back(a21); } else if (x->key == a22) { if (relation.GetRelation(a221) < relation.GetRelation(a222)) { v.push_back(a221); v.push_back(a222); } else { v.push_back(a222); v.push_back(a221); } v.push_back(a22); } } v.push_back(a2); // A s.clear(); s.insert(relation.GetRelation(a1)); s.insert(relation.GetRelation(a2)); s.insert(relation.GetRelation(a3)); for (auto& x : s) { if (x->key == a1) { v.push_back(a111); v.push_back(a11); v.push_back(a1); } else if (x->key == a3) { v.push_back(a3); } } v.push_back(A); BOOST_CHECK(v.size() == 15); int index = 0; relation.PostorderTraversal([&](decltype(relation)::NodePtr pNode) { BOOST_CHECK(pNode->key == v[index]); return pNode->key == v[index++]; }); } // test copy CForest<CAddress, CAddress> relation2; relation2 = relation.Copy<CAddress>(); BOOST_CHECK(relation2.mapNode.size() == 15); BOOST_CHECK(relation2.mapRoot.size() == 3 && (relation2.mapRoot.begin()->second->spRoot->key == B) && ((++relation2.mapRoot.begin())->second->spRoot->key == a2) && (relation2.mapRoot.rbegin()->second->spRoot->key == A)); BOOST_CHECK(!relation2.GetRelation(A)->spParent.lock()); BOOST_CHECK(relation2.GetRelation(a1)->spParent.lock()->key == A); BOOST_CHECK(relation2.GetRelation(a3)->spParent.lock()->key == A); BOOST_CHECK(relation2.GetRelation(a11)->spParent.lock()->key == a1); BOOST_CHECK(relation2.GetRelation(a111)->spParent.lock()->key == a11); BOOST_CHECK(!relation2.GetRelation(a2)->spParent.lock()); BOOST_CHECK(relation2.GetRelation(a21)->spParent.lock()->key == a2); BOOST_CHECK(relation2.GetRelation(a22)->spParent.lock()->key == a2); BOOST_CHECK(relation2.GetRelation(a221)->spParent.lock()->key == a22); BOOST_CHECK(relation2.GetRelation(a222)->spParent.lock()->key == a22); BOOST_CHECK(!relation2.GetRelation(B)->spParent.lock()); BOOST_CHECK(relation2.GetRelation(b1)->spParent.lock()->key == B); BOOST_CHECK(relation2.GetRelation(b2)->spParent.lock()->key == B); BOOST_CHECK(relation2.GetRelation(b3)->spParent.lock()->key == B); BOOST_CHECK(relation2.GetRelation(b4)->spParent.lock()->key == B); } BOOST_AUTO_TEST_SUITE_END()
43.441026
79
0.644788
StoneJobs
293e6b86cd26827e6c996ed77764ece856826423
1,978
hpp
C++
src/Include/Util/Endpoint.hpp
0KABE/Owl
e9d5981e5d41f6d327ef84cb0c3a66f41d68b91b
[ "MIT" ]
2
2021-09-11T07:35:06.000Z
2022-03-05T09:52:00.000Z
src/Include/Util/Endpoint.hpp
0KABE/Owl
e9d5981e5d41f6d327ef84cb0c3a66f41d68b91b
[ "MIT" ]
null
null
null
src/Include/Util/Endpoint.hpp
0KABE/Owl
e9d5981e5d41f6d327ef84cb0c3a66f41d68b91b
[ "MIT" ]
null
null
null
#pragma once #include <utility> #include <spdlog/spdlog.h> #include "Net.hpp" #include "Awaitable.hpp" #include "Event.hpp" #include "FinalAction.hpp" #include "TimeoutEvent.hpp" #include "Delegate.hpp" namespace Owl { class Endpoint { public: enum ConnectionState { READY, CONNECTING, CONNECTED, DISCONNECTED }; enum HostnameType { HOST_DOMAIN, HOST_IP }; using Socket = net::ip::tcp::socket; using Hostname = std::string; using Port = std::string; using Executor = const net::executor; using Milliseconds = std::chrono::milliseconds; using Resolver = net::ip::tcp::resolver; using ResolveResult = boost::asio::ip::basic_resolver_results<boost::asio::ip::tcp>; explicit Endpoint(Socket socket); Endpoint(Executor &executor, Hostname hostname, Port port); Awaitable<void> Connect(Milliseconds timeout = Milliseconds(500)); void Disconnect(); [[nodiscard]] Socket &GetSocket(); [[nodiscard]] const std::string &GetHostname() const; [[nodiscard]] const std::string &GetPort() const; [[nodiscard]] HostnameType GetHostnameType() const; [[nodiscard]] ConnectionState GetState() const; [[nodiscard]] std::string ToString() const; private: static HostnameType ParseHostnameType(const std::string &hostname); static const char *StatusToString(ConnectionState state); Owl::Awaitable<void> StartConnecting(Milliseconds timeout); Awaitable<ResolveResult> ResolveHostname(); Awaitable<void> TryConnect(ResolveResult &resolveResult, Milliseconds timeout); Socket mSocket; EventPtr mConnectingEvent; std::string mHostname; std::string mPort; HostnameType mHostnameType; ConnectionState mState = READY; Delegate<> mDelegate; }; }
26.026316
92
0.633974
0KABE
293ffed02cf0a9f555743ef9d99f34b438e68ea8
254
hpp
C++
src/entity/config_entity.hpp
zzzhr1990/qingzhenyun-lite-cf
5686e6f33bdbafc1a0d39981361bd091ac081b35
[ "MIT" ]
1
2018-10-13T09:36:08.000Z
2018-10-13T09:36:08.000Z
src/entity/config_entity.hpp
zzzhr1990/qingzhenyun-lite-cf
5686e6f33bdbafc1a0d39981361bd091ac081b35
[ "MIT" ]
null
null
null
src/entity/config_entity.hpp
zzzhr1990/qingzhenyun-lite-cf
5686e6f33bdbafc1a0d39981361bd091ac081b35
[ "MIT" ]
null
null
null
// // Created by zzzhr on 2018/10/27. // #ifndef QINGZHENYUN_LITE_CONFIG_ENTITY_H #define QINGZHENYUN_LITE_CONFIG_ENTITY_H #include <cpprest/http_client.h> struct config_entity { utility::string_t token; }; #endif //QINGZHENYUN_LITE_CONFIG_ENTITY_H
21.166667
41
0.795276
zzzhr1990
294392534802c75bb809c71f7fe454cd5e384bc5
175
cpp
C++
tests/simple.cpp
johannes-braun/gum
7f0cd74f0e4f8b6d9ffaf3312d24d0c720f6340a
[ "MIT" ]
null
null
null
tests/simple.cpp
johannes-braun/gum
7f0cd74f0e4f8b6d9ffaf3312d24d0c720f6340a
[ "MIT" ]
null
null
null
tests/simple.cpp
johannes-braun/gum
7f0cd74f0e4f8b6d9ffaf3312d24d0c720f6340a
[ "MIT" ]
null
null
null
#include "catch.hpp" #include <gum/gum.hpp> TEST_CASE("Simple Test") { SECTION("Section 1") { gfx::vec3 v(1, 1, 1); REQUIRE(true); } }
14.583333
30
0.497143
johannes-braun
29467d6d763722e72e554f9b1a42d68f1f49a897
1,044,052
cpp
C++
src/Protocol/Palettes/Palette_1_15.cpp
nickc01/cuberite
be818200a6567218ba99bb072e721c4b64b71d67
[ "Apache-2.0" ]
4,126
2015-06-12T21:56:49.000Z
2022-03-31T06:33:12.000Z
src/Protocol/Palettes/Palette_1_15.cpp
nickc01/cuberite
be818200a6567218ba99bb072e721c4b64b71d67
[ "Apache-2.0" ]
2,931
2015-06-11T17:13:15.000Z
2022-03-31T22:46:31.000Z
src/Protocol/Palettes/Palette_1_15.cpp
nickc01/cuberite
be818200a6567218ba99bb072e721c4b64b71d67
[ "Apache-2.0" ]
917
2015-06-11T21:47:41.000Z
2022-03-30T10:32:55.000Z
#include "Globals.h" #include "Palette_1_15.h" #include "Registries/BlockStates.h" namespace Palette_1_15 { UInt32 From(const BlockState Block) { using namespace Block; switch (Block.ID) { case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5906; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5907; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5908; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5909; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 5910; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 5911; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 5912; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 5913; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5914; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5915; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5916; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5917; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 5918; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 5919; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 5920; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 5921; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5922; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5923; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5924; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5925; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 5926; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 5927; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 5928; case AcaciaButton::AcaciaButton(AcaciaButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 5929; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, true).ID: return 8394; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, false).ID: return 8395; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, true).ID: return 8396; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, false).ID: return 8397; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, true).ID: return 8398; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, false).ID: return 8399; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, true).ID: return 8400; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, false).ID: return 8401; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, true).ID: return 8402; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, false).ID: return 8403; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, true).ID: return 8404; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, false).ID: return 8405; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, true).ID: return 8406; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, false).ID: return 8407; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, true).ID: return 8408; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, false).ID: return 8409; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, true).ID: return 8410; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, false).ID: return 8411; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, true).ID: return 8412; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, false).ID: return 8413; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, true).ID: return 8414; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, false).ID: return 8415; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, true).ID: return 8416; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, false).ID: return 8417; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, true).ID: return 8418; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, false).ID: return 8419; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, true).ID: return 8420; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, false).ID: return 8421; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, true).ID: return 8422; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, false).ID: return 8423; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, true).ID: return 8424; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_ZP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, false).ID: return 8425; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, true).ID: return 8426; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, false).ID: return 8427; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, true).ID: return 8428; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, false).ID: return 8429; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, true).ID: return 8430; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, false).ID: return 8431; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, true).ID: return 8432; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, false).ID: return 8433; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, true).ID: return 8434; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, false).ID: return 8435; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, true).ID: return 8436; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, false).ID: return 8437; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, true).ID: return 8438; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, false).ID: return 8439; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, true).ID: return 8440; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XM, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, false).ID: return 8441; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, true).ID: return 8442; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, true, false).ID: return 8443; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, true).ID: return 8444; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Left, false, false).ID: return 8445; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, true).ID: return 8446; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, true, false).ID: return 8447; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, true).ID: return 8448; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Upper, AcaciaDoor::Hinge::Right, false, false).ID: return 8449; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, true).ID: return 8450; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, true, false).ID: return 8451; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, true).ID: return 8452; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Left, false, false).ID: return 8453; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, true).ID: return 8454; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, true, false).ID: return 8455; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, true).ID: return 8456; case AcaciaDoor::AcaciaDoor(eBlockFace::BLOCK_FACE_XP, AcaciaDoor::Half::Lower, AcaciaDoor::Hinge::Right, false, false).ID: return 8457; case AcaciaFence::AcaciaFence(true, true, true, true).ID: return 8140; case AcaciaFence::AcaciaFence(true, true, true, false).ID: return 8141; case AcaciaFence::AcaciaFence(true, true, false, true).ID: return 8144; case AcaciaFence::AcaciaFence(true, true, false, false).ID: return 8145; case AcaciaFence::AcaciaFence(true, false, true, true).ID: return 8148; case AcaciaFence::AcaciaFence(true, false, true, false).ID: return 8149; case AcaciaFence::AcaciaFence(true, false, false, true).ID: return 8152; case AcaciaFence::AcaciaFence(true, false, false, false).ID: return 8153; case AcaciaFence::AcaciaFence(false, true, true, true).ID: return 8156; case AcaciaFence::AcaciaFence(false, true, true, false).ID: return 8157; case AcaciaFence::AcaciaFence(false, true, false, true).ID: return 8160; case AcaciaFence::AcaciaFence(false, true, false, false).ID: return 8161; case AcaciaFence::AcaciaFence(false, false, true, true).ID: return 8164; case AcaciaFence::AcaciaFence(false, false, true, false).ID: return 8165; case AcaciaFence::AcaciaFence(false, false, false, true).ID: return 8168; case AcaciaFence::AcaciaFence(false, false, false, false).ID: return 8169; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, true).ID: return 7978; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, false).ID: return 7979; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, true).ID: return 7980; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, false).ID: return 7981; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, true).ID: return 7982; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, false).ID: return 7983; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, true).ID: return 7984; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, false).ID: return 7985; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, true).ID: return 7986; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, false).ID: return 7987; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, true).ID: return 7988; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, false).ID: return 7989; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, true).ID: return 7990; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, false).ID: return 7991; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, true).ID: return 7992; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, false).ID: return 7993; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, true).ID: return 7994; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, false).ID: return 7995; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, true).ID: return 7996; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, false).ID: return 7997; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, true).ID: return 7998; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, false).ID: return 7999; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, true).ID: return 8000; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, false).ID: return 8001; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, true).ID: return 8002; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, false).ID: return 8003; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, true).ID: return 8004; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, false).ID: return 8005; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, true).ID: return 8006; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, false).ID: return 8007; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, true).ID: return 8008; case AcaciaFenceGate::AcaciaFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, false).ID: return 8009; case AcaciaLeaves::AcaciaLeaves(1, true).ID: return 200; case AcaciaLeaves::AcaciaLeaves(1, false).ID: return 201; case AcaciaLeaves::AcaciaLeaves(2, true).ID: return 202; case AcaciaLeaves::AcaciaLeaves(2, false).ID: return 203; case AcaciaLeaves::AcaciaLeaves(3, true).ID: return 204; case AcaciaLeaves::AcaciaLeaves(3, false).ID: return 205; case AcaciaLeaves::AcaciaLeaves(4, true).ID: return 206; case AcaciaLeaves::AcaciaLeaves(4, false).ID: return 207; case AcaciaLeaves::AcaciaLeaves(5, true).ID: return 208; case AcaciaLeaves::AcaciaLeaves(5, false).ID: return 209; case AcaciaLeaves::AcaciaLeaves(6, true).ID: return 210; case AcaciaLeaves::AcaciaLeaves(6, false).ID: return 211; case AcaciaLeaves::AcaciaLeaves(7, true).ID: return 212; case AcaciaLeaves::AcaciaLeaves(7, false).ID: return 213; case AcaciaLog::AcaciaLog(AcaciaLog::Axis::X).ID: return 84; case AcaciaLog::AcaciaLog(AcaciaLog::Axis::Y).ID: return 85; case AcaciaLog::AcaciaLog(AcaciaLog::Axis::Z).ID: return 86; case AcaciaPlanks::AcaciaPlanks().ID: return 19; case AcaciaPressurePlate::AcaciaPressurePlate(true).ID: return 3879; case AcaciaPressurePlate::AcaciaPressurePlate(false).ID: return 3880; case AcaciaSapling::AcaciaSapling(0).ID: return 29; case AcaciaSapling::AcaciaSapling(1).ID: return 30; case AcaciaSign::AcaciaSign(0).ID: return 3476; case AcaciaSign::AcaciaSign(1).ID: return 3478; case AcaciaSign::AcaciaSign(2).ID: return 3480; case AcaciaSign::AcaciaSign(3).ID: return 3482; case AcaciaSign::AcaciaSign(4).ID: return 3484; case AcaciaSign::AcaciaSign(5).ID: return 3486; case AcaciaSign::AcaciaSign(6).ID: return 3488; case AcaciaSign::AcaciaSign(7).ID: return 3490; case AcaciaSign::AcaciaSign(8).ID: return 3492; case AcaciaSign::AcaciaSign(9).ID: return 3494; case AcaciaSign::AcaciaSign(10).ID: return 3496; case AcaciaSign::AcaciaSign(11).ID: return 3498; case AcaciaSign::AcaciaSign(12).ID: return 3500; case AcaciaSign::AcaciaSign(13).ID: return 3502; case AcaciaSign::AcaciaSign(14).ID: return 3504; case AcaciaSign::AcaciaSign(15).ID: return 3506; case AcaciaSlab::AcaciaSlab(AcaciaSlab::Type::Top).ID: return 7789; case AcaciaSlab::AcaciaSlab(AcaciaSlab::Type::Bottom).ID: return 7791; case AcaciaSlab::AcaciaSlab(AcaciaSlab::Type::Double).ID: return 7793; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::Straight).ID: return 6840; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerLeft).ID: return 6842; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerRight).ID: return 6844; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterLeft).ID: return 6846; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterRight).ID: return 6848; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::Straight).ID: return 6850; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerLeft).ID: return 6852; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerRight).ID: return 6854; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterLeft).ID: return 6856; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterRight).ID: return 6858; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::Straight).ID: return 6860; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerLeft).ID: return 6862; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerRight).ID: return 6864; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterLeft).ID: return 6866; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterRight).ID: return 6868; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::Straight).ID: return 6870; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerLeft).ID: return 6872; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerRight).ID: return 6874; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterLeft).ID: return 6876; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_ZP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterRight).ID: return 6878; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::Straight).ID: return 6880; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerLeft).ID: return 6882; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerRight).ID: return 6884; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterLeft).ID: return 6886; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterRight).ID: return 6888; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::Straight).ID: return 6890; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerLeft).ID: return 6892; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerRight).ID: return 6894; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterLeft).ID: return 6896; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XM, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterRight).ID: return 6898; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::Straight).ID: return 6900; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerLeft).ID: return 6902; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::InnerRight).ID: return 6904; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterLeft).ID: return 6906; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Top, AcaciaStairs::Shape::OuterRight).ID: return 6908; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::Straight).ID: return 6910; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerLeft).ID: return 6912; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::InnerRight).ID: return 6914; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterLeft).ID: return 6916; case AcaciaStairs::AcaciaStairs(eBlockFace::BLOCK_FACE_XP, AcaciaStairs::Half::Bottom, AcaciaStairs::Shape::OuterRight).ID: return 6918; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Top, true, true).ID: return 4354; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Top, true, false).ID: return 4356; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Top, false, true).ID: return 4358; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Top, false, false).ID: return 4360; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Bottom, true, true).ID: return 4362; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Bottom, true, false).ID: return 4364; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Bottom, false, true).ID: return 4366; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZM, AcaciaTrapdoor::Half::Bottom, false, false).ID: return 4368; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Top, true, true).ID: return 4370; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Top, true, false).ID: return 4372; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Top, false, true).ID: return 4374; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Top, false, false).ID: return 4376; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Bottom, true, true).ID: return 4378; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Bottom, true, false).ID: return 4380; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Bottom, false, true).ID: return 4382; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_ZP, AcaciaTrapdoor::Half::Bottom, false, false).ID: return 4384; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Top, true, true).ID: return 4386; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Top, true, false).ID: return 4388; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Top, false, true).ID: return 4390; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Top, false, false).ID: return 4392; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Bottom, true, true).ID: return 4394; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Bottom, true, false).ID: return 4396; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Bottom, false, true).ID: return 4398; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XM, AcaciaTrapdoor::Half::Bottom, false, false).ID: return 4400; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Top, true, true).ID: return 4402; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Top, true, false).ID: return 4404; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Top, false, true).ID: return 4406; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Top, false, false).ID: return 4408; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Bottom, true, true).ID: return 4410; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Bottom, true, false).ID: return 4412; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Bottom, false, true).ID: return 4414; case AcaciaTrapdoor::AcaciaTrapdoor(eBlockFace::BLOCK_FACE_XP, AcaciaTrapdoor::Half::Bottom, false, false).ID: return 4416; case AcaciaWallSign::AcaciaWallSign(eBlockFace::BLOCK_FACE_ZM).ID: return 3758; case AcaciaWallSign::AcaciaWallSign(eBlockFace::BLOCK_FACE_ZP).ID: return 3760; case AcaciaWallSign::AcaciaWallSign(eBlockFace::BLOCK_FACE_XM).ID: return 3762; case AcaciaWallSign::AcaciaWallSign(eBlockFace::BLOCK_FACE_XP).ID: return 3764; case AcaciaWood::AcaciaWood(AcaciaWood::Axis::X).ID: return 120; case AcaciaWood::AcaciaWood(AcaciaWood::Axis::Y).ID: return 121; case AcaciaWood::AcaciaWood(AcaciaWood::Axis::Z).ID: return 122; case ActivatorRail::ActivatorRail(true, ActivatorRail::Shape::NorthSouth).ID: return 6287; case ActivatorRail::ActivatorRail(true, ActivatorRail::Shape::EastWest).ID: return 6288; case ActivatorRail::ActivatorRail(true, ActivatorRail::Shape::AscendingEast).ID: return 6289; case ActivatorRail::ActivatorRail(true, ActivatorRail::Shape::AscendingWest).ID: return 6290; case ActivatorRail::ActivatorRail(true, ActivatorRail::Shape::AscendingNorth).ID: return 6291; case ActivatorRail::ActivatorRail(true, ActivatorRail::Shape::AscendingSouth).ID: return 6292; case ActivatorRail::ActivatorRail(false, ActivatorRail::Shape::NorthSouth).ID: return 6293; case ActivatorRail::ActivatorRail(false, ActivatorRail::Shape::EastWest).ID: return 6294; case ActivatorRail::ActivatorRail(false, ActivatorRail::Shape::AscendingEast).ID: return 6295; case ActivatorRail::ActivatorRail(false, ActivatorRail::Shape::AscendingWest).ID: return 6296; case ActivatorRail::ActivatorRail(false, ActivatorRail::Shape::AscendingNorth).ID: return 6297; case ActivatorRail::ActivatorRail(false, ActivatorRail::Shape::AscendingSouth).ID: return 6298; case Air::Air().ID: return -0; case Allium::Allium().ID: return 1414; case Andesite::Andesite().ID: return 6; case AndesiteSlab::AndesiteSlab(AndesiteSlab::Type::Top).ID: return 10308; case AndesiteSlab::AndesiteSlab(AndesiteSlab::Type::Bottom).ID: return 10310; case AndesiteSlab::AndesiteSlab(AndesiteSlab::Type::Double).ID: return 10312; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::Straight).ID: return 9934; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerLeft).ID: return 9936; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerRight).ID: return 9938; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterLeft).ID: return 9940; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterRight).ID: return 9942; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::Straight).ID: return 9944; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerLeft).ID: return 9946; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerRight).ID: return 9948; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterLeft).ID: return 9950; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterRight).ID: return 9952; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::Straight).ID: return 9954; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerLeft).ID: return 9956; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerRight).ID: return 9958; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterLeft).ID: return 9960; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterRight).ID: return 9962; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::Straight).ID: return 9964; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerLeft).ID: return 9966; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerRight).ID: return 9968; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterLeft).ID: return 9970; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_ZP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterRight).ID: return 9972; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::Straight).ID: return 9974; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerLeft).ID: return 9976; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerRight).ID: return 9978; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterLeft).ID: return 9980; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterRight).ID: return 9982; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::Straight).ID: return 9984; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerLeft).ID: return 9986; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerRight).ID: return 9988; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterLeft).ID: return 9990; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XM, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterRight).ID: return 9992; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::Straight).ID: return 9994; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerLeft).ID: return 9996; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::InnerRight).ID: return 9998; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterLeft).ID: return 10000; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Top, AndesiteStairs::Shape::OuterRight).ID: return 10002; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::Straight).ID: return 10004; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerLeft).ID: return 10006; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::InnerRight).ID: return 10008; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterLeft).ID: return 10010; case AndesiteStairs::AndesiteStairs(eBlockFace::BLOCK_FACE_XP, AndesiteStairs::Half::Bottom, AndesiteStairs::Shape::OuterRight).ID: return 10012; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::Low, true, AndesiteWall::West::Low).ID: return 10781; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::Low, true, AndesiteWall::West::None).ID: return 10782; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::Low, false, AndesiteWall::West::Low).ID: return 10785; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::Low, false, AndesiteWall::West::None).ID: return 10786; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::None, true, AndesiteWall::West::Low).ID: return 10789; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::None, true, AndesiteWall::West::None).ID: return 10790; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::None, false, AndesiteWall::West::Low).ID: return 10793; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::Low, AndesiteWall::South::None, false, AndesiteWall::West::None).ID: return 10794; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::Low, true, AndesiteWall::West::Low).ID: return 10797; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::Low, true, AndesiteWall::West::None).ID: return 10798; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::Low, false, AndesiteWall::West::Low).ID: return 10801; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::Low, false, AndesiteWall::West::None).ID: return 10802; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::None, true, AndesiteWall::West::Low).ID: return 10805; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::None, true, AndesiteWall::West::None).ID: return 10806; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::None, false, AndesiteWall::West::Low).ID: return 10809; case AndesiteWall::AndesiteWall(AndesiteWall::East::Low, AndesiteWall::North::None, AndesiteWall::South::None, false, AndesiteWall::West::None).ID: return 10810; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::Low, true, AndesiteWall::West::Low).ID: return 10813; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::Low, true, AndesiteWall::West::None).ID: return 10814; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::Low, false, AndesiteWall::West::Low).ID: return 10817; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::Low, false, AndesiteWall::West::None).ID: return 10818; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::None, true, AndesiteWall::West::Low).ID: return 10821; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::None, true, AndesiteWall::West::None).ID: return 10822; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::None, false, AndesiteWall::West::Low).ID: return 10825; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::Low, AndesiteWall::South::None, false, AndesiteWall::West::None).ID: return 10826; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::Low, true, AndesiteWall::West::Low).ID: return 10829; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::Low, true, AndesiteWall::West::None).ID: return 10830; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::Low, false, AndesiteWall::West::Low).ID: return 10833; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::Low, false, AndesiteWall::West::None).ID: return 10834; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::None, true, AndesiteWall::West::Low).ID: return 10837; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::None, true, AndesiteWall::West::None).ID: return 10838; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::None, false, AndesiteWall::West::Low).ID: return 10841; case AndesiteWall::AndesiteWall(AndesiteWall::East::None, AndesiteWall::North::None, AndesiteWall::South::None, false, AndesiteWall::West::None).ID: return 10842; case Anvil::Anvil(eBlockFace::BLOCK_FACE_ZM).ID: return 6074; case Anvil::Anvil(eBlockFace::BLOCK_FACE_ZP).ID: return 6075; case Anvil::Anvil(eBlockFace::BLOCK_FACE_XM).ID: return 6076; case Anvil::Anvil(eBlockFace::BLOCK_FACE_XP).ID: return 6077; case AttachedMelonStem::AttachedMelonStem(eBlockFace::BLOCK_FACE_ZM).ID: return 4752; case AttachedMelonStem::AttachedMelonStem(eBlockFace::BLOCK_FACE_ZP).ID: return 4753; case AttachedMelonStem::AttachedMelonStem(eBlockFace::BLOCK_FACE_XM).ID: return 4754; case AttachedMelonStem::AttachedMelonStem(eBlockFace::BLOCK_FACE_XP).ID: return 4755; case AttachedPumpkinStem::AttachedPumpkinStem(eBlockFace::BLOCK_FACE_ZM).ID: return 4748; case AttachedPumpkinStem::AttachedPumpkinStem(eBlockFace::BLOCK_FACE_ZP).ID: return 4749; case AttachedPumpkinStem::AttachedPumpkinStem(eBlockFace::BLOCK_FACE_XM).ID: return 4750; case AttachedPumpkinStem::AttachedPumpkinStem(eBlockFace::BLOCK_FACE_XP).ID: return 4751; case AzureBluet::AzureBluet().ID: return 1415; case Bamboo::Bamboo(0, Bamboo::Leaves::None, 0).ID: return 9116; case Bamboo::Bamboo(0, Bamboo::Leaves::None, 1).ID: return 9117; case Bamboo::Bamboo(0, Bamboo::Leaves::Small, 0).ID: return 9118; case Bamboo::Bamboo(0, Bamboo::Leaves::Small, 1).ID: return 9119; case Bamboo::Bamboo(0, Bamboo::Leaves::Large, 0).ID: return 9120; case Bamboo::Bamboo(0, Bamboo::Leaves::Large, 1).ID: return 9121; case Bamboo::Bamboo(1, Bamboo::Leaves::None, 0).ID: return 9122; case Bamboo::Bamboo(1, Bamboo::Leaves::None, 1).ID: return 9123; case Bamboo::Bamboo(1, Bamboo::Leaves::Small, 0).ID: return 9124; case Bamboo::Bamboo(1, Bamboo::Leaves::Small, 1).ID: return 9125; case Bamboo::Bamboo(1, Bamboo::Leaves::Large, 0).ID: return 9126; case Bamboo::Bamboo(1, Bamboo::Leaves::Large, 1).ID: return 9127; case BambooSapling::BambooSapling().ID: return 9115; case Barrel::Barrel(eBlockFace::BLOCK_FACE_ZM, true).ID: return 11135; case Barrel::Barrel(eBlockFace::BLOCK_FACE_ZM, false).ID: return 11136; case Barrel::Barrel(eBlockFace::BLOCK_FACE_XP, true).ID: return 11137; case Barrel::Barrel(eBlockFace::BLOCK_FACE_XP, false).ID: return 11138; case Barrel::Barrel(eBlockFace::BLOCK_FACE_ZP, true).ID: return 11139; case Barrel::Barrel(eBlockFace::BLOCK_FACE_ZP, false).ID: return 11140; case Barrel::Barrel(eBlockFace::BLOCK_FACE_XM, true).ID: return 11141; case Barrel::Barrel(eBlockFace::BLOCK_FACE_XM, false).ID: return 11142; case Barrel::Barrel(eBlockFace::BLOCK_FACE_YP, true).ID: return 11143; case Barrel::Barrel(eBlockFace::BLOCK_FACE_YP, false).ID: return 11144; case Barrel::Barrel(eBlockFace::BLOCK_FACE_YM, true).ID: return 11145; case Barrel::Barrel(eBlockFace::BLOCK_FACE_YM, false).ID: return 11146; case Barrier::Barrier().ID: return 7000; case Beacon::Beacon().ID: return 5640; case Bedrock::Bedrock().ID: return 33; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZM, 0).ID: return 11287; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZM, 1).ID: return 11288; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZM, 2).ID: return 11289; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZM, 3).ID: return 11290; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZM, 4).ID: return 11291; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZM, 5).ID: return 11292; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZP, 0).ID: return 11293; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZP, 1).ID: return 11294; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZP, 2).ID: return 11295; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZP, 3).ID: return 11296; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZP, 4).ID: return 11297; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_ZP, 5).ID: return 11298; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XM, 0).ID: return 11299; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XM, 1).ID: return 11300; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XM, 2).ID: return 11301; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XM, 3).ID: return 11302; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XM, 4).ID: return 11303; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XM, 5).ID: return 11304; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XP, 0).ID: return 11305; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XP, 1).ID: return 11306; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XP, 2).ID: return 11307; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XP, 3).ID: return 11308; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XP, 4).ID: return 11309; case BeeNest::BeeNest(eBlockFace::BLOCK_FACE_XP, 5).ID: return 11310; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZM, 0).ID: return 11311; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZM, 1).ID: return 11312; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZM, 2).ID: return 11313; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZM, 3).ID: return 11314; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZM, 4).ID: return 11315; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZM, 5).ID: return 11316; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZP, 0).ID: return 11317; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZP, 1).ID: return 11318; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZP, 2).ID: return 11319; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZP, 3).ID: return 11320; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZP, 4).ID: return 11321; case Beehive::Beehive(eBlockFace::BLOCK_FACE_ZP, 5).ID: return 11322; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XM, 0).ID: return 11323; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XM, 1).ID: return 11324; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XM, 2).ID: return 11325; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XM, 3).ID: return 11326; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XM, 4).ID: return 11327; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XM, 5).ID: return 11328; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XP, 0).ID: return 11329; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XP, 1).ID: return 11330; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XP, 2).ID: return 11331; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XP, 3).ID: return 11332; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XP, 4).ID: return 11333; case Beehive::Beehive(eBlockFace::BLOCK_FACE_XP, 5).ID: return 11334; case Beetroots::Beetroots(0).ID: return 8683; case Beetroots::Beetroots(1).ID: return 8684; case Beetroots::Beetroots(2).ID: return 8685; case Beetroots::Beetroots(3).ID: return 8686; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 11198; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 11199; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 11200; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 11201; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 11202; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 11203; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 11204; case Bell::Bell(Bell::Attachment::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 11205; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 11206; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 11207; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 11208; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 11209; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 11210; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 11211; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 11212; case Bell::Bell(Bell::Attachment::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 11213; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 11214; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 11215; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 11216; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 11217; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_XM, true).ID: return 11218; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_XM, false).ID: return 11219; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_XP, true).ID: return 11220; case Bell::Bell(Bell::Attachment::SingleWall, eBlockFace::BLOCK_FACE_XP, false).ID: return 11221; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 11222; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 11223; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 11224; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 11225; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_XM, true).ID: return 11226; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_XM, false).ID: return 11227; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_XP, true).ID: return 11228; case Bell::Bell(Bell::Attachment::DoubleWall, eBlockFace::BLOCK_FACE_XP, false).ID: return 11229; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5858; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5859; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5860; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5861; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 5862; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 5863; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 5864; case BirchButton::BirchButton(BirchButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 5865; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5866; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5867; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5868; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5869; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 5870; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 5871; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 5872; case BirchButton::BirchButton(BirchButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 5873; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5874; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5875; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5876; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5877; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 5878; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 5879; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 5880; case BirchButton::BirchButton(BirchButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 5881; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, true).ID: return 8266; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, false).ID: return 8267; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, true).ID: return 8268; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, false).ID: return 8269; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, true).ID: return 8270; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, false).ID: return 8271; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, true).ID: return 8272; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, false).ID: return 8273; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, true).ID: return 8274; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, false).ID: return 8275; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, true).ID: return 8276; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, false).ID: return 8277; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, true).ID: return 8278; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, false).ID: return 8279; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, true).ID: return 8280; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, false).ID: return 8281; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, true).ID: return 8282; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, false).ID: return 8283; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, true).ID: return 8284; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, false).ID: return 8285; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, true).ID: return 8286; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, false).ID: return 8287; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, true).ID: return 8288; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, false).ID: return 8289; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, true).ID: return 8290; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, false).ID: return 8291; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, true).ID: return 8292; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, false).ID: return 8293; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, true).ID: return 8294; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, false).ID: return 8295; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, true).ID: return 8296; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_ZP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, false).ID: return 8297; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, true).ID: return 8298; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, false).ID: return 8299; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, true).ID: return 8300; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, false).ID: return 8301; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, true).ID: return 8302; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, false).ID: return 8303; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, true).ID: return 8304; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, false).ID: return 8305; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, true).ID: return 8306; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, false).ID: return 8307; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, true).ID: return 8308; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, false).ID: return 8309; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, true).ID: return 8310; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, false).ID: return 8311; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, true).ID: return 8312; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XM, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, false).ID: return 8313; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, true).ID: return 8314; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, true, false).ID: return 8315; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, true).ID: return 8316; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Left, false, false).ID: return 8317; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, true).ID: return 8318; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, true, false).ID: return 8319; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, true).ID: return 8320; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Upper, BirchDoor::Hinge::Right, false, false).ID: return 8321; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, true).ID: return 8322; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, true, false).ID: return 8323; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, true).ID: return 8324; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Left, false, false).ID: return 8325; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, true).ID: return 8326; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, true, false).ID: return 8327; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, true).ID: return 8328; case BirchDoor::BirchDoor(eBlockFace::BLOCK_FACE_XP, BirchDoor::Half::Lower, BirchDoor::Hinge::Right, false, false).ID: return 8329; case BirchFence::BirchFence(true, true, true, true).ID: return 8076; case BirchFence::BirchFence(true, true, true, false).ID: return 8077; case BirchFence::BirchFence(true, true, false, true).ID: return 8080; case BirchFence::BirchFence(true, true, false, false).ID: return 8081; case BirchFence::BirchFence(true, false, true, true).ID: return 8084; case BirchFence::BirchFence(true, false, true, false).ID: return 8085; case BirchFence::BirchFence(true, false, false, true).ID: return 8088; case BirchFence::BirchFence(true, false, false, false).ID: return 8089; case BirchFence::BirchFence(false, true, true, true).ID: return 8092; case BirchFence::BirchFence(false, true, true, false).ID: return 8093; case BirchFence::BirchFence(false, true, false, true).ID: return 8096; case BirchFence::BirchFence(false, true, false, false).ID: return 8097; case BirchFence::BirchFence(false, false, true, true).ID: return 8100; case BirchFence::BirchFence(false, false, true, false).ID: return 8101; case BirchFence::BirchFence(false, false, false, true).ID: return 8104; case BirchFence::BirchFence(false, false, false, false).ID: return 8105; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, true).ID: return 7914; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, false).ID: return 7915; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, true).ID: return 7916; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, false).ID: return 7917; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, true).ID: return 7918; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, false).ID: return 7919; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, true).ID: return 7920; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, false).ID: return 7921; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, true).ID: return 7922; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, false).ID: return 7923; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, true).ID: return 7924; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, false).ID: return 7925; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, true).ID: return 7926; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, false).ID: return 7927; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, true).ID: return 7928; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, false).ID: return 7929; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, true).ID: return 7930; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, false).ID: return 7931; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, true).ID: return 7932; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, false).ID: return 7933; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, true).ID: return 7934; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, false).ID: return 7935; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, true).ID: return 7936; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, false).ID: return 7937; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, true).ID: return 7938; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, false).ID: return 7939; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, true).ID: return 7940; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, false).ID: return 7941; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, true).ID: return 7942; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, false).ID: return 7943; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, true).ID: return 7944; case BirchFenceGate::BirchFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, false).ID: return 7945; case BirchLeaves::BirchLeaves(1, true).ID: return 172; case BirchLeaves::BirchLeaves(1, false).ID: return 173; case BirchLeaves::BirchLeaves(2, true).ID: return 174; case BirchLeaves::BirchLeaves(2, false).ID: return 175; case BirchLeaves::BirchLeaves(3, true).ID: return 176; case BirchLeaves::BirchLeaves(3, false).ID: return 177; case BirchLeaves::BirchLeaves(4, true).ID: return 178; case BirchLeaves::BirchLeaves(4, false).ID: return 179; case BirchLeaves::BirchLeaves(5, true).ID: return 180; case BirchLeaves::BirchLeaves(5, false).ID: return 181; case BirchLeaves::BirchLeaves(6, true).ID: return 182; case BirchLeaves::BirchLeaves(6, false).ID: return 183; case BirchLeaves::BirchLeaves(7, true).ID: return 184; case BirchLeaves::BirchLeaves(7, false).ID: return 185; case BirchLog::BirchLog(BirchLog::Axis::X).ID: return 78; case BirchLog::BirchLog(BirchLog::Axis::Y).ID: return 79; case BirchLog::BirchLog(BirchLog::Axis::Z).ID: return 80; case BirchPlanks::BirchPlanks().ID: return 17; case BirchPressurePlate::BirchPressurePlate(true).ID: return 3875; case BirchPressurePlate::BirchPressurePlate(false).ID: return 3876; case BirchSapling::BirchSapling(0).ID: return 25; case BirchSapling::BirchSapling(1).ID: return 26; case BirchSign::BirchSign(0).ID: return 3444; case BirchSign::BirchSign(1).ID: return 3446; case BirchSign::BirchSign(2).ID: return 3448; case BirchSign::BirchSign(3).ID: return 3450; case BirchSign::BirchSign(4).ID: return 3452; case BirchSign::BirchSign(5).ID: return 3454; case BirchSign::BirchSign(6).ID: return 3456; case BirchSign::BirchSign(7).ID: return 3458; case BirchSign::BirchSign(8).ID: return 3460; case BirchSign::BirchSign(9).ID: return 3462; case BirchSign::BirchSign(10).ID: return 3464; case BirchSign::BirchSign(11).ID: return 3466; case BirchSign::BirchSign(12).ID: return 3468; case BirchSign::BirchSign(13).ID: return 3470; case BirchSign::BirchSign(14).ID: return 3472; case BirchSign::BirchSign(15).ID: return 3474; case BirchSlab::BirchSlab(BirchSlab::Type::Top).ID: return 7777; case BirchSlab::BirchSlab(BirchSlab::Type::Bottom).ID: return 7779; case BirchSlab::BirchSlab(BirchSlab::Type::Double).ID: return 7781; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Top, BirchStairs::Shape::Straight).ID: return 5469; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Top, BirchStairs::Shape::InnerLeft).ID: return 5471; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Top, BirchStairs::Shape::InnerRight).ID: return 5473; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Top, BirchStairs::Shape::OuterLeft).ID: return 5475; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Top, BirchStairs::Shape::OuterRight).ID: return 5477; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Bottom, BirchStairs::Shape::Straight).ID: return 5479; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerLeft).ID: return 5481; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerRight).ID: return 5483; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterLeft).ID: return 5485; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZM, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterRight).ID: return 5487; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Top, BirchStairs::Shape::Straight).ID: return 5489; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Top, BirchStairs::Shape::InnerLeft).ID: return 5491; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Top, BirchStairs::Shape::InnerRight).ID: return 5493; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Top, BirchStairs::Shape::OuterLeft).ID: return 5495; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Top, BirchStairs::Shape::OuterRight).ID: return 5497; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Bottom, BirchStairs::Shape::Straight).ID: return 5499; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerLeft).ID: return 5501; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerRight).ID: return 5503; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterLeft).ID: return 5505; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_ZP, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterRight).ID: return 5507; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Top, BirchStairs::Shape::Straight).ID: return 5509; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Top, BirchStairs::Shape::InnerLeft).ID: return 5511; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Top, BirchStairs::Shape::InnerRight).ID: return 5513; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Top, BirchStairs::Shape::OuterLeft).ID: return 5515; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Top, BirchStairs::Shape::OuterRight).ID: return 5517; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Bottom, BirchStairs::Shape::Straight).ID: return 5519; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerLeft).ID: return 5521; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerRight).ID: return 5523; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterLeft).ID: return 5525; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XM, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterRight).ID: return 5527; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Top, BirchStairs::Shape::Straight).ID: return 5529; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Top, BirchStairs::Shape::InnerLeft).ID: return 5531; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Top, BirchStairs::Shape::InnerRight).ID: return 5533; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Top, BirchStairs::Shape::OuterLeft).ID: return 5535; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Top, BirchStairs::Shape::OuterRight).ID: return 5537; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Bottom, BirchStairs::Shape::Straight).ID: return 5539; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerLeft).ID: return 5541; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Bottom, BirchStairs::Shape::InnerRight).ID: return 5543; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterLeft).ID: return 5545; case BirchStairs::BirchStairs(eBlockFace::BLOCK_FACE_XP, BirchStairs::Half::Bottom, BirchStairs::Shape::OuterRight).ID: return 5547; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Top, true, true).ID: return 4226; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Top, true, false).ID: return 4228; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Top, false, true).ID: return 4230; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Top, false, false).ID: return 4232; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Bottom, true, true).ID: return 4234; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Bottom, true, false).ID: return 4236; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Bottom, false, true).ID: return 4238; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZM, BirchTrapdoor::Half::Bottom, false, false).ID: return 4240; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Top, true, true).ID: return 4242; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Top, true, false).ID: return 4244; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Top, false, true).ID: return 4246; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Top, false, false).ID: return 4248; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Bottom, true, true).ID: return 4250; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Bottom, true, false).ID: return 4252; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Bottom, false, true).ID: return 4254; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_ZP, BirchTrapdoor::Half::Bottom, false, false).ID: return 4256; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Top, true, true).ID: return 4258; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Top, true, false).ID: return 4260; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Top, false, true).ID: return 4262; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Top, false, false).ID: return 4264; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Bottom, true, true).ID: return 4266; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Bottom, true, false).ID: return 4268; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Bottom, false, true).ID: return 4270; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XM, BirchTrapdoor::Half::Bottom, false, false).ID: return 4272; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Top, true, true).ID: return 4274; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Top, true, false).ID: return 4276; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Top, false, true).ID: return 4278; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Top, false, false).ID: return 4280; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Bottom, true, true).ID: return 4282; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Bottom, true, false).ID: return 4284; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Bottom, false, true).ID: return 4286; case BirchTrapdoor::BirchTrapdoor(eBlockFace::BLOCK_FACE_XP, BirchTrapdoor::Half::Bottom, false, false).ID: return 4288; case BirchWallSign::BirchWallSign(eBlockFace::BLOCK_FACE_ZM).ID: return 3750; case BirchWallSign::BirchWallSign(eBlockFace::BLOCK_FACE_ZP).ID: return 3752; case BirchWallSign::BirchWallSign(eBlockFace::BLOCK_FACE_XM).ID: return 3754; case BirchWallSign::BirchWallSign(eBlockFace::BLOCK_FACE_XP).ID: return 3756; case BirchWood::BirchWood(BirchWood::Axis::X).ID: return 114; case BirchWood::BirchWood(BirchWood::Axis::Y).ID: return 115; case BirchWood::BirchWood(BirchWood::Axis::Z).ID: return 116; case BlackBanner::BlackBanner(0).ID: return 7601; case BlackBanner::BlackBanner(1).ID: return 7602; case BlackBanner::BlackBanner(2).ID: return 7603; case BlackBanner::BlackBanner(3).ID: return 7604; case BlackBanner::BlackBanner(4).ID: return 7605; case BlackBanner::BlackBanner(5).ID: return 7606; case BlackBanner::BlackBanner(6).ID: return 7607; case BlackBanner::BlackBanner(7).ID: return 7608; case BlackBanner::BlackBanner(8).ID: return 7609; case BlackBanner::BlackBanner(9).ID: return 7610; case BlackBanner::BlackBanner(10).ID: return 7611; case BlackBanner::BlackBanner(11).ID: return 7612; case BlackBanner::BlackBanner(12).ID: return 7613; case BlackBanner::BlackBanner(13).ID: return 7614; case BlackBanner::BlackBanner(14).ID: return 7615; case BlackBanner::BlackBanner(15).ID: return 7616; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZM, true, BlackBed::Part::Head).ID: return 1288; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZM, true, BlackBed::Part::Foot).ID: return 1289; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZM, false, BlackBed::Part::Head).ID: return 1290; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZM, false, BlackBed::Part::Foot).ID: return 1291; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZP, true, BlackBed::Part::Head).ID: return 1292; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZP, true, BlackBed::Part::Foot).ID: return 1293; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZP, false, BlackBed::Part::Head).ID: return 1294; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_ZP, false, BlackBed::Part::Foot).ID: return 1295; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XM, true, BlackBed::Part::Head).ID: return 1296; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XM, true, BlackBed::Part::Foot).ID: return 1297; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XM, false, BlackBed::Part::Head).ID: return 1298; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XM, false, BlackBed::Part::Foot).ID: return 1299; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XP, true, BlackBed::Part::Head).ID: return 1300; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XP, true, BlackBed::Part::Foot).ID: return 1301; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XP, false, BlackBed::Part::Head).ID: return 1302; case BlackBed::BlackBed(eBlockFace::BLOCK_FACE_XP, false, BlackBed::Part::Foot).ID: return 1303; case BlackCarpet::BlackCarpet().ID: return 7345; case BlackConcrete::BlackConcrete().ID: return 8917; case BlackConcretePowder::BlackConcretePowder().ID: return 8933; case BlackGlazedTerracotta::BlackGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8898; case BlackGlazedTerracotta::BlackGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8899; case BlackGlazedTerracotta::BlackGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8900; case BlackGlazedTerracotta::BlackGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8901; case BlackShulkerBox::BlackShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8832; case BlackShulkerBox::BlackShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8833; case BlackShulkerBox::BlackShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8834; case BlackShulkerBox::BlackShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8835; case BlackShulkerBox::BlackShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8836; case BlackShulkerBox::BlackShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8837; case BlackStainedGlass::BlackStainedGlass().ID: return 4096; case BlackStainedGlassPane::BlackStainedGlassPane(true, true, true, true).ID: return 6809; case BlackStainedGlassPane::BlackStainedGlassPane(true, true, true, false).ID: return 6810; case BlackStainedGlassPane::BlackStainedGlassPane(true, true, false, true).ID: return 6813; case BlackStainedGlassPane::BlackStainedGlassPane(true, true, false, false).ID: return 6814; case BlackStainedGlassPane::BlackStainedGlassPane(true, false, true, true).ID: return 6817; case BlackStainedGlassPane::BlackStainedGlassPane(true, false, true, false).ID: return 6818; case BlackStainedGlassPane::BlackStainedGlassPane(true, false, false, true).ID: return 6821; case BlackStainedGlassPane::BlackStainedGlassPane(true, false, false, false).ID: return 6822; case BlackStainedGlassPane::BlackStainedGlassPane(false, true, true, true).ID: return 6825; case BlackStainedGlassPane::BlackStainedGlassPane(false, true, true, false).ID: return 6826; case BlackStainedGlassPane::BlackStainedGlassPane(false, true, false, true).ID: return 6829; case BlackStainedGlassPane::BlackStainedGlassPane(false, true, false, false).ID: return 6830; case BlackStainedGlassPane::BlackStainedGlassPane(false, false, true, true).ID: return 6833; case BlackStainedGlassPane::BlackStainedGlassPane(false, false, true, false).ID: return 6834; case BlackStainedGlassPane::BlackStainedGlassPane(false, false, false, true).ID: return 6837; case BlackStainedGlassPane::BlackStainedGlassPane(false, false, false, false).ID: return 6838; case BlackTerracotta::BlackTerracotta().ID: return 6326; case BlackWallBanner::BlackWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7677; case BlackWallBanner::BlackWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7678; case BlackWallBanner::BlackWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7679; case BlackWallBanner::BlackWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7680; case BlackWool::BlackWool().ID: return 1398; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_ZM, true).ID: return 11155; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_ZM, false).ID: return 11156; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_ZP, true).ID: return 11157; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_ZP, false).ID: return 11158; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_XM, true).ID: return 11159; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_XM, false).ID: return 11160; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_XP, true).ID: return 11161; case BlastFurnace::BlastFurnace(eBlockFace::BLOCK_FACE_XP, false).ID: return 11162; case BlueBanner::BlueBanner(0).ID: return 7537; case BlueBanner::BlueBanner(1).ID: return 7538; case BlueBanner::BlueBanner(2).ID: return 7539; case BlueBanner::BlueBanner(3).ID: return 7540; case BlueBanner::BlueBanner(4).ID: return 7541; case BlueBanner::BlueBanner(5).ID: return 7542; case BlueBanner::BlueBanner(6).ID: return 7543; case BlueBanner::BlueBanner(7).ID: return 7544; case BlueBanner::BlueBanner(8).ID: return 7545; case BlueBanner::BlueBanner(9).ID: return 7546; case BlueBanner::BlueBanner(10).ID: return 7547; case BlueBanner::BlueBanner(11).ID: return 7548; case BlueBanner::BlueBanner(12).ID: return 7549; case BlueBanner::BlueBanner(13).ID: return 7550; case BlueBanner::BlueBanner(14).ID: return 7551; case BlueBanner::BlueBanner(15).ID: return 7552; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZM, true, BlueBed::Part::Head).ID: return 1224; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZM, true, BlueBed::Part::Foot).ID: return 1225; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZM, false, BlueBed::Part::Head).ID: return 1226; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZM, false, BlueBed::Part::Foot).ID: return 1227; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZP, true, BlueBed::Part::Head).ID: return 1228; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZP, true, BlueBed::Part::Foot).ID: return 1229; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZP, false, BlueBed::Part::Head).ID: return 1230; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_ZP, false, BlueBed::Part::Foot).ID: return 1231; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XM, true, BlueBed::Part::Head).ID: return 1232; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XM, true, BlueBed::Part::Foot).ID: return 1233; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XM, false, BlueBed::Part::Head).ID: return 1234; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XM, false, BlueBed::Part::Foot).ID: return 1235; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XP, true, BlueBed::Part::Head).ID: return 1236; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XP, true, BlueBed::Part::Foot).ID: return 1237; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XP, false, BlueBed::Part::Head).ID: return 1238; case BlueBed::BlueBed(eBlockFace::BLOCK_FACE_XP, false, BlueBed::Part::Foot).ID: return 1239; case BlueCarpet::BlueCarpet().ID: return 7341; case BlueConcrete::BlueConcrete().ID: return 8913; case BlueConcretePowder::BlueConcretePowder().ID: return 8929; case BlueGlazedTerracotta::BlueGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8882; case BlueGlazedTerracotta::BlueGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8883; case BlueGlazedTerracotta::BlueGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8884; case BlueGlazedTerracotta::BlueGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8885; case BlueIce::BlueIce().ID: return 9112; case BlueOrchid::BlueOrchid().ID: return 1413; case BlueShulkerBox::BlueShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8808; case BlueShulkerBox::BlueShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8809; case BlueShulkerBox::BlueShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8810; case BlueShulkerBox::BlueShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8811; case BlueShulkerBox::BlueShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8812; case BlueShulkerBox::BlueShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8813; case BlueStainedGlass::BlueStainedGlass().ID: return 4092; case BlueStainedGlassPane::BlueStainedGlassPane(true, true, true, true).ID: return 6681; case BlueStainedGlassPane::BlueStainedGlassPane(true, true, true, false).ID: return 6682; case BlueStainedGlassPane::BlueStainedGlassPane(true, true, false, true).ID: return 6685; case BlueStainedGlassPane::BlueStainedGlassPane(true, true, false, false).ID: return 6686; case BlueStainedGlassPane::BlueStainedGlassPane(true, false, true, true).ID: return 6689; case BlueStainedGlassPane::BlueStainedGlassPane(true, false, true, false).ID: return 6690; case BlueStainedGlassPane::BlueStainedGlassPane(true, false, false, true).ID: return 6693; case BlueStainedGlassPane::BlueStainedGlassPane(true, false, false, false).ID: return 6694; case BlueStainedGlassPane::BlueStainedGlassPane(false, true, true, true).ID: return 6697; case BlueStainedGlassPane::BlueStainedGlassPane(false, true, true, false).ID: return 6698; case BlueStainedGlassPane::BlueStainedGlassPane(false, true, false, true).ID: return 6701; case BlueStainedGlassPane::BlueStainedGlassPane(false, true, false, false).ID: return 6702; case BlueStainedGlassPane::BlueStainedGlassPane(false, false, true, true).ID: return 6705; case BlueStainedGlassPane::BlueStainedGlassPane(false, false, true, false).ID: return 6706; case BlueStainedGlassPane::BlueStainedGlassPane(false, false, false, true).ID: return 6709; case BlueStainedGlassPane::BlueStainedGlassPane(false, false, false, false).ID: return 6710; case BlueTerracotta::BlueTerracotta().ID: return 6322; case BlueWallBanner::BlueWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7661; case BlueWallBanner::BlueWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7662; case BlueWallBanner::BlueWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7663; case BlueWallBanner::BlueWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7664; case BlueWool::BlueWool().ID: return 1394; case BoneBlock::BoneBlock(BoneBlock::Axis::X).ID: return 8720; case BoneBlock::BoneBlock(BoneBlock::Axis::Y).ID: return 8721; case BoneBlock::BoneBlock(BoneBlock::Axis::Z).ID: return 8722; case Bookshelf::Bookshelf().ID: return 1431; case BrainCoral::BrainCoral().ID: return 8997; case BrainCoralBlock::BrainCoralBlock().ID: return 8980; case BrainCoralFan::BrainCoralFan().ID: return 9017; case BrainCoralWallFan::BrainCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9073; case BrainCoralWallFan::BrainCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9075; case BrainCoralWallFan::BrainCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9077; case BrainCoralWallFan::BrainCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9079; case BrewingStand::BrewingStand(true, true, true).ID: return 5117; case BrewingStand::BrewingStand(true, true, false).ID: return 5118; case BrewingStand::BrewingStand(true, false, true).ID: return 5119; case BrewingStand::BrewingStand(true, false, false).ID: return 5120; case BrewingStand::BrewingStand(false, true, true).ID: return 5121; case BrewingStand::BrewingStand(false, true, false).ID: return 5122; case BrewingStand::BrewingStand(false, false, true).ID: return 5123; case BrewingStand::BrewingStand(false, false, false).ID: return 5124; case BrickSlab::BrickSlab(BrickSlab::Type::Top).ID: return 7837; case BrickSlab::BrickSlab(BrickSlab::Type::Bottom).ID: return 7839; case BrickSlab::BrickSlab(BrickSlab::Type::Double).ID: return 7841; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Top, BrickStairs::Shape::Straight).ID: return 4837; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Top, BrickStairs::Shape::InnerLeft).ID: return 4839; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Top, BrickStairs::Shape::InnerRight).ID: return 4841; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Top, BrickStairs::Shape::OuterLeft).ID: return 4843; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Top, BrickStairs::Shape::OuterRight).ID: return 4845; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Bottom, BrickStairs::Shape::Straight).ID: return 4847; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerLeft).ID: return 4849; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerRight).ID: return 4851; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterLeft).ID: return 4853; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZM, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterRight).ID: return 4855; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Top, BrickStairs::Shape::Straight).ID: return 4857; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Top, BrickStairs::Shape::InnerLeft).ID: return 4859; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Top, BrickStairs::Shape::InnerRight).ID: return 4861; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Top, BrickStairs::Shape::OuterLeft).ID: return 4863; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Top, BrickStairs::Shape::OuterRight).ID: return 4865; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Bottom, BrickStairs::Shape::Straight).ID: return 4867; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerLeft).ID: return 4869; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerRight).ID: return 4871; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterLeft).ID: return 4873; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_ZP, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterRight).ID: return 4875; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Top, BrickStairs::Shape::Straight).ID: return 4877; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Top, BrickStairs::Shape::InnerLeft).ID: return 4879; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Top, BrickStairs::Shape::InnerRight).ID: return 4881; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Top, BrickStairs::Shape::OuterLeft).ID: return 4883; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Top, BrickStairs::Shape::OuterRight).ID: return 4885; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Bottom, BrickStairs::Shape::Straight).ID: return 4887; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerLeft).ID: return 4889; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerRight).ID: return 4891; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterLeft).ID: return 4893; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XM, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterRight).ID: return 4895; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Top, BrickStairs::Shape::Straight).ID: return 4897; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Top, BrickStairs::Shape::InnerLeft).ID: return 4899; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Top, BrickStairs::Shape::InnerRight).ID: return 4901; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Top, BrickStairs::Shape::OuterLeft).ID: return 4903; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Top, BrickStairs::Shape::OuterRight).ID: return 4905; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Bottom, BrickStairs::Shape::Straight).ID: return 4907; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerLeft).ID: return 4909; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Bottom, BrickStairs::Shape::InnerRight).ID: return 4911; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterLeft).ID: return 4913; case BrickStairs::BrickStairs(eBlockFace::BLOCK_FACE_XP, BrickStairs::Half::Bottom, BrickStairs::Shape::OuterRight).ID: return 4915; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::Low, true, BrickWall::West::Low).ID: return 10333; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::Low, true, BrickWall::West::None).ID: return 10334; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::Low, false, BrickWall::West::Low).ID: return 10337; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::Low, false, BrickWall::West::None).ID: return 10338; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::None, true, BrickWall::West::Low).ID: return 10341; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::None, true, BrickWall::West::None).ID: return 10342; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::None, false, BrickWall::West::Low).ID: return 10345; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::Low, BrickWall::South::None, false, BrickWall::West::None).ID: return 10346; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::Low, true, BrickWall::West::Low).ID: return 10349; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::Low, true, BrickWall::West::None).ID: return 10350; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::Low, false, BrickWall::West::Low).ID: return 10353; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::Low, false, BrickWall::West::None).ID: return 10354; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::None, true, BrickWall::West::Low).ID: return 10357; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::None, true, BrickWall::West::None).ID: return 10358; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::None, false, BrickWall::West::Low).ID: return 10361; case BrickWall::BrickWall(BrickWall::East::Low, BrickWall::North::None, BrickWall::South::None, false, BrickWall::West::None).ID: return 10362; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::Low, true, BrickWall::West::Low).ID: return 10365; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::Low, true, BrickWall::West::None).ID: return 10366; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::Low, false, BrickWall::West::Low).ID: return 10369; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::Low, false, BrickWall::West::None).ID: return 10370; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::None, true, BrickWall::West::Low).ID: return 10373; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::None, true, BrickWall::West::None).ID: return 10374; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::None, false, BrickWall::West::Low).ID: return 10377; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::Low, BrickWall::South::None, false, BrickWall::West::None).ID: return 10378; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::Low, true, BrickWall::West::Low).ID: return 10381; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::Low, true, BrickWall::West::None).ID: return 10382; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::Low, false, BrickWall::West::Low).ID: return 10385; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::Low, false, BrickWall::West::None).ID: return 10386; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::None, true, BrickWall::West::Low).ID: return 10389; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::None, true, BrickWall::West::None).ID: return 10390; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::None, false, BrickWall::West::Low).ID: return 10393; case BrickWall::BrickWall(BrickWall::East::None, BrickWall::North::None, BrickWall::South::None, false, BrickWall::West::None).ID: return 10394; case Bricks::Bricks().ID: return 1428; case BrownBanner::BrownBanner(0).ID: return 7553; case BrownBanner::BrownBanner(1).ID: return 7554; case BrownBanner::BrownBanner(2).ID: return 7555; case BrownBanner::BrownBanner(3).ID: return 7556; case BrownBanner::BrownBanner(4).ID: return 7557; case BrownBanner::BrownBanner(5).ID: return 7558; case BrownBanner::BrownBanner(6).ID: return 7559; case BrownBanner::BrownBanner(7).ID: return 7560; case BrownBanner::BrownBanner(8).ID: return 7561; case BrownBanner::BrownBanner(9).ID: return 7562; case BrownBanner::BrownBanner(10).ID: return 7563; case BrownBanner::BrownBanner(11).ID: return 7564; case BrownBanner::BrownBanner(12).ID: return 7565; case BrownBanner::BrownBanner(13).ID: return 7566; case BrownBanner::BrownBanner(14).ID: return 7567; case BrownBanner::BrownBanner(15).ID: return 7568; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZM, true, BrownBed::Part::Head).ID: return 1240; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZM, true, BrownBed::Part::Foot).ID: return 1241; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZM, false, BrownBed::Part::Head).ID: return 1242; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZM, false, BrownBed::Part::Foot).ID: return 1243; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZP, true, BrownBed::Part::Head).ID: return 1244; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZP, true, BrownBed::Part::Foot).ID: return 1245; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZP, false, BrownBed::Part::Head).ID: return 1246; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_ZP, false, BrownBed::Part::Foot).ID: return 1247; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XM, true, BrownBed::Part::Head).ID: return 1248; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XM, true, BrownBed::Part::Foot).ID: return 1249; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XM, false, BrownBed::Part::Head).ID: return 1250; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XM, false, BrownBed::Part::Foot).ID: return 1251; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XP, true, BrownBed::Part::Head).ID: return 1252; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XP, true, BrownBed::Part::Foot).ID: return 1253; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XP, false, BrownBed::Part::Head).ID: return 1254; case BrownBed::BrownBed(eBlockFace::BLOCK_FACE_XP, false, BrownBed::Part::Foot).ID: return 1255; case BrownCarpet::BrownCarpet().ID: return 7342; case BrownConcrete::BrownConcrete().ID: return 8914; case BrownConcretePowder::BrownConcretePowder().ID: return 8930; case BrownGlazedTerracotta::BrownGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8886; case BrownGlazedTerracotta::BrownGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8887; case BrownGlazedTerracotta::BrownGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8888; case BrownGlazedTerracotta::BrownGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8889; case BrownMushroom::BrownMushroom().ID: return 1424; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, true, true, true).ID: return 4491; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, true, true, false).ID: return 4492; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, true, false, true).ID: return 4493; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, true, false, false).ID: return 4494; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, false, true, true).ID: return 4495; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, false, true, false).ID: return 4496; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, false, false, true).ID: return 4497; case BrownMushroomBlock::BrownMushroomBlock(true, true, true, false, false, false).ID: return 4498; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, true, true, true).ID: return 4499; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, true, true, false).ID: return 4500; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, true, false, true).ID: return 4501; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, true, false, false).ID: return 4502; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, false, true, true).ID: return 4503; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, false, true, false).ID: return 4504; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, false, false, true).ID: return 4505; case BrownMushroomBlock::BrownMushroomBlock(true, true, false, false, false, false).ID: return 4506; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, true, true, true).ID: return 4507; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, true, true, false).ID: return 4508; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, true, false, true).ID: return 4509; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, true, false, false).ID: return 4510; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, false, true, true).ID: return 4511; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, false, true, false).ID: return 4512; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, false, false, true).ID: return 4513; case BrownMushroomBlock::BrownMushroomBlock(true, false, true, false, false, false).ID: return 4514; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, true, true, true).ID: return 4515; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, true, true, false).ID: return 4516; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, true, false, true).ID: return 4517; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, true, false, false).ID: return 4518; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, false, true, true).ID: return 4519; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, false, true, false).ID: return 4520; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, false, false, true).ID: return 4521; case BrownMushroomBlock::BrownMushroomBlock(true, false, false, false, false, false).ID: return 4522; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, true, true, true).ID: return 4523; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, true, true, false).ID: return 4524; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, true, false, true).ID: return 4525; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, true, false, false).ID: return 4526; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, false, true, true).ID: return 4527; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, false, true, false).ID: return 4528; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, false, false, true).ID: return 4529; case BrownMushroomBlock::BrownMushroomBlock(false, true, true, false, false, false).ID: return 4530; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, true, true, true).ID: return 4531; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, true, true, false).ID: return 4532; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, true, false, true).ID: return 4533; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, true, false, false).ID: return 4534; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, false, true, true).ID: return 4535; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, false, true, false).ID: return 4536; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, false, false, true).ID: return 4537; case BrownMushroomBlock::BrownMushroomBlock(false, true, false, false, false, false).ID: return 4538; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, true, true, true).ID: return 4539; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, true, true, false).ID: return 4540; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, true, false, true).ID: return 4541; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, true, false, false).ID: return 4542; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, false, true, true).ID: return 4543; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, false, true, false).ID: return 4544; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, false, false, true).ID: return 4545; case BrownMushroomBlock::BrownMushroomBlock(false, false, true, false, false, false).ID: return 4546; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, true, true, true).ID: return 4547; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, true, true, false).ID: return 4548; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, true, false, true).ID: return 4549; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, true, false, false).ID: return 4550; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, false, true, true).ID: return 4551; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, false, true, false).ID: return 4552; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, false, false, true).ID: return 4553; case BrownMushroomBlock::BrownMushroomBlock(false, false, false, false, false, false).ID: return 4554; case BrownShulkerBox::BrownShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8814; case BrownShulkerBox::BrownShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8815; case BrownShulkerBox::BrownShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8816; case BrownShulkerBox::BrownShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8817; case BrownShulkerBox::BrownShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8818; case BrownShulkerBox::BrownShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8819; case BrownStainedGlass::BrownStainedGlass().ID: return 4093; case BrownStainedGlassPane::BrownStainedGlassPane(true, true, true, true).ID: return 6713; case BrownStainedGlassPane::BrownStainedGlassPane(true, true, true, false).ID: return 6714; case BrownStainedGlassPane::BrownStainedGlassPane(true, true, false, true).ID: return 6717; case BrownStainedGlassPane::BrownStainedGlassPane(true, true, false, false).ID: return 6718; case BrownStainedGlassPane::BrownStainedGlassPane(true, false, true, true).ID: return 6721; case BrownStainedGlassPane::BrownStainedGlassPane(true, false, true, false).ID: return 6722; case BrownStainedGlassPane::BrownStainedGlassPane(true, false, false, true).ID: return 6725; case BrownStainedGlassPane::BrownStainedGlassPane(true, false, false, false).ID: return 6726; case BrownStainedGlassPane::BrownStainedGlassPane(false, true, true, true).ID: return 6729; case BrownStainedGlassPane::BrownStainedGlassPane(false, true, true, false).ID: return 6730; case BrownStainedGlassPane::BrownStainedGlassPane(false, true, false, true).ID: return 6733; case BrownStainedGlassPane::BrownStainedGlassPane(false, true, false, false).ID: return 6734; case BrownStainedGlassPane::BrownStainedGlassPane(false, false, true, true).ID: return 6737; case BrownStainedGlassPane::BrownStainedGlassPane(false, false, true, false).ID: return 6738; case BrownStainedGlassPane::BrownStainedGlassPane(false, false, false, true).ID: return 6741; case BrownStainedGlassPane::BrownStainedGlassPane(false, false, false, false).ID: return 6742; case BrownTerracotta::BrownTerracotta().ID: return 6323; case BrownWallBanner::BrownWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7665; case BrownWallBanner::BrownWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7666; case BrownWallBanner::BrownWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7667; case BrownWallBanner::BrownWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7668; case BrownWool::BrownWool().ID: return 1395; case BubbleColumn::BubbleColumn(true).ID: return 9131; case BubbleColumn::BubbleColumn(false).ID: return 9132; case BubbleCoral::BubbleCoral().ID: return 8999; case BubbleCoralBlock::BubbleCoralBlock().ID: return 8981; case BubbleCoralFan::BubbleCoralFan().ID: return 9019; case BubbleCoralWallFan::BubbleCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9081; case BubbleCoralWallFan::BubbleCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9083; case BubbleCoralWallFan::BubbleCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9085; case BubbleCoralWallFan::BubbleCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9087; case Cactus::Cactus(0).ID: return 3929; case Cactus::Cactus(1).ID: return 3930; case Cactus::Cactus(2).ID: return 3931; case Cactus::Cactus(3).ID: return 3932; case Cactus::Cactus(4).ID: return 3933; case Cactus::Cactus(5).ID: return 3934; case Cactus::Cactus(6).ID: return 3935; case Cactus::Cactus(7).ID: return 3936; case Cactus::Cactus(8).ID: return 3937; case Cactus::Cactus(9).ID: return 3938; case Cactus::Cactus(10).ID: return 3939; case Cactus::Cactus(11).ID: return 3940; case Cactus::Cactus(12).ID: return 3941; case Cactus::Cactus(13).ID: return 3942; case Cactus::Cactus(14).ID: return 3943; case Cactus::Cactus(15).ID: return 3944; case Cake::Cake(0).ID: return 4010; case Cake::Cake(1).ID: return 4011; case Cake::Cake(2).ID: return 4012; case Cake::Cake(3).ID: return 4013; case Cake::Cake(4).ID: return 4014; case Cake::Cake(5).ID: return 4015; case Cake::Cake(6).ID: return 4016; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZM, true, true).ID: return 11233; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZM, true, false).ID: return 11235; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZM, false, true).ID: return 11237; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZM, false, false).ID: return 11239; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZP, true, true).ID: return 11241; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZP, true, false).ID: return 11243; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZP, false, true).ID: return 11245; case Campfire::Campfire(eBlockFace::BLOCK_FACE_ZP, false, false).ID: return 11247; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XM, true, true).ID: return 11249; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XM, true, false).ID: return 11251; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XM, false, true).ID: return 11253; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XM, false, false).ID: return 11255; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XP, true, true).ID: return 11257; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XP, true, false).ID: return 11259; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XP, false, true).ID: return 11261; case Campfire::Campfire(eBlockFace::BLOCK_FACE_XP, false, false).ID: return 11263; case Carrots::Carrots(0).ID: return 5794; case Carrots::Carrots(1).ID: return 5795; case Carrots::Carrots(2).ID: return 5796; case Carrots::Carrots(3).ID: return 5797; case Carrots::Carrots(4).ID: return 5798; case Carrots::Carrots(5).ID: return 5799; case Carrots::Carrots(6).ID: return 5800; case Carrots::Carrots(7).ID: return 5801; case CartographyTable::CartographyTable().ID: return 11163; case CarvedPumpkin::CarvedPumpkin(eBlockFace::BLOCK_FACE_ZM).ID: return 4002; case CarvedPumpkin::CarvedPumpkin(eBlockFace::BLOCK_FACE_ZP).ID: return 4003; case CarvedPumpkin::CarvedPumpkin(eBlockFace::BLOCK_FACE_XM).ID: return 4004; case CarvedPumpkin::CarvedPumpkin(eBlockFace::BLOCK_FACE_XP).ID: return 4005; case Cauldron::Cauldron(0).ID: return 5125; case Cauldron::Cauldron(1).ID: return 5126; case Cauldron::Cauldron(2).ID: return 5127; case Cauldron::Cauldron(3).ID: return 5128; case CaveAir::CaveAir().ID: return 9130; case ChainCommandBlock::ChainCommandBlock(true, eBlockFace::BLOCK_FACE_ZM).ID: return 8701; case ChainCommandBlock::ChainCommandBlock(true, eBlockFace::BLOCK_FACE_XP).ID: return 8702; case ChainCommandBlock::ChainCommandBlock(true, eBlockFace::BLOCK_FACE_ZP).ID: return 8703; case ChainCommandBlock::ChainCommandBlock(true, eBlockFace::BLOCK_FACE_XM).ID: return 8704; case ChainCommandBlock::ChainCommandBlock(true, eBlockFace::BLOCK_FACE_YP).ID: return 8705; case ChainCommandBlock::ChainCommandBlock(true, eBlockFace::BLOCK_FACE_YM).ID: return 8706; case ChainCommandBlock::ChainCommandBlock(false, eBlockFace::BLOCK_FACE_ZM).ID: return 8707; case ChainCommandBlock::ChainCommandBlock(false, eBlockFace::BLOCK_FACE_XP).ID: return 8708; case ChainCommandBlock::ChainCommandBlock(false, eBlockFace::BLOCK_FACE_ZP).ID: return 8709; case ChainCommandBlock::ChainCommandBlock(false, eBlockFace::BLOCK_FACE_XM).ID: return 8710; case ChainCommandBlock::ChainCommandBlock(false, eBlockFace::BLOCK_FACE_YP).ID: return 8711; case ChainCommandBlock::ChainCommandBlock(false, eBlockFace::BLOCK_FACE_YM).ID: return 8712; case Chest::Chest(eBlockFace::BLOCK_FACE_ZM, Chest::Type::Single).ID: return 2033; case Chest::Chest(eBlockFace::BLOCK_FACE_ZM, Chest::Type::Left).ID: return 2035; case Chest::Chest(eBlockFace::BLOCK_FACE_ZM, Chest::Type::Right).ID: return 2037; case Chest::Chest(eBlockFace::BLOCK_FACE_ZP, Chest::Type::Single).ID: return 2039; case Chest::Chest(eBlockFace::BLOCK_FACE_ZP, Chest::Type::Left).ID: return 2041; case Chest::Chest(eBlockFace::BLOCK_FACE_ZP, Chest::Type::Right).ID: return 2043; case Chest::Chest(eBlockFace::BLOCK_FACE_XM, Chest::Type::Single).ID: return 2045; case Chest::Chest(eBlockFace::BLOCK_FACE_XM, Chest::Type::Left).ID: return 2047; case Chest::Chest(eBlockFace::BLOCK_FACE_XM, Chest::Type::Right).ID: return 2049; case Chest::Chest(eBlockFace::BLOCK_FACE_XP, Chest::Type::Single).ID: return 2051; case Chest::Chest(eBlockFace::BLOCK_FACE_XP, Chest::Type::Left).ID: return 2053; case Chest::Chest(eBlockFace::BLOCK_FACE_XP, Chest::Type::Right).ID: return 2055; case ChippedAnvil::ChippedAnvil(eBlockFace::BLOCK_FACE_ZM).ID: return 6078; case ChippedAnvil::ChippedAnvil(eBlockFace::BLOCK_FACE_ZP).ID: return 6079; case ChippedAnvil::ChippedAnvil(eBlockFace::BLOCK_FACE_XM).ID: return 6080; case ChippedAnvil::ChippedAnvil(eBlockFace::BLOCK_FACE_XP).ID: return 6081; case ChiseledQuartzBlock::ChiseledQuartzBlock().ID: return 6203; case ChiseledRedSandstone::ChiseledRedSandstone().ID: return 7682; case ChiseledSandstone::ChiseledSandstone().ID: return 246; case ChiseledStoneBricks::ChiseledStoneBricks().ID: return 4484; case ChorusFlower::ChorusFlower(0).ID: return 8592; case ChorusFlower::ChorusFlower(1).ID: return 8593; case ChorusFlower::ChorusFlower(2).ID: return 8594; case ChorusFlower::ChorusFlower(3).ID: return 8595; case ChorusFlower::ChorusFlower(4).ID: return 8596; case ChorusFlower::ChorusFlower(5).ID: return 8597; case ChorusPlant::ChorusPlant(true, true, true, true, true, true).ID: return 8528; case ChorusPlant::ChorusPlant(true, true, true, true, true, false).ID: return 8529; case ChorusPlant::ChorusPlant(true, true, true, true, false, true).ID: return 8530; case ChorusPlant::ChorusPlant(true, true, true, true, false, false).ID: return 8531; case ChorusPlant::ChorusPlant(true, true, true, false, true, true).ID: return 8532; case ChorusPlant::ChorusPlant(true, true, true, false, true, false).ID: return 8533; case ChorusPlant::ChorusPlant(true, true, true, false, false, true).ID: return 8534; case ChorusPlant::ChorusPlant(true, true, true, false, false, false).ID: return 8535; case ChorusPlant::ChorusPlant(true, true, false, true, true, true).ID: return 8536; case ChorusPlant::ChorusPlant(true, true, false, true, true, false).ID: return 8537; case ChorusPlant::ChorusPlant(true, true, false, true, false, true).ID: return 8538; case ChorusPlant::ChorusPlant(true, true, false, true, false, false).ID: return 8539; case ChorusPlant::ChorusPlant(true, true, false, false, true, true).ID: return 8540; case ChorusPlant::ChorusPlant(true, true, false, false, true, false).ID: return 8541; case ChorusPlant::ChorusPlant(true, true, false, false, false, true).ID: return 8542; case ChorusPlant::ChorusPlant(true, true, false, false, false, false).ID: return 8543; case ChorusPlant::ChorusPlant(true, false, true, true, true, true).ID: return 8544; case ChorusPlant::ChorusPlant(true, false, true, true, true, false).ID: return 8545; case ChorusPlant::ChorusPlant(true, false, true, true, false, true).ID: return 8546; case ChorusPlant::ChorusPlant(true, false, true, true, false, false).ID: return 8547; case ChorusPlant::ChorusPlant(true, false, true, false, true, true).ID: return 8548; case ChorusPlant::ChorusPlant(true, false, true, false, true, false).ID: return 8549; case ChorusPlant::ChorusPlant(true, false, true, false, false, true).ID: return 8550; case ChorusPlant::ChorusPlant(true, false, true, false, false, false).ID: return 8551; case ChorusPlant::ChorusPlant(true, false, false, true, true, true).ID: return 8552; case ChorusPlant::ChorusPlant(true, false, false, true, true, false).ID: return 8553; case ChorusPlant::ChorusPlant(true, false, false, true, false, true).ID: return 8554; case ChorusPlant::ChorusPlant(true, false, false, true, false, false).ID: return 8555; case ChorusPlant::ChorusPlant(true, false, false, false, true, true).ID: return 8556; case ChorusPlant::ChorusPlant(true, false, false, false, true, false).ID: return 8557; case ChorusPlant::ChorusPlant(true, false, false, false, false, true).ID: return 8558; case ChorusPlant::ChorusPlant(true, false, false, false, false, false).ID: return 8559; case ChorusPlant::ChorusPlant(false, true, true, true, true, true).ID: return 8560; case ChorusPlant::ChorusPlant(false, true, true, true, true, false).ID: return 8561; case ChorusPlant::ChorusPlant(false, true, true, true, false, true).ID: return 8562; case ChorusPlant::ChorusPlant(false, true, true, true, false, false).ID: return 8563; case ChorusPlant::ChorusPlant(false, true, true, false, true, true).ID: return 8564; case ChorusPlant::ChorusPlant(false, true, true, false, true, false).ID: return 8565; case ChorusPlant::ChorusPlant(false, true, true, false, false, true).ID: return 8566; case ChorusPlant::ChorusPlant(false, true, true, false, false, false).ID: return 8567; case ChorusPlant::ChorusPlant(false, true, false, true, true, true).ID: return 8568; case ChorusPlant::ChorusPlant(false, true, false, true, true, false).ID: return 8569; case ChorusPlant::ChorusPlant(false, true, false, true, false, true).ID: return 8570; case ChorusPlant::ChorusPlant(false, true, false, true, false, false).ID: return 8571; case ChorusPlant::ChorusPlant(false, true, false, false, true, true).ID: return 8572; case ChorusPlant::ChorusPlant(false, true, false, false, true, false).ID: return 8573; case ChorusPlant::ChorusPlant(false, true, false, false, false, true).ID: return 8574; case ChorusPlant::ChorusPlant(false, true, false, false, false, false).ID: return 8575; case ChorusPlant::ChorusPlant(false, false, true, true, true, true).ID: return 8576; case ChorusPlant::ChorusPlant(false, false, true, true, true, false).ID: return 8577; case ChorusPlant::ChorusPlant(false, false, true, true, false, true).ID: return 8578; case ChorusPlant::ChorusPlant(false, false, true, true, false, false).ID: return 8579; case ChorusPlant::ChorusPlant(false, false, true, false, true, true).ID: return 8580; case ChorusPlant::ChorusPlant(false, false, true, false, true, false).ID: return 8581; case ChorusPlant::ChorusPlant(false, false, true, false, false, true).ID: return 8582; case ChorusPlant::ChorusPlant(false, false, true, false, false, false).ID: return 8583; case ChorusPlant::ChorusPlant(false, false, false, true, true, true).ID: return 8584; case ChorusPlant::ChorusPlant(false, false, false, true, true, false).ID: return 8585; case ChorusPlant::ChorusPlant(false, false, false, true, false, true).ID: return 8586; case ChorusPlant::ChorusPlant(false, false, false, true, false, false).ID: return 8587; case ChorusPlant::ChorusPlant(false, false, false, false, true, true).ID: return 8588; case ChorusPlant::ChorusPlant(false, false, false, false, true, false).ID: return 8589; case ChorusPlant::ChorusPlant(false, false, false, false, false, true).ID: return 8590; case ChorusPlant::ChorusPlant(false, false, false, false, false, false).ID: return 8591; case Clay::Clay().ID: return 3945; case CoalBlock::CoalBlock().ID: return 7347; case CoalOre::CoalOre().ID: return 71; case CoarseDirt::CoarseDirt().ID: return 11; case Cobblestone::Cobblestone().ID: return 14; case CobblestoneSlab::CobblestoneSlab(CobblestoneSlab::Type::Top).ID: return 7831; case CobblestoneSlab::CobblestoneSlab(CobblestoneSlab::Type::Bottom).ID: return 7833; case CobblestoneSlab::CobblestoneSlab(CobblestoneSlab::Type::Double).ID: return 7835; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::Straight).ID: return 3654; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerLeft).ID: return 3656; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerRight).ID: return 3658; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterLeft).ID: return 3660; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterRight).ID: return 3662; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::Straight).ID: return 3664; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerLeft).ID: return 3666; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerRight).ID: return 3668; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterLeft).ID: return 3670; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterRight).ID: return 3672; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::Straight).ID: return 3674; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerLeft).ID: return 3676; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerRight).ID: return 3678; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterLeft).ID: return 3680; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterRight).ID: return 3682; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::Straight).ID: return 3684; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerLeft).ID: return 3686; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerRight).ID: return 3688; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterLeft).ID: return 3690; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterRight).ID: return 3692; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::Straight).ID: return 3694; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerLeft).ID: return 3696; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerRight).ID: return 3698; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterLeft).ID: return 3700; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterRight).ID: return 3702; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::Straight).ID: return 3704; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerLeft).ID: return 3706; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerRight).ID: return 3708; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterLeft).ID: return 3710; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XM, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterRight).ID: return 3712; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::Straight).ID: return 3714; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerLeft).ID: return 3716; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::InnerRight).ID: return 3718; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterLeft).ID: return 3720; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Top, CobblestoneStairs::Shape::OuterRight).ID: return 3722; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::Straight).ID: return 3724; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerLeft).ID: return 3726; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::InnerRight).ID: return 3728; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterLeft).ID: return 3730; case CobblestoneStairs::CobblestoneStairs(eBlockFace::BLOCK_FACE_XP, CobblestoneStairs::Half::Bottom, CobblestoneStairs::Shape::OuterRight).ID: return 3732; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::Low, true, CobblestoneWall::West::Low).ID: return 5643; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::Low, true, CobblestoneWall::West::None).ID: return 5644; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::Low, false, CobblestoneWall::West::Low).ID: return 5647; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::Low, false, CobblestoneWall::West::None).ID: return 5648; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::None, true, CobblestoneWall::West::Low).ID: return 5651; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::None, true, CobblestoneWall::West::None).ID: return 5652; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::None, false, CobblestoneWall::West::Low).ID: return 5655; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::Low, CobblestoneWall::South::None, false, CobblestoneWall::West::None).ID: return 5656; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::Low, true, CobblestoneWall::West::Low).ID: return 5659; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::Low, true, CobblestoneWall::West::None).ID: return 5660; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::Low, false, CobblestoneWall::West::Low).ID: return 5663; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::Low, false, CobblestoneWall::West::None).ID: return 5664; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::None, true, CobblestoneWall::West::Low).ID: return 5667; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::None, true, CobblestoneWall::West::None).ID: return 5668; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::None, false, CobblestoneWall::West::Low).ID: return 5671; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::Low, CobblestoneWall::North::None, CobblestoneWall::South::None, false, CobblestoneWall::West::None).ID: return 5672; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::Low, true, CobblestoneWall::West::Low).ID: return 5675; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::Low, true, CobblestoneWall::West::None).ID: return 5676; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::Low, false, CobblestoneWall::West::Low).ID: return 5679; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::Low, false, CobblestoneWall::West::None).ID: return 5680; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::None, true, CobblestoneWall::West::Low).ID: return 5683; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::None, true, CobblestoneWall::West::None).ID: return 5684; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::None, false, CobblestoneWall::West::Low).ID: return 5687; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::Low, CobblestoneWall::South::None, false, CobblestoneWall::West::None).ID: return 5688; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::Low, true, CobblestoneWall::West::Low).ID: return 5691; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::Low, true, CobblestoneWall::West::None).ID: return 5692; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::Low, false, CobblestoneWall::West::Low).ID: return 5695; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::Low, false, CobblestoneWall::West::None).ID: return 5696; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::None, true, CobblestoneWall::West::Low).ID: return 5699; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::None, true, CobblestoneWall::West::None).ID: return 5700; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::None, false, CobblestoneWall::West::Low).ID: return 5703; case CobblestoneWall::CobblestoneWall(CobblestoneWall::East::None, CobblestoneWall::North::None, CobblestoneWall::South::None, false, CobblestoneWall::West::None).ID: return 5704; case Cobweb::Cobweb().ID: return 1340; case Cocoa::Cocoa(0, eBlockFace::BLOCK_FACE_ZM).ID: return 5142; case Cocoa::Cocoa(0, eBlockFace::BLOCK_FACE_ZP).ID: return 5143; case Cocoa::Cocoa(0, eBlockFace::BLOCK_FACE_XM).ID: return 5144; case Cocoa::Cocoa(0, eBlockFace::BLOCK_FACE_XP).ID: return 5145; case Cocoa::Cocoa(1, eBlockFace::BLOCK_FACE_ZM).ID: return 5146; case Cocoa::Cocoa(1, eBlockFace::BLOCK_FACE_ZP).ID: return 5147; case Cocoa::Cocoa(1, eBlockFace::BLOCK_FACE_XM).ID: return 5148; case Cocoa::Cocoa(1, eBlockFace::BLOCK_FACE_XP).ID: return 5149; case Cocoa::Cocoa(2, eBlockFace::BLOCK_FACE_ZM).ID: return 5150; case Cocoa::Cocoa(2, eBlockFace::BLOCK_FACE_ZP).ID: return 5151; case Cocoa::Cocoa(2, eBlockFace::BLOCK_FACE_XM).ID: return 5152; case Cocoa::Cocoa(2, eBlockFace::BLOCK_FACE_XP).ID: return 5153; case CommandBlock::CommandBlock(true, eBlockFace::BLOCK_FACE_ZM).ID: return 5628; case CommandBlock::CommandBlock(true, eBlockFace::BLOCK_FACE_XP).ID: return 5629; case CommandBlock::CommandBlock(true, eBlockFace::BLOCK_FACE_ZP).ID: return 5630; case CommandBlock::CommandBlock(true, eBlockFace::BLOCK_FACE_XM).ID: return 5631; case CommandBlock::CommandBlock(true, eBlockFace::BLOCK_FACE_YP).ID: return 5632; case CommandBlock::CommandBlock(true, eBlockFace::BLOCK_FACE_YM).ID: return 5633; case CommandBlock::CommandBlock(false, eBlockFace::BLOCK_FACE_ZM).ID: return 5634; case CommandBlock::CommandBlock(false, eBlockFace::BLOCK_FACE_XP).ID: return 5635; case CommandBlock::CommandBlock(false, eBlockFace::BLOCK_FACE_ZP).ID: return 5636; case CommandBlock::CommandBlock(false, eBlockFace::BLOCK_FACE_XM).ID: return 5637; case CommandBlock::CommandBlock(false, eBlockFace::BLOCK_FACE_YP).ID: return 5638; case CommandBlock::CommandBlock(false, eBlockFace::BLOCK_FACE_YM).ID: return 5639; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZM, Comparator::Mode::Compare, true).ID: return 6142; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZM, Comparator::Mode::Compare, false).ID: return 6143; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZM, Comparator::Mode::Subtract, true).ID: return 6144; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZM, Comparator::Mode::Subtract, false).ID: return 6145; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZP, Comparator::Mode::Compare, true).ID: return 6146; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZP, Comparator::Mode::Compare, false).ID: return 6147; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZP, Comparator::Mode::Subtract, true).ID: return 6148; case Comparator::Comparator(eBlockFace::BLOCK_FACE_ZP, Comparator::Mode::Subtract, false).ID: return 6149; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XM, Comparator::Mode::Compare, true).ID: return 6150; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XM, Comparator::Mode::Compare, false).ID: return 6151; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XM, Comparator::Mode::Subtract, true).ID: return 6152; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XM, Comparator::Mode::Subtract, false).ID: return 6153; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XP, Comparator::Mode::Compare, true).ID: return 6154; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XP, Comparator::Mode::Compare, false).ID: return 6155; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XP, Comparator::Mode::Subtract, true).ID: return 6156; case Comparator::Comparator(eBlockFace::BLOCK_FACE_XP, Comparator::Mode::Subtract, false).ID: return 6157; case Composter::Composter(0).ID: return 11278; case Composter::Composter(1).ID: return 11279; case Composter::Composter(2).ID: return 11280; case Composter::Composter(3).ID: return 11281; case Composter::Composter(4).ID: return 11282; case Composter::Composter(5).ID: return 11283; case Composter::Composter(6).ID: return 11284; case Composter::Composter(7).ID: return 11285; case Composter::Composter(8).ID: return 11286; case Conduit::Conduit().ID: return 9114; case Cornflower::Cornflower().ID: return 1421; case CrackedStoneBricks::CrackedStoneBricks().ID: return 4483; case CraftingTable::CraftingTable().ID: return 3354; case CreeperHead::CreeperHead(0).ID: return 6034; case CreeperHead::CreeperHead(1).ID: return 6035; case CreeperHead::CreeperHead(2).ID: return 6036; case CreeperHead::CreeperHead(3).ID: return 6037; case CreeperHead::CreeperHead(4).ID: return 6038; case CreeperHead::CreeperHead(5).ID: return 6039; case CreeperHead::CreeperHead(6).ID: return 6040; case CreeperHead::CreeperHead(7).ID: return 6041; case CreeperHead::CreeperHead(8).ID: return 6042; case CreeperHead::CreeperHead(9).ID: return 6043; case CreeperHead::CreeperHead(10).ID: return 6044; case CreeperHead::CreeperHead(11).ID: return 6045; case CreeperHead::CreeperHead(12).ID: return 6046; case CreeperHead::CreeperHead(13).ID: return 6047; case CreeperHead::CreeperHead(14).ID: return 6048; case CreeperHead::CreeperHead(15).ID: return 6049; case CreeperWallHead::CreeperWallHead(eBlockFace::BLOCK_FACE_ZM).ID: return 6050; case CreeperWallHead::CreeperWallHead(eBlockFace::BLOCK_FACE_ZP).ID: return 6051; case CreeperWallHead::CreeperWallHead(eBlockFace::BLOCK_FACE_XM).ID: return 6052; case CreeperWallHead::CreeperWallHead(eBlockFace::BLOCK_FACE_XP).ID: return 6053; case CutRedSandstone::CutRedSandstone().ID: return 7683; case CutRedSandstoneSlab::CutRedSandstoneSlab(CutRedSandstoneSlab::Type::Top).ID: return 7867; case CutRedSandstoneSlab::CutRedSandstoneSlab(CutRedSandstoneSlab::Type::Bottom).ID: return 7869; case CutRedSandstoneSlab::CutRedSandstoneSlab(CutRedSandstoneSlab::Type::Double).ID: return 7871; case CutSandstone::CutSandstone().ID: return 247; case CutSandstoneSlab::CutSandstoneSlab(CutSandstoneSlab::Type::Top).ID: return 7819; case CutSandstoneSlab::CutSandstoneSlab(CutSandstoneSlab::Type::Bottom).ID: return 7821; case CutSandstoneSlab::CutSandstoneSlab(CutSandstoneSlab::Type::Double).ID: return 7823; case CyanBanner::CyanBanner(0).ID: return 7505; case CyanBanner::CyanBanner(1).ID: return 7506; case CyanBanner::CyanBanner(2).ID: return 7507; case CyanBanner::CyanBanner(3).ID: return 7508; case CyanBanner::CyanBanner(4).ID: return 7509; case CyanBanner::CyanBanner(5).ID: return 7510; case CyanBanner::CyanBanner(6).ID: return 7511; case CyanBanner::CyanBanner(7).ID: return 7512; case CyanBanner::CyanBanner(8).ID: return 7513; case CyanBanner::CyanBanner(9).ID: return 7514; case CyanBanner::CyanBanner(10).ID: return 7515; case CyanBanner::CyanBanner(11).ID: return 7516; case CyanBanner::CyanBanner(12).ID: return 7517; case CyanBanner::CyanBanner(13).ID: return 7518; case CyanBanner::CyanBanner(14).ID: return 7519; case CyanBanner::CyanBanner(15).ID: return 7520; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZM, true, CyanBed::Part::Head).ID: return 1192; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZM, true, CyanBed::Part::Foot).ID: return 1193; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZM, false, CyanBed::Part::Head).ID: return 1194; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZM, false, CyanBed::Part::Foot).ID: return 1195; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZP, true, CyanBed::Part::Head).ID: return 1196; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZP, true, CyanBed::Part::Foot).ID: return 1197; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZP, false, CyanBed::Part::Head).ID: return 1198; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_ZP, false, CyanBed::Part::Foot).ID: return 1199; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XM, true, CyanBed::Part::Head).ID: return 1200; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XM, true, CyanBed::Part::Foot).ID: return 1201; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XM, false, CyanBed::Part::Head).ID: return 1202; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XM, false, CyanBed::Part::Foot).ID: return 1203; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XP, true, CyanBed::Part::Head).ID: return 1204; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XP, true, CyanBed::Part::Foot).ID: return 1205; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XP, false, CyanBed::Part::Head).ID: return 1206; case CyanBed::CyanBed(eBlockFace::BLOCK_FACE_XP, false, CyanBed::Part::Foot).ID: return 1207; case CyanCarpet::CyanCarpet().ID: return 7339; case CyanConcrete::CyanConcrete().ID: return 8911; case CyanConcretePowder::CyanConcretePowder().ID: return 8927; case CyanGlazedTerracotta::CyanGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8874; case CyanGlazedTerracotta::CyanGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8875; case CyanGlazedTerracotta::CyanGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8876; case CyanGlazedTerracotta::CyanGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8877; case CyanShulkerBox::CyanShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8796; case CyanShulkerBox::CyanShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8797; case CyanShulkerBox::CyanShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8798; case CyanShulkerBox::CyanShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8799; case CyanShulkerBox::CyanShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8800; case CyanShulkerBox::CyanShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8801; case CyanStainedGlass::CyanStainedGlass().ID: return 4090; case CyanStainedGlassPane::CyanStainedGlassPane(true, true, true, true).ID: return 6617; case CyanStainedGlassPane::CyanStainedGlassPane(true, true, true, false).ID: return 6618; case CyanStainedGlassPane::CyanStainedGlassPane(true, true, false, true).ID: return 6621; case CyanStainedGlassPane::CyanStainedGlassPane(true, true, false, false).ID: return 6622; case CyanStainedGlassPane::CyanStainedGlassPane(true, false, true, true).ID: return 6625; case CyanStainedGlassPane::CyanStainedGlassPane(true, false, true, false).ID: return 6626; case CyanStainedGlassPane::CyanStainedGlassPane(true, false, false, true).ID: return 6629; case CyanStainedGlassPane::CyanStainedGlassPane(true, false, false, false).ID: return 6630; case CyanStainedGlassPane::CyanStainedGlassPane(false, true, true, true).ID: return 6633; case CyanStainedGlassPane::CyanStainedGlassPane(false, true, true, false).ID: return 6634; case CyanStainedGlassPane::CyanStainedGlassPane(false, true, false, true).ID: return 6637; case CyanStainedGlassPane::CyanStainedGlassPane(false, true, false, false).ID: return 6638; case CyanStainedGlassPane::CyanStainedGlassPane(false, false, true, true).ID: return 6641; case CyanStainedGlassPane::CyanStainedGlassPane(false, false, true, false).ID: return 6642; case CyanStainedGlassPane::CyanStainedGlassPane(false, false, false, true).ID: return 6645; case CyanStainedGlassPane::CyanStainedGlassPane(false, false, false, false).ID: return 6646; case CyanTerracotta::CyanTerracotta().ID: return 6320; case CyanWallBanner::CyanWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7653; case CyanWallBanner::CyanWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7654; case CyanWallBanner::CyanWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7655; case CyanWallBanner::CyanWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7656; case CyanWool::CyanWool().ID: return 1392; case DamagedAnvil::DamagedAnvil(eBlockFace::BLOCK_FACE_ZM).ID: return 6082; case DamagedAnvil::DamagedAnvil(eBlockFace::BLOCK_FACE_ZP).ID: return 6083; case DamagedAnvil::DamagedAnvil(eBlockFace::BLOCK_FACE_XM).ID: return 6084; case DamagedAnvil::DamagedAnvil(eBlockFace::BLOCK_FACE_XP).ID: return 6085; case Dandelion::Dandelion().ID: return 1411; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5930; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5931; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5932; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5933; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 5934; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 5935; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 5936; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 5937; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5938; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5939; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5940; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5941; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 5942; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 5943; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 5944; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 5945; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5946; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5947; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5948; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5949; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 5950; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 5951; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 5952; case DarkOakButton::DarkOakButton(DarkOakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 5953; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, true).ID: return 8458; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, false).ID: return 8459; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, true).ID: return 8460; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, false).ID: return 8461; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, true).ID: return 8462; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, false).ID: return 8463; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, true).ID: return 8464; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, false).ID: return 8465; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, true).ID: return 8466; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, false).ID: return 8467; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, true).ID: return 8468; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, false).ID: return 8469; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, true).ID: return 8470; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, false).ID: return 8471; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, true).ID: return 8472; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, false).ID: return 8473; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, true).ID: return 8474; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, false).ID: return 8475; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, true).ID: return 8476; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, false).ID: return 8477; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, true).ID: return 8478; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, false).ID: return 8479; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, true).ID: return 8480; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, false).ID: return 8481; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, true).ID: return 8482; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, false).ID: return 8483; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, true).ID: return 8484; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, false).ID: return 8485; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, true).ID: return 8486; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, false).ID: return 8487; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, true).ID: return 8488; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_ZP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, false).ID: return 8489; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, true).ID: return 8490; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, false).ID: return 8491; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, true).ID: return 8492; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, false).ID: return 8493; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, true).ID: return 8494; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, false).ID: return 8495; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, true).ID: return 8496; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, false).ID: return 8497; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, true).ID: return 8498; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, false).ID: return 8499; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, true).ID: return 8500; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, false).ID: return 8501; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, true).ID: return 8502; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, false).ID: return 8503; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, true).ID: return 8504; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XM, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, false).ID: return 8505; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, true).ID: return 8506; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, true, false).ID: return 8507; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, true).ID: return 8508; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Left, false, false).ID: return 8509; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, true).ID: return 8510; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, true, false).ID: return 8511; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, true).ID: return 8512; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Upper, DarkOakDoor::Hinge::Right, false, false).ID: return 8513; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, true).ID: return 8514; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, true, false).ID: return 8515; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, true).ID: return 8516; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Left, false, false).ID: return 8517; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, true).ID: return 8518; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, true, false).ID: return 8519; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, true).ID: return 8520; case DarkOakDoor::DarkOakDoor(eBlockFace::BLOCK_FACE_XP, DarkOakDoor::Half::Lower, DarkOakDoor::Hinge::Right, false, false).ID: return 8521; case DarkOakFence::DarkOakFence(true, true, true, true).ID: return 8172; case DarkOakFence::DarkOakFence(true, true, true, false).ID: return 8173; case DarkOakFence::DarkOakFence(true, true, false, true).ID: return 8176; case DarkOakFence::DarkOakFence(true, true, false, false).ID: return 8177; case DarkOakFence::DarkOakFence(true, false, true, true).ID: return 8180; case DarkOakFence::DarkOakFence(true, false, true, false).ID: return 8181; case DarkOakFence::DarkOakFence(true, false, false, true).ID: return 8184; case DarkOakFence::DarkOakFence(true, false, false, false).ID: return 8185; case DarkOakFence::DarkOakFence(false, true, true, true).ID: return 8188; case DarkOakFence::DarkOakFence(false, true, true, false).ID: return 8189; case DarkOakFence::DarkOakFence(false, true, false, true).ID: return 8192; case DarkOakFence::DarkOakFence(false, true, false, false).ID: return 8193; case DarkOakFence::DarkOakFence(false, false, true, true).ID: return 8196; case DarkOakFence::DarkOakFence(false, false, true, false).ID: return 8197; case DarkOakFence::DarkOakFence(false, false, false, true).ID: return 8200; case DarkOakFence::DarkOakFence(false, false, false, false).ID: return 8201; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, true).ID: return 8010; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, false).ID: return 8011; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, true).ID: return 8012; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, false).ID: return 8013; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, true).ID: return 8014; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, false).ID: return 8015; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, true).ID: return 8016; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, false).ID: return 8017; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, true).ID: return 8018; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, false).ID: return 8019; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, true).ID: return 8020; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, false).ID: return 8021; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, true).ID: return 8022; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, false).ID: return 8023; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, true).ID: return 8024; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, false).ID: return 8025; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, true).ID: return 8026; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, false).ID: return 8027; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, true).ID: return 8028; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, false).ID: return 8029; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, true).ID: return 8030; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, false).ID: return 8031; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, true).ID: return 8032; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, false).ID: return 8033; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, true).ID: return 8034; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, false).ID: return 8035; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, true).ID: return 8036; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, false).ID: return 8037; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, true).ID: return 8038; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, false).ID: return 8039; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, true).ID: return 8040; case DarkOakFenceGate::DarkOakFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, false).ID: return 8041; case DarkOakLeaves::DarkOakLeaves(1, true).ID: return 214; case DarkOakLeaves::DarkOakLeaves(1, false).ID: return 215; case DarkOakLeaves::DarkOakLeaves(2, true).ID: return 216; case DarkOakLeaves::DarkOakLeaves(2, false).ID: return 217; case DarkOakLeaves::DarkOakLeaves(3, true).ID: return 218; case DarkOakLeaves::DarkOakLeaves(3, false).ID: return 219; case DarkOakLeaves::DarkOakLeaves(4, true).ID: return 220; case DarkOakLeaves::DarkOakLeaves(4, false).ID: return 221; case DarkOakLeaves::DarkOakLeaves(5, true).ID: return 222; case DarkOakLeaves::DarkOakLeaves(5, false).ID: return 223; case DarkOakLeaves::DarkOakLeaves(6, true).ID: return 224; case DarkOakLeaves::DarkOakLeaves(6, false).ID: return 225; case DarkOakLeaves::DarkOakLeaves(7, true).ID: return 226; case DarkOakLeaves::DarkOakLeaves(7, false).ID: return 227; case DarkOakLog::DarkOakLog(DarkOakLog::Axis::X).ID: return 87; case DarkOakLog::DarkOakLog(DarkOakLog::Axis::Y).ID: return 88; case DarkOakLog::DarkOakLog(DarkOakLog::Axis::Z).ID: return 89; case DarkOakPlanks::DarkOakPlanks().ID: return 20; case DarkOakPressurePlate::DarkOakPressurePlate(true).ID: return 3881; case DarkOakPressurePlate::DarkOakPressurePlate(false).ID: return 3882; case DarkOakSapling::DarkOakSapling(0).ID: return 31; case DarkOakSapling::DarkOakSapling(1).ID: return 32; case DarkOakSign::DarkOakSign(0).ID: return 3540; case DarkOakSign::DarkOakSign(1).ID: return 3542; case DarkOakSign::DarkOakSign(2).ID: return 3544; case DarkOakSign::DarkOakSign(3).ID: return 3546; case DarkOakSign::DarkOakSign(4).ID: return 3548; case DarkOakSign::DarkOakSign(5).ID: return 3550; case DarkOakSign::DarkOakSign(6).ID: return 3552; case DarkOakSign::DarkOakSign(7).ID: return 3554; case DarkOakSign::DarkOakSign(8).ID: return 3556; case DarkOakSign::DarkOakSign(9).ID: return 3558; case DarkOakSign::DarkOakSign(10).ID: return 3560; case DarkOakSign::DarkOakSign(11).ID: return 3562; case DarkOakSign::DarkOakSign(12).ID: return 3564; case DarkOakSign::DarkOakSign(13).ID: return 3566; case DarkOakSign::DarkOakSign(14).ID: return 3568; case DarkOakSign::DarkOakSign(15).ID: return 3570; case DarkOakSlab::DarkOakSlab(DarkOakSlab::Type::Top).ID: return 7795; case DarkOakSlab::DarkOakSlab(DarkOakSlab::Type::Bottom).ID: return 7797; case DarkOakSlab::DarkOakSlab(DarkOakSlab::Type::Double).ID: return 7799; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::Straight).ID: return 6920; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerLeft).ID: return 6922; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerRight).ID: return 6924; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterLeft).ID: return 6926; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterRight).ID: return 6928; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::Straight).ID: return 6930; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerLeft).ID: return 6932; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerRight).ID: return 6934; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterLeft).ID: return 6936; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterRight).ID: return 6938; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::Straight).ID: return 6940; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerLeft).ID: return 6942; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerRight).ID: return 6944; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterLeft).ID: return 6946; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterRight).ID: return 6948; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::Straight).ID: return 6950; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerLeft).ID: return 6952; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerRight).ID: return 6954; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterLeft).ID: return 6956; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_ZP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterRight).ID: return 6958; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::Straight).ID: return 6960; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerLeft).ID: return 6962; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerRight).ID: return 6964; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterLeft).ID: return 6966; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterRight).ID: return 6968; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::Straight).ID: return 6970; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerLeft).ID: return 6972; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerRight).ID: return 6974; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterLeft).ID: return 6976; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XM, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterRight).ID: return 6978; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::Straight).ID: return 6980; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerLeft).ID: return 6982; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::InnerRight).ID: return 6984; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterLeft).ID: return 6986; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Top, DarkOakStairs::Shape::OuterRight).ID: return 6988; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::Straight).ID: return 6990; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerLeft).ID: return 6992; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::InnerRight).ID: return 6994; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterLeft).ID: return 6996; case DarkOakStairs::DarkOakStairs(eBlockFace::BLOCK_FACE_XP, DarkOakStairs::Half::Bottom, DarkOakStairs::Shape::OuterRight).ID: return 6998; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Top, true, true).ID: return 4418; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Top, true, false).ID: return 4420; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Top, false, true).ID: return 4422; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Top, false, false).ID: return 4424; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Bottom, true, true).ID: return 4426; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Bottom, true, false).ID: return 4428; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Bottom, false, true).ID: return 4430; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZM, DarkOakTrapdoor::Half::Bottom, false, false).ID: return 4432; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Top, true, true).ID: return 4434; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Top, true, false).ID: return 4436; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Top, false, true).ID: return 4438; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Top, false, false).ID: return 4440; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Bottom, true, true).ID: return 4442; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Bottom, true, false).ID: return 4444; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Bottom, false, true).ID: return 4446; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_ZP, DarkOakTrapdoor::Half::Bottom, false, false).ID: return 4448; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Top, true, true).ID: return 4450; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Top, true, false).ID: return 4452; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Top, false, true).ID: return 4454; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Top, false, false).ID: return 4456; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Bottom, true, true).ID: return 4458; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Bottom, true, false).ID: return 4460; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Bottom, false, true).ID: return 4462; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XM, DarkOakTrapdoor::Half::Bottom, false, false).ID: return 4464; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Top, true, true).ID: return 4466; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Top, true, false).ID: return 4468; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Top, false, true).ID: return 4470; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Top, false, false).ID: return 4472; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Bottom, true, true).ID: return 4474; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Bottom, true, false).ID: return 4476; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Bottom, false, true).ID: return 4478; case DarkOakTrapdoor::DarkOakTrapdoor(eBlockFace::BLOCK_FACE_XP, DarkOakTrapdoor::Half::Bottom, false, false).ID: return 4480; case DarkOakWallSign::DarkOakWallSign(eBlockFace::BLOCK_FACE_ZM).ID: return 3774; case DarkOakWallSign::DarkOakWallSign(eBlockFace::BLOCK_FACE_ZP).ID: return 3776; case DarkOakWallSign::DarkOakWallSign(eBlockFace::BLOCK_FACE_XM).ID: return 3778; case DarkOakWallSign::DarkOakWallSign(eBlockFace::BLOCK_FACE_XP).ID: return 3780; case DarkOakWood::DarkOakWood(DarkOakWood::Axis::X).ID: return 123; case DarkOakWood::DarkOakWood(DarkOakWood::Axis::Y).ID: return 124; case DarkOakWood::DarkOakWood(DarkOakWood::Axis::Z).ID: return 125; case DarkPrismarine::DarkPrismarine().ID: return 7067; case DarkPrismarineSlab::DarkPrismarineSlab(DarkPrismarineSlab::Type::Top).ID: return 7321; case DarkPrismarineSlab::DarkPrismarineSlab(DarkPrismarineSlab::Type::Bottom).ID: return 7323; case DarkPrismarineSlab::DarkPrismarineSlab(DarkPrismarineSlab::Type::Double).ID: return 7325; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::Straight).ID: return 7229; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7231; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerRight).ID: return 7233; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7235; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterRight).ID: return 7237; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::Straight).ID: return 7239; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7241; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerRight).ID: return 7243; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7245; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterRight).ID: return 7247; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::Straight).ID: return 7249; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7251; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerRight).ID: return 7253; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7255; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterRight).ID: return 7257; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::Straight).ID: return 7259; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7261; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerRight).ID: return 7263; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7265; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_ZP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterRight).ID: return 7267; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::Straight).ID: return 7269; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7271; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerRight).ID: return 7273; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7275; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterRight).ID: return 7277; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::Straight).ID: return 7279; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7281; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerRight).ID: return 7283; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7285; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XM, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterRight).ID: return 7287; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::Straight).ID: return 7289; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7291; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::InnerRight).ID: return 7293; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7295; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Top, DarkPrismarineStairs::Shape::OuterRight).ID: return 7297; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::Straight).ID: return 7299; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerLeft).ID: return 7301; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::InnerRight).ID: return 7303; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterLeft).ID: return 7305; case DarkPrismarineStairs::DarkPrismarineStairs(eBlockFace::BLOCK_FACE_XP, DarkPrismarineStairs::Half::Bottom, DarkPrismarineStairs::Shape::OuterRight).ID: return 7307; case DaylightDetector::DaylightDetector(true, 0).ID: return 6158; case DaylightDetector::DaylightDetector(true, 1).ID: return 6159; case DaylightDetector::DaylightDetector(true, 2).ID: return 6160; case DaylightDetector::DaylightDetector(true, 3).ID: return 6161; case DaylightDetector::DaylightDetector(true, 4).ID: return 6162; case DaylightDetector::DaylightDetector(true, 5).ID: return 6163; case DaylightDetector::DaylightDetector(true, 6).ID: return 6164; case DaylightDetector::DaylightDetector(true, 7).ID: return 6165; case DaylightDetector::DaylightDetector(true, 8).ID: return 6166; case DaylightDetector::DaylightDetector(true, 9).ID: return 6167; case DaylightDetector::DaylightDetector(true, 10).ID: return 6168; case DaylightDetector::DaylightDetector(true, 11).ID: return 6169; case DaylightDetector::DaylightDetector(true, 12).ID: return 6170; case DaylightDetector::DaylightDetector(true, 13).ID: return 6171; case DaylightDetector::DaylightDetector(true, 14).ID: return 6172; case DaylightDetector::DaylightDetector(true, 15).ID: return 6173; case DaylightDetector::DaylightDetector(false, 0).ID: return 6174; case DaylightDetector::DaylightDetector(false, 1).ID: return 6175; case DaylightDetector::DaylightDetector(false, 2).ID: return 6176; case DaylightDetector::DaylightDetector(false, 3).ID: return 6177; case DaylightDetector::DaylightDetector(false, 4).ID: return 6178; case DaylightDetector::DaylightDetector(false, 5).ID: return 6179; case DaylightDetector::DaylightDetector(false, 6).ID: return 6180; case DaylightDetector::DaylightDetector(false, 7).ID: return 6181; case DaylightDetector::DaylightDetector(false, 8).ID: return 6182; case DaylightDetector::DaylightDetector(false, 9).ID: return 6183; case DaylightDetector::DaylightDetector(false, 10).ID: return 6184; case DaylightDetector::DaylightDetector(false, 11).ID: return 6185; case DaylightDetector::DaylightDetector(false, 12).ID: return 6186; case DaylightDetector::DaylightDetector(false, 13).ID: return 6187; case DaylightDetector::DaylightDetector(false, 14).ID: return 6188; case DaylightDetector::DaylightDetector(false, 15).ID: return 6189; case DeadBrainCoral::DeadBrainCoral().ID: return 8987; case DeadBrainCoralBlock::DeadBrainCoralBlock().ID: return 8975; case DeadBrainCoralFan::DeadBrainCoralFan().ID: return 9007; case DeadBrainCoralWallFan::DeadBrainCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9033; case DeadBrainCoralWallFan::DeadBrainCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9035; case DeadBrainCoralWallFan::DeadBrainCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9037; case DeadBrainCoralWallFan::DeadBrainCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9039; case DeadBubbleCoral::DeadBubbleCoral().ID: return 8989; case DeadBubbleCoralBlock::DeadBubbleCoralBlock().ID: return 8976; case DeadBubbleCoralFan::DeadBubbleCoralFan().ID: return 9009; case DeadBubbleCoralWallFan::DeadBubbleCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9041; case DeadBubbleCoralWallFan::DeadBubbleCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9043; case DeadBubbleCoralWallFan::DeadBubbleCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9045; case DeadBubbleCoralWallFan::DeadBubbleCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9047; case DeadBush::DeadBush().ID: return 1343; case DeadFireCoral::DeadFireCoral().ID: return 8991; case DeadFireCoralBlock::DeadFireCoralBlock().ID: return 8977; case DeadFireCoralFan::DeadFireCoralFan().ID: return 9011; case DeadFireCoralWallFan::DeadFireCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9049; case DeadFireCoralWallFan::DeadFireCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9051; case DeadFireCoralWallFan::DeadFireCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9053; case DeadFireCoralWallFan::DeadFireCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9055; case DeadHornCoral::DeadHornCoral().ID: return 8993; case DeadHornCoralBlock::DeadHornCoralBlock().ID: return 8978; case DeadHornCoralFan::DeadHornCoralFan().ID: return 9013; case DeadHornCoralWallFan::DeadHornCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9057; case DeadHornCoralWallFan::DeadHornCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9059; case DeadHornCoralWallFan::DeadHornCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9061; case DeadHornCoralWallFan::DeadHornCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9063; case DeadTubeCoral::DeadTubeCoral().ID: return 8985; case DeadTubeCoralBlock::DeadTubeCoralBlock().ID: return 8974; case DeadTubeCoralFan::DeadTubeCoralFan().ID: return 9005; case DeadTubeCoralWallFan::DeadTubeCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9025; case DeadTubeCoralWallFan::DeadTubeCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9027; case DeadTubeCoralWallFan::DeadTubeCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9029; case DeadTubeCoralWallFan::DeadTubeCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9031; case DetectorRail::DetectorRail(true, DetectorRail::Shape::NorthSouth).ID: return 1316; case DetectorRail::DetectorRail(true, DetectorRail::Shape::EastWest).ID: return 1317; case DetectorRail::DetectorRail(true, DetectorRail::Shape::AscendingEast).ID: return 1318; case DetectorRail::DetectorRail(true, DetectorRail::Shape::AscendingWest).ID: return 1319; case DetectorRail::DetectorRail(true, DetectorRail::Shape::AscendingNorth).ID: return 1320; case DetectorRail::DetectorRail(true, DetectorRail::Shape::AscendingSouth).ID: return 1321; case DetectorRail::DetectorRail(false, DetectorRail::Shape::NorthSouth).ID: return 1322; case DetectorRail::DetectorRail(false, DetectorRail::Shape::EastWest).ID: return 1323; case DetectorRail::DetectorRail(false, DetectorRail::Shape::AscendingEast).ID: return 1324; case DetectorRail::DetectorRail(false, DetectorRail::Shape::AscendingWest).ID: return 1325; case DetectorRail::DetectorRail(false, DetectorRail::Shape::AscendingNorth).ID: return 1326; case DetectorRail::DetectorRail(false, DetectorRail::Shape::AscendingSouth).ID: return 1327; case DiamondBlock::DiamondBlock().ID: return 3353; case DiamondOre::DiamondOre().ID: return 3352; case Diorite::Diorite().ID: return 4; case DioriteSlab::DioriteSlab(DioriteSlab::Type::Top).ID: return 10326; case DioriteSlab::DioriteSlab(DioriteSlab::Type::Bottom).ID: return 10328; case DioriteSlab::DioriteSlab(DioriteSlab::Type::Double).ID: return 10330; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Top, DioriteStairs::Shape::Straight).ID: return 10174; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerLeft).ID: return 10176; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerRight).ID: return 10178; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterLeft).ID: return 10180; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterRight).ID: return 10182; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::Straight).ID: return 10184; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerLeft).ID: return 10186; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerRight).ID: return 10188; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterLeft).ID: return 10190; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterRight).ID: return 10192; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Top, DioriteStairs::Shape::Straight).ID: return 10194; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerLeft).ID: return 10196; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerRight).ID: return 10198; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterLeft).ID: return 10200; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterRight).ID: return 10202; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::Straight).ID: return 10204; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerLeft).ID: return 10206; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerRight).ID: return 10208; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterLeft).ID: return 10210; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_ZP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterRight).ID: return 10212; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Top, DioriteStairs::Shape::Straight).ID: return 10214; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerLeft).ID: return 10216; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerRight).ID: return 10218; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterLeft).ID: return 10220; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterRight).ID: return 10222; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::Straight).ID: return 10224; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerLeft).ID: return 10226; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerRight).ID: return 10228; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterLeft).ID: return 10230; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XM, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterRight).ID: return 10232; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Top, DioriteStairs::Shape::Straight).ID: return 10234; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerLeft).ID: return 10236; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Top, DioriteStairs::Shape::InnerRight).ID: return 10238; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterLeft).ID: return 10240; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Top, DioriteStairs::Shape::OuterRight).ID: return 10242; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::Straight).ID: return 10244; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerLeft).ID: return 10246; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::InnerRight).ID: return 10248; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterLeft).ID: return 10250; case DioriteStairs::DioriteStairs(eBlockFace::BLOCK_FACE_XP, DioriteStairs::Half::Bottom, DioriteStairs::Shape::OuterRight).ID: return 10252; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::Low, true, DioriteWall::West::Low).ID: return 11037; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::Low, true, DioriteWall::West::None).ID: return 11038; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::Low, false, DioriteWall::West::Low).ID: return 11041; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::Low, false, DioriteWall::West::None).ID: return 11042; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::None, true, DioriteWall::West::Low).ID: return 11045; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::None, true, DioriteWall::West::None).ID: return 11046; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::None, false, DioriteWall::West::Low).ID: return 11049; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::Low, DioriteWall::South::None, false, DioriteWall::West::None).ID: return 11050; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::Low, true, DioriteWall::West::Low).ID: return 11053; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::Low, true, DioriteWall::West::None).ID: return 11054; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::Low, false, DioriteWall::West::Low).ID: return 11057; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::Low, false, DioriteWall::West::None).ID: return 11058; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::None, true, DioriteWall::West::Low).ID: return 11061; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::None, true, DioriteWall::West::None).ID: return 11062; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::None, false, DioriteWall::West::Low).ID: return 11065; case DioriteWall::DioriteWall(DioriteWall::East::Low, DioriteWall::North::None, DioriteWall::South::None, false, DioriteWall::West::None).ID: return 11066; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::Low, true, DioriteWall::West::Low).ID: return 11069; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::Low, true, DioriteWall::West::None).ID: return 11070; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::Low, false, DioriteWall::West::Low).ID: return 11073; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::Low, false, DioriteWall::West::None).ID: return 11074; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::None, true, DioriteWall::West::Low).ID: return 11077; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::None, true, DioriteWall::West::None).ID: return 11078; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::None, false, DioriteWall::West::Low).ID: return 11081; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::Low, DioriteWall::South::None, false, DioriteWall::West::None).ID: return 11082; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::Low, true, DioriteWall::West::Low).ID: return 11085; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::Low, true, DioriteWall::West::None).ID: return 11086; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::Low, false, DioriteWall::West::Low).ID: return 11089; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::Low, false, DioriteWall::West::None).ID: return 11090; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::None, true, DioriteWall::West::Low).ID: return 11093; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::None, true, DioriteWall::West::None).ID: return 11094; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::None, false, DioriteWall::West::Low).ID: return 11097; case DioriteWall::DioriteWall(DioriteWall::East::None, DioriteWall::North::None, DioriteWall::South::None, false, DioriteWall::West::None).ID: return 11098; case Dirt::Dirt().ID: return 10; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_ZM, true).ID: return 233; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_ZM, false).ID: return 234; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_XP, true).ID: return 235; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_XP, false).ID: return 236; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_ZP, true).ID: return 237; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_ZP, false).ID: return 238; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_XM, true).ID: return 239; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_XM, false).ID: return 240; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_YP, true).ID: return 241; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_YP, false).ID: return 242; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_YM, true).ID: return 243; case Dispenser::Dispenser(eBlockFace::BLOCK_FACE_YM, false).ID: return 244; case DragonEgg::DragonEgg().ID: return 5139; case DragonHead::DragonHead(0).ID: return 6054; case DragonHead::DragonHead(1).ID: return 6055; case DragonHead::DragonHead(2).ID: return 6056; case DragonHead::DragonHead(3).ID: return 6057; case DragonHead::DragonHead(4).ID: return 6058; case DragonHead::DragonHead(5).ID: return 6059; case DragonHead::DragonHead(6).ID: return 6060; case DragonHead::DragonHead(7).ID: return 6061; case DragonHead::DragonHead(8).ID: return 6062; case DragonHead::DragonHead(9).ID: return 6063; case DragonHead::DragonHead(10).ID: return 6064; case DragonHead::DragonHead(11).ID: return 6065; case DragonHead::DragonHead(12).ID: return 6066; case DragonHead::DragonHead(13).ID: return 6067; case DragonHead::DragonHead(14).ID: return 6068; case DragonHead::DragonHead(15).ID: return 6069; case DragonWallHead::DragonWallHead(eBlockFace::BLOCK_FACE_ZM).ID: return 6070; case DragonWallHead::DragonWallHead(eBlockFace::BLOCK_FACE_ZP).ID: return 6071; case DragonWallHead::DragonWallHead(eBlockFace::BLOCK_FACE_XM).ID: return 6072; case DragonWallHead::DragonWallHead(eBlockFace::BLOCK_FACE_XP).ID: return 6073; case DriedKelpBlock::DriedKelpBlock().ID: return 8961; case Dropper::Dropper(eBlockFace::BLOCK_FACE_ZM, true).ID: return 6299; case Dropper::Dropper(eBlockFace::BLOCK_FACE_ZM, false).ID: return 6300; case Dropper::Dropper(eBlockFace::BLOCK_FACE_XP, true).ID: return 6301; case Dropper::Dropper(eBlockFace::BLOCK_FACE_XP, false).ID: return 6302; case Dropper::Dropper(eBlockFace::BLOCK_FACE_ZP, true).ID: return 6303; case Dropper::Dropper(eBlockFace::BLOCK_FACE_ZP, false).ID: return 6304; case Dropper::Dropper(eBlockFace::BLOCK_FACE_XM, true).ID: return 6305; case Dropper::Dropper(eBlockFace::BLOCK_FACE_XM, false).ID: return 6306; case Dropper::Dropper(eBlockFace::BLOCK_FACE_YP, true).ID: return 6307; case Dropper::Dropper(eBlockFace::BLOCK_FACE_YP, false).ID: return 6308; case Dropper::Dropper(eBlockFace::BLOCK_FACE_YM, true).ID: return 6309; case Dropper::Dropper(eBlockFace::BLOCK_FACE_YM, false).ID: return 6310; case EmeraldBlock::EmeraldBlock().ID: return 5387; case EmeraldOre::EmeraldOre().ID: return 5234; case EnchantingTable::EnchantingTable().ID: return 5116; case EndGateway::EndGateway().ID: return 8688; case EndPortal::EndPortal().ID: return 5129; case EndPortalFrame::EndPortalFrame(true, eBlockFace::BLOCK_FACE_ZM).ID: return 5130; case EndPortalFrame::EndPortalFrame(true, eBlockFace::BLOCK_FACE_ZP).ID: return 5131; case EndPortalFrame::EndPortalFrame(true, eBlockFace::BLOCK_FACE_XM).ID: return 5132; case EndPortalFrame::EndPortalFrame(true, eBlockFace::BLOCK_FACE_XP).ID: return 5133; case EndPortalFrame::EndPortalFrame(false, eBlockFace::BLOCK_FACE_ZM).ID: return 5134; case EndPortalFrame::EndPortalFrame(false, eBlockFace::BLOCK_FACE_ZP).ID: return 5135; case EndPortalFrame::EndPortalFrame(false, eBlockFace::BLOCK_FACE_XM).ID: return 5136; case EndPortalFrame::EndPortalFrame(false, eBlockFace::BLOCK_FACE_XP).ID: return 5137; case EndRod::EndRod(eBlockFace::BLOCK_FACE_ZM).ID: return 8522; case EndRod::EndRod(eBlockFace::BLOCK_FACE_XP).ID: return 8523; case EndRod::EndRod(eBlockFace::BLOCK_FACE_ZP).ID: return 8524; case EndRod::EndRod(eBlockFace::BLOCK_FACE_XM).ID: return 8525; case EndRod::EndRod(eBlockFace::BLOCK_FACE_YP).ID: return 8526; case EndRod::EndRod(eBlockFace::BLOCK_FACE_YM).ID: return 8527; case EndStone::EndStone().ID: return 5138; case EndStoneBrickSlab::EndStoneBrickSlab(EndStoneBrickSlab::Type::Top).ID: return 10284; case EndStoneBrickSlab::EndStoneBrickSlab(EndStoneBrickSlab::Type::Bottom).ID: return 10286; case EndStoneBrickSlab::EndStoneBrickSlab(EndStoneBrickSlab::Type::Double).ID: return 10288; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::Straight).ID: return 9534; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9536; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerRight).ID: return 9538; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9540; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterRight).ID: return 9542; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::Straight).ID: return 9544; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9546; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerRight).ID: return 9548; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9550; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterRight).ID: return 9552; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::Straight).ID: return 9554; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9556; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerRight).ID: return 9558; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9560; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterRight).ID: return 9562; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::Straight).ID: return 9564; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9566; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerRight).ID: return 9568; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9570; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterRight).ID: return 9572; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::Straight).ID: return 9574; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9576; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerRight).ID: return 9578; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9580; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterRight).ID: return 9582; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::Straight).ID: return 9584; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9586; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerRight).ID: return 9588; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9590; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterRight).ID: return 9592; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::Straight).ID: return 9594; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9596; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::InnerRight).ID: return 9598; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9600; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Top, EndStoneBrickStairs::Shape::OuterRight).ID: return 9602; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::Straight).ID: return 9604; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerLeft).ID: return 9606; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::InnerRight).ID: return 9608; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterLeft).ID: return 9610; case EndStoneBrickStairs::EndStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, EndStoneBrickStairs::Half::Bottom, EndStoneBrickStairs::Shape::OuterRight).ID: return 9612; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::Low).ID: return 10973; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::None).ID: return 10974; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::Low).ID: return 10977; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::None).ID: return 10978; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::Low).ID: return 10981; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::None).ID: return 10982; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::Low).ID: return 10985; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::None).ID: return 10986; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::Low).ID: return 10989; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::None).ID: return 10990; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::Low).ID: return 10993; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::None).ID: return 10994; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::Low).ID: return 10997; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::None).ID: return 10998; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::Low).ID: return 11001; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::Low, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::None).ID: return 11002; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::Low).ID: return 11005; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::None).ID: return 11006; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::Low).ID: return 11009; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::None).ID: return 11010; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::Low).ID: return 11013; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::None).ID: return 11014; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::Low).ID: return 11017; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::Low, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::None).ID: return 11018; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::Low).ID: return 11021; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, true, EndStoneBrickWall::West::None).ID: return 11022; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::Low).ID: return 11025; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::Low, false, EndStoneBrickWall::West::None).ID: return 11026; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::Low).ID: return 11029; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, true, EndStoneBrickWall::West::None).ID: return 11030; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::Low).ID: return 11033; case EndStoneBrickWall::EndStoneBrickWall(EndStoneBrickWall::East::None, EndStoneBrickWall::North::None, EndStoneBrickWall::South::None, false, EndStoneBrickWall::West::None).ID: return 11034; case EndStoneBricks::EndStoneBricks().ID: return 8682; case EnderChest::EnderChest(eBlockFace::BLOCK_FACE_ZM).ID: return 5236; case EnderChest::EnderChest(eBlockFace::BLOCK_FACE_ZP).ID: return 5238; case EnderChest::EnderChest(eBlockFace::BLOCK_FACE_XM).ID: return 5240; case EnderChest::EnderChest(eBlockFace::BLOCK_FACE_XP).ID: return 5242; case Farmland::Farmland(0).ID: return 3363; case Farmland::Farmland(1).ID: return 3364; case Farmland::Farmland(2).ID: return 3365; case Farmland::Farmland(3).ID: return 3366; case Farmland::Farmland(4).ID: return 3367; case Farmland::Farmland(5).ID: return 3368; case Farmland::Farmland(6).ID: return 3369; case Farmland::Farmland(7).ID: return 3370; case Fern::Fern().ID: return 1342; case Fire::Fire(0, true, true, true, true, true).ID: return 1439; case Fire::Fire(0, true, true, true, true, false).ID: return 1440; case Fire::Fire(0, true, true, true, false, true).ID: return 1441; case Fire::Fire(0, true, true, true, false, false).ID: return 1442; case Fire::Fire(0, true, true, false, true, true).ID: return 1443; case Fire::Fire(0, true, true, false, true, false).ID: return 1444; case Fire::Fire(0, true, true, false, false, true).ID: return 1445; case Fire::Fire(0, true, true, false, false, false).ID: return 1446; case Fire::Fire(0, true, false, true, true, true).ID: return 1447; case Fire::Fire(0, true, false, true, true, false).ID: return 1448; case Fire::Fire(0, true, false, true, false, true).ID: return 1449; case Fire::Fire(0, true, false, true, false, false).ID: return 1450; case Fire::Fire(0, true, false, false, true, true).ID: return 1451; case Fire::Fire(0, true, false, false, true, false).ID: return 1452; case Fire::Fire(0, true, false, false, false, true).ID: return 1453; case Fire::Fire(0, true, false, false, false, false).ID: return 1454; case Fire::Fire(0, false, true, true, true, true).ID: return 1455; case Fire::Fire(0, false, true, true, true, false).ID: return 1456; case Fire::Fire(0, false, true, true, false, true).ID: return 1457; case Fire::Fire(0, false, true, true, false, false).ID: return 1458; case Fire::Fire(0, false, true, false, true, true).ID: return 1459; case Fire::Fire(0, false, true, false, true, false).ID: return 1460; case Fire::Fire(0, false, true, false, false, true).ID: return 1461; case Fire::Fire(0, false, true, false, false, false).ID: return 1462; case Fire::Fire(0, false, false, true, true, true).ID: return 1463; case Fire::Fire(0, false, false, true, true, false).ID: return 1464; case Fire::Fire(0, false, false, true, false, true).ID: return 1465; case Fire::Fire(0, false, false, true, false, false).ID: return 1466; case Fire::Fire(0, false, false, false, true, true).ID: return 1467; case Fire::Fire(0, false, false, false, true, false).ID: return 1468; case Fire::Fire(0, false, false, false, false, true).ID: return 1469; case Fire::Fire(0, false, false, false, false, false).ID: return 1470; case Fire::Fire(1, true, true, true, true, true).ID: return 1471; case Fire::Fire(1, true, true, true, true, false).ID: return 1472; case Fire::Fire(1, true, true, true, false, true).ID: return 1473; case Fire::Fire(1, true, true, true, false, false).ID: return 1474; case Fire::Fire(1, true, true, false, true, true).ID: return 1475; case Fire::Fire(1, true, true, false, true, false).ID: return 1476; case Fire::Fire(1, true, true, false, false, true).ID: return 1477; case Fire::Fire(1, true, true, false, false, false).ID: return 1478; case Fire::Fire(1, true, false, true, true, true).ID: return 1479; case Fire::Fire(1, true, false, true, true, false).ID: return 1480; case Fire::Fire(1, true, false, true, false, true).ID: return 1481; case Fire::Fire(1, true, false, true, false, false).ID: return 1482; case Fire::Fire(1, true, false, false, true, true).ID: return 1483; case Fire::Fire(1, true, false, false, true, false).ID: return 1484; case Fire::Fire(1, true, false, false, false, true).ID: return 1485; case Fire::Fire(1, true, false, false, false, false).ID: return 1486; case Fire::Fire(1, false, true, true, true, true).ID: return 1487; case Fire::Fire(1, false, true, true, true, false).ID: return 1488; case Fire::Fire(1, false, true, true, false, true).ID: return 1489; case Fire::Fire(1, false, true, true, false, false).ID: return 1490; case Fire::Fire(1, false, true, false, true, true).ID: return 1491; case Fire::Fire(1, false, true, false, true, false).ID: return 1492; case Fire::Fire(1, false, true, false, false, true).ID: return 1493; case Fire::Fire(1, false, true, false, false, false).ID: return 1494; case Fire::Fire(1, false, false, true, true, true).ID: return 1495; case Fire::Fire(1, false, false, true, true, false).ID: return 1496; case Fire::Fire(1, false, false, true, false, true).ID: return 1497; case Fire::Fire(1, false, false, true, false, false).ID: return 1498; case Fire::Fire(1, false, false, false, true, true).ID: return 1499; case Fire::Fire(1, false, false, false, true, false).ID: return 1500; case Fire::Fire(1, false, false, false, false, true).ID: return 1501; case Fire::Fire(1, false, false, false, false, false).ID: return 1502; case Fire::Fire(2, true, true, true, true, true).ID: return 1503; case Fire::Fire(2, true, true, true, true, false).ID: return 1504; case Fire::Fire(2, true, true, true, false, true).ID: return 1505; case Fire::Fire(2, true, true, true, false, false).ID: return 1506; case Fire::Fire(2, true, true, false, true, true).ID: return 1507; case Fire::Fire(2, true, true, false, true, false).ID: return 1508; case Fire::Fire(2, true, true, false, false, true).ID: return 1509; case Fire::Fire(2, true, true, false, false, false).ID: return 1510; case Fire::Fire(2, true, false, true, true, true).ID: return 1511; case Fire::Fire(2, true, false, true, true, false).ID: return 1512; case Fire::Fire(2, true, false, true, false, true).ID: return 1513; case Fire::Fire(2, true, false, true, false, false).ID: return 1514; case Fire::Fire(2, true, false, false, true, true).ID: return 1515; case Fire::Fire(2, true, false, false, true, false).ID: return 1516; case Fire::Fire(2, true, false, false, false, true).ID: return 1517; case Fire::Fire(2, true, false, false, false, false).ID: return 1518; case Fire::Fire(2, false, true, true, true, true).ID: return 1519; case Fire::Fire(2, false, true, true, true, false).ID: return 1520; case Fire::Fire(2, false, true, true, false, true).ID: return 1521; case Fire::Fire(2, false, true, true, false, false).ID: return 1522; case Fire::Fire(2, false, true, false, true, true).ID: return 1523; case Fire::Fire(2, false, true, false, true, false).ID: return 1524; case Fire::Fire(2, false, true, false, false, true).ID: return 1525; case Fire::Fire(2, false, true, false, false, false).ID: return 1526; case Fire::Fire(2, false, false, true, true, true).ID: return 1527; case Fire::Fire(2, false, false, true, true, false).ID: return 1528; case Fire::Fire(2, false, false, true, false, true).ID: return 1529; case Fire::Fire(2, false, false, true, false, false).ID: return 1530; case Fire::Fire(2, false, false, false, true, true).ID: return 1531; case Fire::Fire(2, false, false, false, true, false).ID: return 1532; case Fire::Fire(2, false, false, false, false, true).ID: return 1533; case Fire::Fire(2, false, false, false, false, false).ID: return 1534; case Fire::Fire(3, true, true, true, true, true).ID: return 1535; case Fire::Fire(3, true, true, true, true, false).ID: return 1536; case Fire::Fire(3, true, true, true, false, true).ID: return 1537; case Fire::Fire(3, true, true, true, false, false).ID: return 1538; case Fire::Fire(3, true, true, false, true, true).ID: return 1539; case Fire::Fire(3, true, true, false, true, false).ID: return 1540; case Fire::Fire(3, true, true, false, false, true).ID: return 1541; case Fire::Fire(3, true, true, false, false, false).ID: return 1542; case Fire::Fire(3, true, false, true, true, true).ID: return 1543; case Fire::Fire(3, true, false, true, true, false).ID: return 1544; case Fire::Fire(3, true, false, true, false, true).ID: return 1545; case Fire::Fire(3, true, false, true, false, false).ID: return 1546; case Fire::Fire(3, true, false, false, true, true).ID: return 1547; case Fire::Fire(3, true, false, false, true, false).ID: return 1548; case Fire::Fire(3, true, false, false, false, true).ID: return 1549; case Fire::Fire(3, true, false, false, false, false).ID: return 1550; case Fire::Fire(3, false, true, true, true, true).ID: return 1551; case Fire::Fire(3, false, true, true, true, false).ID: return 1552; case Fire::Fire(3, false, true, true, false, true).ID: return 1553; case Fire::Fire(3, false, true, true, false, false).ID: return 1554; case Fire::Fire(3, false, true, false, true, true).ID: return 1555; case Fire::Fire(3, false, true, false, true, false).ID: return 1556; case Fire::Fire(3, false, true, false, false, true).ID: return 1557; case Fire::Fire(3, false, true, false, false, false).ID: return 1558; case Fire::Fire(3, false, false, true, true, true).ID: return 1559; case Fire::Fire(3, false, false, true, true, false).ID: return 1560; case Fire::Fire(3, false, false, true, false, true).ID: return 1561; case Fire::Fire(3, false, false, true, false, false).ID: return 1562; case Fire::Fire(3, false, false, false, true, true).ID: return 1563; case Fire::Fire(3, false, false, false, true, false).ID: return 1564; case Fire::Fire(3, false, false, false, false, true).ID: return 1565; case Fire::Fire(3, false, false, false, false, false).ID: return 1566; case Fire::Fire(4, true, true, true, true, true).ID: return 1567; case Fire::Fire(4, true, true, true, true, false).ID: return 1568; case Fire::Fire(4, true, true, true, false, true).ID: return 1569; case Fire::Fire(4, true, true, true, false, false).ID: return 1570; case Fire::Fire(4, true, true, false, true, true).ID: return 1571; case Fire::Fire(4, true, true, false, true, false).ID: return 1572; case Fire::Fire(4, true, true, false, false, true).ID: return 1573; case Fire::Fire(4, true, true, false, false, false).ID: return 1574; case Fire::Fire(4, true, false, true, true, true).ID: return 1575; case Fire::Fire(4, true, false, true, true, false).ID: return 1576; case Fire::Fire(4, true, false, true, false, true).ID: return 1577; case Fire::Fire(4, true, false, true, false, false).ID: return 1578; case Fire::Fire(4, true, false, false, true, true).ID: return 1579; case Fire::Fire(4, true, false, false, true, false).ID: return 1580; case Fire::Fire(4, true, false, false, false, true).ID: return 1581; case Fire::Fire(4, true, false, false, false, false).ID: return 1582; case Fire::Fire(4, false, true, true, true, true).ID: return 1583; case Fire::Fire(4, false, true, true, true, false).ID: return 1584; case Fire::Fire(4, false, true, true, false, true).ID: return 1585; case Fire::Fire(4, false, true, true, false, false).ID: return 1586; case Fire::Fire(4, false, true, false, true, true).ID: return 1587; case Fire::Fire(4, false, true, false, true, false).ID: return 1588; case Fire::Fire(4, false, true, false, false, true).ID: return 1589; case Fire::Fire(4, false, true, false, false, false).ID: return 1590; case Fire::Fire(4, false, false, true, true, true).ID: return 1591; case Fire::Fire(4, false, false, true, true, false).ID: return 1592; case Fire::Fire(4, false, false, true, false, true).ID: return 1593; case Fire::Fire(4, false, false, true, false, false).ID: return 1594; case Fire::Fire(4, false, false, false, true, true).ID: return 1595; case Fire::Fire(4, false, false, false, true, false).ID: return 1596; case Fire::Fire(4, false, false, false, false, true).ID: return 1597; case Fire::Fire(4, false, false, false, false, false).ID: return 1598; case Fire::Fire(5, true, true, true, true, true).ID: return 1599; case Fire::Fire(5, true, true, true, true, false).ID: return 1600; case Fire::Fire(5, true, true, true, false, true).ID: return 1601; case Fire::Fire(5, true, true, true, false, false).ID: return 1602; case Fire::Fire(5, true, true, false, true, true).ID: return 1603; case Fire::Fire(5, true, true, false, true, false).ID: return 1604; case Fire::Fire(5, true, true, false, false, true).ID: return 1605; case Fire::Fire(5, true, true, false, false, false).ID: return 1606; case Fire::Fire(5, true, false, true, true, true).ID: return 1607; case Fire::Fire(5, true, false, true, true, false).ID: return 1608; case Fire::Fire(5, true, false, true, false, true).ID: return 1609; case Fire::Fire(5, true, false, true, false, false).ID: return 1610; case Fire::Fire(5, true, false, false, true, true).ID: return 1611; case Fire::Fire(5, true, false, false, true, false).ID: return 1612; case Fire::Fire(5, true, false, false, false, true).ID: return 1613; case Fire::Fire(5, true, false, false, false, false).ID: return 1614; case Fire::Fire(5, false, true, true, true, true).ID: return 1615; case Fire::Fire(5, false, true, true, true, false).ID: return 1616; case Fire::Fire(5, false, true, true, false, true).ID: return 1617; case Fire::Fire(5, false, true, true, false, false).ID: return 1618; case Fire::Fire(5, false, true, false, true, true).ID: return 1619; case Fire::Fire(5, false, true, false, true, false).ID: return 1620; case Fire::Fire(5, false, true, false, false, true).ID: return 1621; case Fire::Fire(5, false, true, false, false, false).ID: return 1622; case Fire::Fire(5, false, false, true, true, true).ID: return 1623; case Fire::Fire(5, false, false, true, true, false).ID: return 1624; case Fire::Fire(5, false, false, true, false, true).ID: return 1625; case Fire::Fire(5, false, false, true, false, false).ID: return 1626; case Fire::Fire(5, false, false, false, true, true).ID: return 1627; case Fire::Fire(5, false, false, false, true, false).ID: return 1628; case Fire::Fire(5, false, false, false, false, true).ID: return 1629; case Fire::Fire(5, false, false, false, false, false).ID: return 1630; case Fire::Fire(6, true, true, true, true, true).ID: return 1631; case Fire::Fire(6, true, true, true, true, false).ID: return 1632; case Fire::Fire(6, true, true, true, false, true).ID: return 1633; case Fire::Fire(6, true, true, true, false, false).ID: return 1634; case Fire::Fire(6, true, true, false, true, true).ID: return 1635; case Fire::Fire(6, true, true, false, true, false).ID: return 1636; case Fire::Fire(6, true, true, false, false, true).ID: return 1637; case Fire::Fire(6, true, true, false, false, false).ID: return 1638; case Fire::Fire(6, true, false, true, true, true).ID: return 1639; case Fire::Fire(6, true, false, true, true, false).ID: return 1640; case Fire::Fire(6, true, false, true, false, true).ID: return 1641; case Fire::Fire(6, true, false, true, false, false).ID: return 1642; case Fire::Fire(6, true, false, false, true, true).ID: return 1643; case Fire::Fire(6, true, false, false, true, false).ID: return 1644; case Fire::Fire(6, true, false, false, false, true).ID: return 1645; case Fire::Fire(6, true, false, false, false, false).ID: return 1646; case Fire::Fire(6, false, true, true, true, true).ID: return 1647; case Fire::Fire(6, false, true, true, true, false).ID: return 1648; case Fire::Fire(6, false, true, true, false, true).ID: return 1649; case Fire::Fire(6, false, true, true, false, false).ID: return 1650; case Fire::Fire(6, false, true, false, true, true).ID: return 1651; case Fire::Fire(6, false, true, false, true, false).ID: return 1652; case Fire::Fire(6, false, true, false, false, true).ID: return 1653; case Fire::Fire(6, false, true, false, false, false).ID: return 1654; case Fire::Fire(6, false, false, true, true, true).ID: return 1655; case Fire::Fire(6, false, false, true, true, false).ID: return 1656; case Fire::Fire(6, false, false, true, false, true).ID: return 1657; case Fire::Fire(6, false, false, true, false, false).ID: return 1658; case Fire::Fire(6, false, false, false, true, true).ID: return 1659; case Fire::Fire(6, false, false, false, true, false).ID: return 1660; case Fire::Fire(6, false, false, false, false, true).ID: return 1661; case Fire::Fire(6, false, false, false, false, false).ID: return 1662; case Fire::Fire(7, true, true, true, true, true).ID: return 1663; case Fire::Fire(7, true, true, true, true, false).ID: return 1664; case Fire::Fire(7, true, true, true, false, true).ID: return 1665; case Fire::Fire(7, true, true, true, false, false).ID: return 1666; case Fire::Fire(7, true, true, false, true, true).ID: return 1667; case Fire::Fire(7, true, true, false, true, false).ID: return 1668; case Fire::Fire(7, true, true, false, false, true).ID: return 1669; case Fire::Fire(7, true, true, false, false, false).ID: return 1670; case Fire::Fire(7, true, false, true, true, true).ID: return 1671; case Fire::Fire(7, true, false, true, true, false).ID: return 1672; case Fire::Fire(7, true, false, true, false, true).ID: return 1673; case Fire::Fire(7, true, false, true, false, false).ID: return 1674; case Fire::Fire(7, true, false, false, true, true).ID: return 1675; case Fire::Fire(7, true, false, false, true, false).ID: return 1676; case Fire::Fire(7, true, false, false, false, true).ID: return 1677; case Fire::Fire(7, true, false, false, false, false).ID: return 1678; case Fire::Fire(7, false, true, true, true, true).ID: return 1679; case Fire::Fire(7, false, true, true, true, false).ID: return 1680; case Fire::Fire(7, false, true, true, false, true).ID: return 1681; case Fire::Fire(7, false, true, true, false, false).ID: return 1682; case Fire::Fire(7, false, true, false, true, true).ID: return 1683; case Fire::Fire(7, false, true, false, true, false).ID: return 1684; case Fire::Fire(7, false, true, false, false, true).ID: return 1685; case Fire::Fire(7, false, true, false, false, false).ID: return 1686; case Fire::Fire(7, false, false, true, true, true).ID: return 1687; case Fire::Fire(7, false, false, true, true, false).ID: return 1688; case Fire::Fire(7, false, false, true, false, true).ID: return 1689; case Fire::Fire(7, false, false, true, false, false).ID: return 1690; case Fire::Fire(7, false, false, false, true, true).ID: return 1691; case Fire::Fire(7, false, false, false, true, false).ID: return 1692; case Fire::Fire(7, false, false, false, false, true).ID: return 1693; case Fire::Fire(7, false, false, false, false, false).ID: return 1694; case Fire::Fire(8, true, true, true, true, true).ID: return 1695; case Fire::Fire(8, true, true, true, true, false).ID: return 1696; case Fire::Fire(8, true, true, true, false, true).ID: return 1697; case Fire::Fire(8, true, true, true, false, false).ID: return 1698; case Fire::Fire(8, true, true, false, true, true).ID: return 1699; case Fire::Fire(8, true, true, false, true, false).ID: return 1700; case Fire::Fire(8, true, true, false, false, true).ID: return 1701; case Fire::Fire(8, true, true, false, false, false).ID: return 1702; case Fire::Fire(8, true, false, true, true, true).ID: return 1703; case Fire::Fire(8, true, false, true, true, false).ID: return 1704; case Fire::Fire(8, true, false, true, false, true).ID: return 1705; case Fire::Fire(8, true, false, true, false, false).ID: return 1706; case Fire::Fire(8, true, false, false, true, true).ID: return 1707; case Fire::Fire(8, true, false, false, true, false).ID: return 1708; case Fire::Fire(8, true, false, false, false, true).ID: return 1709; case Fire::Fire(8, true, false, false, false, false).ID: return 1710; case Fire::Fire(8, false, true, true, true, true).ID: return 1711; case Fire::Fire(8, false, true, true, true, false).ID: return 1712; case Fire::Fire(8, false, true, true, false, true).ID: return 1713; case Fire::Fire(8, false, true, true, false, false).ID: return 1714; case Fire::Fire(8, false, true, false, true, true).ID: return 1715; case Fire::Fire(8, false, true, false, true, false).ID: return 1716; case Fire::Fire(8, false, true, false, false, true).ID: return 1717; case Fire::Fire(8, false, true, false, false, false).ID: return 1718; case Fire::Fire(8, false, false, true, true, true).ID: return 1719; case Fire::Fire(8, false, false, true, true, false).ID: return 1720; case Fire::Fire(8, false, false, true, false, true).ID: return 1721; case Fire::Fire(8, false, false, true, false, false).ID: return 1722; case Fire::Fire(8, false, false, false, true, true).ID: return 1723; case Fire::Fire(8, false, false, false, true, false).ID: return 1724; case Fire::Fire(8, false, false, false, false, true).ID: return 1725; case Fire::Fire(8, false, false, false, false, false).ID: return 1726; case Fire::Fire(9, true, true, true, true, true).ID: return 1727; case Fire::Fire(9, true, true, true, true, false).ID: return 1728; case Fire::Fire(9, true, true, true, false, true).ID: return 1729; case Fire::Fire(9, true, true, true, false, false).ID: return 1730; case Fire::Fire(9, true, true, false, true, true).ID: return 1731; case Fire::Fire(9, true, true, false, true, false).ID: return 1732; case Fire::Fire(9, true, true, false, false, true).ID: return 1733; case Fire::Fire(9, true, true, false, false, false).ID: return 1734; case Fire::Fire(9, true, false, true, true, true).ID: return 1735; case Fire::Fire(9, true, false, true, true, false).ID: return 1736; case Fire::Fire(9, true, false, true, false, true).ID: return 1737; case Fire::Fire(9, true, false, true, false, false).ID: return 1738; case Fire::Fire(9, true, false, false, true, true).ID: return 1739; case Fire::Fire(9, true, false, false, true, false).ID: return 1740; case Fire::Fire(9, true, false, false, false, true).ID: return 1741; case Fire::Fire(9, true, false, false, false, false).ID: return 1742; case Fire::Fire(9, false, true, true, true, true).ID: return 1743; case Fire::Fire(9, false, true, true, true, false).ID: return 1744; case Fire::Fire(9, false, true, true, false, true).ID: return 1745; case Fire::Fire(9, false, true, true, false, false).ID: return 1746; case Fire::Fire(9, false, true, false, true, true).ID: return 1747; case Fire::Fire(9, false, true, false, true, false).ID: return 1748; case Fire::Fire(9, false, true, false, false, true).ID: return 1749; case Fire::Fire(9, false, true, false, false, false).ID: return 1750; case Fire::Fire(9, false, false, true, true, true).ID: return 1751; case Fire::Fire(9, false, false, true, true, false).ID: return 1752; case Fire::Fire(9, false, false, true, false, true).ID: return 1753; case Fire::Fire(9, false, false, true, false, false).ID: return 1754; case Fire::Fire(9, false, false, false, true, true).ID: return 1755; case Fire::Fire(9, false, false, false, true, false).ID: return 1756; case Fire::Fire(9, false, false, false, false, true).ID: return 1757; case Fire::Fire(9, false, false, false, false, false).ID: return 1758; case Fire::Fire(10, true, true, true, true, true).ID: return 1759; case Fire::Fire(10, true, true, true, true, false).ID: return 1760; case Fire::Fire(10, true, true, true, false, true).ID: return 1761; case Fire::Fire(10, true, true, true, false, false).ID: return 1762; case Fire::Fire(10, true, true, false, true, true).ID: return 1763; case Fire::Fire(10, true, true, false, true, false).ID: return 1764; case Fire::Fire(10, true, true, false, false, true).ID: return 1765; case Fire::Fire(10, true, true, false, false, false).ID: return 1766; case Fire::Fire(10, true, false, true, true, true).ID: return 1767; case Fire::Fire(10, true, false, true, true, false).ID: return 1768; case Fire::Fire(10, true, false, true, false, true).ID: return 1769; case Fire::Fire(10, true, false, true, false, false).ID: return 1770; case Fire::Fire(10, true, false, false, true, true).ID: return 1771; case Fire::Fire(10, true, false, false, true, false).ID: return 1772; case Fire::Fire(10, true, false, false, false, true).ID: return 1773; case Fire::Fire(10, true, false, false, false, false).ID: return 1774; case Fire::Fire(10, false, true, true, true, true).ID: return 1775; case Fire::Fire(10, false, true, true, true, false).ID: return 1776; case Fire::Fire(10, false, true, true, false, true).ID: return 1777; case Fire::Fire(10, false, true, true, false, false).ID: return 1778; case Fire::Fire(10, false, true, false, true, true).ID: return 1779; case Fire::Fire(10, false, true, false, true, false).ID: return 1780; case Fire::Fire(10, false, true, false, false, true).ID: return 1781; case Fire::Fire(10, false, true, false, false, false).ID: return 1782; case Fire::Fire(10, false, false, true, true, true).ID: return 1783; case Fire::Fire(10, false, false, true, true, false).ID: return 1784; case Fire::Fire(10, false, false, true, false, true).ID: return 1785; case Fire::Fire(10, false, false, true, false, false).ID: return 1786; case Fire::Fire(10, false, false, false, true, true).ID: return 1787; case Fire::Fire(10, false, false, false, true, false).ID: return 1788; case Fire::Fire(10, false, false, false, false, true).ID: return 1789; case Fire::Fire(10, false, false, false, false, false).ID: return 1790; case Fire::Fire(11, true, true, true, true, true).ID: return 1791; case Fire::Fire(11, true, true, true, true, false).ID: return 1792; case Fire::Fire(11, true, true, true, false, true).ID: return 1793; case Fire::Fire(11, true, true, true, false, false).ID: return 1794; case Fire::Fire(11, true, true, false, true, true).ID: return 1795; case Fire::Fire(11, true, true, false, true, false).ID: return 1796; case Fire::Fire(11, true, true, false, false, true).ID: return 1797; case Fire::Fire(11, true, true, false, false, false).ID: return 1798; case Fire::Fire(11, true, false, true, true, true).ID: return 1799; case Fire::Fire(11, true, false, true, true, false).ID: return 1800; case Fire::Fire(11, true, false, true, false, true).ID: return 1801; case Fire::Fire(11, true, false, true, false, false).ID: return 1802; case Fire::Fire(11, true, false, false, true, true).ID: return 1803; case Fire::Fire(11, true, false, false, true, false).ID: return 1804; case Fire::Fire(11, true, false, false, false, true).ID: return 1805; case Fire::Fire(11, true, false, false, false, false).ID: return 1806; case Fire::Fire(11, false, true, true, true, true).ID: return 1807; case Fire::Fire(11, false, true, true, true, false).ID: return 1808; case Fire::Fire(11, false, true, true, false, true).ID: return 1809; case Fire::Fire(11, false, true, true, false, false).ID: return 1810; case Fire::Fire(11, false, true, false, true, true).ID: return 1811; case Fire::Fire(11, false, true, false, true, false).ID: return 1812; case Fire::Fire(11, false, true, false, false, true).ID: return 1813; case Fire::Fire(11, false, true, false, false, false).ID: return 1814; case Fire::Fire(11, false, false, true, true, true).ID: return 1815; case Fire::Fire(11, false, false, true, true, false).ID: return 1816; case Fire::Fire(11, false, false, true, false, true).ID: return 1817; case Fire::Fire(11, false, false, true, false, false).ID: return 1818; case Fire::Fire(11, false, false, false, true, true).ID: return 1819; case Fire::Fire(11, false, false, false, true, false).ID: return 1820; case Fire::Fire(11, false, false, false, false, true).ID: return 1821; case Fire::Fire(11, false, false, false, false, false).ID: return 1822; case Fire::Fire(12, true, true, true, true, true).ID: return 1823; case Fire::Fire(12, true, true, true, true, false).ID: return 1824; case Fire::Fire(12, true, true, true, false, true).ID: return 1825; case Fire::Fire(12, true, true, true, false, false).ID: return 1826; case Fire::Fire(12, true, true, false, true, true).ID: return 1827; case Fire::Fire(12, true, true, false, true, false).ID: return 1828; case Fire::Fire(12, true, true, false, false, true).ID: return 1829; case Fire::Fire(12, true, true, false, false, false).ID: return 1830; case Fire::Fire(12, true, false, true, true, true).ID: return 1831; case Fire::Fire(12, true, false, true, true, false).ID: return 1832; case Fire::Fire(12, true, false, true, false, true).ID: return 1833; case Fire::Fire(12, true, false, true, false, false).ID: return 1834; case Fire::Fire(12, true, false, false, true, true).ID: return 1835; case Fire::Fire(12, true, false, false, true, false).ID: return 1836; case Fire::Fire(12, true, false, false, false, true).ID: return 1837; case Fire::Fire(12, true, false, false, false, false).ID: return 1838; case Fire::Fire(12, false, true, true, true, true).ID: return 1839; case Fire::Fire(12, false, true, true, true, false).ID: return 1840; case Fire::Fire(12, false, true, true, false, true).ID: return 1841; case Fire::Fire(12, false, true, true, false, false).ID: return 1842; case Fire::Fire(12, false, true, false, true, true).ID: return 1843; case Fire::Fire(12, false, true, false, true, false).ID: return 1844; case Fire::Fire(12, false, true, false, false, true).ID: return 1845; case Fire::Fire(12, false, true, false, false, false).ID: return 1846; case Fire::Fire(12, false, false, true, true, true).ID: return 1847; case Fire::Fire(12, false, false, true, true, false).ID: return 1848; case Fire::Fire(12, false, false, true, false, true).ID: return 1849; case Fire::Fire(12, false, false, true, false, false).ID: return 1850; case Fire::Fire(12, false, false, false, true, true).ID: return 1851; case Fire::Fire(12, false, false, false, true, false).ID: return 1852; case Fire::Fire(12, false, false, false, false, true).ID: return 1853; case Fire::Fire(12, false, false, false, false, false).ID: return 1854; case Fire::Fire(13, true, true, true, true, true).ID: return 1855; case Fire::Fire(13, true, true, true, true, false).ID: return 1856; case Fire::Fire(13, true, true, true, false, true).ID: return 1857; case Fire::Fire(13, true, true, true, false, false).ID: return 1858; case Fire::Fire(13, true, true, false, true, true).ID: return 1859; case Fire::Fire(13, true, true, false, true, false).ID: return 1860; case Fire::Fire(13, true, true, false, false, true).ID: return 1861; case Fire::Fire(13, true, true, false, false, false).ID: return 1862; case Fire::Fire(13, true, false, true, true, true).ID: return 1863; case Fire::Fire(13, true, false, true, true, false).ID: return 1864; case Fire::Fire(13, true, false, true, false, true).ID: return 1865; case Fire::Fire(13, true, false, true, false, false).ID: return 1866; case Fire::Fire(13, true, false, false, true, true).ID: return 1867; case Fire::Fire(13, true, false, false, true, false).ID: return 1868; case Fire::Fire(13, true, false, false, false, true).ID: return 1869; case Fire::Fire(13, true, false, false, false, false).ID: return 1870; case Fire::Fire(13, false, true, true, true, true).ID: return 1871; case Fire::Fire(13, false, true, true, true, false).ID: return 1872; case Fire::Fire(13, false, true, true, false, true).ID: return 1873; case Fire::Fire(13, false, true, true, false, false).ID: return 1874; case Fire::Fire(13, false, true, false, true, true).ID: return 1875; case Fire::Fire(13, false, true, false, true, false).ID: return 1876; case Fire::Fire(13, false, true, false, false, true).ID: return 1877; case Fire::Fire(13, false, true, false, false, false).ID: return 1878; case Fire::Fire(13, false, false, true, true, true).ID: return 1879; case Fire::Fire(13, false, false, true, true, false).ID: return 1880; case Fire::Fire(13, false, false, true, false, true).ID: return 1881; case Fire::Fire(13, false, false, true, false, false).ID: return 1882; case Fire::Fire(13, false, false, false, true, true).ID: return 1883; case Fire::Fire(13, false, false, false, true, false).ID: return 1884; case Fire::Fire(13, false, false, false, false, true).ID: return 1885; case Fire::Fire(13, false, false, false, false, false).ID: return 1886; case Fire::Fire(14, true, true, true, true, true).ID: return 1887; case Fire::Fire(14, true, true, true, true, false).ID: return 1888; case Fire::Fire(14, true, true, true, false, true).ID: return 1889; case Fire::Fire(14, true, true, true, false, false).ID: return 1890; case Fire::Fire(14, true, true, false, true, true).ID: return 1891; case Fire::Fire(14, true, true, false, true, false).ID: return 1892; case Fire::Fire(14, true, true, false, false, true).ID: return 1893; case Fire::Fire(14, true, true, false, false, false).ID: return 1894; case Fire::Fire(14, true, false, true, true, true).ID: return 1895; case Fire::Fire(14, true, false, true, true, false).ID: return 1896; case Fire::Fire(14, true, false, true, false, true).ID: return 1897; case Fire::Fire(14, true, false, true, false, false).ID: return 1898; case Fire::Fire(14, true, false, false, true, true).ID: return 1899; case Fire::Fire(14, true, false, false, true, false).ID: return 1900; case Fire::Fire(14, true, false, false, false, true).ID: return 1901; case Fire::Fire(14, true, false, false, false, false).ID: return 1902; case Fire::Fire(14, false, true, true, true, true).ID: return 1903; case Fire::Fire(14, false, true, true, true, false).ID: return 1904; case Fire::Fire(14, false, true, true, false, true).ID: return 1905; case Fire::Fire(14, false, true, true, false, false).ID: return 1906; case Fire::Fire(14, false, true, false, true, true).ID: return 1907; case Fire::Fire(14, false, true, false, true, false).ID: return 1908; case Fire::Fire(14, false, true, false, false, true).ID: return 1909; case Fire::Fire(14, false, true, false, false, false).ID: return 1910; case Fire::Fire(14, false, false, true, true, true).ID: return 1911; case Fire::Fire(14, false, false, true, true, false).ID: return 1912; case Fire::Fire(14, false, false, true, false, true).ID: return 1913; case Fire::Fire(14, false, false, true, false, false).ID: return 1914; case Fire::Fire(14, false, false, false, true, true).ID: return 1915; case Fire::Fire(14, false, false, false, true, false).ID: return 1916; case Fire::Fire(14, false, false, false, false, true).ID: return 1917; case Fire::Fire(14, false, false, false, false, false).ID: return 1918; case Fire::Fire(15, true, true, true, true, true).ID: return 1919; case Fire::Fire(15, true, true, true, true, false).ID: return 1920; case Fire::Fire(15, true, true, true, false, true).ID: return 1921; case Fire::Fire(15, true, true, true, false, false).ID: return 1922; case Fire::Fire(15, true, true, false, true, true).ID: return 1923; case Fire::Fire(15, true, true, false, true, false).ID: return 1924; case Fire::Fire(15, true, true, false, false, true).ID: return 1925; case Fire::Fire(15, true, true, false, false, false).ID: return 1926; case Fire::Fire(15, true, false, true, true, true).ID: return 1927; case Fire::Fire(15, true, false, true, true, false).ID: return 1928; case Fire::Fire(15, true, false, true, false, true).ID: return 1929; case Fire::Fire(15, true, false, true, false, false).ID: return 1930; case Fire::Fire(15, true, false, false, true, true).ID: return 1931; case Fire::Fire(15, true, false, false, true, false).ID: return 1932; case Fire::Fire(15, true, false, false, false, true).ID: return 1933; case Fire::Fire(15, true, false, false, false, false).ID: return 1934; case Fire::Fire(15, false, true, true, true, true).ID: return 1935; case Fire::Fire(15, false, true, true, true, false).ID: return 1936; case Fire::Fire(15, false, true, true, false, true).ID: return 1937; case Fire::Fire(15, false, true, true, false, false).ID: return 1938; case Fire::Fire(15, false, true, false, true, true).ID: return 1939; case Fire::Fire(15, false, true, false, true, false).ID: return 1940; case Fire::Fire(15, false, true, false, false, true).ID: return 1941; case Fire::Fire(15, false, true, false, false, false).ID: return 1942; case Fire::Fire(15, false, false, true, true, true).ID: return 1943; case Fire::Fire(15, false, false, true, true, false).ID: return 1944; case Fire::Fire(15, false, false, true, false, true).ID: return 1945; case Fire::Fire(15, false, false, true, false, false).ID: return 1946; case Fire::Fire(15, false, false, false, true, true).ID: return 1947; case Fire::Fire(15, false, false, false, true, false).ID: return 1948; case Fire::Fire(15, false, false, false, false, true).ID: return 1949; case Fire::Fire(15, false, false, false, false, false).ID: return 1950; case FireCoral::FireCoral().ID: return 9001; case FireCoralBlock::FireCoralBlock().ID: return 8982; case FireCoralFan::FireCoralFan().ID: return 9021; case FireCoralWallFan::FireCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9089; case FireCoralWallFan::FireCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9091; case FireCoralWallFan::FireCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9093; case FireCoralWallFan::FireCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9095; case FletchingTable::FletchingTable().ID: return 11164; case FlowerPot::FlowerPot().ID: return 5769; case FrostedIce::FrostedIce(0).ID: return 8713; case FrostedIce::FrostedIce(1).ID: return 8714; case FrostedIce::FrostedIce(2).ID: return 8715; case FrostedIce::FrostedIce(3).ID: return 8716; case Furnace::Furnace(eBlockFace::BLOCK_FACE_ZM, true).ID: return 3371; case Furnace::Furnace(eBlockFace::BLOCK_FACE_ZM, false).ID: return 3372; case Furnace::Furnace(eBlockFace::BLOCK_FACE_ZP, true).ID: return 3373; case Furnace::Furnace(eBlockFace::BLOCK_FACE_ZP, false).ID: return 3374; case Furnace::Furnace(eBlockFace::BLOCK_FACE_XM, true).ID: return 3375; case Furnace::Furnace(eBlockFace::BLOCK_FACE_XM, false).ID: return 3376; case Furnace::Furnace(eBlockFace::BLOCK_FACE_XP, true).ID: return 3377; case Furnace::Furnace(eBlockFace::BLOCK_FACE_XP, false).ID: return 3378; case Glass::Glass().ID: return 230; case GlassPane::GlassPane(true, true, true, true).ID: return 4717; case GlassPane::GlassPane(true, true, true, false).ID: return 4718; case GlassPane::GlassPane(true, true, false, true).ID: return 4721; case GlassPane::GlassPane(true, true, false, false).ID: return 4722; case GlassPane::GlassPane(true, false, true, true).ID: return 4725; case GlassPane::GlassPane(true, false, true, false).ID: return 4726; case GlassPane::GlassPane(true, false, false, true).ID: return 4729; case GlassPane::GlassPane(true, false, false, false).ID: return 4730; case GlassPane::GlassPane(false, true, true, true).ID: return 4733; case GlassPane::GlassPane(false, true, true, false).ID: return 4734; case GlassPane::GlassPane(false, true, false, true).ID: return 4737; case GlassPane::GlassPane(false, true, false, false).ID: return 4738; case GlassPane::GlassPane(false, false, true, true).ID: return 4741; case GlassPane::GlassPane(false, false, true, false).ID: return 4742; case GlassPane::GlassPane(false, false, false, true).ID: return 4745; case GlassPane::GlassPane(false, false, false, false).ID: return 4746; case Glowstone::Glowstone().ID: return 3999; case GoldBlock::GoldBlock().ID: return 1426; case GoldOre::GoldOre().ID: return 69; case Granite::Granite().ID: return 2; case GraniteSlab::GraniteSlab(GraniteSlab::Type::Top).ID: return 10302; case GraniteSlab::GraniteSlab(GraniteSlab::Type::Bottom).ID: return 10304; case GraniteSlab::GraniteSlab(GraniteSlab::Type::Double).ID: return 10306; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Top, GraniteStairs::Shape::Straight).ID: return 9854; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerLeft).ID: return 9856; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerRight).ID: return 9858; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterLeft).ID: return 9860; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterRight).ID: return 9862; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::Straight).ID: return 9864; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerLeft).ID: return 9866; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerRight).ID: return 9868; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterLeft).ID: return 9870; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterRight).ID: return 9872; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Top, GraniteStairs::Shape::Straight).ID: return 9874; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerLeft).ID: return 9876; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerRight).ID: return 9878; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterLeft).ID: return 9880; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterRight).ID: return 9882; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::Straight).ID: return 9884; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerLeft).ID: return 9886; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerRight).ID: return 9888; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterLeft).ID: return 9890; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_ZP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterRight).ID: return 9892; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Top, GraniteStairs::Shape::Straight).ID: return 9894; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerLeft).ID: return 9896; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerRight).ID: return 9898; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterLeft).ID: return 9900; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterRight).ID: return 9902; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::Straight).ID: return 9904; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerLeft).ID: return 9906; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerRight).ID: return 9908; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterLeft).ID: return 9910; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XM, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterRight).ID: return 9912; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Top, GraniteStairs::Shape::Straight).ID: return 9914; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerLeft).ID: return 9916; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Top, GraniteStairs::Shape::InnerRight).ID: return 9918; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterLeft).ID: return 9920; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Top, GraniteStairs::Shape::OuterRight).ID: return 9922; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::Straight).ID: return 9924; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerLeft).ID: return 9926; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::InnerRight).ID: return 9928; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterLeft).ID: return 9930; case GraniteStairs::GraniteStairs(eBlockFace::BLOCK_FACE_XP, GraniteStairs::Half::Bottom, GraniteStairs::Shape::OuterRight).ID: return 9932; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::Low, true, GraniteWall::West::Low).ID: return 10589; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::Low, true, GraniteWall::West::None).ID: return 10590; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::Low, false, GraniteWall::West::Low).ID: return 10593; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::Low, false, GraniteWall::West::None).ID: return 10594; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::None, true, GraniteWall::West::Low).ID: return 10597; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::None, true, GraniteWall::West::None).ID: return 10598; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::None, false, GraniteWall::West::Low).ID: return 10601; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::Low, GraniteWall::South::None, false, GraniteWall::West::None).ID: return 10602; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::Low, true, GraniteWall::West::Low).ID: return 10605; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::Low, true, GraniteWall::West::None).ID: return 10606; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::Low, false, GraniteWall::West::Low).ID: return 10609; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::Low, false, GraniteWall::West::None).ID: return 10610; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::None, true, GraniteWall::West::Low).ID: return 10613; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::None, true, GraniteWall::West::None).ID: return 10614; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::None, false, GraniteWall::West::Low).ID: return 10617; case GraniteWall::GraniteWall(GraniteWall::East::Low, GraniteWall::North::None, GraniteWall::South::None, false, GraniteWall::West::None).ID: return 10618; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::Low, true, GraniteWall::West::Low).ID: return 10621; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::Low, true, GraniteWall::West::None).ID: return 10622; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::Low, false, GraniteWall::West::Low).ID: return 10625; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::Low, false, GraniteWall::West::None).ID: return 10626; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::None, true, GraniteWall::West::Low).ID: return 10629; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::None, true, GraniteWall::West::None).ID: return 10630; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::None, false, GraniteWall::West::Low).ID: return 10633; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::Low, GraniteWall::South::None, false, GraniteWall::West::None).ID: return 10634; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::Low, true, GraniteWall::West::Low).ID: return 10637; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::Low, true, GraniteWall::West::None).ID: return 10638; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::Low, false, GraniteWall::West::Low).ID: return 10641; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::Low, false, GraniteWall::West::None).ID: return 10642; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::None, true, GraniteWall::West::Low).ID: return 10645; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::None, true, GraniteWall::West::None).ID: return 10646; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::None, false, GraniteWall::West::Low).ID: return 10649; case GraniteWall::GraniteWall(GraniteWall::East::None, GraniteWall::North::None, GraniteWall::South::None, false, GraniteWall::West::None).ID: return 10650; case Grass::Grass().ID: return 1341; case GrassBlock::GrassBlock(true).ID: return 8; case GrassBlock::GrassBlock(false).ID: return 9; case GrassPath::GrassPath().ID: return 8687; case Gravel::Gravel().ID: return 68; case GrayBanner::GrayBanner(0).ID: return 7473; case GrayBanner::GrayBanner(1).ID: return 7474; case GrayBanner::GrayBanner(2).ID: return 7475; case GrayBanner::GrayBanner(3).ID: return 7476; case GrayBanner::GrayBanner(4).ID: return 7477; case GrayBanner::GrayBanner(5).ID: return 7478; case GrayBanner::GrayBanner(6).ID: return 7479; case GrayBanner::GrayBanner(7).ID: return 7480; case GrayBanner::GrayBanner(8).ID: return 7481; case GrayBanner::GrayBanner(9).ID: return 7482; case GrayBanner::GrayBanner(10).ID: return 7483; case GrayBanner::GrayBanner(11).ID: return 7484; case GrayBanner::GrayBanner(12).ID: return 7485; case GrayBanner::GrayBanner(13).ID: return 7486; case GrayBanner::GrayBanner(14).ID: return 7487; case GrayBanner::GrayBanner(15).ID: return 7488; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZM, true, GrayBed::Part::Head).ID: return 1160; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZM, true, GrayBed::Part::Foot).ID: return 1161; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZM, false, GrayBed::Part::Head).ID: return 1162; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZM, false, GrayBed::Part::Foot).ID: return 1163; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZP, true, GrayBed::Part::Head).ID: return 1164; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZP, true, GrayBed::Part::Foot).ID: return 1165; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZP, false, GrayBed::Part::Head).ID: return 1166; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_ZP, false, GrayBed::Part::Foot).ID: return 1167; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XM, true, GrayBed::Part::Head).ID: return 1168; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XM, true, GrayBed::Part::Foot).ID: return 1169; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XM, false, GrayBed::Part::Head).ID: return 1170; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XM, false, GrayBed::Part::Foot).ID: return 1171; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XP, true, GrayBed::Part::Head).ID: return 1172; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XP, true, GrayBed::Part::Foot).ID: return 1173; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XP, false, GrayBed::Part::Head).ID: return 1174; case GrayBed::GrayBed(eBlockFace::BLOCK_FACE_XP, false, GrayBed::Part::Foot).ID: return 1175; case GrayCarpet::GrayCarpet().ID: return 7337; case GrayConcrete::GrayConcrete().ID: return 8909; case GrayConcretePowder::GrayConcretePowder().ID: return 8925; case GrayGlazedTerracotta::GrayGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8866; case GrayGlazedTerracotta::GrayGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8867; case GrayGlazedTerracotta::GrayGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8868; case GrayGlazedTerracotta::GrayGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8869; case GrayShulkerBox::GrayShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8784; case GrayShulkerBox::GrayShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8785; case GrayShulkerBox::GrayShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8786; case GrayShulkerBox::GrayShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8787; case GrayShulkerBox::GrayShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8788; case GrayShulkerBox::GrayShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8789; case GrayStainedGlass::GrayStainedGlass().ID: return 4088; case GrayStainedGlassPane::GrayStainedGlassPane(true, true, true, true).ID: return 6553; case GrayStainedGlassPane::GrayStainedGlassPane(true, true, true, false).ID: return 6554; case GrayStainedGlassPane::GrayStainedGlassPane(true, true, false, true).ID: return 6557; case GrayStainedGlassPane::GrayStainedGlassPane(true, true, false, false).ID: return 6558; case GrayStainedGlassPane::GrayStainedGlassPane(true, false, true, true).ID: return 6561; case GrayStainedGlassPane::GrayStainedGlassPane(true, false, true, false).ID: return 6562; case GrayStainedGlassPane::GrayStainedGlassPane(true, false, false, true).ID: return 6565; case GrayStainedGlassPane::GrayStainedGlassPane(true, false, false, false).ID: return 6566; case GrayStainedGlassPane::GrayStainedGlassPane(false, true, true, true).ID: return 6569; case GrayStainedGlassPane::GrayStainedGlassPane(false, true, true, false).ID: return 6570; case GrayStainedGlassPane::GrayStainedGlassPane(false, true, false, true).ID: return 6573; case GrayStainedGlassPane::GrayStainedGlassPane(false, true, false, false).ID: return 6574; case GrayStainedGlassPane::GrayStainedGlassPane(false, false, true, true).ID: return 6577; case GrayStainedGlassPane::GrayStainedGlassPane(false, false, true, false).ID: return 6578; case GrayStainedGlassPane::GrayStainedGlassPane(false, false, false, true).ID: return 6581; case GrayStainedGlassPane::GrayStainedGlassPane(false, false, false, false).ID: return 6582; case GrayTerracotta::GrayTerracotta().ID: return 6318; case GrayWallBanner::GrayWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7645; case GrayWallBanner::GrayWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7646; case GrayWallBanner::GrayWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7647; case GrayWallBanner::GrayWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7648; case GrayWool::GrayWool().ID: return 1390; case GreenBanner::GreenBanner(0).ID: return 7569; case GreenBanner::GreenBanner(1).ID: return 7570; case GreenBanner::GreenBanner(2).ID: return 7571; case GreenBanner::GreenBanner(3).ID: return 7572; case GreenBanner::GreenBanner(4).ID: return 7573; case GreenBanner::GreenBanner(5).ID: return 7574; case GreenBanner::GreenBanner(6).ID: return 7575; case GreenBanner::GreenBanner(7).ID: return 7576; case GreenBanner::GreenBanner(8).ID: return 7577; case GreenBanner::GreenBanner(9).ID: return 7578; case GreenBanner::GreenBanner(10).ID: return 7579; case GreenBanner::GreenBanner(11).ID: return 7580; case GreenBanner::GreenBanner(12).ID: return 7581; case GreenBanner::GreenBanner(13).ID: return 7582; case GreenBanner::GreenBanner(14).ID: return 7583; case GreenBanner::GreenBanner(15).ID: return 7584; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZM, true, GreenBed::Part::Head).ID: return 1256; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZM, true, GreenBed::Part::Foot).ID: return 1257; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZM, false, GreenBed::Part::Head).ID: return 1258; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZM, false, GreenBed::Part::Foot).ID: return 1259; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZP, true, GreenBed::Part::Head).ID: return 1260; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZP, true, GreenBed::Part::Foot).ID: return 1261; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZP, false, GreenBed::Part::Head).ID: return 1262; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_ZP, false, GreenBed::Part::Foot).ID: return 1263; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XM, true, GreenBed::Part::Head).ID: return 1264; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XM, true, GreenBed::Part::Foot).ID: return 1265; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XM, false, GreenBed::Part::Head).ID: return 1266; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XM, false, GreenBed::Part::Foot).ID: return 1267; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XP, true, GreenBed::Part::Head).ID: return 1268; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XP, true, GreenBed::Part::Foot).ID: return 1269; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XP, false, GreenBed::Part::Head).ID: return 1270; case GreenBed::GreenBed(eBlockFace::BLOCK_FACE_XP, false, GreenBed::Part::Foot).ID: return 1271; case GreenCarpet::GreenCarpet().ID: return 7343; case GreenConcrete::GreenConcrete().ID: return 8915; case GreenConcretePowder::GreenConcretePowder().ID: return 8931; case GreenGlazedTerracotta::GreenGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8890; case GreenGlazedTerracotta::GreenGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8891; case GreenGlazedTerracotta::GreenGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8892; case GreenGlazedTerracotta::GreenGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8893; case GreenShulkerBox::GreenShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8820; case GreenShulkerBox::GreenShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8821; case GreenShulkerBox::GreenShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8822; case GreenShulkerBox::GreenShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8823; case GreenShulkerBox::GreenShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8824; case GreenShulkerBox::GreenShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8825; case GreenStainedGlass::GreenStainedGlass().ID: return 4094; case GreenStainedGlassPane::GreenStainedGlassPane(true, true, true, true).ID: return 6745; case GreenStainedGlassPane::GreenStainedGlassPane(true, true, true, false).ID: return 6746; case GreenStainedGlassPane::GreenStainedGlassPane(true, true, false, true).ID: return 6749; case GreenStainedGlassPane::GreenStainedGlassPane(true, true, false, false).ID: return 6750; case GreenStainedGlassPane::GreenStainedGlassPane(true, false, true, true).ID: return 6753; case GreenStainedGlassPane::GreenStainedGlassPane(true, false, true, false).ID: return 6754; case GreenStainedGlassPane::GreenStainedGlassPane(true, false, false, true).ID: return 6757; case GreenStainedGlassPane::GreenStainedGlassPane(true, false, false, false).ID: return 6758; case GreenStainedGlassPane::GreenStainedGlassPane(false, true, true, true).ID: return 6761; case GreenStainedGlassPane::GreenStainedGlassPane(false, true, true, false).ID: return 6762; case GreenStainedGlassPane::GreenStainedGlassPane(false, true, false, true).ID: return 6765; case GreenStainedGlassPane::GreenStainedGlassPane(false, true, false, false).ID: return 6766; case GreenStainedGlassPane::GreenStainedGlassPane(false, false, true, true).ID: return 6769; case GreenStainedGlassPane::GreenStainedGlassPane(false, false, true, false).ID: return 6770; case GreenStainedGlassPane::GreenStainedGlassPane(false, false, false, true).ID: return 6773; case GreenStainedGlassPane::GreenStainedGlassPane(false, false, false, false).ID: return 6774; case GreenTerracotta::GreenTerracotta().ID: return 6324; case GreenWallBanner::GreenWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7669; case GreenWallBanner::GreenWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7670; case GreenWallBanner::GreenWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7671; case GreenWallBanner::GreenWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7672; case GreenWool::GreenWool().ID: return 1396; case Grindstone::Grindstone(Grindstone::Face::Floor, eBlockFace::BLOCK_FACE_ZM).ID: return 11165; case Grindstone::Grindstone(Grindstone::Face::Floor, eBlockFace::BLOCK_FACE_ZP).ID: return 11166; case Grindstone::Grindstone(Grindstone::Face::Floor, eBlockFace::BLOCK_FACE_XM).ID: return 11167; case Grindstone::Grindstone(Grindstone::Face::Floor, eBlockFace::BLOCK_FACE_XP).ID: return 11168; case Grindstone::Grindstone(Grindstone::Face::Wall, eBlockFace::BLOCK_FACE_ZM).ID: return 11169; case Grindstone::Grindstone(Grindstone::Face::Wall, eBlockFace::BLOCK_FACE_ZP).ID: return 11170; case Grindstone::Grindstone(Grindstone::Face::Wall, eBlockFace::BLOCK_FACE_XM).ID: return 11171; case Grindstone::Grindstone(Grindstone::Face::Wall, eBlockFace::BLOCK_FACE_XP).ID: return 11172; case Grindstone::Grindstone(Grindstone::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM).ID: return 11173; case Grindstone::Grindstone(Grindstone::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP).ID: return 11174; case Grindstone::Grindstone(Grindstone::Face::Ceiling, eBlockFace::BLOCK_FACE_XM).ID: return 11175; case Grindstone::Grindstone(Grindstone::Face::Ceiling, eBlockFace::BLOCK_FACE_XP).ID: return 11176; case HayBale::HayBale(HayBale::Axis::X).ID: return 7327; case HayBale::HayBale(HayBale::Axis::Y).ID: return 7328; case HayBale::HayBale(HayBale::Axis::Z).ID: return 7329; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(0).ID: return 6126; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(1).ID: return 6127; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(2).ID: return 6128; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(3).ID: return 6129; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(4).ID: return 6130; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(5).ID: return 6131; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(6).ID: return 6132; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(7).ID: return 6133; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(8).ID: return 6134; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(9).ID: return 6135; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(10).ID: return 6136; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(11).ID: return 6137; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(12).ID: return 6138; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(13).ID: return 6139; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(14).ID: return 6140; case HeavyWeightedPressurePlate::HeavyWeightedPressurePlate(15).ID: return 6141; case HoneyBlock::HoneyBlock().ID: return 11335; case HoneycombBlock::HoneycombBlock().ID: return 11336; case Hopper::Hopper(true, eBlockFace::BLOCK_FACE_YM).ID: return 6192; case Hopper::Hopper(true, eBlockFace::BLOCK_FACE_ZM).ID: return 6193; case Hopper::Hopper(true, eBlockFace::BLOCK_FACE_ZP).ID: return 6194; case Hopper::Hopper(true, eBlockFace::BLOCK_FACE_XM).ID: return 6195; case Hopper::Hopper(true, eBlockFace::BLOCK_FACE_XP).ID: return 6196; case Hopper::Hopper(false, eBlockFace::BLOCK_FACE_YM).ID: return 6197; case Hopper::Hopper(false, eBlockFace::BLOCK_FACE_ZM).ID: return 6198; case Hopper::Hopper(false, eBlockFace::BLOCK_FACE_ZP).ID: return 6199; case Hopper::Hopper(false, eBlockFace::BLOCK_FACE_XM).ID: return 6200; case Hopper::Hopper(false, eBlockFace::BLOCK_FACE_XP).ID: return 6201; case HornCoral::HornCoral().ID: return 9003; case HornCoralBlock::HornCoralBlock().ID: return 8983; case HornCoralFan::HornCoralFan().ID: return 9023; case HornCoralWallFan::HornCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9097; case HornCoralWallFan::HornCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9099; case HornCoralWallFan::HornCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9101; case HornCoralWallFan::HornCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9103; case Ice::Ice().ID: return 3927; case InfestedChiseledStoneBricks::InfestedChiseledStoneBricks().ID: return 4490; case InfestedCobblestone::InfestedCobblestone().ID: return 4486; case InfestedCrackedStoneBricks::InfestedCrackedStoneBricks().ID: return 4489; case InfestedMossyStoneBricks::InfestedMossyStoneBricks().ID: return 4488; case InfestedStone::InfestedStone().ID: return 4485; case InfestedStoneBricks::InfestedStoneBricks().ID: return 4487; case IronBars::IronBars(true, true, true, true).ID: return 4685; case IronBars::IronBars(true, true, true, false).ID: return 4686; case IronBars::IronBars(true, true, false, true).ID: return 4689; case IronBars::IronBars(true, true, false, false).ID: return 4690; case IronBars::IronBars(true, false, true, true).ID: return 4693; case IronBars::IronBars(true, false, true, false).ID: return 4694; case IronBars::IronBars(true, false, false, true).ID: return 4697; case IronBars::IronBars(true, false, false, false).ID: return 4698; case IronBars::IronBars(false, true, true, true).ID: return 4701; case IronBars::IronBars(false, true, true, false).ID: return 4702; case IronBars::IronBars(false, true, false, true).ID: return 4705; case IronBars::IronBars(false, true, false, false).ID: return 4706; case IronBars::IronBars(false, false, true, true).ID: return 4709; case IronBars::IronBars(false, false, true, false).ID: return 4710; case IronBars::IronBars(false, false, false, true).ID: return 4713; case IronBars::IronBars(false, false, false, false).ID: return 4714; case IronBlock::IronBlock().ID: return 1427; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, true).ID: return 3807; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, false).ID: return 3808; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, true).ID: return 3809; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, false).ID: return 3810; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, true).ID: return 3811; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, false).ID: return 3812; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, true).ID: return 3813; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, false).ID: return 3814; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, true).ID: return 3815; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, false).ID: return 3816; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, true).ID: return 3817; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, false).ID: return 3818; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, true).ID: return 3819; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, false).ID: return 3820; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, true).ID: return 3821; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZM, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, false).ID: return 3822; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, true).ID: return 3823; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, false).ID: return 3824; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, true).ID: return 3825; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, false).ID: return 3826; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, true).ID: return 3827; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, false).ID: return 3828; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, true).ID: return 3829; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, false).ID: return 3830; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, true).ID: return 3831; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, false).ID: return 3832; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, true).ID: return 3833; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, false).ID: return 3834; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, true).ID: return 3835; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, false).ID: return 3836; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, true).ID: return 3837; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_ZP, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, false).ID: return 3838; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, true).ID: return 3839; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, false).ID: return 3840; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, true).ID: return 3841; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, false).ID: return 3842; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, true).ID: return 3843; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, false).ID: return 3844; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, true).ID: return 3845; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, false).ID: return 3846; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, true).ID: return 3847; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, false).ID: return 3848; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, true).ID: return 3849; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, false).ID: return 3850; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, true).ID: return 3851; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, false).ID: return 3852; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, true).ID: return 3853; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XM, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, false).ID: return 3854; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, true).ID: return 3855; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Left, true, false).ID: return 3856; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, true).ID: return 3857; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Left, false, false).ID: return 3858; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, true).ID: return 3859; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Right, true, false).ID: return 3860; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, true).ID: return 3861; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Upper, IronDoor::Hinge::Right, false, false).ID: return 3862; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, true).ID: return 3863; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Left, true, false).ID: return 3864; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, true).ID: return 3865; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Left, false, false).ID: return 3866; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, true).ID: return 3867; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Right, true, false).ID: return 3868; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, true).ID: return 3869; case IronDoor::IronDoor(eBlockFace::BLOCK_FACE_XP, IronDoor::Half::Lower, IronDoor::Hinge::Right, false, false).ID: return 3870; case IronOre::IronOre().ID: return 70; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Top, true, true).ID: return 7002; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Top, true, false).ID: return 7004; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Top, false, true).ID: return 7006; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Top, false, false).ID: return 7008; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Bottom, true, true).ID: return 7010; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Bottom, true, false).ID: return 7012; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Bottom, false, true).ID: return 7014; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZM, IronTrapdoor::Half::Bottom, false, false).ID: return 7016; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Top, true, true).ID: return 7018; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Top, true, false).ID: return 7020; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Top, false, true).ID: return 7022; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Top, false, false).ID: return 7024; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Bottom, true, true).ID: return 7026; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Bottom, true, false).ID: return 7028; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Bottom, false, true).ID: return 7030; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_ZP, IronTrapdoor::Half::Bottom, false, false).ID: return 7032; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Top, true, true).ID: return 7034; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Top, true, false).ID: return 7036; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Top, false, true).ID: return 7038; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Top, false, false).ID: return 7040; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Bottom, true, true).ID: return 7042; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Bottom, true, false).ID: return 7044; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Bottom, false, true).ID: return 7046; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XM, IronTrapdoor::Half::Bottom, false, false).ID: return 7048; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Top, true, true).ID: return 7050; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Top, true, false).ID: return 7052; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Top, false, true).ID: return 7054; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Top, false, false).ID: return 7056; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Bottom, true, true).ID: return 7058; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Bottom, true, false).ID: return 7060; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Bottom, false, true).ID: return 7062; case IronTrapdoor::IronTrapdoor(eBlockFace::BLOCK_FACE_XP, IronTrapdoor::Half::Bottom, false, false).ID: return 7064; case JackOLantern::JackOLantern(eBlockFace::BLOCK_FACE_ZM).ID: return 4006; case JackOLantern::JackOLantern(eBlockFace::BLOCK_FACE_ZP).ID: return 4007; case JackOLantern::JackOLantern(eBlockFace::BLOCK_FACE_XM).ID: return 4008; case JackOLantern::JackOLantern(eBlockFace::BLOCK_FACE_XP).ID: return 4009; case Jigsaw::Jigsaw(Jigsaw::Orientation::NorthUp).ID: return 11272; case Jigsaw::Jigsaw(Jigsaw::Orientation::EastUp).ID: return 11273; case Jigsaw::Jigsaw(Jigsaw::Orientation::SouthUp).ID: return 11274; case Jigsaw::Jigsaw(Jigsaw::Orientation::WestUp).ID: return 11275; case Jigsaw::Jigsaw(Jigsaw::Orientation::UpSouth).ID: return 11276; case Jigsaw::Jigsaw(Jigsaw::Orientation::DownSouth).ID: return 11277; case Jukebox::Jukebox(true).ID: return 3962; case Jukebox::Jukebox(false).ID: return 3963; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5882; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5883; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5884; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5885; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 5886; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 5887; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 5888; case JungleButton::JungleButton(JungleButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 5889; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5890; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5891; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5892; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5893; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 5894; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 5895; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 5896; case JungleButton::JungleButton(JungleButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 5897; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5898; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5899; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5900; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5901; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 5902; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 5903; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 5904; case JungleButton::JungleButton(JungleButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 5905; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, true).ID: return 8330; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, false).ID: return 8331; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, true).ID: return 8332; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, false).ID: return 8333; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, true).ID: return 8334; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, false).ID: return 8335; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, true).ID: return 8336; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, false).ID: return 8337; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, true).ID: return 8338; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, false).ID: return 8339; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, true).ID: return 8340; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, false).ID: return 8341; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, true).ID: return 8342; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, false).ID: return 8343; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, true).ID: return 8344; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, false).ID: return 8345; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, true).ID: return 8346; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, false).ID: return 8347; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, true).ID: return 8348; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, false).ID: return 8349; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, true).ID: return 8350; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, false).ID: return 8351; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, true).ID: return 8352; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, false).ID: return 8353; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, true).ID: return 8354; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, false).ID: return 8355; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, true).ID: return 8356; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, false).ID: return 8357; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, true).ID: return 8358; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, false).ID: return 8359; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, true).ID: return 8360; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_ZP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, false).ID: return 8361; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, true).ID: return 8362; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, false).ID: return 8363; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, true).ID: return 8364; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, false).ID: return 8365; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, true).ID: return 8366; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, false).ID: return 8367; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, true).ID: return 8368; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, false).ID: return 8369; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, true).ID: return 8370; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, false).ID: return 8371; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, true).ID: return 8372; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, false).ID: return 8373; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, true).ID: return 8374; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, false).ID: return 8375; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, true).ID: return 8376; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XM, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, false).ID: return 8377; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, true).ID: return 8378; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, true, false).ID: return 8379; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, true).ID: return 8380; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Left, false, false).ID: return 8381; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, true).ID: return 8382; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, true, false).ID: return 8383; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, true).ID: return 8384; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Upper, JungleDoor::Hinge::Right, false, false).ID: return 8385; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, true).ID: return 8386; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, true, false).ID: return 8387; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, true).ID: return 8388; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Left, false, false).ID: return 8389; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, true).ID: return 8390; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, true, false).ID: return 8391; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, true).ID: return 8392; case JungleDoor::JungleDoor(eBlockFace::BLOCK_FACE_XP, JungleDoor::Half::Lower, JungleDoor::Hinge::Right, false, false).ID: return 8393; case JungleFence::JungleFence(true, true, true, true).ID: return 8108; case JungleFence::JungleFence(true, true, true, false).ID: return 8109; case JungleFence::JungleFence(true, true, false, true).ID: return 8112; case JungleFence::JungleFence(true, true, false, false).ID: return 8113; case JungleFence::JungleFence(true, false, true, true).ID: return 8116; case JungleFence::JungleFence(true, false, true, false).ID: return 8117; case JungleFence::JungleFence(true, false, false, true).ID: return 8120; case JungleFence::JungleFence(true, false, false, false).ID: return 8121; case JungleFence::JungleFence(false, true, true, true).ID: return 8124; case JungleFence::JungleFence(false, true, true, false).ID: return 8125; case JungleFence::JungleFence(false, true, false, true).ID: return 8128; case JungleFence::JungleFence(false, true, false, false).ID: return 8129; case JungleFence::JungleFence(false, false, true, true).ID: return 8132; case JungleFence::JungleFence(false, false, true, false).ID: return 8133; case JungleFence::JungleFence(false, false, false, true).ID: return 8136; case JungleFence::JungleFence(false, false, false, false).ID: return 8137; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, true).ID: return 7946; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, false).ID: return 7947; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, true).ID: return 7948; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, false).ID: return 7949; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, true).ID: return 7950; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, false).ID: return 7951; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, true).ID: return 7952; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, false).ID: return 7953; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, true).ID: return 7954; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, false).ID: return 7955; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, true).ID: return 7956; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, false).ID: return 7957; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, true).ID: return 7958; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, false).ID: return 7959; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, true).ID: return 7960; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, false).ID: return 7961; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, true).ID: return 7962; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, false).ID: return 7963; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, true).ID: return 7964; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, false).ID: return 7965; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, true).ID: return 7966; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, false).ID: return 7967; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, true).ID: return 7968; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, false).ID: return 7969; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, true).ID: return 7970; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, false).ID: return 7971; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, true).ID: return 7972; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, false).ID: return 7973; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, true).ID: return 7974; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, false).ID: return 7975; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, true).ID: return 7976; case JungleFenceGate::JungleFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, false).ID: return 7977; case JungleLeaves::JungleLeaves(1, true).ID: return 186; case JungleLeaves::JungleLeaves(1, false).ID: return 187; case JungleLeaves::JungleLeaves(2, true).ID: return 188; case JungleLeaves::JungleLeaves(2, false).ID: return 189; case JungleLeaves::JungleLeaves(3, true).ID: return 190; case JungleLeaves::JungleLeaves(3, false).ID: return 191; case JungleLeaves::JungleLeaves(4, true).ID: return 192; case JungleLeaves::JungleLeaves(4, false).ID: return 193; case JungleLeaves::JungleLeaves(5, true).ID: return 194; case JungleLeaves::JungleLeaves(5, false).ID: return 195; case JungleLeaves::JungleLeaves(6, true).ID: return 196; case JungleLeaves::JungleLeaves(6, false).ID: return 197; case JungleLeaves::JungleLeaves(7, true).ID: return 198; case JungleLeaves::JungleLeaves(7, false).ID: return 199; case JungleLog::JungleLog(JungleLog::Axis::X).ID: return 81; case JungleLog::JungleLog(JungleLog::Axis::Y).ID: return 82; case JungleLog::JungleLog(JungleLog::Axis::Z).ID: return 83; case JunglePlanks::JunglePlanks().ID: return 18; case JunglePressurePlate::JunglePressurePlate(true).ID: return 3877; case JunglePressurePlate::JunglePressurePlate(false).ID: return 3878; case JungleSapling::JungleSapling(0).ID: return 27; case JungleSapling::JungleSapling(1).ID: return 28; case JungleSign::JungleSign(0).ID: return 3508; case JungleSign::JungleSign(1).ID: return 3510; case JungleSign::JungleSign(2).ID: return 3512; case JungleSign::JungleSign(3).ID: return 3514; case JungleSign::JungleSign(4).ID: return 3516; case JungleSign::JungleSign(5).ID: return 3518; case JungleSign::JungleSign(6).ID: return 3520; case JungleSign::JungleSign(7).ID: return 3522; case JungleSign::JungleSign(8).ID: return 3524; case JungleSign::JungleSign(9).ID: return 3526; case JungleSign::JungleSign(10).ID: return 3528; case JungleSign::JungleSign(11).ID: return 3530; case JungleSign::JungleSign(12).ID: return 3532; case JungleSign::JungleSign(13).ID: return 3534; case JungleSign::JungleSign(14).ID: return 3536; case JungleSign::JungleSign(15).ID: return 3538; case JungleSlab::JungleSlab(JungleSlab::Type::Top).ID: return 7783; case JungleSlab::JungleSlab(JungleSlab::Type::Bottom).ID: return 7785; case JungleSlab::JungleSlab(JungleSlab::Type::Double).ID: return 7787; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Top, JungleStairs::Shape::Straight).ID: return 5549; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Top, JungleStairs::Shape::InnerLeft).ID: return 5551; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Top, JungleStairs::Shape::InnerRight).ID: return 5553; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Top, JungleStairs::Shape::OuterLeft).ID: return 5555; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Top, JungleStairs::Shape::OuterRight).ID: return 5557; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Bottom, JungleStairs::Shape::Straight).ID: return 5559; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerLeft).ID: return 5561; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerRight).ID: return 5563; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterLeft).ID: return 5565; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZM, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterRight).ID: return 5567; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Top, JungleStairs::Shape::Straight).ID: return 5569; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Top, JungleStairs::Shape::InnerLeft).ID: return 5571; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Top, JungleStairs::Shape::InnerRight).ID: return 5573; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Top, JungleStairs::Shape::OuterLeft).ID: return 5575; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Top, JungleStairs::Shape::OuterRight).ID: return 5577; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Bottom, JungleStairs::Shape::Straight).ID: return 5579; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerLeft).ID: return 5581; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerRight).ID: return 5583; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterLeft).ID: return 5585; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_ZP, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterRight).ID: return 5587; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Top, JungleStairs::Shape::Straight).ID: return 5589; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Top, JungleStairs::Shape::InnerLeft).ID: return 5591; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Top, JungleStairs::Shape::InnerRight).ID: return 5593; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Top, JungleStairs::Shape::OuterLeft).ID: return 5595; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Top, JungleStairs::Shape::OuterRight).ID: return 5597; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Bottom, JungleStairs::Shape::Straight).ID: return 5599; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerLeft).ID: return 5601; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerRight).ID: return 5603; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterLeft).ID: return 5605; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XM, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterRight).ID: return 5607; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Top, JungleStairs::Shape::Straight).ID: return 5609; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Top, JungleStairs::Shape::InnerLeft).ID: return 5611; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Top, JungleStairs::Shape::InnerRight).ID: return 5613; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Top, JungleStairs::Shape::OuterLeft).ID: return 5615; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Top, JungleStairs::Shape::OuterRight).ID: return 5617; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Bottom, JungleStairs::Shape::Straight).ID: return 5619; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerLeft).ID: return 5621; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Bottom, JungleStairs::Shape::InnerRight).ID: return 5623; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterLeft).ID: return 5625; case JungleStairs::JungleStairs(eBlockFace::BLOCK_FACE_XP, JungleStairs::Half::Bottom, JungleStairs::Shape::OuterRight).ID: return 5627; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Top, true, true).ID: return 4290; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Top, true, false).ID: return 4292; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Top, false, true).ID: return 4294; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Top, false, false).ID: return 4296; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Bottom, true, true).ID: return 4298; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Bottom, true, false).ID: return 4300; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Bottom, false, true).ID: return 4302; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZM, JungleTrapdoor::Half::Bottom, false, false).ID: return 4304; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Top, true, true).ID: return 4306; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Top, true, false).ID: return 4308; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Top, false, true).ID: return 4310; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Top, false, false).ID: return 4312; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Bottom, true, true).ID: return 4314; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Bottom, true, false).ID: return 4316; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Bottom, false, true).ID: return 4318; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_ZP, JungleTrapdoor::Half::Bottom, false, false).ID: return 4320; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Top, true, true).ID: return 4322; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Top, true, false).ID: return 4324; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Top, false, true).ID: return 4326; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Top, false, false).ID: return 4328; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Bottom, true, true).ID: return 4330; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Bottom, true, false).ID: return 4332; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Bottom, false, true).ID: return 4334; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XM, JungleTrapdoor::Half::Bottom, false, false).ID: return 4336; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Top, true, true).ID: return 4338; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Top, true, false).ID: return 4340; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Top, false, true).ID: return 4342; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Top, false, false).ID: return 4344; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Bottom, true, true).ID: return 4346; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Bottom, true, false).ID: return 4348; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Bottom, false, true).ID: return 4350; case JungleTrapdoor::JungleTrapdoor(eBlockFace::BLOCK_FACE_XP, JungleTrapdoor::Half::Bottom, false, false).ID: return 4352; case JungleWallSign::JungleWallSign(eBlockFace::BLOCK_FACE_ZM).ID: return 3766; case JungleWallSign::JungleWallSign(eBlockFace::BLOCK_FACE_ZP).ID: return 3768; case JungleWallSign::JungleWallSign(eBlockFace::BLOCK_FACE_XM).ID: return 3770; case JungleWallSign::JungleWallSign(eBlockFace::BLOCK_FACE_XP).ID: return 3772; case JungleWood::JungleWood(JungleWood::Axis::X).ID: return 117; case JungleWood::JungleWood(JungleWood::Axis::Y).ID: return 118; case JungleWood::JungleWood(JungleWood::Axis::Z).ID: return 119; case Kelp::Kelp(0).ID: return 8934; case Kelp::Kelp(1).ID: return 8935; case Kelp::Kelp(2).ID: return 8936; case Kelp::Kelp(3).ID: return 8937; case Kelp::Kelp(4).ID: return 8938; case Kelp::Kelp(5).ID: return 8939; case Kelp::Kelp(6).ID: return 8940; case Kelp::Kelp(7).ID: return 8941; case Kelp::Kelp(8).ID: return 8942; case Kelp::Kelp(9).ID: return 8943; case Kelp::Kelp(10).ID: return 8944; case Kelp::Kelp(11).ID: return 8945; case Kelp::Kelp(12).ID: return 8946; case Kelp::Kelp(13).ID: return 8947; case Kelp::Kelp(14).ID: return 8948; case Kelp::Kelp(15).ID: return 8949; case Kelp::Kelp(16).ID: return 8950; case Kelp::Kelp(17).ID: return 8951; case Kelp::Kelp(18).ID: return 8952; case Kelp::Kelp(19).ID: return 8953; case Kelp::Kelp(20).ID: return 8954; case Kelp::Kelp(21).ID: return 8955; case Kelp::Kelp(22).ID: return 8956; case Kelp::Kelp(23).ID: return 8957; case Kelp::Kelp(24).ID: return 8958; case Kelp::Kelp(25).ID: return 8959; case KelpPlant::KelpPlant().ID: return 8960; case Ladder::Ladder(eBlockFace::BLOCK_FACE_ZM).ID: return 3636; case Ladder::Ladder(eBlockFace::BLOCK_FACE_ZP).ID: return 3638; case Ladder::Ladder(eBlockFace::BLOCK_FACE_XM).ID: return 3640; case Ladder::Ladder(eBlockFace::BLOCK_FACE_XP).ID: return 3642; case Lantern::Lantern(true).ID: return 11230; case Lantern::Lantern(false).ID: return 11231; case LapisBlock::LapisBlock().ID: return 232; case LapisOre::LapisOre().ID: return 231; case LargeFern::LargeFern(LargeFern::Half::Upper).ID: return 7359; case LargeFern::LargeFern(LargeFern::Half::Lower).ID: return 7360; case Lava::Lava(0).ID: return 50; case Lava::Lava(1).ID: return 51; case Lava::Lava(2).ID: return 52; case Lava::Lava(3).ID: return 53; case Lava::Lava(4).ID: return 54; case Lava::Lava(5).ID: return 55; case Lava::Lava(6).ID: return 56; case Lava::Lava(7).ID: return 57; case Lava::Lava(8).ID: return 58; case Lava::Lava(9).ID: return 59; case Lava::Lava(10).ID: return 60; case Lava::Lava(11).ID: return 61; case Lava::Lava(12).ID: return 62; case Lava::Lava(13).ID: return 63; case Lava::Lava(14).ID: return 64; case Lava::Lava(15).ID: return 65; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZM, true, true).ID: return 11177; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZM, true, false).ID: return 11178; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZM, false, true).ID: return 11179; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZM, false, false).ID: return 11180; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZP, true, true).ID: return 11181; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZP, true, false).ID: return 11182; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZP, false, true).ID: return 11183; case Lectern::Lectern(eBlockFace::BLOCK_FACE_ZP, false, false).ID: return 11184; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XM, true, true).ID: return 11185; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XM, true, false).ID: return 11186; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XM, false, true).ID: return 11187; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XM, false, false).ID: return 11188; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XP, true, true).ID: return 11189; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XP, true, false).ID: return 11190; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XP, false, true).ID: return 11191; case Lectern::Lectern(eBlockFace::BLOCK_FACE_XP, false, false).ID: return 11192; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 3781; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 3782; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 3783; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 3784; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 3785; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 3786; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 3787; case Lever::Lever(Lever::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 3788; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 3789; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 3790; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 3791; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 3792; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 3793; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 3794; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 3795; case Lever::Lever(Lever::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 3796; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 3797; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 3798; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 3799; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 3800; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 3801; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 3802; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 3803; case Lever::Lever(Lever::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 3804; case LightBlueBanner::LightBlueBanner(0).ID: return 7409; case LightBlueBanner::LightBlueBanner(1).ID: return 7410; case LightBlueBanner::LightBlueBanner(2).ID: return 7411; case LightBlueBanner::LightBlueBanner(3).ID: return 7412; case LightBlueBanner::LightBlueBanner(4).ID: return 7413; case LightBlueBanner::LightBlueBanner(5).ID: return 7414; case LightBlueBanner::LightBlueBanner(6).ID: return 7415; case LightBlueBanner::LightBlueBanner(7).ID: return 7416; case LightBlueBanner::LightBlueBanner(8).ID: return 7417; case LightBlueBanner::LightBlueBanner(9).ID: return 7418; case LightBlueBanner::LightBlueBanner(10).ID: return 7419; case LightBlueBanner::LightBlueBanner(11).ID: return 7420; case LightBlueBanner::LightBlueBanner(12).ID: return 7421; case LightBlueBanner::LightBlueBanner(13).ID: return 7422; case LightBlueBanner::LightBlueBanner(14).ID: return 7423; case LightBlueBanner::LightBlueBanner(15).ID: return 7424; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZM, true, LightBlueBed::Part::Head).ID: return 1096; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZM, true, LightBlueBed::Part::Foot).ID: return 1097; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZM, false, LightBlueBed::Part::Head).ID: return 1098; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZM, false, LightBlueBed::Part::Foot).ID: return 1099; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZP, true, LightBlueBed::Part::Head).ID: return 1100; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZP, true, LightBlueBed::Part::Foot).ID: return 1101; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZP, false, LightBlueBed::Part::Head).ID: return 1102; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_ZP, false, LightBlueBed::Part::Foot).ID: return 1103; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XM, true, LightBlueBed::Part::Head).ID: return 1104; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XM, true, LightBlueBed::Part::Foot).ID: return 1105; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XM, false, LightBlueBed::Part::Head).ID: return 1106; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XM, false, LightBlueBed::Part::Foot).ID: return 1107; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XP, true, LightBlueBed::Part::Head).ID: return 1108; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XP, true, LightBlueBed::Part::Foot).ID: return 1109; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XP, false, LightBlueBed::Part::Head).ID: return 1110; case LightBlueBed::LightBlueBed(eBlockFace::BLOCK_FACE_XP, false, LightBlueBed::Part::Foot).ID: return 1111; case LightBlueCarpet::LightBlueCarpet().ID: return 7333; case LightBlueConcrete::LightBlueConcrete().ID: return 8905; case LightBlueConcretePowder::LightBlueConcretePowder().ID: return 8921; case LightBlueGlazedTerracotta::LightBlueGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8850; case LightBlueGlazedTerracotta::LightBlueGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8851; case LightBlueGlazedTerracotta::LightBlueGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8852; case LightBlueGlazedTerracotta::LightBlueGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8853; case LightBlueShulkerBox::LightBlueShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8760; case LightBlueShulkerBox::LightBlueShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8761; case LightBlueShulkerBox::LightBlueShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8762; case LightBlueShulkerBox::LightBlueShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8763; case LightBlueShulkerBox::LightBlueShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8764; case LightBlueShulkerBox::LightBlueShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8765; case LightBlueStainedGlass::LightBlueStainedGlass().ID: return 4084; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, true, true, true).ID: return 6425; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, true, true, false).ID: return 6426; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, true, false, true).ID: return 6429; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, true, false, false).ID: return 6430; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, false, true, true).ID: return 6433; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, false, true, false).ID: return 6434; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, false, false, true).ID: return 6437; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(true, false, false, false).ID: return 6438; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, true, true, true).ID: return 6441; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, true, true, false).ID: return 6442; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, true, false, true).ID: return 6445; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, true, false, false).ID: return 6446; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, false, true, true).ID: return 6449; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, false, true, false).ID: return 6450; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, false, false, true).ID: return 6453; case LightBlueStainedGlassPane::LightBlueStainedGlassPane(false, false, false, false).ID: return 6454; case LightBlueTerracotta::LightBlueTerracotta().ID: return 6314; case LightBlueWallBanner::LightBlueWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7629; case LightBlueWallBanner::LightBlueWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7630; case LightBlueWallBanner::LightBlueWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7631; case LightBlueWallBanner::LightBlueWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7632; case LightBlueWool::LightBlueWool().ID: return 1386; case LightGrayBanner::LightGrayBanner(0).ID: return 7489; case LightGrayBanner::LightGrayBanner(1).ID: return 7490; case LightGrayBanner::LightGrayBanner(2).ID: return 7491; case LightGrayBanner::LightGrayBanner(3).ID: return 7492; case LightGrayBanner::LightGrayBanner(4).ID: return 7493; case LightGrayBanner::LightGrayBanner(5).ID: return 7494; case LightGrayBanner::LightGrayBanner(6).ID: return 7495; case LightGrayBanner::LightGrayBanner(7).ID: return 7496; case LightGrayBanner::LightGrayBanner(8).ID: return 7497; case LightGrayBanner::LightGrayBanner(9).ID: return 7498; case LightGrayBanner::LightGrayBanner(10).ID: return 7499; case LightGrayBanner::LightGrayBanner(11).ID: return 7500; case LightGrayBanner::LightGrayBanner(12).ID: return 7501; case LightGrayBanner::LightGrayBanner(13).ID: return 7502; case LightGrayBanner::LightGrayBanner(14).ID: return 7503; case LightGrayBanner::LightGrayBanner(15).ID: return 7504; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZM, true, LightGrayBed::Part::Head).ID: return 1176; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZM, true, LightGrayBed::Part::Foot).ID: return 1177; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZM, false, LightGrayBed::Part::Head).ID: return 1178; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZM, false, LightGrayBed::Part::Foot).ID: return 1179; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZP, true, LightGrayBed::Part::Head).ID: return 1180; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZP, true, LightGrayBed::Part::Foot).ID: return 1181; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZP, false, LightGrayBed::Part::Head).ID: return 1182; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_ZP, false, LightGrayBed::Part::Foot).ID: return 1183; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XM, true, LightGrayBed::Part::Head).ID: return 1184; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XM, true, LightGrayBed::Part::Foot).ID: return 1185; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XM, false, LightGrayBed::Part::Head).ID: return 1186; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XM, false, LightGrayBed::Part::Foot).ID: return 1187; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XP, true, LightGrayBed::Part::Head).ID: return 1188; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XP, true, LightGrayBed::Part::Foot).ID: return 1189; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XP, false, LightGrayBed::Part::Head).ID: return 1190; case LightGrayBed::LightGrayBed(eBlockFace::BLOCK_FACE_XP, false, LightGrayBed::Part::Foot).ID: return 1191; case LightGrayCarpet::LightGrayCarpet().ID: return 7338; case LightGrayConcrete::LightGrayConcrete().ID: return 8910; case LightGrayConcretePowder::LightGrayConcretePowder().ID: return 8926; case LightGrayGlazedTerracotta::LightGrayGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8870; case LightGrayGlazedTerracotta::LightGrayGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8871; case LightGrayGlazedTerracotta::LightGrayGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8872; case LightGrayGlazedTerracotta::LightGrayGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8873; case LightGrayShulkerBox::LightGrayShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8790; case LightGrayShulkerBox::LightGrayShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8791; case LightGrayShulkerBox::LightGrayShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8792; case LightGrayShulkerBox::LightGrayShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8793; case LightGrayShulkerBox::LightGrayShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8794; case LightGrayShulkerBox::LightGrayShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8795; case LightGrayStainedGlass::LightGrayStainedGlass().ID: return 4089; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, true, true, true).ID: return 6585; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, true, true, false).ID: return 6586; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, true, false, true).ID: return 6589; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, true, false, false).ID: return 6590; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, false, true, true).ID: return 6593; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, false, true, false).ID: return 6594; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, false, false, true).ID: return 6597; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(true, false, false, false).ID: return 6598; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, true, true, true).ID: return 6601; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, true, true, false).ID: return 6602; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, true, false, true).ID: return 6605; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, true, false, false).ID: return 6606; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, false, true, true).ID: return 6609; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, false, true, false).ID: return 6610; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, false, false, true).ID: return 6613; case LightGrayStainedGlassPane::LightGrayStainedGlassPane(false, false, false, false).ID: return 6614; case LightGrayTerracotta::LightGrayTerracotta().ID: return 6319; case LightGrayWallBanner::LightGrayWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7649; case LightGrayWallBanner::LightGrayWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7650; case LightGrayWallBanner::LightGrayWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7651; case LightGrayWallBanner::LightGrayWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7652; case LightGrayWool::LightGrayWool().ID: return 1391; case LightWeightedPressurePlate::LightWeightedPressurePlate(0).ID: return 6110; case LightWeightedPressurePlate::LightWeightedPressurePlate(1).ID: return 6111; case LightWeightedPressurePlate::LightWeightedPressurePlate(2).ID: return 6112; case LightWeightedPressurePlate::LightWeightedPressurePlate(3).ID: return 6113; case LightWeightedPressurePlate::LightWeightedPressurePlate(4).ID: return 6114; case LightWeightedPressurePlate::LightWeightedPressurePlate(5).ID: return 6115; case LightWeightedPressurePlate::LightWeightedPressurePlate(6).ID: return 6116; case LightWeightedPressurePlate::LightWeightedPressurePlate(7).ID: return 6117; case LightWeightedPressurePlate::LightWeightedPressurePlate(8).ID: return 6118; case LightWeightedPressurePlate::LightWeightedPressurePlate(9).ID: return 6119; case LightWeightedPressurePlate::LightWeightedPressurePlate(10).ID: return 6120; case LightWeightedPressurePlate::LightWeightedPressurePlate(11).ID: return 6121; case LightWeightedPressurePlate::LightWeightedPressurePlate(12).ID: return 6122; case LightWeightedPressurePlate::LightWeightedPressurePlate(13).ID: return 6123; case LightWeightedPressurePlate::LightWeightedPressurePlate(14).ID: return 6124; case LightWeightedPressurePlate::LightWeightedPressurePlate(15).ID: return 6125; case Lilac::Lilac(Lilac::Half::Upper).ID: return 7351; case Lilac::Lilac(Lilac::Half::Lower).ID: return 7352; case LilyOfTheValley::LilyOfTheValley().ID: return 1423; case LilyPad::LilyPad().ID: return 4998; case LimeBanner::LimeBanner(0).ID: return 7441; case LimeBanner::LimeBanner(1).ID: return 7442; case LimeBanner::LimeBanner(2).ID: return 7443; case LimeBanner::LimeBanner(3).ID: return 7444; case LimeBanner::LimeBanner(4).ID: return 7445; case LimeBanner::LimeBanner(5).ID: return 7446; case LimeBanner::LimeBanner(6).ID: return 7447; case LimeBanner::LimeBanner(7).ID: return 7448; case LimeBanner::LimeBanner(8).ID: return 7449; case LimeBanner::LimeBanner(9).ID: return 7450; case LimeBanner::LimeBanner(10).ID: return 7451; case LimeBanner::LimeBanner(11).ID: return 7452; case LimeBanner::LimeBanner(12).ID: return 7453; case LimeBanner::LimeBanner(13).ID: return 7454; case LimeBanner::LimeBanner(14).ID: return 7455; case LimeBanner::LimeBanner(15).ID: return 7456; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZM, true, LimeBed::Part::Head).ID: return 1128; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZM, true, LimeBed::Part::Foot).ID: return 1129; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZM, false, LimeBed::Part::Head).ID: return 1130; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZM, false, LimeBed::Part::Foot).ID: return 1131; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZP, true, LimeBed::Part::Head).ID: return 1132; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZP, true, LimeBed::Part::Foot).ID: return 1133; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZP, false, LimeBed::Part::Head).ID: return 1134; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_ZP, false, LimeBed::Part::Foot).ID: return 1135; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XM, true, LimeBed::Part::Head).ID: return 1136; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XM, true, LimeBed::Part::Foot).ID: return 1137; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XM, false, LimeBed::Part::Head).ID: return 1138; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XM, false, LimeBed::Part::Foot).ID: return 1139; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XP, true, LimeBed::Part::Head).ID: return 1140; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XP, true, LimeBed::Part::Foot).ID: return 1141; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XP, false, LimeBed::Part::Head).ID: return 1142; case LimeBed::LimeBed(eBlockFace::BLOCK_FACE_XP, false, LimeBed::Part::Foot).ID: return 1143; case LimeCarpet::LimeCarpet().ID: return 7335; case LimeConcrete::LimeConcrete().ID: return 8907; case LimeConcretePowder::LimeConcretePowder().ID: return 8923; case LimeGlazedTerracotta::LimeGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8858; case LimeGlazedTerracotta::LimeGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8859; case LimeGlazedTerracotta::LimeGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8860; case LimeGlazedTerracotta::LimeGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8861; case LimeShulkerBox::LimeShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8772; case LimeShulkerBox::LimeShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8773; case LimeShulkerBox::LimeShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8774; case LimeShulkerBox::LimeShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8775; case LimeShulkerBox::LimeShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8776; case LimeShulkerBox::LimeShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8777; case LimeStainedGlass::LimeStainedGlass().ID: return 4086; case LimeStainedGlassPane::LimeStainedGlassPane(true, true, true, true).ID: return 6489; case LimeStainedGlassPane::LimeStainedGlassPane(true, true, true, false).ID: return 6490; case LimeStainedGlassPane::LimeStainedGlassPane(true, true, false, true).ID: return 6493; case LimeStainedGlassPane::LimeStainedGlassPane(true, true, false, false).ID: return 6494; case LimeStainedGlassPane::LimeStainedGlassPane(true, false, true, true).ID: return 6497; case LimeStainedGlassPane::LimeStainedGlassPane(true, false, true, false).ID: return 6498; case LimeStainedGlassPane::LimeStainedGlassPane(true, false, false, true).ID: return 6501; case LimeStainedGlassPane::LimeStainedGlassPane(true, false, false, false).ID: return 6502; case LimeStainedGlassPane::LimeStainedGlassPane(false, true, true, true).ID: return 6505; case LimeStainedGlassPane::LimeStainedGlassPane(false, true, true, false).ID: return 6506; case LimeStainedGlassPane::LimeStainedGlassPane(false, true, false, true).ID: return 6509; case LimeStainedGlassPane::LimeStainedGlassPane(false, true, false, false).ID: return 6510; case LimeStainedGlassPane::LimeStainedGlassPane(false, false, true, true).ID: return 6513; case LimeStainedGlassPane::LimeStainedGlassPane(false, false, true, false).ID: return 6514; case LimeStainedGlassPane::LimeStainedGlassPane(false, false, false, true).ID: return 6517; case LimeStainedGlassPane::LimeStainedGlassPane(false, false, false, false).ID: return 6518; case LimeTerracotta::LimeTerracotta().ID: return 6316; case LimeWallBanner::LimeWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7637; case LimeWallBanner::LimeWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7638; case LimeWallBanner::LimeWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7639; case LimeWallBanner::LimeWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7640; case LimeWool::LimeWool().ID: return 1388; case Loom::Loom(eBlockFace::BLOCK_FACE_ZM).ID: return 11131; case Loom::Loom(eBlockFace::BLOCK_FACE_ZP).ID: return 11132; case Loom::Loom(eBlockFace::BLOCK_FACE_XM).ID: return 11133; case Loom::Loom(eBlockFace::BLOCK_FACE_XP).ID: return 11134; case MagentaBanner::MagentaBanner(0).ID: return 7393; case MagentaBanner::MagentaBanner(1).ID: return 7394; case MagentaBanner::MagentaBanner(2).ID: return 7395; case MagentaBanner::MagentaBanner(3).ID: return 7396; case MagentaBanner::MagentaBanner(4).ID: return 7397; case MagentaBanner::MagentaBanner(5).ID: return 7398; case MagentaBanner::MagentaBanner(6).ID: return 7399; case MagentaBanner::MagentaBanner(7).ID: return 7400; case MagentaBanner::MagentaBanner(8).ID: return 7401; case MagentaBanner::MagentaBanner(9).ID: return 7402; case MagentaBanner::MagentaBanner(10).ID: return 7403; case MagentaBanner::MagentaBanner(11).ID: return 7404; case MagentaBanner::MagentaBanner(12).ID: return 7405; case MagentaBanner::MagentaBanner(13).ID: return 7406; case MagentaBanner::MagentaBanner(14).ID: return 7407; case MagentaBanner::MagentaBanner(15).ID: return 7408; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZM, true, MagentaBed::Part::Head).ID: return 1080; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZM, true, MagentaBed::Part::Foot).ID: return 1081; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZM, false, MagentaBed::Part::Head).ID: return 1082; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZM, false, MagentaBed::Part::Foot).ID: return 1083; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZP, true, MagentaBed::Part::Head).ID: return 1084; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZP, true, MagentaBed::Part::Foot).ID: return 1085; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZP, false, MagentaBed::Part::Head).ID: return 1086; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_ZP, false, MagentaBed::Part::Foot).ID: return 1087; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XM, true, MagentaBed::Part::Head).ID: return 1088; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XM, true, MagentaBed::Part::Foot).ID: return 1089; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XM, false, MagentaBed::Part::Head).ID: return 1090; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XM, false, MagentaBed::Part::Foot).ID: return 1091; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XP, true, MagentaBed::Part::Head).ID: return 1092; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XP, true, MagentaBed::Part::Foot).ID: return 1093; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XP, false, MagentaBed::Part::Head).ID: return 1094; case MagentaBed::MagentaBed(eBlockFace::BLOCK_FACE_XP, false, MagentaBed::Part::Foot).ID: return 1095; case MagentaCarpet::MagentaCarpet().ID: return 7332; case MagentaConcrete::MagentaConcrete().ID: return 8904; case MagentaConcretePowder::MagentaConcretePowder().ID: return 8920; case MagentaGlazedTerracotta::MagentaGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8846; case MagentaGlazedTerracotta::MagentaGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8847; case MagentaGlazedTerracotta::MagentaGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8848; case MagentaGlazedTerracotta::MagentaGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8849; case MagentaShulkerBox::MagentaShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8754; case MagentaShulkerBox::MagentaShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8755; case MagentaShulkerBox::MagentaShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8756; case MagentaShulkerBox::MagentaShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8757; case MagentaShulkerBox::MagentaShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8758; case MagentaShulkerBox::MagentaShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8759; case MagentaStainedGlass::MagentaStainedGlass().ID: return 4083; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, true, true, true).ID: return 6393; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, true, true, false).ID: return 6394; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, true, false, true).ID: return 6397; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, true, false, false).ID: return 6398; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, false, true, true).ID: return 6401; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, false, true, false).ID: return 6402; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, false, false, true).ID: return 6405; case MagentaStainedGlassPane::MagentaStainedGlassPane(true, false, false, false).ID: return 6406; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, true, true, true).ID: return 6409; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, true, true, false).ID: return 6410; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, true, false, true).ID: return 6413; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, true, false, false).ID: return 6414; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, false, true, true).ID: return 6417; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, false, true, false).ID: return 6418; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, false, false, true).ID: return 6421; case MagentaStainedGlassPane::MagentaStainedGlassPane(false, false, false, false).ID: return 6422; case MagentaTerracotta::MagentaTerracotta().ID: return 6313; case MagentaWallBanner::MagentaWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7625; case MagentaWallBanner::MagentaWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7626; case MagentaWallBanner::MagentaWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7627; case MagentaWallBanner::MagentaWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7628; case MagentaWool::MagentaWool().ID: return 1385; case MagmaBlock::MagmaBlock().ID: return 8717; case Melon::Melon().ID: return 4747; case MelonStem::MelonStem(0).ID: return 4764; case MelonStem::MelonStem(1).ID: return 4765; case MelonStem::MelonStem(2).ID: return 4766; case MelonStem::MelonStem(3).ID: return 4767; case MelonStem::MelonStem(4).ID: return 4768; case MelonStem::MelonStem(5).ID: return 4769; case MelonStem::MelonStem(6).ID: return 4770; case MelonStem::MelonStem(7).ID: return 4771; case MossyCobblestone::MossyCobblestone().ID: return 1432; case MossyCobblestoneSlab::MossyCobblestoneSlab(MossyCobblestoneSlab::Type::Top).ID: return 10278; case MossyCobblestoneSlab::MossyCobblestoneSlab(MossyCobblestoneSlab::Type::Bottom).ID: return 10280; case MossyCobblestoneSlab::MossyCobblestoneSlab(MossyCobblestoneSlab::Type::Double).ID: return 10282; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::Straight).ID: return 9454; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9456; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9458; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9460; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9462; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::Straight).ID: return 9464; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9466; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9468; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9470; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9472; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::Straight).ID: return 9474; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9476; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9478; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9480; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9482; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::Straight).ID: return 9484; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9486; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9488; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9490; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_ZP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9492; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::Straight).ID: return 9494; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9496; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9498; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9500; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9502; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::Straight).ID: return 9504; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9506; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9508; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9510; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XM, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9512; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::Straight).ID: return 9514; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9516; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9518; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9520; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Top, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9522; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::Straight).ID: return 9524; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerLeft).ID: return 9526; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::InnerRight).ID: return 9528; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterLeft).ID: return 9530; case MossyCobblestoneStairs::MossyCobblestoneStairs(eBlockFace::BLOCK_FACE_XP, MossyCobblestoneStairs::Half::Bottom, MossyCobblestoneStairs::Shape::OuterRight).ID: return 9532; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::Low).ID: return 5707; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::None).ID: return 5708; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::Low).ID: return 5711; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::None).ID: return 5712; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::Low).ID: return 5715; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::None).ID: return 5716; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::Low).ID: return 5719; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::None).ID: return 5720; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::Low).ID: return 5723; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::None).ID: return 5724; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::Low).ID: return 5727; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::None).ID: return 5728; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::Low).ID: return 5731; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::None).ID: return 5732; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::Low).ID: return 5735; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::Low, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::None).ID: return 5736; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::Low).ID: return 5739; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::None).ID: return 5740; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::Low).ID: return 5743; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::None).ID: return 5744; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::Low).ID: return 5747; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::None).ID: return 5748; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::Low).ID: return 5751; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::Low, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::None).ID: return 5752; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::Low).ID: return 5755; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, true, MossyCobblestoneWall::West::None).ID: return 5756; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::Low).ID: return 5759; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::Low, false, MossyCobblestoneWall::West::None).ID: return 5760; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::Low).ID: return 5763; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, true, MossyCobblestoneWall::West::None).ID: return 5764; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::Low).ID: return 5767; case MossyCobblestoneWall::MossyCobblestoneWall(MossyCobblestoneWall::East::None, MossyCobblestoneWall::North::None, MossyCobblestoneWall::South::None, false, MossyCobblestoneWall::West::None).ID: return 5768; case MossyStoneBrickSlab::MossyStoneBrickSlab(MossyStoneBrickSlab::Type::Top).ID: return 10266; case MossyStoneBrickSlab::MossyStoneBrickSlab(MossyStoneBrickSlab::Type::Bottom).ID: return 10268; case MossyStoneBrickSlab::MossyStoneBrickSlab(MossyStoneBrickSlab::Type::Double).ID: return 10270; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::Straight).ID: return 9294; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9296; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9298; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9300; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9302; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::Straight).ID: return 9304; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9306; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9308; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9310; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9312; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::Straight).ID: return 9314; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9316; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9318; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9320; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9322; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::Straight).ID: return 9324; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9326; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9328; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9330; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9332; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::Straight).ID: return 9334; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9336; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9338; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9340; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9342; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::Straight).ID: return 9344; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9346; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9348; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9350; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XM, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9352; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::Straight).ID: return 9354; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9356; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9358; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9360; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Top, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9362; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::Straight).ID: return 9364; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerLeft).ID: return 9366; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::InnerRight).ID: return 9368; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterLeft).ID: return 9370; case MossyStoneBrickStairs::MossyStoneBrickStairs(eBlockFace::BLOCK_FACE_XP, MossyStoneBrickStairs::Half::Bottom, MossyStoneBrickStairs::Shape::OuterRight).ID: return 9372; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::Low).ID: return 10525; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::None).ID: return 10526; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::Low).ID: return 10529; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::None).ID: return 10530; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::Low).ID: return 10533; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::None).ID: return 10534; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::Low).ID: return 10537; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::None).ID: return 10538; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::Low).ID: return 10541; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::None).ID: return 10542; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::Low).ID: return 10545; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::None).ID: return 10546; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::Low).ID: return 10549; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::None).ID: return 10550; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::Low).ID: return 10553; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::Low, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::None).ID: return 10554; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::Low).ID: return 10557; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::None).ID: return 10558; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::Low).ID: return 10561; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::None).ID: return 10562; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::Low).ID: return 10565; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::None).ID: return 10566; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::Low).ID: return 10569; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::Low, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::None).ID: return 10570; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::Low).ID: return 10573; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, true, MossyStoneBrickWall::West::None).ID: return 10574; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::Low).ID: return 10577; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::Low, false, MossyStoneBrickWall::West::None).ID: return 10578; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::Low).ID: return 10581; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, true, MossyStoneBrickWall::West::None).ID: return 10582; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::Low).ID: return 10585; case MossyStoneBrickWall::MossyStoneBrickWall(MossyStoneBrickWall::East::None, MossyStoneBrickWall::North::None, MossyStoneBrickWall::South::None, false, MossyStoneBrickWall::West::None).ID: return 10586; case MossyStoneBricks::MossyStoneBricks().ID: return 4482; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_ZM, MovingPiston::Type::Normal).ID: return 1399; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_ZM, MovingPiston::Type::Sticky).ID: return 1400; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_XP, MovingPiston::Type::Normal).ID: return 1401; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_XP, MovingPiston::Type::Sticky).ID: return 1402; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_ZP, MovingPiston::Type::Normal).ID: return 1403; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_ZP, MovingPiston::Type::Sticky).ID: return 1404; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_XM, MovingPiston::Type::Normal).ID: return 1405; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_XM, MovingPiston::Type::Sticky).ID: return 1406; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_YP, MovingPiston::Type::Normal).ID: return 1407; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_YP, MovingPiston::Type::Sticky).ID: return 1408; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_YM, MovingPiston::Type::Normal).ID: return 1409; case MovingPiston::MovingPiston(eBlockFace::BLOCK_FACE_YM, MovingPiston::Type::Sticky).ID: return 1410; case MushroomStem::MushroomStem(true, true, true, true, true, true).ID: return 4619; case MushroomStem::MushroomStem(true, true, true, true, true, false).ID: return 4620; case MushroomStem::MushroomStem(true, true, true, true, false, true).ID: return 4621; case MushroomStem::MushroomStem(true, true, true, true, false, false).ID: return 4622; case MushroomStem::MushroomStem(true, true, true, false, true, true).ID: return 4623; case MushroomStem::MushroomStem(true, true, true, false, true, false).ID: return 4624; case MushroomStem::MushroomStem(true, true, true, false, false, true).ID: return 4625; case MushroomStem::MushroomStem(true, true, true, false, false, false).ID: return 4626; case MushroomStem::MushroomStem(true, true, false, true, true, true).ID: return 4627; case MushroomStem::MushroomStem(true, true, false, true, true, false).ID: return 4628; case MushroomStem::MushroomStem(true, true, false, true, false, true).ID: return 4629; case MushroomStem::MushroomStem(true, true, false, true, false, false).ID: return 4630; case MushroomStem::MushroomStem(true, true, false, false, true, true).ID: return 4631; case MushroomStem::MushroomStem(true, true, false, false, true, false).ID: return 4632; case MushroomStem::MushroomStem(true, true, false, false, false, true).ID: return 4633; case MushroomStem::MushroomStem(true, true, false, false, false, false).ID: return 4634; case MushroomStem::MushroomStem(true, false, true, true, true, true).ID: return 4635; case MushroomStem::MushroomStem(true, false, true, true, true, false).ID: return 4636; case MushroomStem::MushroomStem(true, false, true, true, false, true).ID: return 4637; case MushroomStem::MushroomStem(true, false, true, true, false, false).ID: return 4638; case MushroomStem::MushroomStem(true, false, true, false, true, true).ID: return 4639; case MushroomStem::MushroomStem(true, false, true, false, true, false).ID: return 4640; case MushroomStem::MushroomStem(true, false, true, false, false, true).ID: return 4641; case MushroomStem::MushroomStem(true, false, true, false, false, false).ID: return 4642; case MushroomStem::MushroomStem(true, false, false, true, true, true).ID: return 4643; case MushroomStem::MushroomStem(true, false, false, true, true, false).ID: return 4644; case MushroomStem::MushroomStem(true, false, false, true, false, true).ID: return 4645; case MushroomStem::MushroomStem(true, false, false, true, false, false).ID: return 4646; case MushroomStem::MushroomStem(true, false, false, false, true, true).ID: return 4647; case MushroomStem::MushroomStem(true, false, false, false, true, false).ID: return 4648; case MushroomStem::MushroomStem(true, false, false, false, false, true).ID: return 4649; case MushroomStem::MushroomStem(true, false, false, false, false, false).ID: return 4650; case MushroomStem::MushroomStem(false, true, true, true, true, true).ID: return 4651; case MushroomStem::MushroomStem(false, true, true, true, true, false).ID: return 4652; case MushroomStem::MushroomStem(false, true, true, true, false, true).ID: return 4653; case MushroomStem::MushroomStem(false, true, true, true, false, false).ID: return 4654; case MushroomStem::MushroomStem(false, true, true, false, true, true).ID: return 4655; case MushroomStem::MushroomStem(false, true, true, false, true, false).ID: return 4656; case MushroomStem::MushroomStem(false, true, true, false, false, true).ID: return 4657; case MushroomStem::MushroomStem(false, true, true, false, false, false).ID: return 4658; case MushroomStem::MushroomStem(false, true, false, true, true, true).ID: return 4659; case MushroomStem::MushroomStem(false, true, false, true, true, false).ID: return 4660; case MushroomStem::MushroomStem(false, true, false, true, false, true).ID: return 4661; case MushroomStem::MushroomStem(false, true, false, true, false, false).ID: return 4662; case MushroomStem::MushroomStem(false, true, false, false, true, true).ID: return 4663; case MushroomStem::MushroomStem(false, true, false, false, true, false).ID: return 4664; case MushroomStem::MushroomStem(false, true, false, false, false, true).ID: return 4665; case MushroomStem::MushroomStem(false, true, false, false, false, false).ID: return 4666; case MushroomStem::MushroomStem(false, false, true, true, true, true).ID: return 4667; case MushroomStem::MushroomStem(false, false, true, true, true, false).ID: return 4668; case MushroomStem::MushroomStem(false, false, true, true, false, true).ID: return 4669; case MushroomStem::MushroomStem(false, false, true, true, false, false).ID: return 4670; case MushroomStem::MushroomStem(false, false, true, false, true, true).ID: return 4671; case MushroomStem::MushroomStem(false, false, true, false, true, false).ID: return 4672; case MushroomStem::MushroomStem(false, false, true, false, false, true).ID: return 4673; case MushroomStem::MushroomStem(false, false, true, false, false, false).ID: return 4674; case MushroomStem::MushroomStem(false, false, false, true, true, true).ID: return 4675; case MushroomStem::MushroomStem(false, false, false, true, true, false).ID: return 4676; case MushroomStem::MushroomStem(false, false, false, true, false, true).ID: return 4677; case MushroomStem::MushroomStem(false, false, false, true, false, false).ID: return 4678; case MushroomStem::MushroomStem(false, false, false, false, true, true).ID: return 4679; case MushroomStem::MushroomStem(false, false, false, false, true, false).ID: return 4680; case MushroomStem::MushroomStem(false, false, false, false, false, true).ID: return 4681; case MushroomStem::MushroomStem(false, false, false, false, false, false).ID: return 4682; case Mycelium::Mycelium(true).ID: return 4996; case Mycelium::Mycelium(false).ID: return 4997; case NetherBrickFence::NetherBrickFence(true, true, true, true).ID: return 5002; case NetherBrickFence::NetherBrickFence(true, true, true, false).ID: return 5003; case NetherBrickFence::NetherBrickFence(true, true, false, true).ID: return 5006; case NetherBrickFence::NetherBrickFence(true, true, false, false).ID: return 5007; case NetherBrickFence::NetherBrickFence(true, false, true, true).ID: return 5010; case NetherBrickFence::NetherBrickFence(true, false, true, false).ID: return 5011; case NetherBrickFence::NetherBrickFence(true, false, false, true).ID: return 5014; case NetherBrickFence::NetherBrickFence(true, false, false, false).ID: return 5015; case NetherBrickFence::NetherBrickFence(false, true, true, true).ID: return 5018; case NetherBrickFence::NetherBrickFence(false, true, true, false).ID: return 5019; case NetherBrickFence::NetherBrickFence(false, true, false, true).ID: return 5022; case NetherBrickFence::NetherBrickFence(false, true, false, false).ID: return 5023; case NetherBrickFence::NetherBrickFence(false, false, true, true).ID: return 5026; case NetherBrickFence::NetherBrickFence(false, false, true, false).ID: return 5027; case NetherBrickFence::NetherBrickFence(false, false, false, true).ID: return 5030; case NetherBrickFence::NetherBrickFence(false, false, false, false).ID: return 5031; case NetherBrickSlab::NetherBrickSlab(NetherBrickSlab::Type::Top).ID: return 7849; case NetherBrickSlab::NetherBrickSlab(NetherBrickSlab::Type::Bottom).ID: return 7851; case NetherBrickSlab::NetherBrickSlab(NetherBrickSlab::Type::Double).ID: return 7853; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::Straight).ID: return 5033; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerLeft).ID: return 5035; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerRight).ID: return 5037; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterLeft).ID: return 5039; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterRight).ID: return 5041; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::Straight).ID: return 5043; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerLeft).ID: return 5045; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerRight).ID: return 5047; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterLeft).ID: return 5049; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterRight).ID: return 5051; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::Straight).ID: return 5053; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerLeft).ID: return 5055; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerRight).ID: return 5057; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterLeft).ID: return 5059; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterRight).ID: return 5061; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::Straight).ID: return 5063; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerLeft).ID: return 5065; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerRight).ID: return 5067; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterLeft).ID: return 5069; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterRight).ID: return 5071; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::Straight).ID: return 5073; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerLeft).ID: return 5075; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerRight).ID: return 5077; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterLeft).ID: return 5079; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterRight).ID: return 5081; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::Straight).ID: return 5083; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerLeft).ID: return 5085; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerRight).ID: return 5087; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterLeft).ID: return 5089; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XM, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterRight).ID: return 5091; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::Straight).ID: return 5093; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerLeft).ID: return 5095; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::InnerRight).ID: return 5097; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterLeft).ID: return 5099; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Top, NetherBrickStairs::Shape::OuterRight).ID: return 5101; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::Straight).ID: return 5103; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerLeft).ID: return 5105; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::InnerRight).ID: return 5107; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterLeft).ID: return 5109; case NetherBrickStairs::NetherBrickStairs(eBlockFace::BLOCK_FACE_XP, NetherBrickStairs::Half::Bottom, NetherBrickStairs::Shape::OuterRight).ID: return 5111; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::Low, true, NetherBrickWall::West::Low).ID: return 10717; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::Low, true, NetherBrickWall::West::None).ID: return 10718; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::Low, false, NetherBrickWall::West::Low).ID: return 10721; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::Low, false, NetherBrickWall::West::None).ID: return 10722; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::None, true, NetherBrickWall::West::Low).ID: return 10725; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::None, true, NetherBrickWall::West::None).ID: return 10726; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::None, false, NetherBrickWall::West::Low).ID: return 10729; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::Low, NetherBrickWall::South::None, false, NetherBrickWall::West::None).ID: return 10730; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::Low, true, NetherBrickWall::West::Low).ID: return 10733; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::Low, true, NetherBrickWall::West::None).ID: return 10734; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::Low, false, NetherBrickWall::West::Low).ID: return 10737; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::Low, false, NetherBrickWall::West::None).ID: return 10738; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::None, true, NetherBrickWall::West::Low).ID: return 10741; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::None, true, NetherBrickWall::West::None).ID: return 10742; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::None, false, NetherBrickWall::West::Low).ID: return 10745; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::Low, NetherBrickWall::North::None, NetherBrickWall::South::None, false, NetherBrickWall::West::None).ID: return 10746; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::Low, true, NetherBrickWall::West::Low).ID: return 10749; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::Low, true, NetherBrickWall::West::None).ID: return 10750; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::Low, false, NetherBrickWall::West::Low).ID: return 10753; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::Low, false, NetherBrickWall::West::None).ID: return 10754; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::None, true, NetherBrickWall::West::Low).ID: return 10757; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::None, true, NetherBrickWall::West::None).ID: return 10758; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::None, false, NetherBrickWall::West::Low).ID: return 10761; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::Low, NetherBrickWall::South::None, false, NetherBrickWall::West::None).ID: return 10762; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::Low, true, NetherBrickWall::West::Low).ID: return 10765; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::Low, true, NetherBrickWall::West::None).ID: return 10766; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::Low, false, NetherBrickWall::West::Low).ID: return 10769; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::Low, false, NetherBrickWall::West::None).ID: return 10770; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::None, true, NetherBrickWall::West::Low).ID: return 10773; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::None, true, NetherBrickWall::West::None).ID: return 10774; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::None, false, NetherBrickWall::West::Low).ID: return 10777; case NetherBrickWall::NetherBrickWall(NetherBrickWall::East::None, NetherBrickWall::North::None, NetherBrickWall::South::None, false, NetherBrickWall::West::None).ID: return 10778; case NetherBricks::NetherBricks().ID: return 4999; case NetherPortal::NetherPortal(NetherPortal::Axis::X).ID: return 4000; case NetherPortal::NetherPortal(NetherPortal::Axis::Z).ID: return 4001; case NetherQuartzOre::NetherQuartzOre().ID: return 6191; case NetherWart::NetherWart(0).ID: return 5112; case NetherWart::NetherWart(1).ID: return 5113; case NetherWart::NetherWart(2).ID: return 5114; case NetherWart::NetherWart(3).ID: return 5115; case NetherWartBlock::NetherWartBlock().ID: return 8718; case Netherrack::Netherrack().ID: return 3997; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 0, true).ID: return 248; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 0, false).ID: return 249; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 1, true).ID: return 250; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 1, false).ID: return 251; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 2, true).ID: return 252; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 2, false).ID: return 253; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 3, true).ID: return 254; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 3, false).ID: return 255; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 4, true).ID: return 256; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 4, false).ID: return 257; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 5, true).ID: return 258; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 5, false).ID: return 259; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 6, true).ID: return 260; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 6, false).ID: return 261; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 7, true).ID: return 262; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 7, false).ID: return 263; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 8, true).ID: return 264; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 8, false).ID: return 265; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 9, true).ID: return 266; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 9, false).ID: return 267; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 10, true).ID: return 268; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 10, false).ID: return 269; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 11, true).ID: return 270; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 11, false).ID: return 271; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 12, true).ID: return 272; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 12, false).ID: return 273; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 13, true).ID: return 274; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 13, false).ID: return 275; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 14, true).ID: return 276; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 14, false).ID: return 277; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 15, true).ID: return 278; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 15, false).ID: return 279; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 16, true).ID: return 280; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 16, false).ID: return 281; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 17, true).ID: return 282; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 17, false).ID: return 283; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 18, true).ID: return 284; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 18, false).ID: return 285; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 19, true).ID: return 286; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 19, false).ID: return 287; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 20, true).ID: return 288; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 20, false).ID: return 289; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 21, true).ID: return 290; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 21, false).ID: return 291; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 22, true).ID: return 292; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 22, false).ID: return 293; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 23, true).ID: return 294; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 23, false).ID: return 295; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 24, true).ID: return 296; case NoteBlock::NoteBlock(NoteBlock::Instrument::Harp, 24, false).ID: return 297; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 0, true).ID: return 298; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 0, false).ID: return 299; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 1, true).ID: return 300; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 1, false).ID: return 301; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 2, true).ID: return 302; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 2, false).ID: return 303; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 3, true).ID: return 304; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 3, false).ID: return 305; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 4, true).ID: return 306; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 4, false).ID: return 307; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 5, true).ID: return 308; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 5, false).ID: return 309; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 6, true).ID: return 310; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 6, false).ID: return 311; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 7, true).ID: return 312; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 7, false).ID: return 313; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 8, true).ID: return 314; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 8, false).ID: return 315; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 9, true).ID: return 316; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 9, false).ID: return 317; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 10, true).ID: return 318; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 10, false).ID: return 319; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 11, true).ID: return 320; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 11, false).ID: return 321; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 12, true).ID: return 322; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 12, false).ID: return 323; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 13, true).ID: return 324; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 13, false).ID: return 325; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 14, true).ID: return 326; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 14, false).ID: return 327; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 15, true).ID: return 328; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 15, false).ID: return 329; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 16, true).ID: return 330; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 16, false).ID: return 331; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 17, true).ID: return 332; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 17, false).ID: return 333; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 18, true).ID: return 334; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 18, false).ID: return 335; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 19, true).ID: return 336; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 19, false).ID: return 337; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 20, true).ID: return 338; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 20, false).ID: return 339; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 21, true).ID: return 340; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 21, false).ID: return 341; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 22, true).ID: return 342; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 22, false).ID: return 343; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 23, true).ID: return 344; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 23, false).ID: return 345; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 24, true).ID: return 346; case NoteBlock::NoteBlock(NoteBlock::Instrument::Basedrum, 24, false).ID: return 347; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 0, true).ID: return 348; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 0, false).ID: return 349; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 1, true).ID: return 350; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 1, false).ID: return 351; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 2, true).ID: return 352; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 2, false).ID: return 353; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 3, true).ID: return 354; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 3, false).ID: return 355; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 4, true).ID: return 356; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 4, false).ID: return 357; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 5, true).ID: return 358; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 5, false).ID: return 359; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 6, true).ID: return 360; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 6, false).ID: return 361; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 7, true).ID: return 362; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 7, false).ID: return 363; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 8, true).ID: return 364; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 8, false).ID: return 365; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 9, true).ID: return 366; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 9, false).ID: return 367; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 10, true).ID: return 368; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 10, false).ID: return 369; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 11, true).ID: return 370; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 11, false).ID: return 371; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 12, true).ID: return 372; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 12, false).ID: return 373; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 13, true).ID: return 374; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 13, false).ID: return 375; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 14, true).ID: return 376; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 14, false).ID: return 377; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 15, true).ID: return 378; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 15, false).ID: return 379; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 16, true).ID: return 380; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 16, false).ID: return 381; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 17, true).ID: return 382; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 17, false).ID: return 383; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 18, true).ID: return 384; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 18, false).ID: return 385; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 19, true).ID: return 386; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 19, false).ID: return 387; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 20, true).ID: return 388; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 20, false).ID: return 389; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 21, true).ID: return 390; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 21, false).ID: return 391; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 22, true).ID: return 392; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 22, false).ID: return 393; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 23, true).ID: return 394; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 23, false).ID: return 395; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 24, true).ID: return 396; case NoteBlock::NoteBlock(NoteBlock::Instrument::Snare, 24, false).ID: return 397; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 0, true).ID: return 398; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 0, false).ID: return 399; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 1, true).ID: return 400; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 1, false).ID: return 401; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 2, true).ID: return 402; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 2, false).ID: return 403; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 3, true).ID: return 404; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 3, false).ID: return 405; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 4, true).ID: return 406; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 4, false).ID: return 407; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 5, true).ID: return 408; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 5, false).ID: return 409; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 6, true).ID: return 410; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 6, false).ID: return 411; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 7, true).ID: return 412; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 7, false).ID: return 413; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 8, true).ID: return 414; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 8, false).ID: return 415; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 9, true).ID: return 416; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 9, false).ID: return 417; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 10, true).ID: return 418; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 10, false).ID: return 419; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 11, true).ID: return 420; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 11, false).ID: return 421; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 12, true).ID: return 422; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 12, false).ID: return 423; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 13, true).ID: return 424; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 13, false).ID: return 425; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 14, true).ID: return 426; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 14, false).ID: return 427; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 15, true).ID: return 428; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 15, false).ID: return 429; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 16, true).ID: return 430; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 16, false).ID: return 431; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 17, true).ID: return 432; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 17, false).ID: return 433; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 18, true).ID: return 434; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 18, false).ID: return 435; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 19, true).ID: return 436; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 19, false).ID: return 437; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 20, true).ID: return 438; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 20, false).ID: return 439; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 21, true).ID: return 440; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 21, false).ID: return 441; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 22, true).ID: return 442; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 22, false).ID: return 443; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 23, true).ID: return 444; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 23, false).ID: return 445; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 24, true).ID: return 446; case NoteBlock::NoteBlock(NoteBlock::Instrument::Hat, 24, false).ID: return 447; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 0, true).ID: return 448; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 0, false).ID: return 449; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 1, true).ID: return 450; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 1, false).ID: return 451; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 2, true).ID: return 452; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 2, false).ID: return 453; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 3, true).ID: return 454; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 3, false).ID: return 455; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 4, true).ID: return 456; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 4, false).ID: return 457; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 5, true).ID: return 458; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 5, false).ID: return 459; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 6, true).ID: return 460; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 6, false).ID: return 461; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 7, true).ID: return 462; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 7, false).ID: return 463; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 8, true).ID: return 464; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 8, false).ID: return 465; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 9, true).ID: return 466; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 9, false).ID: return 467; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 10, true).ID: return 468; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 10, false).ID: return 469; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 11, true).ID: return 470; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 11, false).ID: return 471; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 12, true).ID: return 472; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 12, false).ID: return 473; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 13, true).ID: return 474; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 13, false).ID: return 475; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 14, true).ID: return 476; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 14, false).ID: return 477; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 15, true).ID: return 478; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 15, false).ID: return 479; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 16, true).ID: return 480; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 16, false).ID: return 481; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 17, true).ID: return 482; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 17, false).ID: return 483; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 18, true).ID: return 484; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 18, false).ID: return 485; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 19, true).ID: return 486; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 19, false).ID: return 487; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 20, true).ID: return 488; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 20, false).ID: return 489; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 21, true).ID: return 490; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 21, false).ID: return 491; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 22, true).ID: return 492; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 22, false).ID: return 493; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 23, true).ID: return 494; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 23, false).ID: return 495; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 24, true).ID: return 496; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bass, 24, false).ID: return 497; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 0, true).ID: return 498; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 0, false).ID: return 499; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 1, true).ID: return 500; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 1, false).ID: return 501; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 2, true).ID: return 502; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 2, false).ID: return 503; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 3, true).ID: return 504; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 3, false).ID: return 505; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 4, true).ID: return 506; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 4, false).ID: return 507; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 5, true).ID: return 508; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 5, false).ID: return 509; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 6, true).ID: return 510; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 6, false).ID: return 511; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 7, true).ID: return 512; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 7, false).ID: return 513; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 8, true).ID: return 514; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 8, false).ID: return 515; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 9, true).ID: return 516; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 9, false).ID: return 517; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 10, true).ID: return 518; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 10, false).ID: return 519; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 11, true).ID: return 520; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 11, false).ID: return 521; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 12, true).ID: return 522; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 12, false).ID: return 523; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 13, true).ID: return 524; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 13, false).ID: return 525; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 14, true).ID: return 526; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 14, false).ID: return 527; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 15, true).ID: return 528; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 15, false).ID: return 529; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 16, true).ID: return 530; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 16, false).ID: return 531; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 17, true).ID: return 532; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 17, false).ID: return 533; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 18, true).ID: return 534; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 18, false).ID: return 535; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 19, true).ID: return 536; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 19, false).ID: return 537; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 20, true).ID: return 538; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 20, false).ID: return 539; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 21, true).ID: return 540; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 21, false).ID: return 541; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 22, true).ID: return 542; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 22, false).ID: return 543; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 23, true).ID: return 544; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 23, false).ID: return 545; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 24, true).ID: return 546; case NoteBlock::NoteBlock(NoteBlock::Instrument::Flute, 24, false).ID: return 547; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 0, true).ID: return 548; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 0, false).ID: return 549; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 1, true).ID: return 550; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 1, false).ID: return 551; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 2, true).ID: return 552; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 2, false).ID: return 553; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 3, true).ID: return 554; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 3, false).ID: return 555; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 4, true).ID: return 556; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 4, false).ID: return 557; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 5, true).ID: return 558; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 5, false).ID: return 559; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 6, true).ID: return 560; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 6, false).ID: return 561; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 7, true).ID: return 562; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 7, false).ID: return 563; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 8, true).ID: return 564; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 8, false).ID: return 565; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 9, true).ID: return 566; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 9, false).ID: return 567; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 10, true).ID: return 568; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 10, false).ID: return 569; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 11, true).ID: return 570; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 11, false).ID: return 571; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 12, true).ID: return 572; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 12, false).ID: return 573; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 13, true).ID: return 574; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 13, false).ID: return 575; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 14, true).ID: return 576; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 14, false).ID: return 577; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 15, true).ID: return 578; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 15, false).ID: return 579; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 16, true).ID: return 580; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 16, false).ID: return 581; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 17, true).ID: return 582; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 17, false).ID: return 583; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 18, true).ID: return 584; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 18, false).ID: return 585; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 19, true).ID: return 586; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 19, false).ID: return 587; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 20, true).ID: return 588; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 20, false).ID: return 589; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 21, true).ID: return 590; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 21, false).ID: return 591; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 22, true).ID: return 592; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 22, false).ID: return 593; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 23, true).ID: return 594; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 23, false).ID: return 595; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 24, true).ID: return 596; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bell, 24, false).ID: return 597; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 0, true).ID: return 598; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 0, false).ID: return 599; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 1, true).ID: return 600; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 1, false).ID: return 601; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 2, true).ID: return 602; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 2, false).ID: return 603; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 3, true).ID: return 604; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 3, false).ID: return 605; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 4, true).ID: return 606; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 4, false).ID: return 607; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 5, true).ID: return 608; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 5, false).ID: return 609; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 6, true).ID: return 610; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 6, false).ID: return 611; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 7, true).ID: return 612; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 7, false).ID: return 613; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 8, true).ID: return 614; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 8, false).ID: return 615; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 9, true).ID: return 616; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 9, false).ID: return 617; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 10, true).ID: return 618; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 10, false).ID: return 619; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 11, true).ID: return 620; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 11, false).ID: return 621; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 12, true).ID: return 622; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 12, false).ID: return 623; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 13, true).ID: return 624; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 13, false).ID: return 625; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 14, true).ID: return 626; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 14, false).ID: return 627; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 15, true).ID: return 628; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 15, false).ID: return 629; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 16, true).ID: return 630; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 16, false).ID: return 631; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 17, true).ID: return 632; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 17, false).ID: return 633; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 18, true).ID: return 634; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 18, false).ID: return 635; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 19, true).ID: return 636; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 19, false).ID: return 637; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 20, true).ID: return 638; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 20, false).ID: return 639; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 21, true).ID: return 640; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 21, false).ID: return 641; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 22, true).ID: return 642; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 22, false).ID: return 643; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 23, true).ID: return 644; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 23, false).ID: return 645; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 24, true).ID: return 646; case NoteBlock::NoteBlock(NoteBlock::Instrument::Guitar, 24, false).ID: return 647; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 0, true).ID: return 648; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 0, false).ID: return 649; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 1, true).ID: return 650; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 1, false).ID: return 651; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 2, true).ID: return 652; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 2, false).ID: return 653; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 3, true).ID: return 654; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 3, false).ID: return 655; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 4, true).ID: return 656; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 4, false).ID: return 657; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 5, true).ID: return 658; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 5, false).ID: return 659; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 6, true).ID: return 660; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 6, false).ID: return 661; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 7, true).ID: return 662; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 7, false).ID: return 663; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 8, true).ID: return 664; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 8, false).ID: return 665; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 9, true).ID: return 666; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 9, false).ID: return 667; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 10, true).ID: return 668; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 10, false).ID: return 669; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 11, true).ID: return 670; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 11, false).ID: return 671; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 12, true).ID: return 672; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 12, false).ID: return 673; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 13, true).ID: return 674; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 13, false).ID: return 675; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 14, true).ID: return 676; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 14, false).ID: return 677; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 15, true).ID: return 678; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 15, false).ID: return 679; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 16, true).ID: return 680; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 16, false).ID: return 681; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 17, true).ID: return 682; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 17, false).ID: return 683; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 18, true).ID: return 684; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 18, false).ID: return 685; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 19, true).ID: return 686; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 19, false).ID: return 687; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 20, true).ID: return 688; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 20, false).ID: return 689; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 21, true).ID: return 690; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 21, false).ID: return 691; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 22, true).ID: return 692; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 22, false).ID: return 693; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 23, true).ID: return 694; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 23, false).ID: return 695; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 24, true).ID: return 696; case NoteBlock::NoteBlock(NoteBlock::Instrument::Chime, 24, false).ID: return 697; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 0, true).ID: return 698; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 0, false).ID: return 699; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 1, true).ID: return 700; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 1, false).ID: return 701; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 2, true).ID: return 702; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 2, false).ID: return 703; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 3, true).ID: return 704; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 3, false).ID: return 705; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 4, true).ID: return 706; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 4, false).ID: return 707; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 5, true).ID: return 708; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 5, false).ID: return 709; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 6, true).ID: return 710; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 6, false).ID: return 711; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 7, true).ID: return 712; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 7, false).ID: return 713; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 8, true).ID: return 714; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 8, false).ID: return 715; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 9, true).ID: return 716; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 9, false).ID: return 717; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 10, true).ID: return 718; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 10, false).ID: return 719; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 11, true).ID: return 720; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 11, false).ID: return 721; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 12, true).ID: return 722; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 12, false).ID: return 723; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 13, true).ID: return 724; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 13, false).ID: return 725; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 14, true).ID: return 726; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 14, false).ID: return 727; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 15, true).ID: return 728; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 15, false).ID: return 729; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 16, true).ID: return 730; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 16, false).ID: return 731; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 17, true).ID: return 732; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 17, false).ID: return 733; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 18, true).ID: return 734; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 18, false).ID: return 735; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 19, true).ID: return 736; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 19, false).ID: return 737; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 20, true).ID: return 738; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 20, false).ID: return 739; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 21, true).ID: return 740; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 21, false).ID: return 741; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 22, true).ID: return 742; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 22, false).ID: return 743; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 23, true).ID: return 744; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 23, false).ID: return 745; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 24, true).ID: return 746; case NoteBlock::NoteBlock(NoteBlock::Instrument::Xylophone, 24, false).ID: return 747; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 0, true).ID: return 748; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 0, false).ID: return 749; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 1, true).ID: return 750; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 1, false).ID: return 751; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 2, true).ID: return 752; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 2, false).ID: return 753; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 3, true).ID: return 754; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 3, false).ID: return 755; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 4, true).ID: return 756; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 4, false).ID: return 757; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 5, true).ID: return 758; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 5, false).ID: return 759; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 6, true).ID: return 760; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 6, false).ID: return 761; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 7, true).ID: return 762; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 7, false).ID: return 763; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 8, true).ID: return 764; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 8, false).ID: return 765; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 9, true).ID: return 766; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 9, false).ID: return 767; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 10, true).ID: return 768; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 10, false).ID: return 769; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 11, true).ID: return 770; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 11, false).ID: return 771; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 12, true).ID: return 772; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 12, false).ID: return 773; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 13, true).ID: return 774; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 13, false).ID: return 775; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 14, true).ID: return 776; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 14, false).ID: return 777; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 15, true).ID: return 778; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 15, false).ID: return 779; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 16, true).ID: return 780; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 16, false).ID: return 781; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 17, true).ID: return 782; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 17, false).ID: return 783; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 18, true).ID: return 784; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 18, false).ID: return 785; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 19, true).ID: return 786; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 19, false).ID: return 787; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 20, true).ID: return 788; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 20, false).ID: return 789; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 21, true).ID: return 790; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 21, false).ID: return 791; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 22, true).ID: return 792; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 22, false).ID: return 793; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 23, true).ID: return 794; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 23, false).ID: return 795; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 24, true).ID: return 796; case NoteBlock::NoteBlock(NoteBlock::Instrument::IronXylophone, 24, false).ID: return 797; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 0, true).ID: return 798; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 0, false).ID: return 799; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 1, true).ID: return 800; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 1, false).ID: return 801; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 2, true).ID: return 802; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 2, false).ID: return 803; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 3, true).ID: return 804; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 3, false).ID: return 805; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 4, true).ID: return 806; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 4, false).ID: return 807; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 5, true).ID: return 808; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 5, false).ID: return 809; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 6, true).ID: return 810; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 6, false).ID: return 811; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 7, true).ID: return 812; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 7, false).ID: return 813; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 8, true).ID: return 814; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 8, false).ID: return 815; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 9, true).ID: return 816; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 9, false).ID: return 817; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 10, true).ID: return 818; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 10, false).ID: return 819; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 11, true).ID: return 820; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 11, false).ID: return 821; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 12, true).ID: return 822; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 12, false).ID: return 823; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 13, true).ID: return 824; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 13, false).ID: return 825; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 14, true).ID: return 826; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 14, false).ID: return 827; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 15, true).ID: return 828; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 15, false).ID: return 829; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 16, true).ID: return 830; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 16, false).ID: return 831; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 17, true).ID: return 832; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 17, false).ID: return 833; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 18, true).ID: return 834; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 18, false).ID: return 835; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 19, true).ID: return 836; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 19, false).ID: return 837; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 20, true).ID: return 838; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 20, false).ID: return 839; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 21, true).ID: return 840; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 21, false).ID: return 841; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 22, true).ID: return 842; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 22, false).ID: return 843; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 23, true).ID: return 844; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 23, false).ID: return 845; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 24, true).ID: return 846; case NoteBlock::NoteBlock(NoteBlock::Instrument::CowBell, 24, false).ID: return 847; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 0, true).ID: return 848; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 0, false).ID: return 849; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 1, true).ID: return 850; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 1, false).ID: return 851; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 2, true).ID: return 852; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 2, false).ID: return 853; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 3, true).ID: return 854; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 3, false).ID: return 855; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 4, true).ID: return 856; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 4, false).ID: return 857; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 5, true).ID: return 858; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 5, false).ID: return 859; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 6, true).ID: return 860; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 6, false).ID: return 861; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 7, true).ID: return 862; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 7, false).ID: return 863; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 8, true).ID: return 864; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 8, false).ID: return 865; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 9, true).ID: return 866; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 9, false).ID: return 867; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 10, true).ID: return 868; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 10, false).ID: return 869; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 11, true).ID: return 870; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 11, false).ID: return 871; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 12, true).ID: return 872; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 12, false).ID: return 873; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 13, true).ID: return 874; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 13, false).ID: return 875; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 14, true).ID: return 876; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 14, false).ID: return 877; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 15, true).ID: return 878; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 15, false).ID: return 879; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 16, true).ID: return 880; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 16, false).ID: return 881; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 17, true).ID: return 882; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 17, false).ID: return 883; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 18, true).ID: return 884; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 18, false).ID: return 885; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 19, true).ID: return 886; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 19, false).ID: return 887; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 20, true).ID: return 888; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 20, false).ID: return 889; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 21, true).ID: return 890; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 21, false).ID: return 891; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 22, true).ID: return 892; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 22, false).ID: return 893; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 23, true).ID: return 894; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 23, false).ID: return 895; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 24, true).ID: return 896; case NoteBlock::NoteBlock(NoteBlock::Instrument::Didgeridoo, 24, false).ID: return 897; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 0, true).ID: return 898; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 0, false).ID: return 899; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 1, true).ID: return 900; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 1, false).ID: return 901; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 2, true).ID: return 902; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 2, false).ID: return 903; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 3, true).ID: return 904; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 3, false).ID: return 905; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 4, true).ID: return 906; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 4, false).ID: return 907; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 5, true).ID: return 908; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 5, false).ID: return 909; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 6, true).ID: return 910; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 6, false).ID: return 911; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 7, true).ID: return 912; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 7, false).ID: return 913; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 8, true).ID: return 914; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 8, false).ID: return 915; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 9, true).ID: return 916; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 9, false).ID: return 917; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 10, true).ID: return 918; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 10, false).ID: return 919; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 11, true).ID: return 920; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 11, false).ID: return 921; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 12, true).ID: return 922; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 12, false).ID: return 923; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 13, true).ID: return 924; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 13, false).ID: return 925; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 14, true).ID: return 926; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 14, false).ID: return 927; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 15, true).ID: return 928; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 15, false).ID: return 929; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 16, true).ID: return 930; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 16, false).ID: return 931; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 17, true).ID: return 932; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 17, false).ID: return 933; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 18, true).ID: return 934; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 18, false).ID: return 935; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 19, true).ID: return 936; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 19, false).ID: return 937; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 20, true).ID: return 938; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 20, false).ID: return 939; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 21, true).ID: return 940; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 21, false).ID: return 941; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 22, true).ID: return 942; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 22, false).ID: return 943; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 23, true).ID: return 944; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 23, false).ID: return 945; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 24, true).ID: return 946; case NoteBlock::NoteBlock(NoteBlock::Instrument::Bit, 24, false).ID: return 947; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 0, true).ID: return 948; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 0, false).ID: return 949; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 1, true).ID: return 950; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 1, false).ID: return 951; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 2, true).ID: return 952; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 2, false).ID: return 953; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 3, true).ID: return 954; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 3, false).ID: return 955; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 4, true).ID: return 956; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 4, false).ID: return 957; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 5, true).ID: return 958; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 5, false).ID: return 959; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 6, true).ID: return 960; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 6, false).ID: return 961; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 7, true).ID: return 962; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 7, false).ID: return 963; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 8, true).ID: return 964; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 8, false).ID: return 965; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 9, true).ID: return 966; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 9, false).ID: return 967; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 10, true).ID: return 968; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 10, false).ID: return 969; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 11, true).ID: return 970; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 11, false).ID: return 971; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 12, true).ID: return 972; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 12, false).ID: return 973; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 13, true).ID: return 974; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 13, false).ID: return 975; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 14, true).ID: return 976; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 14, false).ID: return 977; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 15, true).ID: return 978; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 15, false).ID: return 979; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 16, true).ID: return 980; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 16, false).ID: return 981; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 17, true).ID: return 982; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 17, false).ID: return 983; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 18, true).ID: return 984; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 18, false).ID: return 985; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 19, true).ID: return 986; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 19, false).ID: return 987; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 20, true).ID: return 988; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 20, false).ID: return 989; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 21, true).ID: return 990; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 21, false).ID: return 991; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 22, true).ID: return 992; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 22, false).ID: return 993; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 23, true).ID: return 994; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 23, false).ID: return 995; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 24, true).ID: return 996; case NoteBlock::NoteBlock(NoteBlock::Instrument::Banjo, 24, false).ID: return 997; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 0, true).ID: return 998; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 0, false).ID: return 999; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 1, true).ID: return 1000; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 1, false).ID: return 1001; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 2, true).ID: return 1002; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 2, false).ID: return 1003; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 3, true).ID: return 1004; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 3, false).ID: return 1005; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 4, true).ID: return 1006; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 4, false).ID: return 1007; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 5, true).ID: return 1008; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 5, false).ID: return 1009; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 6, true).ID: return 1010; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 6, false).ID: return 1011; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 7, true).ID: return 1012; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 7, false).ID: return 1013; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 8, true).ID: return 1014; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 8, false).ID: return 1015; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 9, true).ID: return 1016; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 9, false).ID: return 1017; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 10, true).ID: return 1018; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 10, false).ID: return 1019; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 11, true).ID: return 1020; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 11, false).ID: return 1021; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 12, true).ID: return 1022; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 12, false).ID: return 1023; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 13, true).ID: return 1024; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 13, false).ID: return 1025; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 14, true).ID: return 1026; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 14, false).ID: return 1027; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 15, true).ID: return 1028; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 15, false).ID: return 1029; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 16, true).ID: return 1030; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 16, false).ID: return 1031; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 17, true).ID: return 1032; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 17, false).ID: return 1033; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 18, true).ID: return 1034; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 18, false).ID: return 1035; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 19, true).ID: return 1036; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 19, false).ID: return 1037; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 20, true).ID: return 1038; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 20, false).ID: return 1039; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 21, true).ID: return 1040; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 21, false).ID: return 1041; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 22, true).ID: return 1042; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 22, false).ID: return 1043; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 23, true).ID: return 1044; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 23, false).ID: return 1045; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 24, true).ID: return 1046; case NoteBlock::NoteBlock(NoteBlock::Instrument::Pling, 24, false).ID: return 1047; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5810; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5811; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5812; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5813; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 5814; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 5815; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 5816; case OakButton::OakButton(OakButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 5817; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5818; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5819; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5820; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5821; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 5822; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 5823; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 5824; case OakButton::OakButton(OakButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 5825; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5826; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5827; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5828; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5829; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 5830; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 5831; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 5832; case OakButton::OakButton(OakButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 5833; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, true).ID: return 3571; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, false).ID: return 3572; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, true).ID: return 3573; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, false).ID: return 3574; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, true).ID: return 3575; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, false).ID: return 3576; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, true).ID: return 3577; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, false).ID: return 3578; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, true).ID: return 3579; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, false).ID: return 3580; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, true).ID: return 3581; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, false).ID: return 3582; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, true).ID: return 3583; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, false).ID: return 3584; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, true).ID: return 3585; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZM, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, false).ID: return 3586; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, true).ID: return 3587; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, false).ID: return 3588; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, true).ID: return 3589; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, false).ID: return 3590; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, true).ID: return 3591; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, false).ID: return 3592; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, true).ID: return 3593; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, false).ID: return 3594; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, true).ID: return 3595; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, false).ID: return 3596; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, true).ID: return 3597; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, false).ID: return 3598; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, true).ID: return 3599; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, false).ID: return 3600; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, true).ID: return 3601; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_ZP, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, false).ID: return 3602; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, true).ID: return 3603; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, false).ID: return 3604; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, true).ID: return 3605; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, false).ID: return 3606; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, true).ID: return 3607; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, false).ID: return 3608; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, true).ID: return 3609; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, false).ID: return 3610; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, true).ID: return 3611; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, false).ID: return 3612; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, true).ID: return 3613; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, false).ID: return 3614; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, true).ID: return 3615; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, false).ID: return 3616; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, true).ID: return 3617; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XM, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, false).ID: return 3618; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, true).ID: return 3619; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Left, true, false).ID: return 3620; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, true).ID: return 3621; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Left, false, false).ID: return 3622; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, true).ID: return 3623; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Right, true, false).ID: return 3624; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, true).ID: return 3625; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Upper, OakDoor::Hinge::Right, false, false).ID: return 3626; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, true).ID: return 3627; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Left, true, false).ID: return 3628; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, true).ID: return 3629; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Left, false, false).ID: return 3630; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, true).ID: return 3631; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Right, true, false).ID: return 3632; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, true).ID: return 3633; case OakDoor::OakDoor(eBlockFace::BLOCK_FACE_XP, OakDoor::Half::Lower, OakDoor::Hinge::Right, false, false).ID: return 3634; case OakFence::OakFence(true, true, true, true).ID: return 3966; case OakFence::OakFence(true, true, true, false).ID: return 3967; case OakFence::OakFence(true, true, false, true).ID: return 3970; case OakFence::OakFence(true, true, false, false).ID: return 3971; case OakFence::OakFence(true, false, true, true).ID: return 3974; case OakFence::OakFence(true, false, true, false).ID: return 3975; case OakFence::OakFence(true, false, false, true).ID: return 3978; case OakFence::OakFence(true, false, false, false).ID: return 3979; case OakFence::OakFence(false, true, true, true).ID: return 3982; case OakFence::OakFence(false, true, true, false).ID: return 3983; case OakFence::OakFence(false, true, false, true).ID: return 3986; case OakFence::OakFence(false, true, false, false).ID: return 3987; case OakFence::OakFence(false, false, true, true).ID: return 3990; case OakFence::OakFence(false, false, true, false).ID: return 3991; case OakFence::OakFence(false, false, false, true).ID: return 3994; case OakFence::OakFence(false, false, false, false).ID: return 3995; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, true).ID: return 4804; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, false).ID: return 4805; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, true).ID: return 4806; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, false).ID: return 4807; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, true).ID: return 4808; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, false).ID: return 4809; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, true).ID: return 4810; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, false).ID: return 4811; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, true).ID: return 4812; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, false).ID: return 4813; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, true).ID: return 4814; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, false).ID: return 4815; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, true).ID: return 4816; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, false).ID: return 4817; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, true).ID: return 4818; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, false).ID: return 4819; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, true).ID: return 4820; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, false).ID: return 4821; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, true).ID: return 4822; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, false).ID: return 4823; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, true).ID: return 4824; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, false).ID: return 4825; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, true).ID: return 4826; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, false).ID: return 4827; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, true).ID: return 4828; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, false).ID: return 4829; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, true).ID: return 4830; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, false).ID: return 4831; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, true).ID: return 4832; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, false).ID: return 4833; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, true).ID: return 4834; case OakFenceGate::OakFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, false).ID: return 4835; case OakLeaves::OakLeaves(1, true).ID: return 144; case OakLeaves::OakLeaves(1, false).ID: return 145; case OakLeaves::OakLeaves(2, true).ID: return 146; case OakLeaves::OakLeaves(2, false).ID: return 147; case OakLeaves::OakLeaves(3, true).ID: return 148; case OakLeaves::OakLeaves(3, false).ID: return 149; case OakLeaves::OakLeaves(4, true).ID: return 150; case OakLeaves::OakLeaves(4, false).ID: return 151; case OakLeaves::OakLeaves(5, true).ID: return 152; case OakLeaves::OakLeaves(5, false).ID: return 153; case OakLeaves::OakLeaves(6, true).ID: return 154; case OakLeaves::OakLeaves(6, false).ID: return 155; case OakLeaves::OakLeaves(7, true).ID: return 156; case OakLeaves::OakLeaves(7, false).ID: return 157; case OakLog::OakLog(OakLog::Axis::X).ID: return 72; case OakLog::OakLog(OakLog::Axis::Y).ID: return 73; case OakLog::OakLog(OakLog::Axis::Z).ID: return 74; case OakPlanks::OakPlanks().ID: return 15; case OakPressurePlate::OakPressurePlate(true).ID: return 3871; case OakPressurePlate::OakPressurePlate(false).ID: return 3872; case OakSapling::OakSapling(0).ID: return 21; case OakSapling::OakSapling(1).ID: return 22; case OakSign::OakSign(0).ID: return 3380; case OakSign::OakSign(1).ID: return 3382; case OakSign::OakSign(2).ID: return 3384; case OakSign::OakSign(3).ID: return 3386; case OakSign::OakSign(4).ID: return 3388; case OakSign::OakSign(5).ID: return 3390; case OakSign::OakSign(6).ID: return 3392; case OakSign::OakSign(7).ID: return 3394; case OakSign::OakSign(8).ID: return 3396; case OakSign::OakSign(9).ID: return 3398; case OakSign::OakSign(10).ID: return 3400; case OakSign::OakSign(11).ID: return 3402; case OakSign::OakSign(12).ID: return 3404; case OakSign::OakSign(13).ID: return 3406; case OakSign::OakSign(14).ID: return 3408; case OakSign::OakSign(15).ID: return 3410; case OakSlab::OakSlab(OakSlab::Type::Top).ID: return 7765; case OakSlab::OakSlab(OakSlab::Type::Bottom).ID: return 7767; case OakSlab::OakSlab(OakSlab::Type::Double).ID: return 7769; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Top, OakStairs::Shape::Straight).ID: return 1953; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Top, OakStairs::Shape::InnerLeft).ID: return 1955; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Top, OakStairs::Shape::InnerRight).ID: return 1957; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Top, OakStairs::Shape::OuterLeft).ID: return 1959; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Top, OakStairs::Shape::OuterRight).ID: return 1961; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Bottom, OakStairs::Shape::Straight).ID: return 1963; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Bottom, OakStairs::Shape::InnerLeft).ID: return 1965; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Bottom, OakStairs::Shape::InnerRight).ID: return 1967; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Bottom, OakStairs::Shape::OuterLeft).ID: return 1969; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZM, OakStairs::Half::Bottom, OakStairs::Shape::OuterRight).ID: return 1971; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Top, OakStairs::Shape::Straight).ID: return 1973; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Top, OakStairs::Shape::InnerLeft).ID: return 1975; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Top, OakStairs::Shape::InnerRight).ID: return 1977; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Top, OakStairs::Shape::OuterLeft).ID: return 1979; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Top, OakStairs::Shape::OuterRight).ID: return 1981; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Bottom, OakStairs::Shape::Straight).ID: return 1983; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Bottom, OakStairs::Shape::InnerLeft).ID: return 1985; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Bottom, OakStairs::Shape::InnerRight).ID: return 1987; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Bottom, OakStairs::Shape::OuterLeft).ID: return 1989; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_ZP, OakStairs::Half::Bottom, OakStairs::Shape::OuterRight).ID: return 1991; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Top, OakStairs::Shape::Straight).ID: return 1993; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Top, OakStairs::Shape::InnerLeft).ID: return 1995; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Top, OakStairs::Shape::InnerRight).ID: return 1997; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Top, OakStairs::Shape::OuterLeft).ID: return 1999; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Top, OakStairs::Shape::OuterRight).ID: return 2001; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Bottom, OakStairs::Shape::Straight).ID: return 2003; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Bottom, OakStairs::Shape::InnerLeft).ID: return 2005; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Bottom, OakStairs::Shape::InnerRight).ID: return 2007; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Bottom, OakStairs::Shape::OuterLeft).ID: return 2009; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XM, OakStairs::Half::Bottom, OakStairs::Shape::OuterRight).ID: return 2011; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Top, OakStairs::Shape::Straight).ID: return 2013; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Top, OakStairs::Shape::InnerLeft).ID: return 2015; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Top, OakStairs::Shape::InnerRight).ID: return 2017; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Top, OakStairs::Shape::OuterLeft).ID: return 2019; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Top, OakStairs::Shape::OuterRight).ID: return 2021; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Bottom, OakStairs::Shape::Straight).ID: return 2023; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Bottom, OakStairs::Shape::InnerLeft).ID: return 2025; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Bottom, OakStairs::Shape::InnerRight).ID: return 2027; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Bottom, OakStairs::Shape::OuterLeft).ID: return 2029; case OakStairs::OakStairs(eBlockFace::BLOCK_FACE_XP, OakStairs::Half::Bottom, OakStairs::Shape::OuterRight).ID: return 2031; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Top, true, true).ID: return 4098; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Top, true, false).ID: return 4100; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Top, false, true).ID: return 4102; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Top, false, false).ID: return 4104; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Bottom, true, true).ID: return 4106; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Bottom, true, false).ID: return 4108; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Bottom, false, true).ID: return 4110; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZM, OakTrapdoor::Half::Bottom, false, false).ID: return 4112; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Top, true, true).ID: return 4114; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Top, true, false).ID: return 4116; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Top, false, true).ID: return 4118; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Top, false, false).ID: return 4120; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Bottom, true, true).ID: return 4122; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Bottom, true, false).ID: return 4124; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Bottom, false, true).ID: return 4126; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_ZP, OakTrapdoor::Half::Bottom, false, false).ID: return 4128; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Top, true, true).ID: return 4130; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Top, true, false).ID: return 4132; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Top, false, true).ID: return 4134; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Top, false, false).ID: return 4136; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Bottom, true, true).ID: return 4138; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Bottom, true, false).ID: return 4140; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Bottom, false, true).ID: return 4142; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XM, OakTrapdoor::Half::Bottom, false, false).ID: return 4144; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Top, true, true).ID: return 4146; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Top, true, false).ID: return 4148; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Top, false, true).ID: return 4150; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Top, false, false).ID: return 4152; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Bottom, true, true).ID: return 4154; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Bottom, true, false).ID: return 4156; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Bottom, false, true).ID: return 4158; case OakTrapdoor::OakTrapdoor(eBlockFace::BLOCK_FACE_XP, OakTrapdoor::Half::Bottom, false, false).ID: return 4160; case OakWallSign::OakWallSign(eBlockFace::BLOCK_FACE_ZM).ID: return 3734; case OakWallSign::OakWallSign(eBlockFace::BLOCK_FACE_ZP).ID: return 3736; case OakWallSign::OakWallSign(eBlockFace::BLOCK_FACE_XM).ID: return 3738; case OakWallSign::OakWallSign(eBlockFace::BLOCK_FACE_XP).ID: return 3740; case OakWood::OakWood(OakWood::Axis::X).ID: return 108; case OakWood::OakWood(OakWood::Axis::Y).ID: return 109; case OakWood::OakWood(OakWood::Axis::Z).ID: return 110; case Observer::Observer(eBlockFace::BLOCK_FACE_ZM, true).ID: return 8724; case Observer::Observer(eBlockFace::BLOCK_FACE_ZM, false).ID: return 8725; case Observer::Observer(eBlockFace::BLOCK_FACE_XP, true).ID: return 8726; case Observer::Observer(eBlockFace::BLOCK_FACE_XP, false).ID: return 8727; case Observer::Observer(eBlockFace::BLOCK_FACE_ZP, true).ID: return 8728; case Observer::Observer(eBlockFace::BLOCK_FACE_ZP, false).ID: return 8729; case Observer::Observer(eBlockFace::BLOCK_FACE_XM, true).ID: return 8730; case Observer::Observer(eBlockFace::BLOCK_FACE_XM, false).ID: return 8731; case Observer::Observer(eBlockFace::BLOCK_FACE_YP, true).ID: return 8732; case Observer::Observer(eBlockFace::BLOCK_FACE_YP, false).ID: return 8733; case Observer::Observer(eBlockFace::BLOCK_FACE_YM, true).ID: return 8734; case Observer::Observer(eBlockFace::BLOCK_FACE_YM, false).ID: return 8735; case Obsidian::Obsidian().ID: return 1433; case OrangeBanner::OrangeBanner(0).ID: return 7377; case OrangeBanner::OrangeBanner(1).ID: return 7378; case OrangeBanner::OrangeBanner(2).ID: return 7379; case OrangeBanner::OrangeBanner(3).ID: return 7380; case OrangeBanner::OrangeBanner(4).ID: return 7381; case OrangeBanner::OrangeBanner(5).ID: return 7382; case OrangeBanner::OrangeBanner(6).ID: return 7383; case OrangeBanner::OrangeBanner(7).ID: return 7384; case OrangeBanner::OrangeBanner(8).ID: return 7385; case OrangeBanner::OrangeBanner(9).ID: return 7386; case OrangeBanner::OrangeBanner(10).ID: return 7387; case OrangeBanner::OrangeBanner(11).ID: return 7388; case OrangeBanner::OrangeBanner(12).ID: return 7389; case OrangeBanner::OrangeBanner(13).ID: return 7390; case OrangeBanner::OrangeBanner(14).ID: return 7391; case OrangeBanner::OrangeBanner(15).ID: return 7392; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZM, true, OrangeBed::Part::Head).ID: return 1064; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZM, true, OrangeBed::Part::Foot).ID: return 1065; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZM, false, OrangeBed::Part::Head).ID: return 1066; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZM, false, OrangeBed::Part::Foot).ID: return 1067; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZP, true, OrangeBed::Part::Head).ID: return 1068; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZP, true, OrangeBed::Part::Foot).ID: return 1069; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZP, false, OrangeBed::Part::Head).ID: return 1070; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_ZP, false, OrangeBed::Part::Foot).ID: return 1071; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XM, true, OrangeBed::Part::Head).ID: return 1072; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XM, true, OrangeBed::Part::Foot).ID: return 1073; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XM, false, OrangeBed::Part::Head).ID: return 1074; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XM, false, OrangeBed::Part::Foot).ID: return 1075; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XP, true, OrangeBed::Part::Head).ID: return 1076; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XP, true, OrangeBed::Part::Foot).ID: return 1077; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XP, false, OrangeBed::Part::Head).ID: return 1078; case OrangeBed::OrangeBed(eBlockFace::BLOCK_FACE_XP, false, OrangeBed::Part::Foot).ID: return 1079; case OrangeCarpet::OrangeCarpet().ID: return 7331; case OrangeConcrete::OrangeConcrete().ID: return 8903; case OrangeConcretePowder::OrangeConcretePowder().ID: return 8919; case OrangeGlazedTerracotta::OrangeGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8842; case OrangeGlazedTerracotta::OrangeGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8843; case OrangeGlazedTerracotta::OrangeGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8844; case OrangeGlazedTerracotta::OrangeGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8845; case OrangeShulkerBox::OrangeShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8748; case OrangeShulkerBox::OrangeShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8749; case OrangeShulkerBox::OrangeShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8750; case OrangeShulkerBox::OrangeShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8751; case OrangeShulkerBox::OrangeShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8752; case OrangeShulkerBox::OrangeShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8753; case OrangeStainedGlass::OrangeStainedGlass().ID: return 4082; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, true, true, true).ID: return 6361; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, true, true, false).ID: return 6362; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, true, false, true).ID: return 6365; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, true, false, false).ID: return 6366; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, false, true, true).ID: return 6369; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, false, true, false).ID: return 6370; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, false, false, true).ID: return 6373; case OrangeStainedGlassPane::OrangeStainedGlassPane(true, false, false, false).ID: return 6374; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, true, true, true).ID: return 6377; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, true, true, false).ID: return 6378; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, true, false, true).ID: return 6381; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, true, false, false).ID: return 6382; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, false, true, true).ID: return 6385; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, false, true, false).ID: return 6386; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, false, false, true).ID: return 6389; case OrangeStainedGlassPane::OrangeStainedGlassPane(false, false, false, false).ID: return 6390; case OrangeTerracotta::OrangeTerracotta().ID: return 6312; case OrangeTulip::OrangeTulip().ID: return 1417; case OrangeWallBanner::OrangeWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7621; case OrangeWallBanner::OrangeWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7622; case OrangeWallBanner::OrangeWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7623; case OrangeWallBanner::OrangeWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7624; case OrangeWool::OrangeWool().ID: return 1384; case OxeyeDaisy::OxeyeDaisy().ID: return 1420; case PackedIce::PackedIce().ID: return 7348; case Peony::Peony(Peony::Half::Upper).ID: return 7355; case Peony::Peony(Peony::Half::Lower).ID: return 7356; case PetrifiedOakSlab::PetrifiedOakSlab(PetrifiedOakSlab::Type::Top).ID: return 7825; case PetrifiedOakSlab::PetrifiedOakSlab(PetrifiedOakSlab::Type::Bottom).ID: return 7827; case PetrifiedOakSlab::PetrifiedOakSlab(PetrifiedOakSlab::Type::Double).ID: return 7829; case PinkBanner::PinkBanner(0).ID: return 7457; case PinkBanner::PinkBanner(1).ID: return 7458; case PinkBanner::PinkBanner(2).ID: return 7459; case PinkBanner::PinkBanner(3).ID: return 7460; case PinkBanner::PinkBanner(4).ID: return 7461; case PinkBanner::PinkBanner(5).ID: return 7462; case PinkBanner::PinkBanner(6).ID: return 7463; case PinkBanner::PinkBanner(7).ID: return 7464; case PinkBanner::PinkBanner(8).ID: return 7465; case PinkBanner::PinkBanner(9).ID: return 7466; case PinkBanner::PinkBanner(10).ID: return 7467; case PinkBanner::PinkBanner(11).ID: return 7468; case PinkBanner::PinkBanner(12).ID: return 7469; case PinkBanner::PinkBanner(13).ID: return 7470; case PinkBanner::PinkBanner(14).ID: return 7471; case PinkBanner::PinkBanner(15).ID: return 7472; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZM, true, PinkBed::Part::Head).ID: return 1144; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZM, true, PinkBed::Part::Foot).ID: return 1145; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZM, false, PinkBed::Part::Head).ID: return 1146; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZM, false, PinkBed::Part::Foot).ID: return 1147; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZP, true, PinkBed::Part::Head).ID: return 1148; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZP, true, PinkBed::Part::Foot).ID: return 1149; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZP, false, PinkBed::Part::Head).ID: return 1150; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_ZP, false, PinkBed::Part::Foot).ID: return 1151; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XM, true, PinkBed::Part::Head).ID: return 1152; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XM, true, PinkBed::Part::Foot).ID: return 1153; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XM, false, PinkBed::Part::Head).ID: return 1154; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XM, false, PinkBed::Part::Foot).ID: return 1155; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XP, true, PinkBed::Part::Head).ID: return 1156; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XP, true, PinkBed::Part::Foot).ID: return 1157; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XP, false, PinkBed::Part::Head).ID: return 1158; case PinkBed::PinkBed(eBlockFace::BLOCK_FACE_XP, false, PinkBed::Part::Foot).ID: return 1159; case PinkCarpet::PinkCarpet().ID: return 7336; case PinkConcrete::PinkConcrete().ID: return 8908; case PinkConcretePowder::PinkConcretePowder().ID: return 8924; case PinkGlazedTerracotta::PinkGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8862; case PinkGlazedTerracotta::PinkGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8863; case PinkGlazedTerracotta::PinkGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8864; case PinkGlazedTerracotta::PinkGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8865; case PinkShulkerBox::PinkShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8778; case PinkShulkerBox::PinkShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8779; case PinkShulkerBox::PinkShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8780; case PinkShulkerBox::PinkShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8781; case PinkShulkerBox::PinkShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8782; case PinkShulkerBox::PinkShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8783; case PinkStainedGlass::PinkStainedGlass().ID: return 4087; case PinkStainedGlassPane::PinkStainedGlassPane(true, true, true, true).ID: return 6521; case PinkStainedGlassPane::PinkStainedGlassPane(true, true, true, false).ID: return 6522; case PinkStainedGlassPane::PinkStainedGlassPane(true, true, false, true).ID: return 6525; case PinkStainedGlassPane::PinkStainedGlassPane(true, true, false, false).ID: return 6526; case PinkStainedGlassPane::PinkStainedGlassPane(true, false, true, true).ID: return 6529; case PinkStainedGlassPane::PinkStainedGlassPane(true, false, true, false).ID: return 6530; case PinkStainedGlassPane::PinkStainedGlassPane(true, false, false, true).ID: return 6533; case PinkStainedGlassPane::PinkStainedGlassPane(true, false, false, false).ID: return 6534; case PinkStainedGlassPane::PinkStainedGlassPane(false, true, true, true).ID: return 6537; case PinkStainedGlassPane::PinkStainedGlassPane(false, true, true, false).ID: return 6538; case PinkStainedGlassPane::PinkStainedGlassPane(false, true, false, true).ID: return 6541; case PinkStainedGlassPane::PinkStainedGlassPane(false, true, false, false).ID: return 6542; case PinkStainedGlassPane::PinkStainedGlassPane(false, false, true, true).ID: return 6545; case PinkStainedGlassPane::PinkStainedGlassPane(false, false, true, false).ID: return 6546; case PinkStainedGlassPane::PinkStainedGlassPane(false, false, false, true).ID: return 6549; case PinkStainedGlassPane::PinkStainedGlassPane(false, false, false, false).ID: return 6550; case PinkTerracotta::PinkTerracotta().ID: return 6317; case PinkTulip::PinkTulip().ID: return 1419; case PinkWallBanner::PinkWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7641; case PinkWallBanner::PinkWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7642; case PinkWallBanner::PinkWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7643; case PinkWallBanner::PinkWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7644; case PinkWool::PinkWool().ID: return 1389; case Piston::Piston(true, eBlockFace::BLOCK_FACE_ZM).ID: return 1347; case Piston::Piston(true, eBlockFace::BLOCK_FACE_XP).ID: return 1348; case Piston::Piston(true, eBlockFace::BLOCK_FACE_ZP).ID: return 1349; case Piston::Piston(true, eBlockFace::BLOCK_FACE_XM).ID: return 1350; case Piston::Piston(true, eBlockFace::BLOCK_FACE_YP).ID: return 1351; case Piston::Piston(true, eBlockFace::BLOCK_FACE_YM).ID: return 1352; case Piston::Piston(false, eBlockFace::BLOCK_FACE_ZM).ID: return 1353; case Piston::Piston(false, eBlockFace::BLOCK_FACE_XP).ID: return 1354; case Piston::Piston(false, eBlockFace::BLOCK_FACE_ZP).ID: return 1355; case Piston::Piston(false, eBlockFace::BLOCK_FACE_XM).ID: return 1356; case Piston::Piston(false, eBlockFace::BLOCK_FACE_YP).ID: return 1357; case Piston::Piston(false, eBlockFace::BLOCK_FACE_YM).ID: return 1358; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZM, true, PistonHead::Type::Normal).ID: return 1359; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZM, true, PistonHead::Type::Sticky).ID: return 1360; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZM, false, PistonHead::Type::Normal).ID: return 1361; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZM, false, PistonHead::Type::Sticky).ID: return 1362; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XP, true, PistonHead::Type::Normal).ID: return 1363; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XP, true, PistonHead::Type::Sticky).ID: return 1364; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XP, false, PistonHead::Type::Normal).ID: return 1365; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XP, false, PistonHead::Type::Sticky).ID: return 1366; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZP, true, PistonHead::Type::Normal).ID: return 1367; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZP, true, PistonHead::Type::Sticky).ID: return 1368; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZP, false, PistonHead::Type::Normal).ID: return 1369; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_ZP, false, PistonHead::Type::Sticky).ID: return 1370; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XM, true, PistonHead::Type::Normal).ID: return 1371; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XM, true, PistonHead::Type::Sticky).ID: return 1372; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XM, false, PistonHead::Type::Normal).ID: return 1373; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_XM, false, PistonHead::Type::Sticky).ID: return 1374; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YP, true, PistonHead::Type::Normal).ID: return 1375; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YP, true, PistonHead::Type::Sticky).ID: return 1376; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YP, false, PistonHead::Type::Normal).ID: return 1377; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YP, false, PistonHead::Type::Sticky).ID: return 1378; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YM, true, PistonHead::Type::Normal).ID: return 1379; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YM, true, PistonHead::Type::Sticky).ID: return 1380; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YM, false, PistonHead::Type::Normal).ID: return 1381; case PistonHead::PistonHead(eBlockFace::BLOCK_FACE_YM, false, PistonHead::Type::Sticky).ID: return 1382; case PlayerHead::PlayerHead(0).ID: return 6014; case PlayerHead::PlayerHead(1).ID: return 6015; case PlayerHead::PlayerHead(2).ID: return 6016; case PlayerHead::PlayerHead(3).ID: return 6017; case PlayerHead::PlayerHead(4).ID: return 6018; case PlayerHead::PlayerHead(5).ID: return 6019; case PlayerHead::PlayerHead(6).ID: return 6020; case PlayerHead::PlayerHead(7).ID: return 6021; case PlayerHead::PlayerHead(8).ID: return 6022; case PlayerHead::PlayerHead(9).ID: return 6023; case PlayerHead::PlayerHead(10).ID: return 6024; case PlayerHead::PlayerHead(11).ID: return 6025; case PlayerHead::PlayerHead(12).ID: return 6026; case PlayerHead::PlayerHead(13).ID: return 6027; case PlayerHead::PlayerHead(14).ID: return 6028; case PlayerHead::PlayerHead(15).ID: return 6029; case PlayerWallHead::PlayerWallHead(eBlockFace::BLOCK_FACE_ZM).ID: return 6030; case PlayerWallHead::PlayerWallHead(eBlockFace::BLOCK_FACE_ZP).ID: return 6031; case PlayerWallHead::PlayerWallHead(eBlockFace::BLOCK_FACE_XM).ID: return 6032; case PlayerWallHead::PlayerWallHead(eBlockFace::BLOCK_FACE_XP).ID: return 6033; case Podzol::Podzol(true).ID: return 12; case Podzol::Podzol(false).ID: return 13; case PolishedAndesite::PolishedAndesite().ID: return 7; case PolishedAndesiteSlab::PolishedAndesiteSlab(PolishedAndesiteSlab::Type::Top).ID: return 10320; case PolishedAndesiteSlab::PolishedAndesiteSlab(PolishedAndesiteSlab::Type::Bottom).ID: return 10322; case PolishedAndesiteSlab::PolishedAndesiteSlab(PolishedAndesiteSlab::Type::Double).ID: return 10324; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::Straight).ID: return 10094; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10096; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10098; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10100; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10102; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::Straight).ID: return 10104; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10106; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10108; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10110; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10112; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::Straight).ID: return 10114; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10116; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10118; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10120; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10122; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::Straight).ID: return 10124; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10126; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10128; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10130; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10132; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::Straight).ID: return 10134; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10136; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10138; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10140; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10142; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::Straight).ID: return 10144; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10146; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10148; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10150; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XM, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10152; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::Straight).ID: return 10154; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10156; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10158; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10160; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Top, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10162; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::Straight).ID: return 10164; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerLeft).ID: return 10166; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::InnerRight).ID: return 10168; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterLeft).ID: return 10170; case PolishedAndesiteStairs::PolishedAndesiteStairs(eBlockFace::BLOCK_FACE_XP, PolishedAndesiteStairs::Half::Bottom, PolishedAndesiteStairs::Shape::OuterRight).ID: return 10172; case PolishedDiorite::PolishedDiorite().ID: return 5; case PolishedDioriteSlab::PolishedDioriteSlab(PolishedDioriteSlab::Type::Top).ID: return 10272; case PolishedDioriteSlab::PolishedDioriteSlab(PolishedDioriteSlab::Type::Bottom).ID: return 10274; case PolishedDioriteSlab::PolishedDioriteSlab(PolishedDioriteSlab::Type::Double).ID: return 10276; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::Straight).ID: return 9374; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9376; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerRight).ID: return 9378; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9380; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterRight).ID: return 9382; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::Straight).ID: return 9384; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9386; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerRight).ID: return 9388; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9390; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterRight).ID: return 9392; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::Straight).ID: return 9394; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9396; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerRight).ID: return 9398; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9400; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterRight).ID: return 9402; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::Straight).ID: return 9404; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9406; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerRight).ID: return 9408; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9410; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterRight).ID: return 9412; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::Straight).ID: return 9414; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9416; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerRight).ID: return 9418; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9420; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterRight).ID: return 9422; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::Straight).ID: return 9424; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9426; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerRight).ID: return 9428; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9430; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XM, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterRight).ID: return 9432; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::Straight).ID: return 9434; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9436; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::InnerRight).ID: return 9438; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9440; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Top, PolishedDioriteStairs::Shape::OuterRight).ID: return 9442; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::Straight).ID: return 9444; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerLeft).ID: return 9446; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::InnerRight).ID: return 9448; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterLeft).ID: return 9450; case PolishedDioriteStairs::PolishedDioriteStairs(eBlockFace::BLOCK_FACE_XP, PolishedDioriteStairs::Half::Bottom, PolishedDioriteStairs::Shape::OuterRight).ID: return 9452; case PolishedGranite::PolishedGranite().ID: return 3; case PolishedGraniteSlab::PolishedGraniteSlab(PolishedGraniteSlab::Type::Top).ID: return 10254; case PolishedGraniteSlab::PolishedGraniteSlab(PolishedGraniteSlab::Type::Bottom).ID: return 10256; case PolishedGraniteSlab::PolishedGraniteSlab(PolishedGraniteSlab::Type::Double).ID: return 10258; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::Straight).ID: return 9134; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9136; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerRight).ID: return 9138; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9140; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterRight).ID: return 9142; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::Straight).ID: return 9144; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9146; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerRight).ID: return 9148; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9150; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterRight).ID: return 9152; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::Straight).ID: return 9154; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9156; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerRight).ID: return 9158; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9160; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterRight).ID: return 9162; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::Straight).ID: return 9164; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9166; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerRight).ID: return 9168; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9170; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_ZP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterRight).ID: return 9172; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::Straight).ID: return 9174; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9176; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerRight).ID: return 9178; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9180; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterRight).ID: return 9182; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::Straight).ID: return 9184; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9186; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerRight).ID: return 9188; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9190; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XM, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterRight).ID: return 9192; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::Straight).ID: return 9194; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9196; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::InnerRight).ID: return 9198; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9200; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Top, PolishedGraniteStairs::Shape::OuterRight).ID: return 9202; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::Straight).ID: return 9204; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerLeft).ID: return 9206; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::InnerRight).ID: return 9208; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterLeft).ID: return 9210; case PolishedGraniteStairs::PolishedGraniteStairs(eBlockFace::BLOCK_FACE_XP, PolishedGraniteStairs::Half::Bottom, PolishedGraniteStairs::Shape::OuterRight).ID: return 9212; case Poppy::Poppy().ID: return 1412; case Potatoes::Potatoes(0).ID: return 5802; case Potatoes::Potatoes(1).ID: return 5803; case Potatoes::Potatoes(2).ID: return 5804; case Potatoes::Potatoes(3).ID: return 5805; case Potatoes::Potatoes(4).ID: return 5806; case Potatoes::Potatoes(5).ID: return 5807; case Potatoes::Potatoes(6).ID: return 5808; case Potatoes::Potatoes(7).ID: return 5809; case PottedAcaciaSapling::PottedAcaciaSapling().ID: return 5774; case PottedAllium::PottedAllium().ID: return 5780; case PottedAzureBluet::PottedAzureBluet().ID: return 5781; case PottedBamboo::PottedBamboo().ID: return 9128; case PottedBirchSapling::PottedBirchSapling().ID: return 5772; case PottedBlueOrchid::PottedBlueOrchid().ID: return 5779; case PottedBrownMushroom::PottedBrownMushroom().ID: return 5791; case PottedCactus::PottedCactus().ID: return 5793; case PottedCornflower::PottedCornflower().ID: return 5787; case PottedDandelion::PottedDandelion().ID: return 5777; case PottedDarkOakSapling::PottedDarkOakSapling().ID: return 5775; case PottedDeadBush::PottedDeadBush().ID: return 5792; case PottedFern::PottedFern().ID: return 5776; case PottedJungleSapling::PottedJungleSapling().ID: return 5773; case PottedLilyOfTheValley::PottedLilyOfTheValley().ID: return 5788; case PottedOakSapling::PottedOakSapling().ID: return 5770; case PottedOrangeTulip::PottedOrangeTulip().ID: return 5783; case PottedOxeyeDaisy::PottedOxeyeDaisy().ID: return 5786; case PottedPinkTulip::PottedPinkTulip().ID: return 5785; case PottedPoppy::PottedPoppy().ID: return 5778; case PottedRedMushroom::PottedRedMushroom().ID: return 5790; case PottedRedTulip::PottedRedTulip().ID: return 5782; case PottedSpruceSapling::PottedSpruceSapling().ID: return 5771; case PottedWhiteTulip::PottedWhiteTulip().ID: return 5784; case PottedWitherRose::PottedWitherRose().ID: return 5789; case PoweredRail::PoweredRail(true, PoweredRail::Shape::NorthSouth).ID: return 1304; case PoweredRail::PoweredRail(true, PoweredRail::Shape::EastWest).ID: return 1305; case PoweredRail::PoweredRail(true, PoweredRail::Shape::AscendingEast).ID: return 1306; case PoweredRail::PoweredRail(true, PoweredRail::Shape::AscendingWest).ID: return 1307; case PoweredRail::PoweredRail(true, PoweredRail::Shape::AscendingNorth).ID: return 1308; case PoweredRail::PoweredRail(true, PoweredRail::Shape::AscendingSouth).ID: return 1309; case PoweredRail::PoweredRail(false, PoweredRail::Shape::NorthSouth).ID: return 1310; case PoweredRail::PoweredRail(false, PoweredRail::Shape::EastWest).ID: return 1311; case PoweredRail::PoweredRail(false, PoweredRail::Shape::AscendingEast).ID: return 1312; case PoweredRail::PoweredRail(false, PoweredRail::Shape::AscendingWest).ID: return 1313; case PoweredRail::PoweredRail(false, PoweredRail::Shape::AscendingNorth).ID: return 1314; case PoweredRail::PoweredRail(false, PoweredRail::Shape::AscendingSouth).ID: return 1315; case Prismarine::Prismarine().ID: return 7065; case PrismarineBrickSlab::PrismarineBrickSlab(PrismarineBrickSlab::Type::Top).ID: return 7315; case PrismarineBrickSlab::PrismarineBrickSlab(PrismarineBrickSlab::Type::Bottom).ID: return 7317; case PrismarineBrickSlab::PrismarineBrickSlab(PrismarineBrickSlab::Type::Double).ID: return 7319; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::Straight).ID: return 7149; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7151; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerRight).ID: return 7153; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7155; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterRight).ID: return 7157; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::Straight).ID: return 7159; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7161; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerRight).ID: return 7163; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7165; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterRight).ID: return 7167; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::Straight).ID: return 7169; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7171; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerRight).ID: return 7173; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7175; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterRight).ID: return 7177; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::Straight).ID: return 7179; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7181; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerRight).ID: return 7183; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7185; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterRight).ID: return 7187; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::Straight).ID: return 7189; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7191; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerRight).ID: return 7193; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7195; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterRight).ID: return 7197; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::Straight).ID: return 7199; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7201; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerRight).ID: return 7203; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7205; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XM, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterRight).ID: return 7207; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::Straight).ID: return 7209; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7211; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::InnerRight).ID: return 7213; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7215; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Top, PrismarineBrickStairs::Shape::OuterRight).ID: return 7217; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::Straight).ID: return 7219; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerLeft).ID: return 7221; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::InnerRight).ID: return 7223; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterLeft).ID: return 7225; case PrismarineBrickStairs::PrismarineBrickStairs(eBlockFace::BLOCK_FACE_XP, PrismarineBrickStairs::Half::Bottom, PrismarineBrickStairs::Shape::OuterRight).ID: return 7227; case PrismarineBricks::PrismarineBricks().ID: return 7066; case PrismarineSlab::PrismarineSlab(PrismarineSlab::Type::Top).ID: return 7309; case PrismarineSlab::PrismarineSlab(PrismarineSlab::Type::Bottom).ID: return 7311; case PrismarineSlab::PrismarineSlab(PrismarineSlab::Type::Double).ID: return 7313; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::Straight).ID: return 7069; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerLeft).ID: return 7071; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerRight).ID: return 7073; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterLeft).ID: return 7075; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterRight).ID: return 7077; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::Straight).ID: return 7079; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerLeft).ID: return 7081; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerRight).ID: return 7083; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterLeft).ID: return 7085; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterRight).ID: return 7087; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::Straight).ID: return 7089; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerLeft).ID: return 7091; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerRight).ID: return 7093; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterLeft).ID: return 7095; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterRight).ID: return 7097; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::Straight).ID: return 7099; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerLeft).ID: return 7101; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerRight).ID: return 7103; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterLeft).ID: return 7105; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_ZP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterRight).ID: return 7107; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::Straight).ID: return 7109; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerLeft).ID: return 7111; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerRight).ID: return 7113; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterLeft).ID: return 7115; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterRight).ID: return 7117; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::Straight).ID: return 7119; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerLeft).ID: return 7121; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerRight).ID: return 7123; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterLeft).ID: return 7125; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XM, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterRight).ID: return 7127; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::Straight).ID: return 7129; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerLeft).ID: return 7131; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::InnerRight).ID: return 7133; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterLeft).ID: return 7135; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Top, PrismarineStairs::Shape::OuterRight).ID: return 7137; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::Straight).ID: return 7139; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerLeft).ID: return 7141; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::InnerRight).ID: return 7143; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterLeft).ID: return 7145; case PrismarineStairs::PrismarineStairs(eBlockFace::BLOCK_FACE_XP, PrismarineStairs::Half::Bottom, PrismarineStairs::Shape::OuterRight).ID: return 7147; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::Low, true, PrismarineWall::West::Low).ID: return 10397; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::Low, true, PrismarineWall::West::None).ID: return 10398; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::Low, false, PrismarineWall::West::Low).ID: return 10401; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::Low, false, PrismarineWall::West::None).ID: return 10402; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::None, true, PrismarineWall::West::Low).ID: return 10405; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::None, true, PrismarineWall::West::None).ID: return 10406; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::None, false, PrismarineWall::West::Low).ID: return 10409; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::Low, PrismarineWall::South::None, false, PrismarineWall::West::None).ID: return 10410; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::Low, true, PrismarineWall::West::Low).ID: return 10413; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::Low, true, PrismarineWall::West::None).ID: return 10414; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::Low, false, PrismarineWall::West::Low).ID: return 10417; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::Low, false, PrismarineWall::West::None).ID: return 10418; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::None, true, PrismarineWall::West::Low).ID: return 10421; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::None, true, PrismarineWall::West::None).ID: return 10422; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::None, false, PrismarineWall::West::Low).ID: return 10425; case PrismarineWall::PrismarineWall(PrismarineWall::East::Low, PrismarineWall::North::None, PrismarineWall::South::None, false, PrismarineWall::West::None).ID: return 10426; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::Low, true, PrismarineWall::West::Low).ID: return 10429; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::Low, true, PrismarineWall::West::None).ID: return 10430; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::Low, false, PrismarineWall::West::Low).ID: return 10433; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::Low, false, PrismarineWall::West::None).ID: return 10434; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::None, true, PrismarineWall::West::Low).ID: return 10437; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::None, true, PrismarineWall::West::None).ID: return 10438; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::None, false, PrismarineWall::West::Low).ID: return 10441; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::Low, PrismarineWall::South::None, false, PrismarineWall::West::None).ID: return 10442; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::Low, true, PrismarineWall::West::Low).ID: return 10445; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::Low, true, PrismarineWall::West::None).ID: return 10446; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::Low, false, PrismarineWall::West::Low).ID: return 10449; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::Low, false, PrismarineWall::West::None).ID: return 10450; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::None, true, PrismarineWall::West::Low).ID: return 10453; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::None, true, PrismarineWall::West::None).ID: return 10454; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::None, false, PrismarineWall::West::Low).ID: return 10457; case PrismarineWall::PrismarineWall(PrismarineWall::East::None, PrismarineWall::North::None, PrismarineWall::South::None, false, PrismarineWall::West::None).ID: return 10458; case Pumpkin::Pumpkin().ID: return 3996; case PumpkinStem::PumpkinStem(0).ID: return 4756; case PumpkinStem::PumpkinStem(1).ID: return 4757; case PumpkinStem::PumpkinStem(2).ID: return 4758; case PumpkinStem::PumpkinStem(3).ID: return 4759; case PumpkinStem::PumpkinStem(4).ID: return 4760; case PumpkinStem::PumpkinStem(5).ID: return 4761; case PumpkinStem::PumpkinStem(6).ID: return 4762; case PumpkinStem::PumpkinStem(7).ID: return 4763; case PurpleBanner::PurpleBanner(0).ID: return 7521; case PurpleBanner::PurpleBanner(1).ID: return 7522; case PurpleBanner::PurpleBanner(2).ID: return 7523; case PurpleBanner::PurpleBanner(3).ID: return 7524; case PurpleBanner::PurpleBanner(4).ID: return 7525; case PurpleBanner::PurpleBanner(5).ID: return 7526; case PurpleBanner::PurpleBanner(6).ID: return 7527; case PurpleBanner::PurpleBanner(7).ID: return 7528; case PurpleBanner::PurpleBanner(8).ID: return 7529; case PurpleBanner::PurpleBanner(9).ID: return 7530; case PurpleBanner::PurpleBanner(10).ID: return 7531; case PurpleBanner::PurpleBanner(11).ID: return 7532; case PurpleBanner::PurpleBanner(12).ID: return 7533; case PurpleBanner::PurpleBanner(13).ID: return 7534; case PurpleBanner::PurpleBanner(14).ID: return 7535; case PurpleBanner::PurpleBanner(15).ID: return 7536; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZM, true, PurpleBed::Part::Head).ID: return 1208; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZM, true, PurpleBed::Part::Foot).ID: return 1209; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZM, false, PurpleBed::Part::Head).ID: return 1210; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZM, false, PurpleBed::Part::Foot).ID: return 1211; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZP, true, PurpleBed::Part::Head).ID: return 1212; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZP, true, PurpleBed::Part::Foot).ID: return 1213; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZP, false, PurpleBed::Part::Head).ID: return 1214; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_ZP, false, PurpleBed::Part::Foot).ID: return 1215; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XM, true, PurpleBed::Part::Head).ID: return 1216; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XM, true, PurpleBed::Part::Foot).ID: return 1217; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XM, false, PurpleBed::Part::Head).ID: return 1218; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XM, false, PurpleBed::Part::Foot).ID: return 1219; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XP, true, PurpleBed::Part::Head).ID: return 1220; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XP, true, PurpleBed::Part::Foot).ID: return 1221; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XP, false, PurpleBed::Part::Head).ID: return 1222; case PurpleBed::PurpleBed(eBlockFace::BLOCK_FACE_XP, false, PurpleBed::Part::Foot).ID: return 1223; case PurpleCarpet::PurpleCarpet().ID: return 7340; case PurpleConcrete::PurpleConcrete().ID: return 8912; case PurpleConcretePowder::PurpleConcretePowder().ID: return 8928; case PurpleGlazedTerracotta::PurpleGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8878; case PurpleGlazedTerracotta::PurpleGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8879; case PurpleGlazedTerracotta::PurpleGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8880; case PurpleGlazedTerracotta::PurpleGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8881; case PurpleShulkerBox::PurpleShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8802; case PurpleShulkerBox::PurpleShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8803; case PurpleShulkerBox::PurpleShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8804; case PurpleShulkerBox::PurpleShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8805; case PurpleShulkerBox::PurpleShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8806; case PurpleShulkerBox::PurpleShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8807; case PurpleStainedGlass::PurpleStainedGlass().ID: return 4091; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, true, true, true).ID: return 6649; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, true, true, false).ID: return 6650; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, true, false, true).ID: return 6653; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, true, false, false).ID: return 6654; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, false, true, true).ID: return 6657; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, false, true, false).ID: return 6658; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, false, false, true).ID: return 6661; case PurpleStainedGlassPane::PurpleStainedGlassPane(true, false, false, false).ID: return 6662; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, true, true, true).ID: return 6665; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, true, true, false).ID: return 6666; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, true, false, true).ID: return 6669; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, true, false, false).ID: return 6670; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, false, true, true).ID: return 6673; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, false, true, false).ID: return 6674; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, false, false, true).ID: return 6677; case PurpleStainedGlassPane::PurpleStainedGlassPane(false, false, false, false).ID: return 6678; case PurpleTerracotta::PurpleTerracotta().ID: return 6321; case PurpleWallBanner::PurpleWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7657; case PurpleWallBanner::PurpleWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7658; case PurpleWallBanner::PurpleWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7659; case PurpleWallBanner::PurpleWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7660; case PurpleWool::PurpleWool().ID: return 1393; case PurpurBlock::PurpurBlock().ID: return 8598; case PurpurPillar::PurpurPillar(PurpurPillar::Axis::X).ID: return 8599; case PurpurPillar::PurpurPillar(PurpurPillar::Axis::Y).ID: return 8600; case PurpurPillar::PurpurPillar(PurpurPillar::Axis::Z).ID: return 8601; case PurpurSlab::PurpurSlab(PurpurSlab::Type::Top).ID: return 7873; case PurpurSlab::PurpurSlab(PurpurSlab::Type::Bottom).ID: return 7875; case PurpurSlab::PurpurSlab(PurpurSlab::Type::Double).ID: return 7877; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Top, PurpurStairs::Shape::Straight).ID: return 8603; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerLeft).ID: return 8605; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerRight).ID: return 8607; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterLeft).ID: return 8609; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterRight).ID: return 8611; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::Straight).ID: return 8613; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerLeft).ID: return 8615; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerRight).ID: return 8617; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterLeft).ID: return 8619; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterRight).ID: return 8621; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Top, PurpurStairs::Shape::Straight).ID: return 8623; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerLeft).ID: return 8625; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerRight).ID: return 8627; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterLeft).ID: return 8629; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterRight).ID: return 8631; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::Straight).ID: return 8633; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerLeft).ID: return 8635; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerRight).ID: return 8637; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterLeft).ID: return 8639; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_ZP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterRight).ID: return 8641; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Top, PurpurStairs::Shape::Straight).ID: return 8643; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerLeft).ID: return 8645; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerRight).ID: return 8647; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterLeft).ID: return 8649; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterRight).ID: return 8651; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::Straight).ID: return 8653; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerLeft).ID: return 8655; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerRight).ID: return 8657; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterLeft).ID: return 8659; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XM, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterRight).ID: return 8661; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Top, PurpurStairs::Shape::Straight).ID: return 8663; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerLeft).ID: return 8665; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Top, PurpurStairs::Shape::InnerRight).ID: return 8667; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterLeft).ID: return 8669; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Top, PurpurStairs::Shape::OuterRight).ID: return 8671; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::Straight).ID: return 8673; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerLeft).ID: return 8675; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::InnerRight).ID: return 8677; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterLeft).ID: return 8679; case PurpurStairs::PurpurStairs(eBlockFace::BLOCK_FACE_XP, PurpurStairs::Half::Bottom, PurpurStairs::Shape::OuterRight).ID: return 8681; case QuartzBlock::QuartzBlock().ID: return 6202; case QuartzPillar::QuartzPillar(QuartzPillar::Axis::X).ID: return 6204; case QuartzPillar::QuartzPillar(QuartzPillar::Axis::Y).ID: return 6205; case QuartzPillar::QuartzPillar(QuartzPillar::Axis::Z).ID: return 6206; case QuartzSlab::QuartzSlab(QuartzSlab::Type::Top).ID: return 7855; case QuartzSlab::QuartzSlab(QuartzSlab::Type::Bottom).ID: return 7857; case QuartzSlab::QuartzSlab(QuartzSlab::Type::Double).ID: return 7859; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Top, QuartzStairs::Shape::Straight).ID: return 6208; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerLeft).ID: return 6210; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerRight).ID: return 6212; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterLeft).ID: return 6214; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterRight).ID: return 6216; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::Straight).ID: return 6218; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerLeft).ID: return 6220; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerRight).ID: return 6222; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterLeft).ID: return 6224; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterRight).ID: return 6226; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Top, QuartzStairs::Shape::Straight).ID: return 6228; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerLeft).ID: return 6230; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerRight).ID: return 6232; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterLeft).ID: return 6234; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterRight).ID: return 6236; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::Straight).ID: return 6238; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerLeft).ID: return 6240; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerRight).ID: return 6242; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterLeft).ID: return 6244; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_ZP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterRight).ID: return 6246; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Top, QuartzStairs::Shape::Straight).ID: return 6248; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerLeft).ID: return 6250; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerRight).ID: return 6252; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterLeft).ID: return 6254; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterRight).ID: return 6256; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::Straight).ID: return 6258; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerLeft).ID: return 6260; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerRight).ID: return 6262; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterLeft).ID: return 6264; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XM, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterRight).ID: return 6266; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Top, QuartzStairs::Shape::Straight).ID: return 6268; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerLeft).ID: return 6270; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Top, QuartzStairs::Shape::InnerRight).ID: return 6272; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterLeft).ID: return 6274; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Top, QuartzStairs::Shape::OuterRight).ID: return 6276; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::Straight).ID: return 6278; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerLeft).ID: return 6280; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::InnerRight).ID: return 6282; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterLeft).ID: return 6284; case QuartzStairs::QuartzStairs(eBlockFace::BLOCK_FACE_XP, QuartzStairs::Half::Bottom, QuartzStairs::Shape::OuterRight).ID: return 6286; case Rail::Rail(Rail::Shape::NorthSouth).ID: return 3643; case Rail::Rail(Rail::Shape::EastWest).ID: return 3644; case Rail::Rail(Rail::Shape::AscendingEast).ID: return 3645; case Rail::Rail(Rail::Shape::AscendingWest).ID: return 3646; case Rail::Rail(Rail::Shape::AscendingNorth).ID: return 3647; case Rail::Rail(Rail::Shape::AscendingSouth).ID: return 3648; case Rail::Rail(Rail::Shape::SouthEast).ID: return 3649; case Rail::Rail(Rail::Shape::SouthWest).ID: return 3650; case Rail::Rail(Rail::Shape::NorthWest).ID: return 3651; case Rail::Rail(Rail::Shape::NorthEast).ID: return 3652; case RedBanner::RedBanner(0).ID: return 7585; case RedBanner::RedBanner(1).ID: return 7586; case RedBanner::RedBanner(2).ID: return 7587; case RedBanner::RedBanner(3).ID: return 7588; case RedBanner::RedBanner(4).ID: return 7589; case RedBanner::RedBanner(5).ID: return 7590; case RedBanner::RedBanner(6).ID: return 7591; case RedBanner::RedBanner(7).ID: return 7592; case RedBanner::RedBanner(8).ID: return 7593; case RedBanner::RedBanner(9).ID: return 7594; case RedBanner::RedBanner(10).ID: return 7595; case RedBanner::RedBanner(11).ID: return 7596; case RedBanner::RedBanner(12).ID: return 7597; case RedBanner::RedBanner(13).ID: return 7598; case RedBanner::RedBanner(14).ID: return 7599; case RedBanner::RedBanner(15).ID: return 7600; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZM, true, RedBed::Part::Head).ID: return 1272; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZM, true, RedBed::Part::Foot).ID: return 1273; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZM, false, RedBed::Part::Head).ID: return 1274; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZM, false, RedBed::Part::Foot).ID: return 1275; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZP, true, RedBed::Part::Head).ID: return 1276; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZP, true, RedBed::Part::Foot).ID: return 1277; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZP, false, RedBed::Part::Head).ID: return 1278; case RedBed::RedBed(eBlockFace::BLOCK_FACE_ZP, false, RedBed::Part::Foot).ID: return 1279; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XM, true, RedBed::Part::Head).ID: return 1280; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XM, true, RedBed::Part::Foot).ID: return 1281; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XM, false, RedBed::Part::Head).ID: return 1282; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XM, false, RedBed::Part::Foot).ID: return 1283; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XP, true, RedBed::Part::Head).ID: return 1284; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XP, true, RedBed::Part::Foot).ID: return 1285; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XP, false, RedBed::Part::Head).ID: return 1286; case RedBed::RedBed(eBlockFace::BLOCK_FACE_XP, false, RedBed::Part::Foot).ID: return 1287; case RedCarpet::RedCarpet().ID: return 7344; case RedConcrete::RedConcrete().ID: return 8916; case RedConcretePowder::RedConcretePowder().ID: return 8932; case RedGlazedTerracotta::RedGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8894; case RedGlazedTerracotta::RedGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8895; case RedGlazedTerracotta::RedGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8896; case RedGlazedTerracotta::RedGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8897; case RedMushroom::RedMushroom().ID: return 1425; case RedMushroomBlock::RedMushroomBlock(true, true, true, true, true, true).ID: return 4555; case RedMushroomBlock::RedMushroomBlock(true, true, true, true, true, false).ID: return 4556; case RedMushroomBlock::RedMushroomBlock(true, true, true, true, false, true).ID: return 4557; case RedMushroomBlock::RedMushroomBlock(true, true, true, true, false, false).ID: return 4558; case RedMushroomBlock::RedMushroomBlock(true, true, true, false, true, true).ID: return 4559; case RedMushroomBlock::RedMushroomBlock(true, true, true, false, true, false).ID: return 4560; case RedMushroomBlock::RedMushroomBlock(true, true, true, false, false, true).ID: return 4561; case RedMushroomBlock::RedMushroomBlock(true, true, true, false, false, false).ID: return 4562; case RedMushroomBlock::RedMushroomBlock(true, true, false, true, true, true).ID: return 4563; case RedMushroomBlock::RedMushroomBlock(true, true, false, true, true, false).ID: return 4564; case RedMushroomBlock::RedMushroomBlock(true, true, false, true, false, true).ID: return 4565; case RedMushroomBlock::RedMushroomBlock(true, true, false, true, false, false).ID: return 4566; case RedMushroomBlock::RedMushroomBlock(true, true, false, false, true, true).ID: return 4567; case RedMushroomBlock::RedMushroomBlock(true, true, false, false, true, false).ID: return 4568; case RedMushroomBlock::RedMushroomBlock(true, true, false, false, false, true).ID: return 4569; case RedMushroomBlock::RedMushroomBlock(true, true, false, false, false, false).ID: return 4570; case RedMushroomBlock::RedMushroomBlock(true, false, true, true, true, true).ID: return 4571; case RedMushroomBlock::RedMushroomBlock(true, false, true, true, true, false).ID: return 4572; case RedMushroomBlock::RedMushroomBlock(true, false, true, true, false, true).ID: return 4573; case RedMushroomBlock::RedMushroomBlock(true, false, true, true, false, false).ID: return 4574; case RedMushroomBlock::RedMushroomBlock(true, false, true, false, true, true).ID: return 4575; case RedMushroomBlock::RedMushroomBlock(true, false, true, false, true, false).ID: return 4576; case RedMushroomBlock::RedMushroomBlock(true, false, true, false, false, true).ID: return 4577; case RedMushroomBlock::RedMushroomBlock(true, false, true, false, false, false).ID: return 4578; case RedMushroomBlock::RedMushroomBlock(true, false, false, true, true, true).ID: return 4579; case RedMushroomBlock::RedMushroomBlock(true, false, false, true, true, false).ID: return 4580; case RedMushroomBlock::RedMushroomBlock(true, false, false, true, false, true).ID: return 4581; case RedMushroomBlock::RedMushroomBlock(true, false, false, true, false, false).ID: return 4582; case RedMushroomBlock::RedMushroomBlock(true, false, false, false, true, true).ID: return 4583; case RedMushroomBlock::RedMushroomBlock(true, false, false, false, true, false).ID: return 4584; case RedMushroomBlock::RedMushroomBlock(true, false, false, false, false, true).ID: return 4585; case RedMushroomBlock::RedMushroomBlock(true, false, false, false, false, false).ID: return 4586; case RedMushroomBlock::RedMushroomBlock(false, true, true, true, true, true).ID: return 4587; case RedMushroomBlock::RedMushroomBlock(false, true, true, true, true, false).ID: return 4588; case RedMushroomBlock::RedMushroomBlock(false, true, true, true, false, true).ID: return 4589; case RedMushroomBlock::RedMushroomBlock(false, true, true, true, false, false).ID: return 4590; case RedMushroomBlock::RedMushroomBlock(false, true, true, false, true, true).ID: return 4591; case RedMushroomBlock::RedMushroomBlock(false, true, true, false, true, false).ID: return 4592; case RedMushroomBlock::RedMushroomBlock(false, true, true, false, false, true).ID: return 4593; case RedMushroomBlock::RedMushroomBlock(false, true, true, false, false, false).ID: return 4594; case RedMushroomBlock::RedMushroomBlock(false, true, false, true, true, true).ID: return 4595; case RedMushroomBlock::RedMushroomBlock(false, true, false, true, true, false).ID: return 4596; case RedMushroomBlock::RedMushroomBlock(false, true, false, true, false, true).ID: return 4597; case RedMushroomBlock::RedMushroomBlock(false, true, false, true, false, false).ID: return 4598; case RedMushroomBlock::RedMushroomBlock(false, true, false, false, true, true).ID: return 4599; case RedMushroomBlock::RedMushroomBlock(false, true, false, false, true, false).ID: return 4600; case RedMushroomBlock::RedMushroomBlock(false, true, false, false, false, true).ID: return 4601; case RedMushroomBlock::RedMushroomBlock(false, true, false, false, false, false).ID: return 4602; case RedMushroomBlock::RedMushroomBlock(false, false, true, true, true, true).ID: return 4603; case RedMushroomBlock::RedMushroomBlock(false, false, true, true, true, false).ID: return 4604; case RedMushroomBlock::RedMushroomBlock(false, false, true, true, false, true).ID: return 4605; case RedMushroomBlock::RedMushroomBlock(false, false, true, true, false, false).ID: return 4606; case RedMushroomBlock::RedMushroomBlock(false, false, true, false, true, true).ID: return 4607; case RedMushroomBlock::RedMushroomBlock(false, false, true, false, true, false).ID: return 4608; case RedMushroomBlock::RedMushroomBlock(false, false, true, false, false, true).ID: return 4609; case RedMushroomBlock::RedMushroomBlock(false, false, true, false, false, false).ID: return 4610; case RedMushroomBlock::RedMushroomBlock(false, false, false, true, true, true).ID: return 4611; case RedMushroomBlock::RedMushroomBlock(false, false, false, true, true, false).ID: return 4612; case RedMushroomBlock::RedMushroomBlock(false, false, false, true, false, true).ID: return 4613; case RedMushroomBlock::RedMushroomBlock(false, false, false, true, false, false).ID: return 4614; case RedMushroomBlock::RedMushroomBlock(false, false, false, false, true, true).ID: return 4615; case RedMushroomBlock::RedMushroomBlock(false, false, false, false, true, false).ID: return 4616; case RedMushroomBlock::RedMushroomBlock(false, false, false, false, false, true).ID: return 4617; case RedMushroomBlock::RedMushroomBlock(false, false, false, false, false, false).ID: return 4618; case RedNetherBrickSlab::RedNetherBrickSlab(RedNetherBrickSlab::Type::Top).ID: return 10314; case RedNetherBrickSlab::RedNetherBrickSlab(RedNetherBrickSlab::Type::Bottom).ID: return 10316; case RedNetherBrickSlab::RedNetherBrickSlab(RedNetherBrickSlab::Type::Double).ID: return 10318; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::Straight).ID: return 10014; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10016; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerRight).ID: return 10018; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10020; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterRight).ID: return 10022; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::Straight).ID: return 10024; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10026; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerRight).ID: return 10028; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10030; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterRight).ID: return 10032; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::Straight).ID: return 10034; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10036; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerRight).ID: return 10038; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10040; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterRight).ID: return 10042; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::Straight).ID: return 10044; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10046; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerRight).ID: return 10048; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10050; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_ZP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterRight).ID: return 10052; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::Straight).ID: return 10054; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10056; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerRight).ID: return 10058; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10060; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterRight).ID: return 10062; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::Straight).ID: return 10064; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10066; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerRight).ID: return 10068; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10070; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XM, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterRight).ID: return 10072; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::Straight).ID: return 10074; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10076; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::InnerRight).ID: return 10078; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10080; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Top, RedNetherBrickStairs::Shape::OuterRight).ID: return 10082; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::Straight).ID: return 10084; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerLeft).ID: return 10086; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::InnerRight).ID: return 10088; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterLeft).ID: return 10090; case RedNetherBrickStairs::RedNetherBrickStairs(eBlockFace::BLOCK_FACE_XP, RedNetherBrickStairs::Half::Bottom, RedNetherBrickStairs::Shape::OuterRight).ID: return 10092; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::Low).ID: return 10845; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::None).ID: return 10846; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::Low).ID: return 10849; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::None).ID: return 10850; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::Low).ID: return 10853; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::None).ID: return 10854; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::Low).ID: return 10857; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::None).ID: return 10858; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::Low).ID: return 10861; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::None).ID: return 10862; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::Low).ID: return 10865; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::None).ID: return 10866; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::Low).ID: return 10869; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::None).ID: return 10870; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::Low).ID: return 10873; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::Low, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::None).ID: return 10874; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::Low).ID: return 10877; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::None).ID: return 10878; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::Low).ID: return 10881; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::None).ID: return 10882; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::Low).ID: return 10885; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::None).ID: return 10886; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::Low).ID: return 10889; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::Low, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::None).ID: return 10890; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::Low).ID: return 10893; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, true, RedNetherBrickWall::West::None).ID: return 10894; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::Low).ID: return 10897; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::Low, false, RedNetherBrickWall::West::None).ID: return 10898; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::Low).ID: return 10901; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, true, RedNetherBrickWall::West::None).ID: return 10902; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::Low).ID: return 10905; case RedNetherBrickWall::RedNetherBrickWall(RedNetherBrickWall::East::None, RedNetherBrickWall::North::None, RedNetherBrickWall::South::None, false, RedNetherBrickWall::West::None).ID: return 10906; case RedNetherBricks::RedNetherBricks().ID: return 8719; case RedSand::RedSand().ID: return 67; case RedSandstone::RedSandstone().ID: return 7681; case RedSandstoneSlab::RedSandstoneSlab(RedSandstoneSlab::Type::Top).ID: return 7861; case RedSandstoneSlab::RedSandstoneSlab(RedSandstoneSlab::Type::Bottom).ID: return 7863; case RedSandstoneSlab::RedSandstoneSlab(RedSandstoneSlab::Type::Double).ID: return 7865; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::Straight).ID: return 7685; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerLeft).ID: return 7687; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerRight).ID: return 7689; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterLeft).ID: return 7691; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterRight).ID: return 7693; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::Straight).ID: return 7695; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerLeft).ID: return 7697; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerRight).ID: return 7699; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterLeft).ID: return 7701; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterRight).ID: return 7703; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::Straight).ID: return 7705; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerLeft).ID: return 7707; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerRight).ID: return 7709; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterLeft).ID: return 7711; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterRight).ID: return 7713; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::Straight).ID: return 7715; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerLeft).ID: return 7717; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerRight).ID: return 7719; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterLeft).ID: return 7721; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterRight).ID: return 7723; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::Straight).ID: return 7725; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerLeft).ID: return 7727; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerRight).ID: return 7729; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterLeft).ID: return 7731; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterRight).ID: return 7733; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::Straight).ID: return 7735; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerLeft).ID: return 7737; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerRight).ID: return 7739; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterLeft).ID: return 7741; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterRight).ID: return 7743; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::Straight).ID: return 7745; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerLeft).ID: return 7747; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::InnerRight).ID: return 7749; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterLeft).ID: return 7751; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Top, RedSandstoneStairs::Shape::OuterRight).ID: return 7753; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::Straight).ID: return 7755; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerLeft).ID: return 7757; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::InnerRight).ID: return 7759; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterLeft).ID: return 7761; case RedSandstoneStairs::RedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, RedSandstoneStairs::Half::Bottom, RedSandstoneStairs::Shape::OuterRight).ID: return 7763; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::Low).ID: return 10461; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::None).ID: return 10462; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::Low).ID: return 10465; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::None).ID: return 10466; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, true, RedSandstoneWall::West::Low).ID: return 10469; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, true, RedSandstoneWall::West::None).ID: return 10470; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, false, RedSandstoneWall::West::Low).ID: return 10473; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, false, RedSandstoneWall::West::None).ID: return 10474; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::Low).ID: return 10477; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::None).ID: return 10478; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::Low).ID: return 10481; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::None).ID: return 10482; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::None, true, RedSandstoneWall::West::Low).ID: return 10485; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::None, true, RedSandstoneWall::West::None).ID: return 10486; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::None, false, RedSandstoneWall::West::Low).ID: return 10489; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::Low, RedSandstoneWall::North::None, RedSandstoneWall::South::None, false, RedSandstoneWall::West::None).ID: return 10490; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::Low).ID: return 10493; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::None).ID: return 10494; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::Low).ID: return 10497; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::None).ID: return 10498; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, true, RedSandstoneWall::West::Low).ID: return 10501; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, true, RedSandstoneWall::West::None).ID: return 10502; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, false, RedSandstoneWall::West::Low).ID: return 10505; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::Low, RedSandstoneWall::South::None, false, RedSandstoneWall::West::None).ID: return 10506; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::Low).ID: return 10509; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, true, RedSandstoneWall::West::None).ID: return 10510; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::Low).ID: return 10513; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::Low, false, RedSandstoneWall::West::None).ID: return 10514; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::None, true, RedSandstoneWall::West::Low).ID: return 10517; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::None, true, RedSandstoneWall::West::None).ID: return 10518; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::None, false, RedSandstoneWall::West::Low).ID: return 10521; case RedSandstoneWall::RedSandstoneWall(RedSandstoneWall::East::None, RedSandstoneWall::North::None, RedSandstoneWall::South::None, false, RedSandstoneWall::West::None).ID: return 10522; case RedShulkerBox::RedShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8826; case RedShulkerBox::RedShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8827; case RedShulkerBox::RedShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8828; case RedShulkerBox::RedShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8829; case RedShulkerBox::RedShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8830; case RedShulkerBox::RedShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8831; case RedStainedGlass::RedStainedGlass().ID: return 4095; case RedStainedGlassPane::RedStainedGlassPane(true, true, true, true).ID: return 6777; case RedStainedGlassPane::RedStainedGlassPane(true, true, true, false).ID: return 6778; case RedStainedGlassPane::RedStainedGlassPane(true, true, false, true).ID: return 6781; case RedStainedGlassPane::RedStainedGlassPane(true, true, false, false).ID: return 6782; case RedStainedGlassPane::RedStainedGlassPane(true, false, true, true).ID: return 6785; case RedStainedGlassPane::RedStainedGlassPane(true, false, true, false).ID: return 6786; case RedStainedGlassPane::RedStainedGlassPane(true, false, false, true).ID: return 6789; case RedStainedGlassPane::RedStainedGlassPane(true, false, false, false).ID: return 6790; case RedStainedGlassPane::RedStainedGlassPane(false, true, true, true).ID: return 6793; case RedStainedGlassPane::RedStainedGlassPane(false, true, true, false).ID: return 6794; case RedStainedGlassPane::RedStainedGlassPane(false, true, false, true).ID: return 6797; case RedStainedGlassPane::RedStainedGlassPane(false, true, false, false).ID: return 6798; case RedStainedGlassPane::RedStainedGlassPane(false, false, true, true).ID: return 6801; case RedStainedGlassPane::RedStainedGlassPane(false, false, true, false).ID: return 6802; case RedStainedGlassPane::RedStainedGlassPane(false, false, false, true).ID: return 6805; case RedStainedGlassPane::RedStainedGlassPane(false, false, false, false).ID: return 6806; case RedTerracotta::RedTerracotta().ID: return 6325; case RedTulip::RedTulip().ID: return 1416; case RedWallBanner::RedWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7673; case RedWallBanner::RedWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7674; case RedWallBanner::RedWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7675; case RedWallBanner::RedWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7676; case RedWool::RedWool().ID: return 1397; case RedstoneBlock::RedstoneBlock().ID: return 6190; case RedstoneLamp::RedstoneLamp(true).ID: return 5140; case RedstoneLamp::RedstoneLamp(false).ID: return 5141; case RedstoneOre::RedstoneOre(true).ID: return 3883; case RedstoneOre::RedstoneOre(false).ID: return 3884; case RedstoneTorch::RedstoneTorch(true).ID: return 3885; case RedstoneTorch::RedstoneTorch(false).ID: return 3886; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_ZM, true).ID: return 3887; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_ZM, false).ID: return 3888; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_ZP, true).ID: return 3889; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_ZP, false).ID: return 3890; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_XM, true).ID: return 3891; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_XM, false).ID: return 3892; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_XP, true).ID: return 3893; case RedstoneWallTorch::RedstoneWallTorch(eBlockFace::BLOCK_FACE_XP, false).ID: return 3894; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2056; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2057; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2058; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2059; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2060; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2061; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2062; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2063; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2064; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2065; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2066; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2067; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2068; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2069; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2070; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2071; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2072; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2073; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2074; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2075; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2076; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2077; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2078; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2079; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2080; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2081; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2082; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2083; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2084; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2085; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2086; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2087; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2088; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2089; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2090; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2091; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2092; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2093; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2094; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2095; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2096; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2097; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2098; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2099; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2100; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2101; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2102; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2103; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2104; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2105; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2106; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2107; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2108; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2109; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2110; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2111; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2112; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2113; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2114; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2115; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2116; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2117; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2118; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2119; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2120; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2121; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2122; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2123; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2124; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2125; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2126; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2127; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2128; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2129; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2130; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2131; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2132; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2133; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2134; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2135; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2136; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2137; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2138; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2139; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2140; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2141; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2142; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2143; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2144; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2145; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2146; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2147; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2148; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2149; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2150; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2151; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2152; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2153; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2154; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2155; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2156; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2157; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2158; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2159; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2160; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2161; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2162; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2163; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2164; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2165; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2166; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2167; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2168; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2169; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2170; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2171; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2172; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2173; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2174; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2175; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2176; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2177; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2178; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2179; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2180; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2181; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2182; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2183; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2184; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2185; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2186; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2187; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2188; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2189; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2190; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2191; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2192; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2193; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2194; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2195; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2196; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2197; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2198; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2199; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2200; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2201; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2202; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2203; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2204; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2205; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2206; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2207; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2208; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2209; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2210; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2211; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2212; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2213; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2214; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2215; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2216; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2217; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2218; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2219; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2220; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2221; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2222; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2223; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2224; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2225; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2226; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2227; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2228; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2229; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2230; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2231; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2232; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2233; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2234; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2235; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2236; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2237; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2238; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2239; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2240; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2241; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2242; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2243; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2244; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2245; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2246; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2247; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2248; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2249; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2250; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2251; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2252; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2253; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2254; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2255; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2256; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2257; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2258; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2259; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2260; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2261; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2262; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2263; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2264; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2265; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2266; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2267; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2268; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2269; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2270; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2271; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2272; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2273; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2274; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2275; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2276; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2277; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2278; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2279; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2280; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2281; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2282; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2283; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2284; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2285; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2286; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2287; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2288; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2289; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2290; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2291; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2292; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2293; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2294; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2295; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2296; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2297; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2298; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2299; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2300; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2301; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2302; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2303; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2304; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2305; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2306; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2307; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2308; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2309; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2310; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2311; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2312; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2313; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2314; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2315; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2316; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2317; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2318; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2319; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2320; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2321; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2322; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2323; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2324; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2325; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2326; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2327; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2328; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2329; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2330; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2331; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2332; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2333; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2334; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2335; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2336; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2337; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2338; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2339; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2340; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2341; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2342; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2343; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2344; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2345; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2346; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2347; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2348; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2349; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2350; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2351; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2352; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2353; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2354; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2355; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2356; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2357; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2358; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2359; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2360; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2361; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2362; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2363; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2364; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2365; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2366; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2367; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2368; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2369; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2370; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2371; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2372; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2373; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2374; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2375; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2376; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2377; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2378; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2379; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2380; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2381; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2382; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2383; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2384; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2385; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2386; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2387; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2388; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2389; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2390; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2391; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2392; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2393; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2394; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2395; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2396; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2397; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2398; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2399; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2400; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2401; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2402; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2403; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2404; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2405; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2406; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2407; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2408; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2409; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2410; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2411; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2412; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2413; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2414; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2415; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2416; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2417; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2418; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2419; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2420; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2421; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2422; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2423; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2424; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2425; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2426; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2427; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2428; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2429; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2430; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2431; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2432; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2433; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2434; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2435; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2436; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2437; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2438; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2439; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2440; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2441; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2442; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2443; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2444; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2445; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2446; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2447; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2448; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2449; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2450; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2451; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2452; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2453; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2454; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2455; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2456; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2457; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2458; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2459; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2460; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2461; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2462; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2463; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2464; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2465; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2466; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2467; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2468; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2469; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2470; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2471; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2472; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2473; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2474; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2475; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2476; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2477; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2478; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2479; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2480; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2481; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2482; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2483; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2484; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2485; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2486; case RedstoneWire::RedstoneWire(RedstoneWire::East::Up, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2487; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2488; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2489; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2490; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2491; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2492; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2493; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2494; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2495; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2496; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2497; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2498; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2499; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2500; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2501; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2502; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2503; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2504; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2505; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2506; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2507; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2508; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2509; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2510; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2511; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2512; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2513; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2514; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2515; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2516; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2517; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2518; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2519; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2520; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2521; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2522; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2523; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2524; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2525; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2526; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2527; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2528; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2529; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2530; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2531; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2532; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2533; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2534; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2535; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2536; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2537; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2538; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2539; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2540; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2541; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2542; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2543; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2544; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2545; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2546; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2547; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2548; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2549; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2550; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2551; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2552; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2553; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2554; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2555; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2556; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2557; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2558; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2559; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2560; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2561; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2562; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2563; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2564; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2565; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2566; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2567; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2568; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2569; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2570; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2571; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2572; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2573; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2574; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2575; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2576; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2577; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2578; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2579; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2580; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2581; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2582; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2583; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2584; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2585; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2586; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2587; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2588; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2589; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2590; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2591; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2592; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2593; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2594; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2595; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2596; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2597; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2598; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2599; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2600; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2601; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2602; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2603; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2604; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2605; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2606; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2607; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2608; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2609; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2610; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2611; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2612; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2613; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2614; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2615; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2616; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2617; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2618; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2619; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2620; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2621; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2622; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2623; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2624; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2625; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2626; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2627; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2628; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2629; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2630; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2631; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2632; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2633; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2634; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2635; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2636; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2637; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2638; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2639; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2640; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2641; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2642; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2643; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2644; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2645; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2646; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2647; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2648; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2649; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2650; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2651; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2652; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2653; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2654; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2655; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2656; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2657; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2658; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2659; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2660; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2661; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2662; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2663; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2664; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2665; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2666; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2667; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2668; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2669; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2670; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2671; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2672; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2673; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2674; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2675; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2676; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2677; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2678; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2679; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2680; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2681; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2682; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2683; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2684; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2685; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2686; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2687; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2688; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2689; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2690; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2691; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2692; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2693; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2694; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2695; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2696; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2697; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2698; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2699; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2700; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2701; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2702; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2703; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2704; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2705; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2706; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2707; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2708; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2709; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2710; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2711; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2712; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2713; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2714; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2715; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2716; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2717; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2718; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2719; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2720; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2721; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2722; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2723; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2724; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2725; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2726; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2727; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2728; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2729; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2730; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2731; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2732; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2733; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2734; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2735; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2736; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2737; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2738; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2739; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2740; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2741; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2742; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2743; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2744; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2745; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2746; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2747; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2748; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2749; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2750; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2751; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2752; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2753; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2754; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2755; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2756; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2757; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2758; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2759; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2760; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2761; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2762; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2763; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2764; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2765; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2766; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2767; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2768; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2769; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2770; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2771; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2772; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2773; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2774; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2775; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2776; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2777; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2778; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2779; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2780; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2781; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2782; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2783; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2784; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2785; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2786; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2787; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2788; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2789; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2790; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2791; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2792; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2793; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2794; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2795; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2796; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2797; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2798; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2799; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2800; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2801; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2802; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2803; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2804; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2805; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2806; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2807; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2808; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2809; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2810; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2811; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2812; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2813; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2814; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2815; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2816; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2817; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2818; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2819; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2820; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2821; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2822; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2823; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2824; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2825; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2826; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2827; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2828; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2829; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2830; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2831; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2832; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2833; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2834; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2835; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2836; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2837; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2838; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2839; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2840; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2841; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2842; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2843; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2844; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2845; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2846; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2847; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2848; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2849; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2850; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2851; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2852; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2853; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2854; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2855; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2856; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2857; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2858; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2859; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2860; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2861; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2862; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2863; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2864; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2865; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2866; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2867; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2868; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2869; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2870; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2871; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2872; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2873; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2874; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2875; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2876; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2877; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2878; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2879; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2880; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2881; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2882; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2883; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2884; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2885; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2886; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2887; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2888; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2889; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2890; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2891; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2892; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2893; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2894; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2895; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2896; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2897; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2898; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2899; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2900; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2901; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2902; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2903; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2904; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2905; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2906; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2907; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2908; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2909; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2910; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2911; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2912; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2913; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2914; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2915; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2916; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2917; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2918; case RedstoneWire::RedstoneWire(RedstoneWire::East::Side, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2919; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2920; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2921; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2922; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2923; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2924; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2925; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2926; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2927; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2928; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2929; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2930; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2931; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2932; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2933; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2934; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2935; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2936; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2937; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2938; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2939; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2940; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2941; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2942; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2943; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2944; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2945; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2946; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2947; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2948; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2949; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2950; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2951; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2952; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2953; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2954; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2955; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2956; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2957; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2958; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2959; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2960; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2961; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2962; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2963; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2964; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2965; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2966; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2967; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2968; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2969; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2970; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2971; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2972; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2973; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2974; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2975; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2976; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2977; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2978; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2979; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2980; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2981; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2982; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2983; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2984; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2985; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2986; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2987; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2988; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2989; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2990; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 2991; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 2992; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 2993; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 2994; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 2995; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 2996; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 2997; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 2998; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 2999; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3000; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3001; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3002; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3003; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3004; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3005; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3006; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3007; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3008; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3009; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3010; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3011; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3012; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3013; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3014; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3015; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3016; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3017; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3018; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3019; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3020; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3021; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3022; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3023; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3024; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3025; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3026; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3027; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3028; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3029; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3030; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3031; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3032; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3033; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3034; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3035; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3036; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3037; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3038; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3039; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3040; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3041; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3042; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3043; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3044; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3045; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3046; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3047; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3048; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3049; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3050; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3051; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3052; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3053; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3054; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3055; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3056; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3057; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3058; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3059; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3060; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3061; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3062; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Up, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3063; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3064; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3065; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3066; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3067; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3068; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3069; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3070; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3071; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3072; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3073; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3074; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3075; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3076; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3077; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3078; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3079; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3080; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3081; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3082; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3083; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3084; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3085; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3086; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3087; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3088; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3089; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3090; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3091; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3092; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3093; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3094; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3095; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3096; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3097; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3098; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3099; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3100; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3101; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3102; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3103; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3104; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3105; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3106; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3107; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3108; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3109; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3110; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3111; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3112; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3113; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3114; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3115; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3116; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3117; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3118; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3119; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3120; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3121; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3122; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3123; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3124; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3125; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3126; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3127; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3128; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3129; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3130; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3131; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3132; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3133; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3134; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3135; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3136; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3137; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3138; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3139; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3140; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3141; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3142; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3143; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3144; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3145; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3146; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3147; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3148; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3149; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3150; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3151; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3152; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3153; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3154; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3155; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3156; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3157; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3158; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3159; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3160; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3161; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3162; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3163; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3164; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3165; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3166; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3167; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3168; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3169; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3170; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3171; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3172; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3173; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3174; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3175; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3176; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3177; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3178; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3179; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3180; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3181; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3182; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3183; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3184; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3185; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3186; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3187; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3188; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3189; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3190; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3191; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3192; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3193; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3194; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3195; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3196; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3197; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3198; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3199; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3200; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3201; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3202; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3203; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3204; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3205; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3206; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::Side, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3207; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3208; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3209; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3210; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3211; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3212; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3213; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3214; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3215; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 0, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3216; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3217; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3218; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3219; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3220; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3221; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3222; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3223; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3224; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 1, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3225; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3226; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3227; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3228; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3229; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3230; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3231; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3232; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3233; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 2, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3234; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3235; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3236; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3237; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3238; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3239; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3240; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3241; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3242; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 3, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3243; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3244; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3245; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3246; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3247; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3248; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3249; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3250; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3251; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 4, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3252; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3253; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3254; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3255; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3256; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3257; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3258; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3259; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3260; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 5, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3261; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3262; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3263; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3264; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3265; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3266; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3267; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3268; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3269; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 6, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3270; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3271; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3272; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3273; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3274; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3275; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3276; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3277; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3278; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 7, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3279; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3280; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3281; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3282; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3283; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3284; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3285; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3286; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3287; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 8, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3288; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3289; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3290; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3291; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3292; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3293; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3294; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3295; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3296; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 9, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3297; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3298; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3299; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3300; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3301; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3302; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3303; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3304; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3305; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 10, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3306; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3307; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3308; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3309; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3310; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3311; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3312; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3313; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3314; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 11, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3315; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3316; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3317; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3318; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3319; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3320; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3321; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3322; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3323; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 12, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3324; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3325; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3326; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3327; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3328; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3329; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3330; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3331; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3332; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 13, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3333; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3334; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3335; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3336; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3337; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3338; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3339; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3340; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3341; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 14, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3342; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::Up).ID: return 3343; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::Side).ID: return 3344; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::Up, RedstoneWire::West::None).ID: return 3345; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::Up).ID: return 3346; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::Side).ID: return 3347; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::Side, RedstoneWire::West::None).ID: return 3348; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::Up).ID: return 3349; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::Side).ID: return 3350; case RedstoneWire::RedstoneWire(RedstoneWire::East::None, RedstoneWire::North::None, 15, RedstoneWire::South::None, RedstoneWire::West::None).ID: return 3351; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZM, true, true).ID: return 4017; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZM, true, false).ID: return 4018; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZM, false, true).ID: return 4019; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZM, false, false).ID: return 4020; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZP, true, true).ID: return 4021; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZP, true, false).ID: return 4022; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZP, false, true).ID: return 4023; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_ZP, false, false).ID: return 4024; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XM, true, true).ID: return 4025; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XM, true, false).ID: return 4026; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XM, false, true).ID: return 4027; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XM, false, false).ID: return 4028; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XP, true, true).ID: return 4029; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XP, true, false).ID: return 4030; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XP, false, true).ID: return 4031; case Repeater::Repeater(1, eBlockFace::BLOCK_FACE_XP, false, false).ID: return 4032; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZM, true, true).ID: return 4033; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZM, true, false).ID: return 4034; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZM, false, true).ID: return 4035; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZM, false, false).ID: return 4036; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZP, true, true).ID: return 4037; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZP, true, false).ID: return 4038; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZP, false, true).ID: return 4039; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_ZP, false, false).ID: return 4040; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XM, true, true).ID: return 4041; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XM, true, false).ID: return 4042; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XM, false, true).ID: return 4043; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XM, false, false).ID: return 4044; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XP, true, true).ID: return 4045; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XP, true, false).ID: return 4046; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XP, false, true).ID: return 4047; case Repeater::Repeater(2, eBlockFace::BLOCK_FACE_XP, false, false).ID: return 4048; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZM, true, true).ID: return 4049; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZM, true, false).ID: return 4050; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZM, false, true).ID: return 4051; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZM, false, false).ID: return 4052; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZP, true, true).ID: return 4053; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZP, true, false).ID: return 4054; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZP, false, true).ID: return 4055; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_ZP, false, false).ID: return 4056; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XM, true, true).ID: return 4057; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XM, true, false).ID: return 4058; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XM, false, true).ID: return 4059; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XM, false, false).ID: return 4060; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XP, true, true).ID: return 4061; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XP, true, false).ID: return 4062; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XP, false, true).ID: return 4063; case Repeater::Repeater(3, eBlockFace::BLOCK_FACE_XP, false, false).ID: return 4064; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZM, true, true).ID: return 4065; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZM, true, false).ID: return 4066; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZM, false, true).ID: return 4067; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZM, false, false).ID: return 4068; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZP, true, true).ID: return 4069; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZP, true, false).ID: return 4070; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZP, false, true).ID: return 4071; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_ZP, false, false).ID: return 4072; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XM, true, true).ID: return 4073; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XM, true, false).ID: return 4074; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XM, false, true).ID: return 4075; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XM, false, false).ID: return 4076; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XP, true, true).ID: return 4077; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XP, true, false).ID: return 4078; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XP, false, true).ID: return 4079; case Repeater::Repeater(4, eBlockFace::BLOCK_FACE_XP, false, false).ID: return 4080; case RepeatingCommandBlock::RepeatingCommandBlock(true, eBlockFace::BLOCK_FACE_ZM).ID: return 8689; case RepeatingCommandBlock::RepeatingCommandBlock(true, eBlockFace::BLOCK_FACE_XP).ID: return 8690; case RepeatingCommandBlock::RepeatingCommandBlock(true, eBlockFace::BLOCK_FACE_ZP).ID: return 8691; case RepeatingCommandBlock::RepeatingCommandBlock(true, eBlockFace::BLOCK_FACE_XM).ID: return 8692; case RepeatingCommandBlock::RepeatingCommandBlock(true, eBlockFace::BLOCK_FACE_YP).ID: return 8693; case RepeatingCommandBlock::RepeatingCommandBlock(true, eBlockFace::BLOCK_FACE_YM).ID: return 8694; case RepeatingCommandBlock::RepeatingCommandBlock(false, eBlockFace::BLOCK_FACE_ZM).ID: return 8695; case RepeatingCommandBlock::RepeatingCommandBlock(false, eBlockFace::BLOCK_FACE_XP).ID: return 8696; case RepeatingCommandBlock::RepeatingCommandBlock(false, eBlockFace::BLOCK_FACE_ZP).ID: return 8697; case RepeatingCommandBlock::RepeatingCommandBlock(false, eBlockFace::BLOCK_FACE_XM).ID: return 8698; case RepeatingCommandBlock::RepeatingCommandBlock(false, eBlockFace::BLOCK_FACE_YP).ID: return 8699; case RepeatingCommandBlock::RepeatingCommandBlock(false, eBlockFace::BLOCK_FACE_YM).ID: return 8700; case RoseBush::RoseBush(RoseBush::Half::Upper).ID: return 7353; case RoseBush::RoseBush(RoseBush::Half::Lower).ID: return 7354; case Sand::Sand().ID: return 66; case Sandstone::Sandstone().ID: return 245; case SandstoneSlab::SandstoneSlab(SandstoneSlab::Type::Top).ID: return 7813; case SandstoneSlab::SandstoneSlab(SandstoneSlab::Type::Bottom).ID: return 7815; case SandstoneSlab::SandstoneSlab(SandstoneSlab::Type::Double).ID: return 7817; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::Straight).ID: return 5155; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerLeft).ID: return 5157; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerRight).ID: return 5159; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterLeft).ID: return 5161; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterRight).ID: return 5163; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::Straight).ID: return 5165; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerLeft).ID: return 5167; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerRight).ID: return 5169; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterLeft).ID: return 5171; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterRight).ID: return 5173; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::Straight).ID: return 5175; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerLeft).ID: return 5177; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerRight).ID: return 5179; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterLeft).ID: return 5181; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterRight).ID: return 5183; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::Straight).ID: return 5185; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerLeft).ID: return 5187; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerRight).ID: return 5189; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterLeft).ID: return 5191; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterRight).ID: return 5193; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::Straight).ID: return 5195; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerLeft).ID: return 5197; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerRight).ID: return 5199; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterLeft).ID: return 5201; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterRight).ID: return 5203; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::Straight).ID: return 5205; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerLeft).ID: return 5207; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerRight).ID: return 5209; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterLeft).ID: return 5211; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XM, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterRight).ID: return 5213; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::Straight).ID: return 5215; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerLeft).ID: return 5217; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::InnerRight).ID: return 5219; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterLeft).ID: return 5221; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Top, SandstoneStairs::Shape::OuterRight).ID: return 5223; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::Straight).ID: return 5225; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerLeft).ID: return 5227; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::InnerRight).ID: return 5229; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterLeft).ID: return 5231; case SandstoneStairs::SandstoneStairs(eBlockFace::BLOCK_FACE_XP, SandstoneStairs::Half::Bottom, SandstoneStairs::Shape::OuterRight).ID: return 5233; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::Low, true, SandstoneWall::West::Low).ID: return 10909; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::Low, true, SandstoneWall::West::None).ID: return 10910; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::Low, false, SandstoneWall::West::Low).ID: return 10913; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::Low, false, SandstoneWall::West::None).ID: return 10914; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::None, true, SandstoneWall::West::Low).ID: return 10917; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::None, true, SandstoneWall::West::None).ID: return 10918; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::None, false, SandstoneWall::West::Low).ID: return 10921; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::Low, SandstoneWall::South::None, false, SandstoneWall::West::None).ID: return 10922; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::Low, true, SandstoneWall::West::Low).ID: return 10925; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::Low, true, SandstoneWall::West::None).ID: return 10926; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::Low, false, SandstoneWall::West::Low).ID: return 10929; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::Low, false, SandstoneWall::West::None).ID: return 10930; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::None, true, SandstoneWall::West::Low).ID: return 10933; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::None, true, SandstoneWall::West::None).ID: return 10934; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::None, false, SandstoneWall::West::Low).ID: return 10937; case SandstoneWall::SandstoneWall(SandstoneWall::East::Low, SandstoneWall::North::None, SandstoneWall::South::None, false, SandstoneWall::West::None).ID: return 10938; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::Low, true, SandstoneWall::West::Low).ID: return 10941; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::Low, true, SandstoneWall::West::None).ID: return 10942; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::Low, false, SandstoneWall::West::Low).ID: return 10945; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::Low, false, SandstoneWall::West::None).ID: return 10946; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::None, true, SandstoneWall::West::Low).ID: return 10949; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::None, true, SandstoneWall::West::None).ID: return 10950; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::None, false, SandstoneWall::West::Low).ID: return 10953; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::Low, SandstoneWall::South::None, false, SandstoneWall::West::None).ID: return 10954; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::Low, true, SandstoneWall::West::Low).ID: return 10957; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::Low, true, SandstoneWall::West::None).ID: return 10958; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::Low, false, SandstoneWall::West::Low).ID: return 10961; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::Low, false, SandstoneWall::West::None).ID: return 10962; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::None, true, SandstoneWall::West::Low).ID: return 10965; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::None, true, SandstoneWall::West::None).ID: return 10966; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::None, false, SandstoneWall::West::Low).ID: return 10969; case SandstoneWall::SandstoneWall(SandstoneWall::East::None, SandstoneWall::North::None, SandstoneWall::South::None, false, SandstoneWall::West::None).ID: return 10970; case Scaffolding::Scaffolding(true, 0).ID: return 11100; case Scaffolding::Scaffolding(true, 1).ID: return 11102; case Scaffolding::Scaffolding(true, 2).ID: return 11104; case Scaffolding::Scaffolding(true, 3).ID: return 11106; case Scaffolding::Scaffolding(true, 4).ID: return 11108; case Scaffolding::Scaffolding(true, 5).ID: return 11110; case Scaffolding::Scaffolding(true, 6).ID: return 11112; case Scaffolding::Scaffolding(true, 7).ID: return 11114; case Scaffolding::Scaffolding(false, 0).ID: return 11116; case Scaffolding::Scaffolding(false, 1).ID: return 11118; case Scaffolding::Scaffolding(false, 2).ID: return 11120; case Scaffolding::Scaffolding(false, 3).ID: return 11122; case Scaffolding::Scaffolding(false, 4).ID: return 11124; case Scaffolding::Scaffolding(false, 5).ID: return 11126; case Scaffolding::Scaffolding(false, 6).ID: return 11128; case Scaffolding::Scaffolding(false, 7).ID: return 11130; case SeaLantern::SeaLantern().ID: return 7326; case SeaPickle::SeaPickle(1).ID: return 9105; case SeaPickle::SeaPickle(2).ID: return 9107; case SeaPickle::SeaPickle(3).ID: return 9109; case SeaPickle::SeaPickle(4).ID: return 9111; case Seagrass::Seagrass().ID: return 1344; case ShulkerBox::ShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8736; case ShulkerBox::ShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8737; case ShulkerBox::ShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8738; case ShulkerBox::ShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8739; case ShulkerBox::ShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8740; case ShulkerBox::ShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8741; case SkeletonSkull::SkeletonSkull(0).ID: return 5954; case SkeletonSkull::SkeletonSkull(1).ID: return 5955; case SkeletonSkull::SkeletonSkull(2).ID: return 5956; case SkeletonSkull::SkeletonSkull(3).ID: return 5957; case SkeletonSkull::SkeletonSkull(4).ID: return 5958; case SkeletonSkull::SkeletonSkull(5).ID: return 5959; case SkeletonSkull::SkeletonSkull(6).ID: return 5960; case SkeletonSkull::SkeletonSkull(7).ID: return 5961; case SkeletonSkull::SkeletonSkull(8).ID: return 5962; case SkeletonSkull::SkeletonSkull(9).ID: return 5963; case SkeletonSkull::SkeletonSkull(10).ID: return 5964; case SkeletonSkull::SkeletonSkull(11).ID: return 5965; case SkeletonSkull::SkeletonSkull(12).ID: return 5966; case SkeletonSkull::SkeletonSkull(13).ID: return 5967; case SkeletonSkull::SkeletonSkull(14).ID: return 5968; case SkeletonSkull::SkeletonSkull(15).ID: return 5969; case SkeletonWallSkull::SkeletonWallSkull(eBlockFace::BLOCK_FACE_ZM).ID: return 5970; case SkeletonWallSkull::SkeletonWallSkull(eBlockFace::BLOCK_FACE_ZP).ID: return 5971; case SkeletonWallSkull::SkeletonWallSkull(eBlockFace::BLOCK_FACE_XM).ID: return 5972; case SkeletonWallSkull::SkeletonWallSkull(eBlockFace::BLOCK_FACE_XP).ID: return 5973; case SlimeBlock::SlimeBlock().ID: return 6999; case SmithingTable::SmithingTable().ID: return 11193; case Smoker::Smoker(eBlockFace::BLOCK_FACE_ZM, true).ID: return 11147; case Smoker::Smoker(eBlockFace::BLOCK_FACE_ZM, false).ID: return 11148; case Smoker::Smoker(eBlockFace::BLOCK_FACE_ZP, true).ID: return 11149; case Smoker::Smoker(eBlockFace::BLOCK_FACE_ZP, false).ID: return 11150; case Smoker::Smoker(eBlockFace::BLOCK_FACE_XM, true).ID: return 11151; case Smoker::Smoker(eBlockFace::BLOCK_FACE_XM, false).ID: return 11152; case Smoker::Smoker(eBlockFace::BLOCK_FACE_XP, true).ID: return 11153; case Smoker::Smoker(eBlockFace::BLOCK_FACE_XP, false).ID: return 11154; case SmoothQuartz::SmoothQuartz().ID: return 7880; case SmoothQuartzSlab::SmoothQuartzSlab(SmoothQuartzSlab::Type::Top).ID: return 10296; case SmoothQuartzSlab::SmoothQuartzSlab(SmoothQuartzSlab::Type::Bottom).ID: return 10298; case SmoothQuartzSlab::SmoothQuartzSlab(SmoothQuartzSlab::Type::Double).ID: return 10300; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::Straight).ID: return 9774; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9776; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerRight).ID: return 9778; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9780; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterRight).ID: return 9782; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::Straight).ID: return 9784; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9786; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerRight).ID: return 9788; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9790; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterRight).ID: return 9792; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::Straight).ID: return 9794; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9796; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerRight).ID: return 9798; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9800; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterRight).ID: return 9802; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::Straight).ID: return 9804; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9806; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerRight).ID: return 9808; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9810; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_ZP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterRight).ID: return 9812; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::Straight).ID: return 9814; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9816; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerRight).ID: return 9818; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9820; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterRight).ID: return 9822; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::Straight).ID: return 9824; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9826; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerRight).ID: return 9828; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9830; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XM, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterRight).ID: return 9832; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::Straight).ID: return 9834; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9836; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::InnerRight).ID: return 9838; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9840; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Top, SmoothQuartzStairs::Shape::OuterRight).ID: return 9842; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::Straight).ID: return 9844; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerLeft).ID: return 9846; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::InnerRight).ID: return 9848; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterLeft).ID: return 9850; case SmoothQuartzStairs::SmoothQuartzStairs(eBlockFace::BLOCK_FACE_XP, SmoothQuartzStairs::Half::Bottom, SmoothQuartzStairs::Shape::OuterRight).ID: return 9852; case SmoothRedSandstone::SmoothRedSandstone().ID: return 7881; case SmoothRedSandstoneSlab::SmoothRedSandstoneSlab(SmoothRedSandstoneSlab::Type::Top).ID: return 10260; case SmoothRedSandstoneSlab::SmoothRedSandstoneSlab(SmoothRedSandstoneSlab::Type::Bottom).ID: return 10262; case SmoothRedSandstoneSlab::SmoothRedSandstoneSlab(SmoothRedSandstoneSlab::Type::Double).ID: return 10264; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9214; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9216; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9218; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9220; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9222; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9224; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9226; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9228; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9230; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9232; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9234; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9236; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9238; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9240; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9242; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9244; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9246; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9248; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9250; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9252; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9254; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9256; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9258; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9260; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9262; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9264; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9266; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9268; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9270; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9272; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9274; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9276; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9278; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9280; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Top, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9282; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::Straight).ID: return 9284; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerLeft).ID: return 9286; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::InnerRight).ID: return 9288; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterLeft).ID: return 9290; case SmoothRedSandstoneStairs::SmoothRedSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothRedSandstoneStairs::Half::Bottom, SmoothRedSandstoneStairs::Shape::OuterRight).ID: return 9292; case SmoothSandstone::SmoothSandstone().ID: return 7879; case SmoothSandstoneSlab::SmoothSandstoneSlab(SmoothSandstoneSlab::Type::Top).ID: return 10290; case SmoothSandstoneSlab::SmoothSandstoneSlab(SmoothSandstoneSlab::Type::Bottom).ID: return 10292; case SmoothSandstoneSlab::SmoothSandstoneSlab(SmoothSandstoneSlab::Type::Double).ID: return 10294; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::Straight).ID: return 9694; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9696; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9698; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9700; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9702; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::Straight).ID: return 9704; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9706; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9708; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9710; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9712; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::Straight).ID: return 9714; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9716; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9718; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9720; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9722; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::Straight).ID: return 9724; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9726; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9728; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9730; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_ZP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9732; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::Straight).ID: return 9734; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9736; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9738; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9740; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9742; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::Straight).ID: return 9744; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9746; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9748; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9750; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XM, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9752; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::Straight).ID: return 9754; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9756; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9758; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9760; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Top, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9762; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::Straight).ID: return 9764; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerLeft).ID: return 9766; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::InnerRight).ID: return 9768; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterLeft).ID: return 9770; case SmoothSandstoneStairs::SmoothSandstoneStairs(eBlockFace::BLOCK_FACE_XP, SmoothSandstoneStairs::Half::Bottom, SmoothSandstoneStairs::Shape::OuterRight).ID: return 9772; case SmoothStone::SmoothStone().ID: return 7878; case SmoothStoneSlab::SmoothStoneSlab(SmoothStoneSlab::Type::Top).ID: return 7807; case SmoothStoneSlab::SmoothStoneSlab(SmoothStoneSlab::Type::Bottom).ID: return 7809; case SmoothStoneSlab::SmoothStoneSlab(SmoothStoneSlab::Type::Double).ID: return 7811; case Snow::Snow(1).ID: return 3919; case Snow::Snow(2).ID: return 3920; case Snow::Snow(3).ID: return 3921; case Snow::Snow(4).ID: return 3922; case Snow::Snow(5).ID: return 3923; case Snow::Snow(6).ID: return 3924; case Snow::Snow(7).ID: return 3925; case Snow::Snow(8).ID: return 3926; case SnowBlock::SnowBlock().ID: return 3928; case SoulSand::SoulSand().ID: return 3998; case Spawner::Spawner().ID: return 1951; case Sponge::Sponge().ID: return 228; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5834; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5835; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5836; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5837; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 5838; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 5839; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 5840; case SpruceButton::SpruceButton(SpruceButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 5841; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5842; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5843; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5844; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5845; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 5846; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 5847; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 5848; case SpruceButton::SpruceButton(SpruceButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 5849; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5850; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5851; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5852; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5853; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 5854; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 5855; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 5856; case SpruceButton::SpruceButton(SpruceButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 5857; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, true).ID: return 8202; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, false).ID: return 8203; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, true).ID: return 8204; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, false).ID: return 8205; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, true).ID: return 8206; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, false).ID: return 8207; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, true).ID: return 8208; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, false).ID: return 8209; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, true).ID: return 8210; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, false).ID: return 8211; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, true).ID: return 8212; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, false).ID: return 8213; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, true).ID: return 8214; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, false).ID: return 8215; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, true).ID: return 8216; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, false).ID: return 8217; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, true).ID: return 8218; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, false).ID: return 8219; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, true).ID: return 8220; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, false).ID: return 8221; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, true).ID: return 8222; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, false).ID: return 8223; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, true).ID: return 8224; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, false).ID: return 8225; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, true).ID: return 8226; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, false).ID: return 8227; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, true).ID: return 8228; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, false).ID: return 8229; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, true).ID: return 8230; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, false).ID: return 8231; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, true).ID: return 8232; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_ZP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, false).ID: return 8233; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, true).ID: return 8234; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, false).ID: return 8235; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, true).ID: return 8236; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, false).ID: return 8237; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, true).ID: return 8238; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, false).ID: return 8239; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, true).ID: return 8240; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, false).ID: return 8241; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, true).ID: return 8242; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, false).ID: return 8243; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, true).ID: return 8244; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, false).ID: return 8245; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, true).ID: return 8246; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, false).ID: return 8247; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, true).ID: return 8248; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XM, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, false).ID: return 8249; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, true).ID: return 8250; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, true, false).ID: return 8251; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, true).ID: return 8252; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Left, false, false).ID: return 8253; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, true).ID: return 8254; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, true, false).ID: return 8255; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, true).ID: return 8256; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Upper, SpruceDoor::Hinge::Right, false, false).ID: return 8257; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, true).ID: return 8258; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, true, false).ID: return 8259; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, true).ID: return 8260; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Left, false, false).ID: return 8261; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, true).ID: return 8262; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, true, false).ID: return 8263; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, true).ID: return 8264; case SpruceDoor::SpruceDoor(eBlockFace::BLOCK_FACE_XP, SpruceDoor::Half::Lower, SpruceDoor::Hinge::Right, false, false).ID: return 8265; case SpruceFence::SpruceFence(true, true, true, true).ID: return 8044; case SpruceFence::SpruceFence(true, true, true, false).ID: return 8045; case SpruceFence::SpruceFence(true, true, false, true).ID: return 8048; case SpruceFence::SpruceFence(true, true, false, false).ID: return 8049; case SpruceFence::SpruceFence(true, false, true, true).ID: return 8052; case SpruceFence::SpruceFence(true, false, true, false).ID: return 8053; case SpruceFence::SpruceFence(true, false, false, true).ID: return 8056; case SpruceFence::SpruceFence(true, false, false, false).ID: return 8057; case SpruceFence::SpruceFence(false, true, true, true).ID: return 8060; case SpruceFence::SpruceFence(false, true, true, false).ID: return 8061; case SpruceFence::SpruceFence(false, true, false, true).ID: return 8064; case SpruceFence::SpruceFence(false, true, false, false).ID: return 8065; case SpruceFence::SpruceFence(false, false, true, true).ID: return 8068; case SpruceFence::SpruceFence(false, false, true, false).ID: return 8069; case SpruceFence::SpruceFence(false, false, false, true).ID: return 8072; case SpruceFence::SpruceFence(false, false, false, false).ID: return 8073; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, true).ID: return 7882; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, true, true, false).ID: return 7883; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, true).ID: return 7884; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, true, false, false).ID: return 7885; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, true).ID: return 7886; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, false, true, false).ID: return 7887; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, true).ID: return 7888; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZM, false, false, false).ID: return 7889; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, true).ID: return 7890; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, true, true, false).ID: return 7891; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, true).ID: return 7892; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, true, false, false).ID: return 7893; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, true).ID: return 7894; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, false, true, false).ID: return 7895; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, true).ID: return 7896; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_ZP, false, false, false).ID: return 7897; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, true).ID: return 7898; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, true, true, false).ID: return 7899; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, true).ID: return 7900; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, true, false, false).ID: return 7901; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, true).ID: return 7902; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, false, true, false).ID: return 7903; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, true).ID: return 7904; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XM, false, false, false).ID: return 7905; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, true).ID: return 7906; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, true, true, false).ID: return 7907; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, true).ID: return 7908; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, true, false, false).ID: return 7909; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, true).ID: return 7910; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, false, true, false).ID: return 7911; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, true).ID: return 7912; case SpruceFenceGate::SpruceFenceGate(eBlockFace::BLOCK_FACE_XP, false, false, false).ID: return 7913; case SpruceLeaves::SpruceLeaves(1, true).ID: return 158; case SpruceLeaves::SpruceLeaves(1, false).ID: return 159; case SpruceLeaves::SpruceLeaves(2, true).ID: return 160; case SpruceLeaves::SpruceLeaves(2, false).ID: return 161; case SpruceLeaves::SpruceLeaves(3, true).ID: return 162; case SpruceLeaves::SpruceLeaves(3, false).ID: return 163; case SpruceLeaves::SpruceLeaves(4, true).ID: return 164; case SpruceLeaves::SpruceLeaves(4, false).ID: return 165; case SpruceLeaves::SpruceLeaves(5, true).ID: return 166; case SpruceLeaves::SpruceLeaves(5, false).ID: return 167; case SpruceLeaves::SpruceLeaves(6, true).ID: return 168; case SpruceLeaves::SpruceLeaves(6, false).ID: return 169; case SpruceLeaves::SpruceLeaves(7, true).ID: return 170; case SpruceLeaves::SpruceLeaves(7, false).ID: return 171; case SpruceLog::SpruceLog(SpruceLog::Axis::X).ID: return 75; case SpruceLog::SpruceLog(SpruceLog::Axis::Y).ID: return 76; case SpruceLog::SpruceLog(SpruceLog::Axis::Z).ID: return 77; case SprucePlanks::SprucePlanks().ID: return 16; case SprucePressurePlate::SprucePressurePlate(true).ID: return 3873; case SprucePressurePlate::SprucePressurePlate(false).ID: return 3874; case SpruceSapling::SpruceSapling(0).ID: return 23; case SpruceSapling::SpruceSapling(1).ID: return 24; case SpruceSign::SpruceSign(0).ID: return 3412; case SpruceSign::SpruceSign(1).ID: return 3414; case SpruceSign::SpruceSign(2).ID: return 3416; case SpruceSign::SpruceSign(3).ID: return 3418; case SpruceSign::SpruceSign(4).ID: return 3420; case SpruceSign::SpruceSign(5).ID: return 3422; case SpruceSign::SpruceSign(6).ID: return 3424; case SpruceSign::SpruceSign(7).ID: return 3426; case SpruceSign::SpruceSign(8).ID: return 3428; case SpruceSign::SpruceSign(9).ID: return 3430; case SpruceSign::SpruceSign(10).ID: return 3432; case SpruceSign::SpruceSign(11).ID: return 3434; case SpruceSign::SpruceSign(12).ID: return 3436; case SpruceSign::SpruceSign(13).ID: return 3438; case SpruceSign::SpruceSign(14).ID: return 3440; case SpruceSign::SpruceSign(15).ID: return 3442; case SpruceSlab::SpruceSlab(SpruceSlab::Type::Top).ID: return 7771; case SpruceSlab::SpruceSlab(SpruceSlab::Type::Bottom).ID: return 7773; case SpruceSlab::SpruceSlab(SpruceSlab::Type::Double).ID: return 7775; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Top, SpruceStairs::Shape::Straight).ID: return 5389; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerLeft).ID: return 5391; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerRight).ID: return 5393; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterLeft).ID: return 5395; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterRight).ID: return 5397; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::Straight).ID: return 5399; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerLeft).ID: return 5401; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerRight).ID: return 5403; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterLeft).ID: return 5405; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterRight).ID: return 5407; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Top, SpruceStairs::Shape::Straight).ID: return 5409; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerLeft).ID: return 5411; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerRight).ID: return 5413; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterLeft).ID: return 5415; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterRight).ID: return 5417; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::Straight).ID: return 5419; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerLeft).ID: return 5421; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerRight).ID: return 5423; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterLeft).ID: return 5425; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_ZP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterRight).ID: return 5427; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Top, SpruceStairs::Shape::Straight).ID: return 5429; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerLeft).ID: return 5431; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerRight).ID: return 5433; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterLeft).ID: return 5435; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterRight).ID: return 5437; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::Straight).ID: return 5439; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerLeft).ID: return 5441; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerRight).ID: return 5443; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterLeft).ID: return 5445; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XM, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterRight).ID: return 5447; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Top, SpruceStairs::Shape::Straight).ID: return 5449; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerLeft).ID: return 5451; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Top, SpruceStairs::Shape::InnerRight).ID: return 5453; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterLeft).ID: return 5455; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Top, SpruceStairs::Shape::OuterRight).ID: return 5457; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::Straight).ID: return 5459; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerLeft).ID: return 5461; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::InnerRight).ID: return 5463; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterLeft).ID: return 5465; case SpruceStairs::SpruceStairs(eBlockFace::BLOCK_FACE_XP, SpruceStairs::Half::Bottom, SpruceStairs::Shape::OuterRight).ID: return 5467; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Top, true, true).ID: return 4162; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Top, true, false).ID: return 4164; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Top, false, true).ID: return 4166; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Top, false, false).ID: return 4168; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Bottom, true, true).ID: return 4170; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Bottom, true, false).ID: return 4172; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Bottom, false, true).ID: return 4174; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZM, SpruceTrapdoor::Half::Bottom, false, false).ID: return 4176; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Top, true, true).ID: return 4178; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Top, true, false).ID: return 4180; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Top, false, true).ID: return 4182; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Top, false, false).ID: return 4184; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Bottom, true, true).ID: return 4186; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Bottom, true, false).ID: return 4188; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Bottom, false, true).ID: return 4190; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_ZP, SpruceTrapdoor::Half::Bottom, false, false).ID: return 4192; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Top, true, true).ID: return 4194; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Top, true, false).ID: return 4196; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Top, false, true).ID: return 4198; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Top, false, false).ID: return 4200; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Bottom, true, true).ID: return 4202; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Bottom, true, false).ID: return 4204; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Bottom, false, true).ID: return 4206; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XM, SpruceTrapdoor::Half::Bottom, false, false).ID: return 4208; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Top, true, true).ID: return 4210; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Top, true, false).ID: return 4212; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Top, false, true).ID: return 4214; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Top, false, false).ID: return 4216; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Bottom, true, true).ID: return 4218; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Bottom, true, false).ID: return 4220; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Bottom, false, true).ID: return 4222; case SpruceTrapdoor::SpruceTrapdoor(eBlockFace::BLOCK_FACE_XP, SpruceTrapdoor::Half::Bottom, false, false).ID: return 4224; case SpruceWallSign::SpruceWallSign(eBlockFace::BLOCK_FACE_ZM).ID: return 3742; case SpruceWallSign::SpruceWallSign(eBlockFace::BLOCK_FACE_ZP).ID: return 3744; case SpruceWallSign::SpruceWallSign(eBlockFace::BLOCK_FACE_XM).ID: return 3746; case SpruceWallSign::SpruceWallSign(eBlockFace::BLOCK_FACE_XP).ID: return 3748; case SpruceWood::SpruceWood(SpruceWood::Axis::X).ID: return 111; case SpruceWood::SpruceWood(SpruceWood::Axis::Y).ID: return 112; case SpruceWood::SpruceWood(SpruceWood::Axis::Z).ID: return 113; case StickyPiston::StickyPiston(true, eBlockFace::BLOCK_FACE_ZM).ID: return 1328; case StickyPiston::StickyPiston(true, eBlockFace::BLOCK_FACE_XP).ID: return 1329; case StickyPiston::StickyPiston(true, eBlockFace::BLOCK_FACE_ZP).ID: return 1330; case StickyPiston::StickyPiston(true, eBlockFace::BLOCK_FACE_XM).ID: return 1331; case StickyPiston::StickyPiston(true, eBlockFace::BLOCK_FACE_YP).ID: return 1332; case StickyPiston::StickyPiston(true, eBlockFace::BLOCK_FACE_YM).ID: return 1333; case StickyPiston::StickyPiston(false, eBlockFace::BLOCK_FACE_ZM).ID: return 1334; case StickyPiston::StickyPiston(false, eBlockFace::BLOCK_FACE_XP).ID: return 1335; case StickyPiston::StickyPiston(false, eBlockFace::BLOCK_FACE_ZP).ID: return 1336; case StickyPiston::StickyPiston(false, eBlockFace::BLOCK_FACE_XM).ID: return 1337; case StickyPiston::StickyPiston(false, eBlockFace::BLOCK_FACE_YP).ID: return 1338; case StickyPiston::StickyPiston(false, eBlockFace::BLOCK_FACE_YM).ID: return 1339; case Stone::Stone().ID: return 1; case StoneBrickSlab::StoneBrickSlab(StoneBrickSlab::Type::Top).ID: return 7843; case StoneBrickSlab::StoneBrickSlab(StoneBrickSlab::Type::Bottom).ID: return 7845; case StoneBrickSlab::StoneBrickSlab(StoneBrickSlab::Type::Double).ID: return 7847; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::Straight).ID: return 4917; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerLeft).ID: return 4919; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerRight).ID: return 4921; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterLeft).ID: return 4923; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterRight).ID: return 4925; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::Straight).ID: return 4927; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerLeft).ID: return 4929; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerRight).ID: return 4931; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterLeft).ID: return 4933; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterRight).ID: return 4935; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::Straight).ID: return 4937; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerLeft).ID: return 4939; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerRight).ID: return 4941; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterLeft).ID: return 4943; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterRight).ID: return 4945; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::Straight).ID: return 4947; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerLeft).ID: return 4949; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerRight).ID: return 4951; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterLeft).ID: return 4953; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_ZP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterRight).ID: return 4955; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::Straight).ID: return 4957; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerLeft).ID: return 4959; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerRight).ID: return 4961; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterLeft).ID: return 4963; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterRight).ID: return 4965; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::Straight).ID: return 4967; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerLeft).ID: return 4969; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerRight).ID: return 4971; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterLeft).ID: return 4973; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XM, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterRight).ID: return 4975; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::Straight).ID: return 4977; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerLeft).ID: return 4979; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::InnerRight).ID: return 4981; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterLeft).ID: return 4983; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Top, StoneBrickStairs::Shape::OuterRight).ID: return 4985; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::Straight).ID: return 4987; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerLeft).ID: return 4989; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::InnerRight).ID: return 4991; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterLeft).ID: return 4993; case StoneBrickStairs::StoneBrickStairs(eBlockFace::BLOCK_FACE_XP, StoneBrickStairs::Half::Bottom, StoneBrickStairs::Shape::OuterRight).ID: return 4995; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::Low, true, StoneBrickWall::West::Low).ID: return 10653; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::Low, true, StoneBrickWall::West::None).ID: return 10654; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::Low, false, StoneBrickWall::West::Low).ID: return 10657; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::Low, false, StoneBrickWall::West::None).ID: return 10658; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::None, true, StoneBrickWall::West::Low).ID: return 10661; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::None, true, StoneBrickWall::West::None).ID: return 10662; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::None, false, StoneBrickWall::West::Low).ID: return 10665; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::Low, StoneBrickWall::South::None, false, StoneBrickWall::West::None).ID: return 10666; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::Low, true, StoneBrickWall::West::Low).ID: return 10669; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::Low, true, StoneBrickWall::West::None).ID: return 10670; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::Low, false, StoneBrickWall::West::Low).ID: return 10673; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::Low, false, StoneBrickWall::West::None).ID: return 10674; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::None, true, StoneBrickWall::West::Low).ID: return 10677; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::None, true, StoneBrickWall::West::None).ID: return 10678; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::None, false, StoneBrickWall::West::Low).ID: return 10681; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::Low, StoneBrickWall::North::None, StoneBrickWall::South::None, false, StoneBrickWall::West::None).ID: return 10682; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::Low, true, StoneBrickWall::West::Low).ID: return 10685; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::Low, true, StoneBrickWall::West::None).ID: return 10686; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::Low, false, StoneBrickWall::West::Low).ID: return 10689; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::Low, false, StoneBrickWall::West::None).ID: return 10690; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::None, true, StoneBrickWall::West::Low).ID: return 10693; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::None, true, StoneBrickWall::West::None).ID: return 10694; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::None, false, StoneBrickWall::West::Low).ID: return 10697; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::Low, StoneBrickWall::South::None, false, StoneBrickWall::West::None).ID: return 10698; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::Low, true, StoneBrickWall::West::Low).ID: return 10701; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::Low, true, StoneBrickWall::West::None).ID: return 10702; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::Low, false, StoneBrickWall::West::Low).ID: return 10705; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::Low, false, StoneBrickWall::West::None).ID: return 10706; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::None, true, StoneBrickWall::West::Low).ID: return 10709; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::None, true, StoneBrickWall::West::None).ID: return 10710; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::None, false, StoneBrickWall::West::Low).ID: return 10713; case StoneBrickWall::StoneBrickWall(StoneBrickWall::East::None, StoneBrickWall::North::None, StoneBrickWall::South::None, false, StoneBrickWall::West::None).ID: return 10714; case StoneBricks::StoneBricks().ID: return 4481; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, true).ID: return 3895; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_ZM, false).ID: return 3896; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, true).ID: return 3897; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_ZP, false).ID: return 3898; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, true).ID: return 3899; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_XM, false).ID: return 3900; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, true).ID: return 3901; case StoneButton::StoneButton(StoneButton::Face::Floor, eBlockFace::BLOCK_FACE_XP, false).ID: return 3902; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, true).ID: return 3903; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_ZM, false).ID: return 3904; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, true).ID: return 3905; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_ZP, false).ID: return 3906; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, true).ID: return 3907; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_XM, false).ID: return 3908; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, true).ID: return 3909; case StoneButton::StoneButton(StoneButton::Face::Wall, eBlockFace::BLOCK_FACE_XP, false).ID: return 3910; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, true).ID: return 3911; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZM, false).ID: return 3912; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, true).ID: return 3913; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_ZP, false).ID: return 3914; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, true).ID: return 3915; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XM, false).ID: return 3916; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, true).ID: return 3917; case StoneButton::StoneButton(StoneButton::Face::Ceiling, eBlockFace::BLOCK_FACE_XP, false).ID: return 3918; case StonePressurePlate::StonePressurePlate(true).ID: return 3805; case StonePressurePlate::StonePressurePlate(false).ID: return 3806; case StoneSlab::StoneSlab(StoneSlab::Type::Top).ID: return 7801; case StoneSlab::StoneSlab(StoneSlab::Type::Bottom).ID: return 7803; case StoneSlab::StoneSlab(StoneSlab::Type::Double).ID: return 7805; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Top, StoneStairs::Shape::Straight).ID: return 9614; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Top, StoneStairs::Shape::InnerLeft).ID: return 9616; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Top, StoneStairs::Shape::InnerRight).ID: return 9618; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Top, StoneStairs::Shape::OuterLeft).ID: return 9620; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Top, StoneStairs::Shape::OuterRight).ID: return 9622; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Bottom, StoneStairs::Shape::Straight).ID: return 9624; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerLeft).ID: return 9626; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerRight).ID: return 9628; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterLeft).ID: return 9630; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZM, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterRight).ID: return 9632; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Top, StoneStairs::Shape::Straight).ID: return 9634; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Top, StoneStairs::Shape::InnerLeft).ID: return 9636; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Top, StoneStairs::Shape::InnerRight).ID: return 9638; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Top, StoneStairs::Shape::OuterLeft).ID: return 9640; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Top, StoneStairs::Shape::OuterRight).ID: return 9642; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Bottom, StoneStairs::Shape::Straight).ID: return 9644; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerLeft).ID: return 9646; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerRight).ID: return 9648; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterLeft).ID: return 9650; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_ZP, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterRight).ID: return 9652; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Top, StoneStairs::Shape::Straight).ID: return 9654; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Top, StoneStairs::Shape::InnerLeft).ID: return 9656; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Top, StoneStairs::Shape::InnerRight).ID: return 9658; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Top, StoneStairs::Shape::OuterLeft).ID: return 9660; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Top, StoneStairs::Shape::OuterRight).ID: return 9662; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Bottom, StoneStairs::Shape::Straight).ID: return 9664; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerLeft).ID: return 9666; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerRight).ID: return 9668; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterLeft).ID: return 9670; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XM, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterRight).ID: return 9672; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Top, StoneStairs::Shape::Straight).ID: return 9674; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Top, StoneStairs::Shape::InnerLeft).ID: return 9676; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Top, StoneStairs::Shape::InnerRight).ID: return 9678; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Top, StoneStairs::Shape::OuterLeft).ID: return 9680; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Top, StoneStairs::Shape::OuterRight).ID: return 9682; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Bottom, StoneStairs::Shape::Straight).ID: return 9684; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerLeft).ID: return 9686; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Bottom, StoneStairs::Shape::InnerRight).ID: return 9688; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterLeft).ID: return 9690; case StoneStairs::StoneStairs(eBlockFace::BLOCK_FACE_XP, StoneStairs::Half::Bottom, StoneStairs::Shape::OuterRight).ID: return 9692; case Stonecutter::Stonecutter(eBlockFace::BLOCK_FACE_ZM).ID: return 11194; case Stonecutter::Stonecutter(eBlockFace::BLOCK_FACE_ZP).ID: return 11195; case Stonecutter::Stonecutter(eBlockFace::BLOCK_FACE_XM).ID: return 11196; case Stonecutter::Stonecutter(eBlockFace::BLOCK_FACE_XP).ID: return 11197; case StrippedAcaciaLog::StrippedAcaciaLog(StrippedAcaciaLog::Axis::X).ID: return 99; case StrippedAcaciaLog::StrippedAcaciaLog(StrippedAcaciaLog::Axis::Y).ID: return 100; case StrippedAcaciaLog::StrippedAcaciaLog(StrippedAcaciaLog::Axis::Z).ID: return 101; case StrippedAcaciaWood::StrippedAcaciaWood(StrippedAcaciaWood::Axis::X).ID: return 138; case StrippedAcaciaWood::StrippedAcaciaWood(StrippedAcaciaWood::Axis::Y).ID: return 139; case StrippedAcaciaWood::StrippedAcaciaWood(StrippedAcaciaWood::Axis::Z).ID: return 140; case StrippedBirchLog::StrippedBirchLog(StrippedBirchLog::Axis::X).ID: return 93; case StrippedBirchLog::StrippedBirchLog(StrippedBirchLog::Axis::Y).ID: return 94; case StrippedBirchLog::StrippedBirchLog(StrippedBirchLog::Axis::Z).ID: return 95; case StrippedBirchWood::StrippedBirchWood(StrippedBirchWood::Axis::X).ID: return 132; case StrippedBirchWood::StrippedBirchWood(StrippedBirchWood::Axis::Y).ID: return 133; case StrippedBirchWood::StrippedBirchWood(StrippedBirchWood::Axis::Z).ID: return 134; case StrippedDarkOakLog::StrippedDarkOakLog(StrippedDarkOakLog::Axis::X).ID: return 102; case StrippedDarkOakLog::StrippedDarkOakLog(StrippedDarkOakLog::Axis::Y).ID: return 103; case StrippedDarkOakLog::StrippedDarkOakLog(StrippedDarkOakLog::Axis::Z).ID: return 104; case StrippedDarkOakWood::StrippedDarkOakWood(StrippedDarkOakWood::Axis::X).ID: return 141; case StrippedDarkOakWood::StrippedDarkOakWood(StrippedDarkOakWood::Axis::Y).ID: return 142; case StrippedDarkOakWood::StrippedDarkOakWood(StrippedDarkOakWood::Axis::Z).ID: return 143; case StrippedJungleLog::StrippedJungleLog(StrippedJungleLog::Axis::X).ID: return 96; case StrippedJungleLog::StrippedJungleLog(StrippedJungleLog::Axis::Y).ID: return 97; case StrippedJungleLog::StrippedJungleLog(StrippedJungleLog::Axis::Z).ID: return 98; case StrippedJungleWood::StrippedJungleWood(StrippedJungleWood::Axis::X).ID: return 135; case StrippedJungleWood::StrippedJungleWood(StrippedJungleWood::Axis::Y).ID: return 136; case StrippedJungleWood::StrippedJungleWood(StrippedJungleWood::Axis::Z).ID: return 137; case StrippedOakLog::StrippedOakLog(StrippedOakLog::Axis::X).ID: return 105; case StrippedOakLog::StrippedOakLog(StrippedOakLog::Axis::Y).ID: return 106; case StrippedOakLog::StrippedOakLog(StrippedOakLog::Axis::Z).ID: return 107; case StrippedOakWood::StrippedOakWood(StrippedOakWood::Axis::X).ID: return 126; case StrippedOakWood::StrippedOakWood(StrippedOakWood::Axis::Y).ID: return 127; case StrippedOakWood::StrippedOakWood(StrippedOakWood::Axis::Z).ID: return 128; case StrippedSpruceLog::StrippedSpruceLog(StrippedSpruceLog::Axis::X).ID: return 90; case StrippedSpruceLog::StrippedSpruceLog(StrippedSpruceLog::Axis::Y).ID: return 91; case StrippedSpruceLog::StrippedSpruceLog(StrippedSpruceLog::Axis::Z).ID: return 92; case StrippedSpruceWood::StrippedSpruceWood(StrippedSpruceWood::Axis::X).ID: return 129; case StrippedSpruceWood::StrippedSpruceWood(StrippedSpruceWood::Axis::Y).ID: return 130; case StrippedSpruceWood::StrippedSpruceWood(StrippedSpruceWood::Axis::Z).ID: return 131; case StructureBlock::StructureBlock(StructureBlock::Mode::Save).ID: return 11268; case StructureBlock::StructureBlock(StructureBlock::Mode::Load).ID: return 11269; case StructureBlock::StructureBlock(StructureBlock::Mode::Corner).ID: return 11270; case StructureBlock::StructureBlock(StructureBlock::Mode::Data).ID: return 11271; case StructureVoid::StructureVoid().ID: return 8723; case SugarCane::SugarCane(0).ID: return 3946; case SugarCane::SugarCane(1).ID: return 3947; case SugarCane::SugarCane(2).ID: return 3948; case SugarCane::SugarCane(3).ID: return 3949; case SugarCane::SugarCane(4).ID: return 3950; case SugarCane::SugarCane(5).ID: return 3951; case SugarCane::SugarCane(6).ID: return 3952; case SugarCane::SugarCane(7).ID: return 3953; case SugarCane::SugarCane(8).ID: return 3954; case SugarCane::SugarCane(9).ID: return 3955; case SugarCane::SugarCane(10).ID: return 3956; case SugarCane::SugarCane(11).ID: return 3957; case SugarCane::SugarCane(12).ID: return 3958; case SugarCane::SugarCane(13).ID: return 3959; case SugarCane::SugarCane(14).ID: return 3960; case SugarCane::SugarCane(15).ID: return 3961; case Sunflower::Sunflower(Sunflower::Half::Upper).ID: return 7349; case Sunflower::Sunflower(Sunflower::Half::Lower).ID: return 7350; case SweetBerryBush::SweetBerryBush(0).ID: return 11264; case SweetBerryBush::SweetBerryBush(1).ID: return 11265; case SweetBerryBush::SweetBerryBush(2).ID: return 11266; case SweetBerryBush::SweetBerryBush(3).ID: return 11267; case TNT::TNT(true).ID: return 1429; case TNT::TNT(false).ID: return 1430; case TallGrass::TallGrass(TallGrass::Half::Upper).ID: return 7357; case TallGrass::TallGrass(TallGrass::Half::Lower).ID: return 7358; case TallSeagrass::TallSeagrass(TallSeagrass::Half::Upper).ID: return 1345; case TallSeagrass::TallSeagrass(TallSeagrass::Half::Lower).ID: return 1346; case Terracotta::Terracotta().ID: return 7346; case Torch::Torch().ID: return 1434; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_ZM, TrappedChest::Type::Single).ID: return 6087; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_ZM, TrappedChest::Type::Left).ID: return 6089; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_ZM, TrappedChest::Type::Right).ID: return 6091; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_ZP, TrappedChest::Type::Single).ID: return 6093; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_ZP, TrappedChest::Type::Left).ID: return 6095; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_ZP, TrappedChest::Type::Right).ID: return 6097; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_XM, TrappedChest::Type::Single).ID: return 6099; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_XM, TrappedChest::Type::Left).ID: return 6101; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_XM, TrappedChest::Type::Right).ID: return 6103; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_XP, TrappedChest::Type::Single).ID: return 6105; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_XP, TrappedChest::Type::Left).ID: return 6107; case TrappedChest::TrappedChest(eBlockFace::BLOCK_FACE_XP, TrappedChest::Type::Right).ID: return 6109; case Tripwire::Tripwire(true, true, true, true, true, true, true).ID: return 5259; case Tripwire::Tripwire(true, true, true, true, true, true, false).ID: return 5260; case Tripwire::Tripwire(true, true, true, true, true, false, true).ID: return 5261; case Tripwire::Tripwire(true, true, true, true, true, false, false).ID: return 5262; case Tripwire::Tripwire(true, true, true, true, false, true, true).ID: return 5263; case Tripwire::Tripwire(true, true, true, true, false, true, false).ID: return 5264; case Tripwire::Tripwire(true, true, true, true, false, false, true).ID: return 5265; case Tripwire::Tripwire(true, true, true, true, false, false, false).ID: return 5266; case Tripwire::Tripwire(true, true, true, false, true, true, true).ID: return 5267; case Tripwire::Tripwire(true, true, true, false, true, true, false).ID: return 5268; case Tripwire::Tripwire(true, true, true, false, true, false, true).ID: return 5269; case Tripwire::Tripwire(true, true, true, false, true, false, false).ID: return 5270; case Tripwire::Tripwire(true, true, true, false, false, true, true).ID: return 5271; case Tripwire::Tripwire(true, true, true, false, false, true, false).ID: return 5272; case Tripwire::Tripwire(true, true, true, false, false, false, true).ID: return 5273; case Tripwire::Tripwire(true, true, true, false, false, false, false).ID: return 5274; case Tripwire::Tripwire(true, true, false, true, true, true, true).ID: return 5275; case Tripwire::Tripwire(true, true, false, true, true, true, false).ID: return 5276; case Tripwire::Tripwire(true, true, false, true, true, false, true).ID: return 5277; case Tripwire::Tripwire(true, true, false, true, true, false, false).ID: return 5278; case Tripwire::Tripwire(true, true, false, true, false, true, true).ID: return 5279; case Tripwire::Tripwire(true, true, false, true, false, true, false).ID: return 5280; case Tripwire::Tripwire(true, true, false, true, false, false, true).ID: return 5281; case Tripwire::Tripwire(true, true, false, true, false, false, false).ID: return 5282; case Tripwire::Tripwire(true, true, false, false, true, true, true).ID: return 5283; case Tripwire::Tripwire(true, true, false, false, true, true, false).ID: return 5284; case Tripwire::Tripwire(true, true, false, false, true, false, true).ID: return 5285; case Tripwire::Tripwire(true, true, false, false, true, false, false).ID: return 5286; case Tripwire::Tripwire(true, true, false, false, false, true, true).ID: return 5287; case Tripwire::Tripwire(true, true, false, false, false, true, false).ID: return 5288; case Tripwire::Tripwire(true, true, false, false, false, false, true).ID: return 5289; case Tripwire::Tripwire(true, true, false, false, false, false, false).ID: return 5290; case Tripwire::Tripwire(true, false, true, true, true, true, true).ID: return 5291; case Tripwire::Tripwire(true, false, true, true, true, true, false).ID: return 5292; case Tripwire::Tripwire(true, false, true, true, true, false, true).ID: return 5293; case Tripwire::Tripwire(true, false, true, true, true, false, false).ID: return 5294; case Tripwire::Tripwire(true, false, true, true, false, true, true).ID: return 5295; case Tripwire::Tripwire(true, false, true, true, false, true, false).ID: return 5296; case Tripwire::Tripwire(true, false, true, true, false, false, true).ID: return 5297; case Tripwire::Tripwire(true, false, true, true, false, false, false).ID: return 5298; case Tripwire::Tripwire(true, false, true, false, true, true, true).ID: return 5299; case Tripwire::Tripwire(true, false, true, false, true, true, false).ID: return 5300; case Tripwire::Tripwire(true, false, true, false, true, false, true).ID: return 5301; case Tripwire::Tripwire(true, false, true, false, true, false, false).ID: return 5302; case Tripwire::Tripwire(true, false, true, false, false, true, true).ID: return 5303; case Tripwire::Tripwire(true, false, true, false, false, true, false).ID: return 5304; case Tripwire::Tripwire(true, false, true, false, false, false, true).ID: return 5305; case Tripwire::Tripwire(true, false, true, false, false, false, false).ID: return 5306; case Tripwire::Tripwire(true, false, false, true, true, true, true).ID: return 5307; case Tripwire::Tripwire(true, false, false, true, true, true, false).ID: return 5308; case Tripwire::Tripwire(true, false, false, true, true, false, true).ID: return 5309; case Tripwire::Tripwire(true, false, false, true, true, false, false).ID: return 5310; case Tripwire::Tripwire(true, false, false, true, false, true, true).ID: return 5311; case Tripwire::Tripwire(true, false, false, true, false, true, false).ID: return 5312; case Tripwire::Tripwire(true, false, false, true, false, false, true).ID: return 5313; case Tripwire::Tripwire(true, false, false, true, false, false, false).ID: return 5314; case Tripwire::Tripwire(true, false, false, false, true, true, true).ID: return 5315; case Tripwire::Tripwire(true, false, false, false, true, true, false).ID: return 5316; case Tripwire::Tripwire(true, false, false, false, true, false, true).ID: return 5317; case Tripwire::Tripwire(true, false, false, false, true, false, false).ID: return 5318; case Tripwire::Tripwire(true, false, false, false, false, true, true).ID: return 5319; case Tripwire::Tripwire(true, false, false, false, false, true, false).ID: return 5320; case Tripwire::Tripwire(true, false, false, false, false, false, true).ID: return 5321; case Tripwire::Tripwire(true, false, false, false, false, false, false).ID: return 5322; case Tripwire::Tripwire(false, true, true, true, true, true, true).ID: return 5323; case Tripwire::Tripwire(false, true, true, true, true, true, false).ID: return 5324; case Tripwire::Tripwire(false, true, true, true, true, false, true).ID: return 5325; case Tripwire::Tripwire(false, true, true, true, true, false, false).ID: return 5326; case Tripwire::Tripwire(false, true, true, true, false, true, true).ID: return 5327; case Tripwire::Tripwire(false, true, true, true, false, true, false).ID: return 5328; case Tripwire::Tripwire(false, true, true, true, false, false, true).ID: return 5329; case Tripwire::Tripwire(false, true, true, true, false, false, false).ID: return 5330; case Tripwire::Tripwire(false, true, true, false, true, true, true).ID: return 5331; case Tripwire::Tripwire(false, true, true, false, true, true, false).ID: return 5332; case Tripwire::Tripwire(false, true, true, false, true, false, true).ID: return 5333; case Tripwire::Tripwire(false, true, true, false, true, false, false).ID: return 5334; case Tripwire::Tripwire(false, true, true, false, false, true, true).ID: return 5335; case Tripwire::Tripwire(false, true, true, false, false, true, false).ID: return 5336; case Tripwire::Tripwire(false, true, true, false, false, false, true).ID: return 5337; case Tripwire::Tripwire(false, true, true, false, false, false, false).ID: return 5338; case Tripwire::Tripwire(false, true, false, true, true, true, true).ID: return 5339; case Tripwire::Tripwire(false, true, false, true, true, true, false).ID: return 5340; case Tripwire::Tripwire(false, true, false, true, true, false, true).ID: return 5341; case Tripwire::Tripwire(false, true, false, true, true, false, false).ID: return 5342; case Tripwire::Tripwire(false, true, false, true, false, true, true).ID: return 5343; case Tripwire::Tripwire(false, true, false, true, false, true, false).ID: return 5344; case Tripwire::Tripwire(false, true, false, true, false, false, true).ID: return 5345; case Tripwire::Tripwire(false, true, false, true, false, false, false).ID: return 5346; case Tripwire::Tripwire(false, true, false, false, true, true, true).ID: return 5347; case Tripwire::Tripwire(false, true, false, false, true, true, false).ID: return 5348; case Tripwire::Tripwire(false, true, false, false, true, false, true).ID: return 5349; case Tripwire::Tripwire(false, true, false, false, true, false, false).ID: return 5350; case Tripwire::Tripwire(false, true, false, false, false, true, true).ID: return 5351; case Tripwire::Tripwire(false, true, false, false, false, true, false).ID: return 5352; case Tripwire::Tripwire(false, true, false, false, false, false, true).ID: return 5353; case Tripwire::Tripwire(false, true, false, false, false, false, false).ID: return 5354; case Tripwire::Tripwire(false, false, true, true, true, true, true).ID: return 5355; case Tripwire::Tripwire(false, false, true, true, true, true, false).ID: return 5356; case Tripwire::Tripwire(false, false, true, true, true, false, true).ID: return 5357; case Tripwire::Tripwire(false, false, true, true, true, false, false).ID: return 5358; case Tripwire::Tripwire(false, false, true, true, false, true, true).ID: return 5359; case Tripwire::Tripwire(false, false, true, true, false, true, false).ID: return 5360; case Tripwire::Tripwire(false, false, true, true, false, false, true).ID: return 5361; case Tripwire::Tripwire(false, false, true, true, false, false, false).ID: return 5362; case Tripwire::Tripwire(false, false, true, false, true, true, true).ID: return 5363; case Tripwire::Tripwire(false, false, true, false, true, true, false).ID: return 5364; case Tripwire::Tripwire(false, false, true, false, true, false, true).ID: return 5365; case Tripwire::Tripwire(false, false, true, false, true, false, false).ID: return 5366; case Tripwire::Tripwire(false, false, true, false, false, true, true).ID: return 5367; case Tripwire::Tripwire(false, false, true, false, false, true, false).ID: return 5368; case Tripwire::Tripwire(false, false, true, false, false, false, true).ID: return 5369; case Tripwire::Tripwire(false, false, true, false, false, false, false).ID: return 5370; case Tripwire::Tripwire(false, false, false, true, true, true, true).ID: return 5371; case Tripwire::Tripwire(false, false, false, true, true, true, false).ID: return 5372; case Tripwire::Tripwire(false, false, false, true, true, false, true).ID: return 5373; case Tripwire::Tripwire(false, false, false, true, true, false, false).ID: return 5374; case Tripwire::Tripwire(false, false, false, true, false, true, true).ID: return 5375; case Tripwire::Tripwire(false, false, false, true, false, true, false).ID: return 5376; case Tripwire::Tripwire(false, false, false, true, false, false, true).ID: return 5377; case Tripwire::Tripwire(false, false, false, true, false, false, false).ID: return 5378; case Tripwire::Tripwire(false, false, false, false, true, true, true).ID: return 5379; case Tripwire::Tripwire(false, false, false, false, true, true, false).ID: return 5380; case Tripwire::Tripwire(false, false, false, false, true, false, true).ID: return 5381; case Tripwire::Tripwire(false, false, false, false, true, false, false).ID: return 5382; case Tripwire::Tripwire(false, false, false, false, false, true, true).ID: return 5383; case Tripwire::Tripwire(false, false, false, false, false, true, false).ID: return 5384; case Tripwire::Tripwire(false, false, false, false, false, false, true).ID: return 5385; case Tripwire::Tripwire(false, false, false, false, false, false, false).ID: return 5386; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5243; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5244; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5245; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5246; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_XM, true).ID: return 5247; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_XM, false).ID: return 5248; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_XP, true).ID: return 5249; case TripwireHook::TripwireHook(true, eBlockFace::BLOCK_FACE_XP, false).ID: return 5250; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_ZM, true).ID: return 5251; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_ZM, false).ID: return 5252; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_ZP, true).ID: return 5253; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_ZP, false).ID: return 5254; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_XM, true).ID: return 5255; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_XM, false).ID: return 5256; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_XP, true).ID: return 5257; case TripwireHook::TripwireHook(false, eBlockFace::BLOCK_FACE_XP, false).ID: return 5258; case TubeCoral::TubeCoral().ID: return 8995; case TubeCoralBlock::TubeCoralBlock().ID: return 8979; case TubeCoralFan::TubeCoralFan().ID: return 9015; case TubeCoralWallFan::TubeCoralWallFan(eBlockFace::BLOCK_FACE_ZM).ID: return 9065; case TubeCoralWallFan::TubeCoralWallFan(eBlockFace::BLOCK_FACE_ZP).ID: return 9067; case TubeCoralWallFan::TubeCoralWallFan(eBlockFace::BLOCK_FACE_XM).ID: return 9069; case TubeCoralWallFan::TubeCoralWallFan(eBlockFace::BLOCK_FACE_XP).ID: return 9071; case TurtleEgg::TurtleEgg(1, 0).ID: return 8962; case TurtleEgg::TurtleEgg(1, 1).ID: return 8963; case TurtleEgg::TurtleEgg(1, 2).ID: return 8964; case TurtleEgg::TurtleEgg(2, 0).ID: return 8965; case TurtleEgg::TurtleEgg(2, 1).ID: return 8966; case TurtleEgg::TurtleEgg(2, 2).ID: return 8967; case TurtleEgg::TurtleEgg(3, 0).ID: return 8968; case TurtleEgg::TurtleEgg(3, 1).ID: return 8969; case TurtleEgg::TurtleEgg(3, 2).ID: return 8970; case TurtleEgg::TurtleEgg(4, 0).ID: return 8971; case TurtleEgg::TurtleEgg(4, 1).ID: return 8972; case TurtleEgg::TurtleEgg(4, 2).ID: return 8973; case Vine::Vine(true, true, true, true, true).ID: return 4772; case Vine::Vine(true, true, true, true, false).ID: return 4773; case Vine::Vine(true, true, true, false, true).ID: return 4774; case Vine::Vine(true, true, true, false, false).ID: return 4775; case Vine::Vine(true, true, false, true, true).ID: return 4776; case Vine::Vine(true, true, false, true, false).ID: return 4777; case Vine::Vine(true, true, false, false, true).ID: return 4778; case Vine::Vine(true, true, false, false, false).ID: return 4779; case Vine::Vine(true, false, true, true, true).ID: return 4780; case Vine::Vine(true, false, true, true, false).ID: return 4781; case Vine::Vine(true, false, true, false, true).ID: return 4782; case Vine::Vine(true, false, true, false, false).ID: return 4783; case Vine::Vine(true, false, false, true, true).ID: return 4784; case Vine::Vine(true, false, false, true, false).ID: return 4785; case Vine::Vine(true, false, false, false, true).ID: return 4786; case Vine::Vine(true, false, false, false, false).ID: return 4787; case Vine::Vine(false, true, true, true, true).ID: return 4788; case Vine::Vine(false, true, true, true, false).ID: return 4789; case Vine::Vine(false, true, true, false, true).ID: return 4790; case Vine::Vine(false, true, true, false, false).ID: return 4791; case Vine::Vine(false, true, false, true, true).ID: return 4792; case Vine::Vine(false, true, false, true, false).ID: return 4793; case Vine::Vine(false, true, false, false, true).ID: return 4794; case Vine::Vine(false, true, false, false, false).ID: return 4795; case Vine::Vine(false, false, true, true, true).ID: return 4796; case Vine::Vine(false, false, true, true, false).ID: return 4797; case Vine::Vine(false, false, true, false, true).ID: return 4798; case Vine::Vine(false, false, true, false, false).ID: return 4799; case Vine::Vine(false, false, false, true, true).ID: return 4800; case Vine::Vine(false, false, false, true, false).ID: return 4801; case Vine::Vine(false, false, false, false, true).ID: return 4802; case Vine::Vine(false, false, false, false, false).ID: return 4803; case VoidAir::VoidAir().ID: return 9129; case WallTorch::WallTorch(eBlockFace::BLOCK_FACE_ZM).ID: return 1435; case WallTorch::WallTorch(eBlockFace::BLOCK_FACE_ZP).ID: return 1436; case WallTorch::WallTorch(eBlockFace::BLOCK_FACE_XM).ID: return 1437; case WallTorch::WallTorch(eBlockFace::BLOCK_FACE_XP).ID: return 1438; case Water::Water(0).ID: return 34; case Water::Water(1).ID: return 35; case Water::Water(2).ID: return 36; case Water::Water(3).ID: return 37; case Water::Water(4).ID: return 38; case Water::Water(5).ID: return 39; case Water::Water(6).ID: return 40; case Water::Water(7).ID: return 41; case Water::Water(8).ID: return 42; case Water::Water(9).ID: return 43; case Water::Water(10).ID: return 44; case Water::Water(11).ID: return 45; case Water::Water(12).ID: return 46; case Water::Water(13).ID: return 47; case Water::Water(14).ID: return 48; case Water::Water(15).ID: return 49; case WetSponge::WetSponge().ID: return 229; case Wheat::Wheat(0).ID: return 3355; case Wheat::Wheat(1).ID: return 3356; case Wheat::Wheat(2).ID: return 3357; case Wheat::Wheat(3).ID: return 3358; case Wheat::Wheat(4).ID: return 3359; case Wheat::Wheat(5).ID: return 3360; case Wheat::Wheat(6).ID: return 3361; case Wheat::Wheat(7).ID: return 3362; case WhiteBanner::WhiteBanner(0).ID: return 7361; case WhiteBanner::WhiteBanner(1).ID: return 7362; case WhiteBanner::WhiteBanner(2).ID: return 7363; case WhiteBanner::WhiteBanner(3).ID: return 7364; case WhiteBanner::WhiteBanner(4).ID: return 7365; case WhiteBanner::WhiteBanner(5).ID: return 7366; case WhiteBanner::WhiteBanner(6).ID: return 7367; case WhiteBanner::WhiteBanner(7).ID: return 7368; case WhiteBanner::WhiteBanner(8).ID: return 7369; case WhiteBanner::WhiteBanner(9).ID: return 7370; case WhiteBanner::WhiteBanner(10).ID: return 7371; case WhiteBanner::WhiteBanner(11).ID: return 7372; case WhiteBanner::WhiteBanner(12).ID: return 7373; case WhiteBanner::WhiteBanner(13).ID: return 7374; case WhiteBanner::WhiteBanner(14).ID: return 7375; case WhiteBanner::WhiteBanner(15).ID: return 7376; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZM, true, WhiteBed::Part::Head).ID: return 1048; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZM, true, WhiteBed::Part::Foot).ID: return 1049; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZM, false, WhiteBed::Part::Head).ID: return 1050; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZM, false, WhiteBed::Part::Foot).ID: return 1051; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZP, true, WhiteBed::Part::Head).ID: return 1052; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZP, true, WhiteBed::Part::Foot).ID: return 1053; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZP, false, WhiteBed::Part::Head).ID: return 1054; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_ZP, false, WhiteBed::Part::Foot).ID: return 1055; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XM, true, WhiteBed::Part::Head).ID: return 1056; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XM, true, WhiteBed::Part::Foot).ID: return 1057; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XM, false, WhiteBed::Part::Head).ID: return 1058; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XM, false, WhiteBed::Part::Foot).ID: return 1059; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XP, true, WhiteBed::Part::Head).ID: return 1060; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XP, true, WhiteBed::Part::Foot).ID: return 1061; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XP, false, WhiteBed::Part::Head).ID: return 1062; case WhiteBed::WhiteBed(eBlockFace::BLOCK_FACE_XP, false, WhiteBed::Part::Foot).ID: return 1063; case WhiteCarpet::WhiteCarpet().ID: return 7330; case WhiteConcrete::WhiteConcrete().ID: return 8902; case WhiteConcretePowder::WhiteConcretePowder().ID: return 8918; case WhiteGlazedTerracotta::WhiteGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8838; case WhiteGlazedTerracotta::WhiteGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8839; case WhiteGlazedTerracotta::WhiteGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8840; case WhiteGlazedTerracotta::WhiteGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8841; case WhiteShulkerBox::WhiteShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8742; case WhiteShulkerBox::WhiteShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8743; case WhiteShulkerBox::WhiteShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8744; case WhiteShulkerBox::WhiteShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8745; case WhiteShulkerBox::WhiteShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8746; case WhiteShulkerBox::WhiteShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8747; case WhiteStainedGlass::WhiteStainedGlass().ID: return 4081; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, true, true, true).ID: return 6329; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, true, true, false).ID: return 6330; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, true, false, true).ID: return 6333; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, true, false, false).ID: return 6334; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, false, true, true).ID: return 6337; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, false, true, false).ID: return 6338; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, false, false, true).ID: return 6341; case WhiteStainedGlassPane::WhiteStainedGlassPane(true, false, false, false).ID: return 6342; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, true, true, true).ID: return 6345; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, true, true, false).ID: return 6346; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, true, false, true).ID: return 6349; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, true, false, false).ID: return 6350; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, false, true, true).ID: return 6353; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, false, true, false).ID: return 6354; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, false, false, true).ID: return 6357; case WhiteStainedGlassPane::WhiteStainedGlassPane(false, false, false, false).ID: return 6358; case WhiteTerracotta::WhiteTerracotta().ID: return 6311; case WhiteTulip::WhiteTulip().ID: return 1418; case WhiteWallBanner::WhiteWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7617; case WhiteWallBanner::WhiteWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7618; case WhiteWallBanner::WhiteWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7619; case WhiteWallBanner::WhiteWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7620; case WhiteWool::WhiteWool().ID: return 1383; case WitherRose::WitherRose().ID: return 1422; case WitherSkeletonSkull::WitherSkeletonSkull(0).ID: return 5974; case WitherSkeletonSkull::WitherSkeletonSkull(1).ID: return 5975; case WitherSkeletonSkull::WitherSkeletonSkull(2).ID: return 5976; case WitherSkeletonSkull::WitherSkeletonSkull(3).ID: return 5977; case WitherSkeletonSkull::WitherSkeletonSkull(4).ID: return 5978; case WitherSkeletonSkull::WitherSkeletonSkull(5).ID: return 5979; case WitherSkeletonSkull::WitherSkeletonSkull(6).ID: return 5980; case WitherSkeletonSkull::WitherSkeletonSkull(7).ID: return 5981; case WitherSkeletonSkull::WitherSkeletonSkull(8).ID: return 5982; case WitherSkeletonSkull::WitherSkeletonSkull(9).ID: return 5983; case WitherSkeletonSkull::WitherSkeletonSkull(10).ID: return 5984; case WitherSkeletonSkull::WitherSkeletonSkull(11).ID: return 5985; case WitherSkeletonSkull::WitherSkeletonSkull(12).ID: return 5986; case WitherSkeletonSkull::WitherSkeletonSkull(13).ID: return 5987; case WitherSkeletonSkull::WitherSkeletonSkull(14).ID: return 5988; case WitherSkeletonSkull::WitherSkeletonSkull(15).ID: return 5989; case WitherSkeletonWallSkull::WitherSkeletonWallSkull(eBlockFace::BLOCK_FACE_ZM).ID: return 5990; case WitherSkeletonWallSkull::WitherSkeletonWallSkull(eBlockFace::BLOCK_FACE_ZP).ID: return 5991; case WitherSkeletonWallSkull::WitherSkeletonWallSkull(eBlockFace::BLOCK_FACE_XM).ID: return 5992; case WitherSkeletonWallSkull::WitherSkeletonWallSkull(eBlockFace::BLOCK_FACE_XP).ID: return 5993; case YellowBanner::YellowBanner(0).ID: return 7425; case YellowBanner::YellowBanner(1).ID: return 7426; case YellowBanner::YellowBanner(2).ID: return 7427; case YellowBanner::YellowBanner(3).ID: return 7428; case YellowBanner::YellowBanner(4).ID: return 7429; case YellowBanner::YellowBanner(5).ID: return 7430; case YellowBanner::YellowBanner(6).ID: return 7431; case YellowBanner::YellowBanner(7).ID: return 7432; case YellowBanner::YellowBanner(8).ID: return 7433; case YellowBanner::YellowBanner(9).ID: return 7434; case YellowBanner::YellowBanner(10).ID: return 7435; case YellowBanner::YellowBanner(11).ID: return 7436; case YellowBanner::YellowBanner(12).ID: return 7437; case YellowBanner::YellowBanner(13).ID: return 7438; case YellowBanner::YellowBanner(14).ID: return 7439; case YellowBanner::YellowBanner(15).ID: return 7440; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZM, true, YellowBed::Part::Head).ID: return 1112; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZM, true, YellowBed::Part::Foot).ID: return 1113; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZM, false, YellowBed::Part::Head).ID: return 1114; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZM, false, YellowBed::Part::Foot).ID: return 1115; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZP, true, YellowBed::Part::Head).ID: return 1116; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZP, true, YellowBed::Part::Foot).ID: return 1117; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZP, false, YellowBed::Part::Head).ID: return 1118; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_ZP, false, YellowBed::Part::Foot).ID: return 1119; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XM, true, YellowBed::Part::Head).ID: return 1120; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XM, true, YellowBed::Part::Foot).ID: return 1121; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XM, false, YellowBed::Part::Head).ID: return 1122; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XM, false, YellowBed::Part::Foot).ID: return 1123; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XP, true, YellowBed::Part::Head).ID: return 1124; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XP, true, YellowBed::Part::Foot).ID: return 1125; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XP, false, YellowBed::Part::Head).ID: return 1126; case YellowBed::YellowBed(eBlockFace::BLOCK_FACE_XP, false, YellowBed::Part::Foot).ID: return 1127; case YellowCarpet::YellowCarpet().ID: return 7334; case YellowConcrete::YellowConcrete().ID: return 8906; case YellowConcretePowder::YellowConcretePowder().ID: return 8922; case YellowGlazedTerracotta::YellowGlazedTerracotta(eBlockFace::BLOCK_FACE_ZM).ID: return 8854; case YellowGlazedTerracotta::YellowGlazedTerracotta(eBlockFace::BLOCK_FACE_ZP).ID: return 8855; case YellowGlazedTerracotta::YellowGlazedTerracotta(eBlockFace::BLOCK_FACE_XM).ID: return 8856; case YellowGlazedTerracotta::YellowGlazedTerracotta(eBlockFace::BLOCK_FACE_XP).ID: return 8857; case YellowShulkerBox::YellowShulkerBox(eBlockFace::BLOCK_FACE_ZM).ID: return 8766; case YellowShulkerBox::YellowShulkerBox(eBlockFace::BLOCK_FACE_XP).ID: return 8767; case YellowShulkerBox::YellowShulkerBox(eBlockFace::BLOCK_FACE_ZP).ID: return 8768; case YellowShulkerBox::YellowShulkerBox(eBlockFace::BLOCK_FACE_XM).ID: return 8769; case YellowShulkerBox::YellowShulkerBox(eBlockFace::BLOCK_FACE_YP).ID: return 8770; case YellowShulkerBox::YellowShulkerBox(eBlockFace::BLOCK_FACE_YM).ID: return 8771; case YellowStainedGlass::YellowStainedGlass().ID: return 4085; case YellowStainedGlassPane::YellowStainedGlassPane(true, true, true, true).ID: return 6457; case YellowStainedGlassPane::YellowStainedGlassPane(true, true, true, false).ID: return 6458; case YellowStainedGlassPane::YellowStainedGlassPane(true, true, false, true).ID: return 6461; case YellowStainedGlassPane::YellowStainedGlassPane(true, true, false, false).ID: return 6462; case YellowStainedGlassPane::YellowStainedGlassPane(true, false, true, true).ID: return 6465; case YellowStainedGlassPane::YellowStainedGlassPane(true, false, true, false).ID: return 6466; case YellowStainedGlassPane::YellowStainedGlassPane(true, false, false, true).ID: return 6469; case YellowStainedGlassPane::YellowStainedGlassPane(true, false, false, false).ID: return 6470; case YellowStainedGlassPane::YellowStainedGlassPane(false, true, true, true).ID: return 6473; case YellowStainedGlassPane::YellowStainedGlassPane(false, true, true, false).ID: return 6474; case YellowStainedGlassPane::YellowStainedGlassPane(false, true, false, true).ID: return 6477; case YellowStainedGlassPane::YellowStainedGlassPane(false, true, false, false).ID: return 6478; case YellowStainedGlassPane::YellowStainedGlassPane(false, false, true, true).ID: return 6481; case YellowStainedGlassPane::YellowStainedGlassPane(false, false, true, false).ID: return 6482; case YellowStainedGlassPane::YellowStainedGlassPane(false, false, false, true).ID: return 6485; case YellowStainedGlassPane::YellowStainedGlassPane(false, false, false, false).ID: return 6486; case YellowTerracotta::YellowTerracotta().ID: return 6315; case YellowWallBanner::YellowWallBanner(eBlockFace::BLOCK_FACE_ZM).ID: return 7633; case YellowWallBanner::YellowWallBanner(eBlockFace::BLOCK_FACE_ZP).ID: return 7634; case YellowWallBanner::YellowWallBanner(eBlockFace::BLOCK_FACE_XM).ID: return 7635; case YellowWallBanner::YellowWallBanner(eBlockFace::BLOCK_FACE_XP).ID: return 7636; case YellowWool::YellowWool().ID: return 1387; case ZombieHead::ZombieHead(0).ID: return 5994; case ZombieHead::ZombieHead(1).ID: return 5995; case ZombieHead::ZombieHead(2).ID: return 5996; case ZombieHead::ZombieHead(3).ID: return 5997; case ZombieHead::ZombieHead(4).ID: return 5998; case ZombieHead::ZombieHead(5).ID: return 5999; case ZombieHead::ZombieHead(6).ID: return 6000; case ZombieHead::ZombieHead(7).ID: return 6001; case ZombieHead::ZombieHead(8).ID: return 6002; case ZombieHead::ZombieHead(9).ID: return 6003; case ZombieHead::ZombieHead(10).ID: return 6004; case ZombieHead::ZombieHead(11).ID: return 6005; case ZombieHead::ZombieHead(12).ID: return 6006; case ZombieHead::ZombieHead(13).ID: return 6007; case ZombieHead::ZombieHead(14).ID: return 6008; case ZombieHead::ZombieHead(15).ID: return 6009; case ZombieWallHead::ZombieWallHead(eBlockFace::BLOCK_FACE_ZM).ID: return 6010; case ZombieWallHead::ZombieWallHead(eBlockFace::BLOCK_FACE_ZP).ID: return 6011; case ZombieWallHead::ZombieWallHead(eBlockFace::BLOCK_FACE_XM).ID: return 6012; case ZombieWallHead::ZombieWallHead(eBlockFace::BLOCK_FACE_XP).ID: return 6013; default: return 0; } } UInt32 From(const Item ID) { switch (ID) { case Item::AcaciaBoat: return 834; case Item::AcaciaButton: return 263; case Item::AcaciaDoor: return 511; case Item::AcaciaFence: return 185; case Item::AcaciaFenceGate: return 220; case Item::AcaciaLeaves: return 60; case Item::AcaciaLog: return 36; case Item::AcaciaPlanks: return 17; case Item::AcaciaPressurePlate: return 170; case Item::AcaciaSapling: return 23; case Item::AcaciaSign: return 593; case Item::AcaciaSlab: return 119; case Item::AcaciaStairs: return 319; case Item::AcaciaTrapdoor: return 197; case Item::AcaciaWood: return 54; case Item::ActivatorRail: return 279; case Item::Air: return -0; case Item::Allium: return 101; case Item::Andesite: return 6; case Item::AndesiteSlab: return 501; case Item::AndesiteStairs: return 488; case Item::AndesiteWall: return 254; case Item::Anvil: return 265; case Item::Apple: return 524; case Item::ArmorStand: return 792; case Item::Arrow: return 526; case Item::AzureBluet: return 102; case Item::BakedPotato: return 765; case Item::Bamboo: return 614; case Item::Barrel: return 865; case Item::Barrier: return 297; case Item::BatSpawnEgg: return 697; case Item::Beacon: return 244; case Item::Bedrock: return 25; case Item::BeeNest: return 879; case Item::BeeSpawnEgg: return 698; case Item::Beef: return 677; case Item::Beehive: return 880; case Item::Beetroot: return 821; case Item::BeetrootSeeds: return 822; case Item::BeetrootSoup: return 823; case Item::Bell: return 874; case Item::BirchBoat: return 832; case Item::BirchButton: return 261; case Item::BirchDoor: return 509; case Item::BirchFence: return 183; case Item::BirchFenceGate: return 218; case Item::BirchLeaves: return 58; case Item::BirchLog: return 34; case Item::BirchPlanks: return 15; case Item::BirchPressurePlate: return 168; case Item::BirchSapling: return 21; case Item::BirchSign: return 591; case Item::BirchSlab: return 117; case Item::BirchStairs: return 241; case Item::BirchTrapdoor: return 195; case Item::BirchWood: return 52; case Item::BlackBanner: return 817; case Item::BlackBed: return 669; case Item::BlackCarpet: return 315; case Item::BlackConcrete: return 428; case Item::BlackConcretePowder: return 444; case Item::BlackDye: return 649; case Item::BlackGlazedTerracotta: return 412; case Item::BlackShulkerBox: return 396; case Item::BlackStainedGlass: return 344; case Item::BlackStainedGlassPane: return 360; case Item::BlackTerracotta: return 296; case Item::BlackWool: return 97; case Item::BlastFurnace: return 867; case Item::BlazePowder: return 691; case Item::BlazeRod: return 683; case Item::BlazeSpawnEgg: return 699; case Item::BlueBanner: return 813; case Item::BlueBed: return 665; case Item::BlueCarpet: return 311; case Item::BlueConcrete: return 424; case Item::BlueConcretePowder: return 440; case Item::BlueDye: return 647; case Item::BlueGlazedTerracotta: return 408; case Item::BlueIce: return 476; case Item::BlueOrchid: return 100; case Item::BlueShulkerBox: return 392; case Item::BlueStainedGlass: return 340; case Item::BlueStainedGlassPane: return 356; case Item::BlueTerracotta: return 292; case Item::BlueWool: return 93; case Item::Bone: return 651; case Item::BoneBlock: return 377; case Item::BoneMeal: return 646; case Item::Book: return 616; case Item::Bookshelf: return 143; case Item::Bow: return 525; case Item::Bowl: return 546; case Item::BrainCoral: return 457; case Item::BrainCoralBlock: return 452; case Item::BrainCoralFan: return 467; case Item::Bread: return 562; case Item::BrewingStand: return 693; case Item::Brick: return 609; case Item::BrickSlab: return 127; case Item::BrickStairs: return 222; case Item::BrickWall: return 247; case Item::Bricks: return 141; case Item::BrownBanner: return 814; case Item::BrownBed: return 666; case Item::BrownCarpet: return 312; case Item::BrownConcrete: return 425; case Item::BrownConcretePowder: return 441; case Item::BrownDye: return 648; case Item::BrownGlazedTerracotta: return 409; case Item::BrownMushroom: return 111; case Item::BrownMushroomBlock: return 209; case Item::BrownShulkerBox: return 393; case Item::BrownStainedGlass: return 341; case Item::BrownStainedGlassPane: return 357; case Item::BrownTerracotta: return 293; case Item::BrownWool: return 94; case Item::BubbleCoral: return 458; case Item::BubbleCoralBlock: return 453; case Item::BubbleCoralFan: return 468; case Item::Bucket: return 595; case Item::Cactus: return 178; case Item::Cake: return 653; case Item::Campfire: return 877; case Item::Carrot: return 763; case Item::CarrotOnAStick: return 775; case Item::CartographyTable: return 868; case Item::CarvedPumpkin: return 188; case Item::CatSpawnEgg: return 700; case Item::Cauldron: return 694; case Item::CaveSpiderSpawnEgg: return 701; case Item::ChainCommandBlock: return 373; case Item::ChainmailBoots: return 570; case Item::ChainmailChestplate: return 568; case Item::ChainmailHelmet: return 567; case Item::ChainmailLeggings: return 569; case Item::Charcoal: return 528; case Item::Chest: return 155; case Item::ChestMinecart: return 618; case Item::Chicken: return 679; case Item::ChickenSpawnEgg: return 702; case Item::ChippedAnvil: return 266; case Item::ChiseledQuartzBlock: return 275; case Item::ChiseledRedSandstone: return 369; case Item::ChiseledSandstone: return 69; case Item::ChiseledStoneBricks: return 208; case Item::ChorusFlower: return 149; case Item::ChorusFruit: return 819; case Item::ChorusPlant: return 148; case Item::Clay: return 179; case Item::ClayBall: return 610; case Item::Clock: return 623; case Item::Coal: return 527; case Item::CoalBlock: return 317; case Item::CoalOre: return 31; case Item::CoarseDirt: return 10; case Item::Cobblestone: return 12; case Item::CobblestoneSlab: return 126; case Item::CobblestoneStairs: return 163; case Item::CobblestoneWall: return 245; case Item::Cobweb: return 75; case Item::CocoaBeans: return 634; case Item::Cod: return 625; case Item::CodBucket: return 607; case Item::CodSpawnEgg: return 703; case Item::CommandBlock: return 243; case Item::CommandBlockMinecart: return 799; case Item::Comparator: return 514; case Item::Compass: return 621; case Item::Composter: return 517; case Item::Conduit: return 477; case Item::CookedBeef: return 678; case Item::CookedChicken: return 680; case Item::CookedCod: return 629; case Item::CookedMutton: return 801; case Item::CookedPorkchop: return 585; case Item::CookedRabbit: return 788; case Item::CookedSalmon: return 630; case Item::Cookie: return 670; case Item::Cornflower: return 108; case Item::CowSpawnEgg: return 704; case Item::CrackedStoneBricks: return 207; case Item::CraftingTable: return 158; case Item::CreeperBannerPattern: return 861; case Item::CreeperHead: return 773; case Item::CreeperSpawnEgg: return 705; case Item::Crossbow: return 857; case Item::CutRedSandstone: return 370; case Item::CutRedSandstoneSlab: return 132; case Item::CutSandstone: return 70; case Item::CutSandstoneSlab: return 124; case Item::CyanBanner: return 811; case Item::CyanBed: return 663; case Item::CyanCarpet: return 309; case Item::CyanConcrete: return 422; case Item::CyanConcretePowder: return 438; case Item::CyanDye: return 637; case Item::CyanGlazedTerracotta: return 406; case Item::CyanShulkerBox: return 390; case Item::CyanStainedGlass: return 338; case Item::CyanStainedGlassPane: return 354; case Item::CyanTerracotta: return 290; case Item::CyanWool: return 91; case Item::DamagedAnvil: return 267; case Item::Dandelion: return 98; case Item::DarkOakBoat: return 835; case Item::DarkOakButton: return 264; case Item::DarkOakDoor: return 512; case Item::DarkOakFence: return 186; case Item::DarkOakFenceGate: return 221; case Item::DarkOakLeaves: return 61; case Item::DarkOakLog: return 37; case Item::DarkOakPlanks: return 18; case Item::DarkOakPressurePlate: return 171; case Item::DarkOakSapling: return 24; case Item::DarkOakSign: return 594; case Item::DarkOakSlab: return 120; case Item::DarkOakStairs: return 320; case Item::DarkOakTrapdoor: return 198; case Item::DarkOakWood: return 55; case Item::DarkPrismarine: return 363; case Item::DarkPrismarineSlab: return 136; case Item::DarkPrismarineStairs: return 366; case Item::DaylightDetector: return 271; case Item::DeadBrainCoral: return 461; case Item::DeadBrainCoralBlock: return 447; case Item::DeadBrainCoralFan: return 472; case Item::DeadBubbleCoral: return 462; case Item::DeadBubbleCoralBlock: return 448; case Item::DeadBubbleCoralFan: return 473; case Item::DeadBush: return 78; case Item::DeadFireCoral: return 463; case Item::DeadFireCoralBlock: return 449; case Item::DeadFireCoralFan: return 474; case Item::DeadHornCoral: return 464; case Item::DeadHornCoralBlock: return 450; case Item::DeadHornCoralFan: return 475; case Item::DeadTubeCoral: return 465; case Item::DeadTubeCoralBlock: return 446; case Item::DeadTubeCoralFan: return 471; case Item::DebugStick: return 840; case Item::DetectorRail: return 73; case Item::Diamond: return 529; case Item::DiamondAxe: return 544; case Item::DiamondBlock: return 157; case Item::DiamondBoots: return 578; case Item::DiamondChestplate: return 576; case Item::DiamondHelmet: return 575; case Item::DiamondHoe: return 558; case Item::DiamondHorseArmor: return 795; case Item::DiamondLeggings: return 577; case Item::DiamondOre: return 156; case Item::DiamondPickaxe: return 543; case Item::DiamondShovel: return 542; case Item::DiamondSword: return 541; case Item::Diorite: return 4; case Item::DioriteSlab: return 504; case Item::DioriteStairs: return 491; case Item::DioriteWall: return 258; case Item::Dirt: return 9; case Item::Dispenser: return 67; case Item::DolphinSpawnEgg: return 706; case Item::DonkeySpawnEgg: return 707; case Item::DragonBreath: return 824; case Item::DragonEgg: return 233; case Item::DragonHead: return 774; case Item::DriedKelp: return 674; case Item::DriedKelpBlock: return 613; case Item::Dropper: return 280; case Item::DrownedSpawnEgg: return 708; case Item::Egg: return 620; case Item::ElderGuardianSpawnEgg: return 709; case Item::Elytra: return 830; case Item::Emerald: return 760; case Item::EmeraldBlock: return 239; case Item::EmeraldOre: return 236; case Item::EnchantedBook: return 780; case Item::EnchantedGoldenApple: return 588; case Item::EnchantingTable: return 229; case Item::EndCrystal: return 818; case Item::EndPortalFrame: return 230; case Item::EndRod: return 147; case Item::EndStone: return 231; case Item::EndStoneBrickSlab: return 497; case Item::EndStoneBrickStairs: return 483; case Item::EndStoneBrickWall: return 257; case Item::EndStoneBricks: return 232; case Item::EnderChest: return 237; case Item::EnderEye: return 695; case Item::EnderPearl: return 682; case Item::EndermanSpawnEgg: return 710; case Item::EndermiteSpawnEgg: return 711; case Item::EvokerSpawnEgg: return 712; case Item::ExperienceBottle: return 756; case Item::Farmland: return 159; case Item::Feather: return 553; case Item::FermentedSpiderEye: return 690; case Item::Fern: return 77; case Item::FilledMap: return 671; case Item::FireCharge: return 757; case Item::FireCoral: return 459; case Item::FireCoralBlock: return 454; case Item::FireCoralFan: return 469; case Item::FireworkRocket: return 778; case Item::FireworkStar: return 779; case Item::FishingRod: return 622; case Item::FletchingTable: return 869; case Item::Flint: return 583; case Item::FlintAndSteel: return 523; case Item::FlowerBannerPattern: return 860; case Item::FlowerPot: return 762; case Item::FoxSpawnEgg: return 713; case Item::Furnace: return 160; case Item::FurnaceMinecart: return 619; case Item::GhastSpawnEgg: return 714; case Item::GhastTear: return 684; case Item::Glass: return 64; case Item::GlassBottle: return 688; case Item::GlassPane: return 213; case Item::GlisteringMelonSlice: return 696; case Item::GlobeBannerPattern: return 864; case Item::Glowstone: return 191; case Item::GlowstoneDust: return 624; case Item::GoldBlock: return 113; case Item::GoldIngot: return 531; case Item::GoldNugget: return 685; case Item::GoldOre: return 29; case Item::GoldenApple: return 587; case Item::GoldenAxe: return 551; case Item::GoldenBoots: return 582; case Item::GoldenCarrot: return 768; case Item::GoldenChestplate: return 580; case Item::GoldenHelmet: return 579; case Item::GoldenHoe: return 559; case Item::GoldenHorseArmor: return 794; case Item::GoldenLeggings: return 581; case Item::GoldenPickaxe: return 550; case Item::GoldenShovel: return 549; case Item::GoldenSword: return 548; case Item::Granite: return 2; case Item::GraniteSlab: return 500; case Item::GraniteStairs: return 487; case Item::GraniteWall: return 251; case Item::Grass: return 76; case Item::GrassBlock: return 8; case Item::GrassPath: return 322; case Item::Gravel: return 28; case Item::GrayBanner: return 809; case Item::GrayBed: return 661; case Item::GrayCarpet: return 307; case Item::GrayConcrete: return 420; case Item::GrayConcretePowder: return 436; case Item::GrayDye: return 639; case Item::GrayGlazedTerracotta: return 404; case Item::GrayShulkerBox: return 388; case Item::GrayStainedGlass: return 336; case Item::GrayStainedGlassPane: return 352; case Item::GrayTerracotta: return 288; case Item::GrayWool: return 89; case Item::GreenBanner: return 815; case Item::GreenBed: return 667; case Item::GreenCarpet: return 313; case Item::GreenConcrete: return 426; case Item::GreenConcretePowder: return 442; case Item::GreenDye: return 633; case Item::GreenGlazedTerracotta: return 410; case Item::GreenShulkerBox: return 394; case Item::GreenStainedGlass: return 342; case Item::GreenStainedGlassPane: return 358; case Item::GreenTerracotta: return 294; case Item::GreenWool: return 95; case Item::Grindstone: return 870; case Item::GuardianSpawnEgg: return 715; case Item::Gunpowder: return 554; case Item::HayBale: return 299; case Item::HeartOfTheSea: return 856; case Item::HeavyWeightedPressurePlate: return 270; case Item::HoneyBlock: return 882; case Item::HoneyBottle: return 881; case Item::Honeycomb: return 878; case Item::HoneycombBlock: return 883; case Item::Hopper: return 274; case Item::HopperMinecart: return 784; case Item::HornCoral: return 460; case Item::HornCoralBlock: return 455; case Item::HornCoralFan: return 470; case Item::HorseSpawnEgg: return 716; case Item::HuskSpawnEgg: return 717; case Item::Ice: return 176; case Item::InfestedChiseledStoneBricks: return 204; case Item::InfestedCobblestone: return 200; case Item::InfestedCrackedStoneBricks: return 203; case Item::InfestedMossyStoneBricks: return 202; case Item::InfestedStone: return 199; case Item::InfestedStoneBricks: return 201; case Item::InkSac: return 631; case Item::IronAxe: return 522; case Item::IronBars: return 212; case Item::IronBlock: return 114; case Item::IronBoots: return 574; case Item::IronChestplate: return 572; case Item::IronDoor: return 506; case Item::IronHelmet: return 571; case Item::IronHoe: return 557; case Item::IronHorseArmor: return 793; case Item::IronIngot: return 530; case Item::IronLeggings: return 573; case Item::IronNugget: return 838; case Item::IronOre: return 30; case Item::IronPickaxe: return 521; case Item::IronShovel: return 520; case Item::IronSword: return 532; case Item::IronTrapdoor: return 298; case Item::ItemFrame: return 761; case Item::JackOLantern: return 192; case Item::Jigsaw: return 516; case Item::Jukebox: return 180; case Item::JungleBoat: return 833; case Item::JungleButton: return 262; case Item::JungleDoor: return 510; case Item::JungleFence: return 184; case Item::JungleFenceGate: return 219; case Item::JungleLeaves: return 59; case Item::JungleLog: return 35; case Item::JunglePlanks: return 16; case Item::JunglePressurePlate: return 169; case Item::JungleSapling: return 22; case Item::JungleSign: return 592; case Item::JungleSlab: return 118; case Item::JungleStairs: return 242; case Item::JungleTrapdoor: return 196; case Item::JungleWood: return 53; case Item::Kelp: return 612; case Item::KnowledgeBook: return 839; case Item::Ladder: return 161; case Item::Lantern: return 875; case Item::LapisBlock: return 66; case Item::LapisLazuli: return 635; case Item::LapisOre: return 65; case Item::LargeFern: return 328; case Item::LavaBucket: return 597; case Item::Lead: return 797; case Item::Leather: return 603; case Item::LeatherBoots: return 566; case Item::LeatherChestplate: return 564; case Item::LeatherHelmet: return 563; case Item::LeatherHorseArmor: return 796; case Item::LeatherLeggings: return 565; case Item::Lectern: return 871; case Item::Lever: return 164; case Item::LightBlueBanner: return 805; case Item::LightBlueBed: return 657; case Item::LightBlueCarpet: return 303; case Item::LightBlueConcrete: return 416; case Item::LightBlueConcretePowder: return 432; case Item::LightBlueDye: return 643; case Item::LightBlueGlazedTerracotta: return 400; case Item::LightBlueShulkerBox: return 384; case Item::LightBlueStainedGlass: return 332; case Item::LightBlueStainedGlassPane: return 348; case Item::LightBlueTerracotta: return 284; case Item::LightBlueWool: return 85; case Item::LightGrayBanner: return 810; case Item::LightGrayBed: return 662; case Item::LightGrayCarpet: return 308; case Item::LightGrayConcrete: return 421; case Item::LightGrayConcretePowder: return 437; case Item::LightGrayDye: return 638; case Item::LightGrayGlazedTerracotta: return 405; case Item::LightGrayShulkerBox: return 389; case Item::LightGrayStainedGlass: return 337; case Item::LightGrayStainedGlassPane: return 353; case Item::LightGrayTerracotta: return 289; case Item::LightGrayWool: return 90; case Item::LightWeightedPressurePlate: return 269; case Item::Lilac: return 324; case Item::LilyOfTheValley: return 109; case Item::LilyPad: return 225; case Item::LimeBanner: return 807; case Item::LimeBed: return 659; case Item::LimeCarpet: return 305; case Item::LimeConcrete: return 418; case Item::LimeConcretePowder: return 434; case Item::LimeDye: return 641; case Item::LimeGlazedTerracotta: return 402; case Item::LimeShulkerBox: return 386; case Item::LimeStainedGlass: return 334; case Item::LimeStainedGlassPane: return 350; case Item::LimeTerracotta: return 286; case Item::LimeWool: return 87; case Item::LingeringPotion: return 828; case Item::LlamaSpawnEgg: return 718; case Item::Loom: return 859; case Item::MagentaBanner: return 804; case Item::MagentaBed: return 656; case Item::MagentaCarpet: return 302; case Item::MagentaConcrete: return 415; case Item::MagentaConcretePowder: return 431; case Item::MagentaDye: return 644; case Item::MagentaGlazedTerracotta: return 399; case Item::MagentaShulkerBox: return 383; case Item::MagentaStainedGlass: return 331; case Item::MagentaStainedGlassPane: return 347; case Item::MagentaTerracotta: return 283; case Item::MagentaWool: return 84; case Item::MagmaBlock: return 374; case Item::MagmaCream: return 692; case Item::MagmaCubeSpawnEgg: return 719; case Item::Map: return 767; case Item::Melon: return 214; case Item::MelonSeeds: return 676; case Item::MelonSlice: return 673; case Item::MilkBucket: return 604; case Item::Minecart: return 598; case Item::MojangBannerPattern: return 863; case Item::MooshroomSpawnEgg: return 720; case Item::MossyCobblestone: return 144; case Item::MossyCobblestoneSlab: return 496; case Item::MossyCobblestoneStairs: return 482; case Item::MossyCobblestoneWall: return 246; case Item::MossyStoneBrickSlab: return 494; case Item::MossyStoneBrickStairs: return 480; case Item::MossyStoneBrickWall: return 250; case Item::MossyStoneBricks: return 206; case Item::MuleSpawnEgg: return 721; case Item::MushroomStem: return 211; case Item::MushroomStew: return 547; case Item::MusicDisc11: return 851; case Item::MusicDisc13: return 841; case Item::MusicDiscBlocks: return 843; case Item::MusicDiscCat: return 842; case Item::MusicDiscChirp: return 844; case Item::MusicDiscFar: return 845; case Item::MusicDiscMall: return 846; case Item::MusicDiscMellohi: return 847; case Item::MusicDiscStal: return 848; case Item::MusicDiscStrad: return 849; case Item::MusicDiscWait: return 852; case Item::MusicDiscWard: return 850; case Item::Mutton: return 800; case Item::Mycelium: return 224; case Item::NameTag: return 798; case Item::NautilusShell: return 855; case Item::NetherBrick: return 781; case Item::NetherBrickFence: return 227; case Item::NetherBrickSlab: return 129; case Item::NetherBrickStairs: return 228; case Item::NetherBrickWall: return 253; case Item::NetherBricks: return 226; case Item::NetherQuartzOre: return 273; case Item::NetherStar: return 776; case Item::NetherWart: return 686; case Item::NetherWartBlock: return 375; case Item::Netherrack: return 189; case Item::NoteBlock: return 71; case Item::OakBoat: return 602; case Item::OakButton: return 259; case Item::OakDoor: return 507; case Item::OakFence: return 181; case Item::OakFenceGate: return 216; case Item::OakLeaves: return 56; case Item::OakLog: return 32; case Item::OakPlanks: return 13; case Item::OakPressurePlate: return 166; case Item::OakSapling: return 19; case Item::OakSign: return 589; case Item::OakSlab: return 115; case Item::OakStairs: return 154; case Item::OakTrapdoor: return 193; case Item::OakWood: return 50; case Item::Observer: return 379; case Item::Obsidian: return 145; case Item::OcelotSpawnEgg: return 722; case Item::OrangeBanner: return 803; case Item::OrangeBed: return 655; case Item::OrangeCarpet: return 301; case Item::OrangeConcrete: return 414; case Item::OrangeConcretePowder: return 430; case Item::OrangeDye: return 645; case Item::OrangeGlazedTerracotta: return 398; case Item::OrangeShulkerBox: return 382; case Item::OrangeStainedGlass: return 330; case Item::OrangeStainedGlassPane: return 346; case Item::OrangeTerracotta: return 282; case Item::OrangeTulip: return 104; case Item::OrangeWool: return 83; case Item::OxeyeDaisy: return 107; case Item::PackedIce: return 318; case Item::Painting: return 586; case Item::PandaSpawnEgg: return 723; case Item::Paper: return 615; case Item::ParrotSpawnEgg: return 724; case Item::Peony: return 326; case Item::PetrifiedOakSlab: return 125; case Item::PhantomMembrane: return 854; case Item::PhantomSpawnEgg: return 725; case Item::PigSpawnEgg: return 726; case Item::PillagerSpawnEgg: return 727; case Item::PinkBanner: return 808; case Item::PinkBed: return 660; case Item::PinkCarpet: return 306; case Item::PinkConcrete: return 419; case Item::PinkConcretePowder: return 435; case Item::PinkDye: return 640; case Item::PinkGlazedTerracotta: return 403; case Item::PinkShulkerBox: return 387; case Item::PinkStainedGlass: return 335; case Item::PinkStainedGlassPane: return 351; case Item::PinkTerracotta: return 287; case Item::PinkTulip: return 106; case Item::PinkWool: return 88; case Item::Piston: return 81; case Item::PlayerHead: return 771; case Item::Podzol: return 11; case Item::PoisonousPotato: return 766; case Item::PolarBearSpawnEgg: return 728; case Item::PolishedAndesite: return 7; case Item::PolishedAndesiteSlab: return 503; case Item::PolishedAndesiteStairs: return 490; case Item::PolishedDiorite: return 5; case Item::PolishedDioriteSlab: return 495; case Item::PolishedDioriteStairs: return 481; case Item::PolishedGranite: return 3; case Item::PolishedGraniteSlab: return 492; case Item::PolishedGraniteStairs: return 478; case Item::PoppedChorusFruit: return 820; case Item::Poppy: return 99; case Item::Porkchop: return 584; case Item::Potato: return 764; case Item::Potion: return 687; case Item::PoweredRail: return 72; case Item::Prismarine: return 361; case Item::PrismarineBrickSlab: return 135; case Item::PrismarineBrickStairs: return 365; case Item::PrismarineBricks: return 362; case Item::PrismarineCrystals: return 786; case Item::PrismarineShard: return 785; case Item::PrismarineSlab: return 134; case Item::PrismarineStairs: return 364; case Item::PrismarineWall: return 248; case Item::Pufferfish: return 628; case Item::PufferfishBucket: return 605; case Item::PufferfishSpawnEgg: return 729; case Item::Pumpkin: return 187; case Item::PumpkinPie: return 777; case Item::PumpkinSeeds: return 675; case Item::PurpleBanner: return 812; case Item::PurpleBed: return 664; case Item::PurpleCarpet: return 310; case Item::PurpleConcrete: return 423; case Item::PurpleConcretePowder: return 439; case Item::PurpleDye: return 636; case Item::PurpleGlazedTerracotta: return 407; case Item::PurpleShulkerBox: return 391; case Item::PurpleStainedGlass: return 339; case Item::PurpleStainedGlassPane: return 355; case Item::PurpleTerracotta: return 291; case Item::PurpleWool: return 92; case Item::PurpurBlock: return 150; case Item::PurpurPillar: return 151; case Item::PurpurSlab: return 133; case Item::PurpurStairs: return 152; case Item::Quartz: return 782; case Item::QuartzBlock: return 276; case Item::QuartzPillar: return 277; case Item::QuartzSlab: return 130; case Item::QuartzStairs: return 278; case Item::Rabbit: return 787; case Item::RabbitFoot: return 790; case Item::RabbitHide: return 791; case Item::RabbitSpawnEgg: return 730; case Item::RabbitStew: return 789; case Item::Rail: return 162; case Item::RavagerSpawnEgg: return 731; case Item::RedBanner: return 816; case Item::RedBed: return 668; case Item::RedCarpet: return 314; case Item::RedConcrete: return 427; case Item::RedConcretePowder: return 443; case Item::RedDye: return 632; case Item::RedGlazedTerracotta: return 411; case Item::RedMushroom: return 112; case Item::RedMushroomBlock: return 210; case Item::RedNetherBrickSlab: return 502; case Item::RedNetherBrickStairs: return 489; case Item::RedNetherBrickWall: return 255; case Item::RedNetherBricks: return 376; case Item::RedSand: return 27; case Item::RedSandstone: return 368; case Item::RedSandstoneSlab: return 131; case Item::RedSandstoneStairs: return 371; case Item::RedSandstoneWall: return 249; case Item::RedShulkerBox: return 395; case Item::RedStainedGlass: return 343; case Item::RedStainedGlassPane: return 359; case Item::RedTerracotta: return 295; case Item::RedTulip: return 103; case Item::RedWool: return 96; case Item::Redstone: return 600; case Item::RedstoneBlock: return 272; case Item::RedstoneLamp: return 234; case Item::RedstoneOre: return 172; case Item::RedstoneTorch: return 173; case Item::Repeater: return 513; case Item::RepeatingCommandBlock: return 372; case Item::RoseBush: return 325; case Item::RottenFlesh: return 681; case Item::Saddle: return 599; case Item::Salmon: return 626; case Item::SalmonBucket: return 606; case Item::SalmonSpawnEgg: return 732; case Item::Sand: return 26; case Item::Sandstone: return 68; case Item::SandstoneSlab: return 123; case Item::SandstoneStairs: return 235; case Item::SandstoneWall: return 256; case Item::Scaffolding: return 505; case Item::Scute: return 519; case Item::SeaLantern: return 367; case Item::SeaPickle: return 80; case Item::Seagrass: return 79; case Item::Shears: return 672; case Item::SheepSpawnEgg: return 733; case Item::Shield: return 829; case Item::ShulkerBox: return 380; case Item::ShulkerShell: return 837; case Item::ShulkerSpawnEgg: return 734; case Item::SilverfishSpawnEgg: return 735; case Item::SkeletonHorseSpawnEgg: return 737; case Item::SkeletonSkull: return 769; case Item::SkeletonSpawnEgg: return 736; case Item::SkullBannerPattern: return 862; case Item::SlimeBall: return 617; case Item::SlimeBlock: return 321; case Item::SlimeSpawnEgg: return 738; case Item::SmithingTable: return 872; case Item::Smoker: return 866; case Item::SmoothQuartz: return 137; case Item::SmoothQuartzSlab: return 499; case Item::SmoothQuartzStairs: return 486; case Item::SmoothRedSandstone: return 138; case Item::SmoothRedSandstoneSlab: return 493; case Item::SmoothRedSandstoneStairs: return 479; case Item::SmoothSandstone: return 139; case Item::SmoothSandstoneSlab: return 498; case Item::SmoothSandstoneStairs: return 485; case Item::SmoothStone: return 140; case Item::SmoothStoneSlab: return 122; case Item::Snow: return 175; case Item::SnowBlock: return 177; case Item::Snowball: return 601; case Item::SoulSand: return 190; case Item::Spawner: return 153; case Item::SpectralArrow: return 826; case Item::SpiderEye: return 689; case Item::SpiderSpawnEgg: return 739; case Item::SplashPotion: return 825; case Item::Sponge: return 62; case Item::SpruceBoat: return 831; case Item::SpruceButton: return 260; case Item::SpruceDoor: return 508; case Item::SpruceFence: return 182; case Item::SpruceFenceGate: return 217; case Item::SpruceLeaves: return 57; case Item::SpruceLog: return 33; case Item::SprucePlanks: return 14; case Item::SprucePressurePlate: return 167; case Item::SpruceSapling: return 20; case Item::SpruceSign: return 590; case Item::SpruceSlab: return 116; case Item::SpruceStairs: return 240; case Item::SpruceTrapdoor: return 194; case Item::SpruceWood: return 51; case Item::SquidSpawnEgg: return 740; case Item::Stick: return 545; case Item::StickyPiston: return 74; case Item::Stone: return 1; case Item::StoneAxe: return 540; case Item::StoneBrickSlab: return 128; case Item::StoneBrickStairs: return 223; case Item::StoneBrickWall: return 252; case Item::StoneBricks: return 205; case Item::StoneButton: return 174; case Item::StoneHoe: return 556; case Item::StonePickaxe: return 539; case Item::StonePressurePlate: return 165; case Item::StoneShovel: return 538; case Item::StoneSlab: return 121; case Item::StoneStairs: return 484; case Item::StoneSword: return 537; case Item::Stonecutter: return 873; case Item::StraySpawnEgg: return 741; case Item::String: return 552; case Item::StrippedAcaciaLog: return 42; case Item::StrippedAcaciaWood: return 48; case Item::StrippedBirchLog: return 40; case Item::StrippedBirchWood: return 46; case Item::StrippedDarkOakLog: return 43; case Item::StrippedDarkOakWood: return 49; case Item::StrippedJungleLog: return 41; case Item::StrippedJungleWood: return 47; case Item::StrippedOakLog: return 38; case Item::StrippedOakWood: return 44; case Item::StrippedSpruceLog: return 39; case Item::StrippedSpruceWood: return 45; case Item::StructureBlock: return 515; case Item::StructureVoid: return 378; case Item::Sugar: return 652; case Item::SugarCane: return 611; case Item::Sunflower: return 323; case Item::SuspiciousStew: return 858; case Item::SweetBerries: return 876; case Item::TallGrass: return 327; case Item::Terracotta: return 316; case Item::TippedArrow: return 827; case Item::TNT: return 142; case Item::TNTMinecart: return 783; case Item::Torch: return 146; case Item::TotemOfUndying: return 836; case Item::TraderLlamaSpawnEgg: return 742; case Item::TrappedChest: return 268; case Item::Trident: return 853; case Item::TripwireHook: return 238; case Item::TropicalFish: return 627; case Item::TropicalFishBucket: return 608; case Item::TropicalFishSpawnEgg: return 743; case Item::TubeCoral: return 456; case Item::TubeCoralBlock: return 451; case Item::TubeCoralFan: return 466; case Item::TurtleEgg: return 445; case Item::TurtleHelmet: return 518; case Item::TurtleSpawnEgg: return 744; case Item::VexSpawnEgg: return 745; case Item::VillagerSpawnEgg: return 746; case Item::VindicatorSpawnEgg: return 747; case Item::Vine: return 215; case Item::WanderingTraderSpawnEgg: return 748; case Item::WaterBucket: return 596; case Item::WetSponge: return 63; case Item::Wheat: return 561; case Item::WheatSeeds: return 560; case Item::WhiteBanner: return 802; case Item::WhiteBed: return 654; case Item::WhiteCarpet: return 300; case Item::WhiteConcrete: return 413; case Item::WhiteConcretePowder: return 429; case Item::WhiteDye: return 650; case Item::WhiteGlazedTerracotta: return 397; case Item::WhiteShulkerBox: return 381; case Item::WhiteStainedGlass: return 329; case Item::WhiteStainedGlassPane: return 345; case Item::WhiteTerracotta: return 281; case Item::WhiteTulip: return 105; case Item::WhiteWool: return 82; case Item::WitchSpawnEgg: return 749; case Item::WitherRose: return 110; case Item::WitherSkeletonSkull: return 770; case Item::WitherSkeletonSpawnEgg: return 750; case Item::WolfSpawnEgg: return 751; case Item::WoodenAxe: return 536; case Item::WoodenHoe: return 555; case Item::WoodenPickaxe: return 535; case Item::WoodenShovel: return 534; case Item::WoodenSword: return 533; case Item::WritableBook: return 758; case Item::WrittenBook: return 759; case Item::YellowBanner: return 806; case Item::YellowBed: return 658; case Item::YellowCarpet: return 304; case Item::YellowConcrete: return 417; case Item::YellowConcretePowder: return 433; case Item::YellowDye: return 642; case Item::YellowGlazedTerracotta: return 401; case Item::YellowShulkerBox: return 385; case Item::YellowStainedGlass: return 333; case Item::YellowStainedGlassPane: return 349; case Item::YellowTerracotta: return 285; case Item::YellowWool: return 86; case Item::ZombieHead: return 772; case Item::ZombieHorseSpawnEgg: return 753; case Item::ZombiePigmanSpawnEgg: return 754; case Item::ZombieSpawnEgg: return 752; case Item::ZombieVillagerSpawnEgg: return 755; default: return 0; } } UInt32 From(const CustomStatistic ID) { switch (ID) { case CustomStatistic::AnimalsBred: return 30; case CustomStatistic::AviateOneCm: return 17; case CustomStatistic::BellRing: return 66; case CustomStatistic::BoatOneCm: return 14; case CustomStatistic::CleanArmor: return 38; case CustomStatistic::CleanBanner: return 39; case CustomStatistic::CleanShulkerBox: return 40; case CustomStatistic::ClimbOneCm: return 10; case CustomStatistic::CrouchOneCm: return 6; case CustomStatistic::DamageAbsorbed: return 26; case CustomStatistic::DamageBlockedByShield: return 25; case CustomStatistic::DamageDealt: return 21; case CustomStatistic::DamageDealtAbsorbed: return 22; case CustomStatistic::DamageDealtResisted: return 23; case CustomStatistic::DamageResisted: return 27; case CustomStatistic::DamageTaken: return 24; case CustomStatistic::Deaths: return 28; case CustomStatistic::Drop: return 20; case CustomStatistic::EatCakeSlice: return 35; case CustomStatistic::EnchantItem: return 51; case CustomStatistic::FallOneCm: return 9; case CustomStatistic::FillCauldron: return 36; case CustomStatistic::FishCaught: return 32; case CustomStatistic::FlyOneCm: return 11; case CustomStatistic::HorseOneCm: return 16; case CustomStatistic::InspectDispenser: return 45; case CustomStatistic::InspectDropper: return 43; case CustomStatistic::InspectHopper: return 44; case CustomStatistic::InteractWithAnvil: return 69; case CustomStatistic::InteractWithBeacon: return 42; case CustomStatistic::InteractWithBlastFurnace: return 59; case CustomStatistic::InteractWithBrewingstand: return 41; case CustomStatistic::InteractWithCampfire: return 62; case CustomStatistic::InteractWithCartographyTable: return 63; case CustomStatistic::InteractWithCraftingTable: return 54; case CustomStatistic::InteractWithFurnace: return 53; case CustomStatistic::InteractWithGrindstone: return 70; case CustomStatistic::InteractWithLectern: return 61; case CustomStatistic::InteractWithLoom: return 64; case CustomStatistic::InteractWithSmoker: return 60; case CustomStatistic::InteractWithStonecutter: return 65; case CustomStatistic::Jump: return 19; case CustomStatistic::LeaveGame: return -0; case CustomStatistic::MinecartOneCm: return 13; case CustomStatistic::MobKills: return 29; case CustomStatistic::OpenBarrel: return 58; case CustomStatistic::OpenChest: return 55; case CustomStatistic::OpenEnderchest: return 50; case CustomStatistic::OpenShulkerBox: return 57; case CustomStatistic::PigOneCm: return 15; case CustomStatistic::PlayNoteblock: return 46; case CustomStatistic::PlayOneMinute: return 1; case CustomStatistic::PlayRecord: return 52; case CustomStatistic::PlayerKills: return 31; case CustomStatistic::PotFlower: return 48; case CustomStatistic::RaidTrigger: return 67; case CustomStatistic::RaidWin: return 68; case CustomStatistic::SleepInBed: return 56; case CustomStatistic::SneakTime: return 4; case CustomStatistic::SprintOneCm: return 7; case CustomStatistic::SwimOneCm: return 18; case CustomStatistic::TalkedToVillager: return 33; case CustomStatistic::TimeSinceDeath: return 2; case CustomStatistic::TimeSinceRest: return 3; case CustomStatistic::TradedWithVillager: return 34; case CustomStatistic::TriggerTrappedChest: return 49; case CustomStatistic::TuneNoteblock: return 47; case CustomStatistic::UseCauldron: return 37; case CustomStatistic::WalkOnWaterOneCm: return 8; case CustomStatistic::WalkOneCm: return 5; case CustomStatistic::WalkUnderWaterOneCm: return 12; default: return UInt32(-1); } } Item ToItem(const UInt32 ID) { switch (ID) { case 834: return Item::AcaciaBoat; case 263: return Item::AcaciaButton; case 511: return Item::AcaciaDoor; case 185: return Item::AcaciaFence; case 220: return Item::AcaciaFenceGate; case 60: return Item::AcaciaLeaves; case 36: return Item::AcaciaLog; case 17: return Item::AcaciaPlanks; case 170: return Item::AcaciaPressurePlate; case 23: return Item::AcaciaSapling; case 593: return Item::AcaciaSign; case 119: return Item::AcaciaSlab; case 319: return Item::AcaciaStairs; case 197: return Item::AcaciaTrapdoor; case 54: return Item::AcaciaWood; case 279: return Item::ActivatorRail; case -0: return Item::Air; case 101: return Item::Allium; case 6: return Item::Andesite; case 501: return Item::AndesiteSlab; case 488: return Item::AndesiteStairs; case 254: return Item::AndesiteWall; case 265: return Item::Anvil; case 524: return Item::Apple; case 792: return Item::ArmorStand; case 526: return Item::Arrow; case 102: return Item::AzureBluet; case 765: return Item::BakedPotato; case 614: return Item::Bamboo; case 865: return Item::Barrel; case 297: return Item::Barrier; case 697: return Item::BatSpawnEgg; case 244: return Item::Beacon; case 25: return Item::Bedrock; case 879: return Item::BeeNest; case 698: return Item::BeeSpawnEgg; case 677: return Item::Beef; case 880: return Item::Beehive; case 821: return Item::Beetroot; case 822: return Item::BeetrootSeeds; case 823: return Item::BeetrootSoup; case 874: return Item::Bell; case 832: return Item::BirchBoat; case 261: return Item::BirchButton; case 509: return Item::BirchDoor; case 183: return Item::BirchFence; case 218: return Item::BirchFenceGate; case 58: return Item::BirchLeaves; case 34: return Item::BirchLog; case 15: return Item::BirchPlanks; case 168: return Item::BirchPressurePlate; case 21: return Item::BirchSapling; case 591: return Item::BirchSign; case 117: return Item::BirchSlab; case 241: return Item::BirchStairs; case 195: return Item::BirchTrapdoor; case 52: return Item::BirchWood; case 817: return Item::BlackBanner; case 669: return Item::BlackBed; case 315: return Item::BlackCarpet; case 428: return Item::BlackConcrete; case 444: return Item::BlackConcretePowder; case 649: return Item::BlackDye; case 412: return Item::BlackGlazedTerracotta; case 396: return Item::BlackShulkerBox; case 344: return Item::BlackStainedGlass; case 360: return Item::BlackStainedGlassPane; case 296: return Item::BlackTerracotta; case 97: return Item::BlackWool; case 867: return Item::BlastFurnace; case 691: return Item::BlazePowder; case 683: return Item::BlazeRod; case 699: return Item::BlazeSpawnEgg; case 813: return Item::BlueBanner; case 665: return Item::BlueBed; case 311: return Item::BlueCarpet; case 424: return Item::BlueConcrete; case 440: return Item::BlueConcretePowder; case 647: return Item::BlueDye; case 408: return Item::BlueGlazedTerracotta; case 476: return Item::BlueIce; case 100: return Item::BlueOrchid; case 392: return Item::BlueShulkerBox; case 340: return Item::BlueStainedGlass; case 356: return Item::BlueStainedGlassPane; case 292: return Item::BlueTerracotta; case 93: return Item::BlueWool; case 651: return Item::Bone; case 377: return Item::BoneBlock; case 646: return Item::BoneMeal; case 616: return Item::Book; case 143: return Item::Bookshelf; case 525: return Item::Bow; case 546: return Item::Bowl; case 457: return Item::BrainCoral; case 452: return Item::BrainCoralBlock; case 467: return Item::BrainCoralFan; case 562: return Item::Bread; case 693: return Item::BrewingStand; case 609: return Item::Brick; case 127: return Item::BrickSlab; case 222: return Item::BrickStairs; case 247: return Item::BrickWall; case 141: return Item::Bricks; case 814: return Item::BrownBanner; case 666: return Item::BrownBed; case 312: return Item::BrownCarpet; case 425: return Item::BrownConcrete; case 441: return Item::BrownConcretePowder; case 648: return Item::BrownDye; case 409: return Item::BrownGlazedTerracotta; case 111: return Item::BrownMushroom; case 209: return Item::BrownMushroomBlock; case 393: return Item::BrownShulkerBox; case 341: return Item::BrownStainedGlass; case 357: return Item::BrownStainedGlassPane; case 293: return Item::BrownTerracotta; case 94: return Item::BrownWool; case 458: return Item::BubbleCoral; case 453: return Item::BubbleCoralBlock; case 468: return Item::BubbleCoralFan; case 595: return Item::Bucket; case 178: return Item::Cactus; case 653: return Item::Cake; case 877: return Item::Campfire; case 763: return Item::Carrot; case 775: return Item::CarrotOnAStick; case 868: return Item::CartographyTable; case 188: return Item::CarvedPumpkin; case 700: return Item::CatSpawnEgg; case 694: return Item::Cauldron; case 701: return Item::CaveSpiderSpawnEgg; case 373: return Item::ChainCommandBlock; case 570: return Item::ChainmailBoots; case 568: return Item::ChainmailChestplate; case 567: return Item::ChainmailHelmet; case 569: return Item::ChainmailLeggings; case 528: return Item::Charcoal; case 155: return Item::Chest; case 618: return Item::ChestMinecart; case 679: return Item::Chicken; case 702: return Item::ChickenSpawnEgg; case 266: return Item::ChippedAnvil; case 275: return Item::ChiseledQuartzBlock; case 369: return Item::ChiseledRedSandstone; case 69: return Item::ChiseledSandstone; case 208: return Item::ChiseledStoneBricks; case 149: return Item::ChorusFlower; case 819: return Item::ChorusFruit; case 148: return Item::ChorusPlant; case 179: return Item::Clay; case 610: return Item::ClayBall; case 623: return Item::Clock; case 527: return Item::Coal; case 317: return Item::CoalBlock; case 31: return Item::CoalOre; case 10: return Item::CoarseDirt; case 12: return Item::Cobblestone; case 126: return Item::CobblestoneSlab; case 163: return Item::CobblestoneStairs; case 245: return Item::CobblestoneWall; case 75: return Item::Cobweb; case 634: return Item::CocoaBeans; case 625: return Item::Cod; case 607: return Item::CodBucket; case 703: return Item::CodSpawnEgg; case 243: return Item::CommandBlock; case 799: return Item::CommandBlockMinecart; case 514: return Item::Comparator; case 621: return Item::Compass; case 517: return Item::Composter; case 477: return Item::Conduit; case 678: return Item::CookedBeef; case 680: return Item::CookedChicken; case 629: return Item::CookedCod; case 801: return Item::CookedMutton; case 585: return Item::CookedPorkchop; case 788: return Item::CookedRabbit; case 630: return Item::CookedSalmon; case 670: return Item::Cookie; case 108: return Item::Cornflower; case 704: return Item::CowSpawnEgg; case 207: return Item::CrackedStoneBricks; case 158: return Item::CraftingTable; case 861: return Item::CreeperBannerPattern; case 773: return Item::CreeperHead; case 705: return Item::CreeperSpawnEgg; case 857: return Item::Crossbow; case 370: return Item::CutRedSandstone; case 132: return Item::CutRedSandstoneSlab; case 70: return Item::CutSandstone; case 124: return Item::CutSandstoneSlab; case 811: return Item::CyanBanner; case 663: return Item::CyanBed; case 309: return Item::CyanCarpet; case 422: return Item::CyanConcrete; case 438: return Item::CyanConcretePowder; case 637: return Item::CyanDye; case 406: return Item::CyanGlazedTerracotta; case 390: return Item::CyanShulkerBox; case 338: return Item::CyanStainedGlass; case 354: return Item::CyanStainedGlassPane; case 290: return Item::CyanTerracotta; case 91: return Item::CyanWool; case 267: return Item::DamagedAnvil; case 98: return Item::Dandelion; case 835: return Item::DarkOakBoat; case 264: return Item::DarkOakButton; case 512: return Item::DarkOakDoor; case 186: return Item::DarkOakFence; case 221: return Item::DarkOakFenceGate; case 61: return Item::DarkOakLeaves; case 37: return Item::DarkOakLog; case 18: return Item::DarkOakPlanks; case 171: return Item::DarkOakPressurePlate; case 24: return Item::DarkOakSapling; case 594: return Item::DarkOakSign; case 120: return Item::DarkOakSlab; case 320: return Item::DarkOakStairs; case 198: return Item::DarkOakTrapdoor; case 55: return Item::DarkOakWood; case 363: return Item::DarkPrismarine; case 136: return Item::DarkPrismarineSlab; case 366: return Item::DarkPrismarineStairs; case 271: return Item::DaylightDetector; case 461: return Item::DeadBrainCoral; case 447: return Item::DeadBrainCoralBlock; case 472: return Item::DeadBrainCoralFan; case 462: return Item::DeadBubbleCoral; case 448: return Item::DeadBubbleCoralBlock; case 473: return Item::DeadBubbleCoralFan; case 78: return Item::DeadBush; case 463: return Item::DeadFireCoral; case 449: return Item::DeadFireCoralBlock; case 474: return Item::DeadFireCoralFan; case 464: return Item::DeadHornCoral; case 450: return Item::DeadHornCoralBlock; case 475: return Item::DeadHornCoralFan; case 465: return Item::DeadTubeCoral; case 446: return Item::DeadTubeCoralBlock; case 471: return Item::DeadTubeCoralFan; case 840: return Item::DebugStick; case 73: return Item::DetectorRail; case 529: return Item::Diamond; case 544: return Item::DiamondAxe; case 157: return Item::DiamondBlock; case 578: return Item::DiamondBoots; case 576: return Item::DiamondChestplate; case 575: return Item::DiamondHelmet; case 558: return Item::DiamondHoe; case 795: return Item::DiamondHorseArmor; case 577: return Item::DiamondLeggings; case 156: return Item::DiamondOre; case 543: return Item::DiamondPickaxe; case 542: return Item::DiamondShovel; case 541: return Item::DiamondSword; case 4: return Item::Diorite; case 504: return Item::DioriteSlab; case 491: return Item::DioriteStairs; case 258: return Item::DioriteWall; case 9: return Item::Dirt; case 67: return Item::Dispenser; case 706: return Item::DolphinSpawnEgg; case 707: return Item::DonkeySpawnEgg; case 824: return Item::DragonBreath; case 233: return Item::DragonEgg; case 774: return Item::DragonHead; case 674: return Item::DriedKelp; case 613: return Item::DriedKelpBlock; case 280: return Item::Dropper; case 708: return Item::DrownedSpawnEgg; case 620: return Item::Egg; case 709: return Item::ElderGuardianSpawnEgg; case 830: return Item::Elytra; case 760: return Item::Emerald; case 239: return Item::EmeraldBlock; case 236: return Item::EmeraldOre; case 780: return Item::EnchantedBook; case 588: return Item::EnchantedGoldenApple; case 229: return Item::EnchantingTable; case 818: return Item::EndCrystal; case 230: return Item::EndPortalFrame; case 147: return Item::EndRod; case 231: return Item::EndStone; case 497: return Item::EndStoneBrickSlab; case 483: return Item::EndStoneBrickStairs; case 257: return Item::EndStoneBrickWall; case 232: return Item::EndStoneBricks; case 237: return Item::EnderChest; case 695: return Item::EnderEye; case 682: return Item::EnderPearl; case 710: return Item::EndermanSpawnEgg; case 711: return Item::EndermiteSpawnEgg; case 712: return Item::EvokerSpawnEgg; case 756: return Item::ExperienceBottle; case 159: return Item::Farmland; case 553: return Item::Feather; case 690: return Item::FermentedSpiderEye; case 77: return Item::Fern; case 671: return Item::FilledMap; case 757: return Item::FireCharge; case 459: return Item::FireCoral; case 454: return Item::FireCoralBlock; case 469: return Item::FireCoralFan; case 778: return Item::FireworkRocket; case 779: return Item::FireworkStar; case 622: return Item::FishingRod; case 869: return Item::FletchingTable; case 583: return Item::Flint; case 523: return Item::FlintAndSteel; case 860: return Item::FlowerBannerPattern; case 762: return Item::FlowerPot; case 713: return Item::FoxSpawnEgg; case 160: return Item::Furnace; case 619: return Item::FurnaceMinecart; case 714: return Item::GhastSpawnEgg; case 684: return Item::GhastTear; case 64: return Item::Glass; case 688: return Item::GlassBottle; case 213: return Item::GlassPane; case 696: return Item::GlisteringMelonSlice; case 864: return Item::GlobeBannerPattern; case 191: return Item::Glowstone; case 624: return Item::GlowstoneDust; case 113: return Item::GoldBlock; case 531: return Item::GoldIngot; case 685: return Item::GoldNugget; case 29: return Item::GoldOre; case 587: return Item::GoldenApple; case 551: return Item::GoldenAxe; case 582: return Item::GoldenBoots; case 768: return Item::GoldenCarrot; case 580: return Item::GoldenChestplate; case 579: return Item::GoldenHelmet; case 559: return Item::GoldenHoe; case 794: return Item::GoldenHorseArmor; case 581: return Item::GoldenLeggings; case 550: return Item::GoldenPickaxe; case 549: return Item::GoldenShovel; case 548: return Item::GoldenSword; case 2: return Item::Granite; case 500: return Item::GraniteSlab; case 487: return Item::GraniteStairs; case 251: return Item::GraniteWall; case 76: return Item::Grass; case 8: return Item::GrassBlock; case 322: return Item::GrassPath; case 28: return Item::Gravel; case 809: return Item::GrayBanner; case 661: return Item::GrayBed; case 307: return Item::GrayCarpet; case 420: return Item::GrayConcrete; case 436: return Item::GrayConcretePowder; case 639: return Item::GrayDye; case 404: return Item::GrayGlazedTerracotta; case 388: return Item::GrayShulkerBox; case 336: return Item::GrayStainedGlass; case 352: return Item::GrayStainedGlassPane; case 288: return Item::GrayTerracotta; case 89: return Item::GrayWool; case 815: return Item::GreenBanner; case 667: return Item::GreenBed; case 313: return Item::GreenCarpet; case 426: return Item::GreenConcrete; case 442: return Item::GreenConcretePowder; case 633: return Item::GreenDye; case 410: return Item::GreenGlazedTerracotta; case 394: return Item::GreenShulkerBox; case 342: return Item::GreenStainedGlass; case 358: return Item::GreenStainedGlassPane; case 294: return Item::GreenTerracotta; case 95: return Item::GreenWool; case 870: return Item::Grindstone; case 715: return Item::GuardianSpawnEgg; case 554: return Item::Gunpowder; case 299: return Item::HayBale; case 856: return Item::HeartOfTheSea; case 270: return Item::HeavyWeightedPressurePlate; case 882: return Item::HoneyBlock; case 881: return Item::HoneyBottle; case 878: return Item::Honeycomb; case 883: return Item::HoneycombBlock; case 274: return Item::Hopper; case 784: return Item::HopperMinecart; case 460: return Item::HornCoral; case 455: return Item::HornCoralBlock; case 470: return Item::HornCoralFan; case 716: return Item::HorseSpawnEgg; case 717: return Item::HuskSpawnEgg; case 176: return Item::Ice; case 204: return Item::InfestedChiseledStoneBricks; case 200: return Item::InfestedCobblestone; case 203: return Item::InfestedCrackedStoneBricks; case 202: return Item::InfestedMossyStoneBricks; case 199: return Item::InfestedStone; case 201: return Item::InfestedStoneBricks; case 631: return Item::InkSac; case 522: return Item::IronAxe; case 212: return Item::IronBars; case 114: return Item::IronBlock; case 574: return Item::IronBoots; case 572: return Item::IronChestplate; case 506: return Item::IronDoor; case 571: return Item::IronHelmet; case 557: return Item::IronHoe; case 793: return Item::IronHorseArmor; case 530: return Item::IronIngot; case 573: return Item::IronLeggings; case 838: return Item::IronNugget; case 30: return Item::IronOre; case 521: return Item::IronPickaxe; case 520: return Item::IronShovel; case 532: return Item::IronSword; case 298: return Item::IronTrapdoor; case 761: return Item::ItemFrame; case 192: return Item::JackOLantern; case 516: return Item::Jigsaw; case 180: return Item::Jukebox; case 833: return Item::JungleBoat; case 262: return Item::JungleButton; case 510: return Item::JungleDoor; case 184: return Item::JungleFence; case 219: return Item::JungleFenceGate; case 59: return Item::JungleLeaves; case 35: return Item::JungleLog; case 16: return Item::JunglePlanks; case 169: return Item::JunglePressurePlate; case 22: return Item::JungleSapling; case 592: return Item::JungleSign; case 118: return Item::JungleSlab; case 242: return Item::JungleStairs; case 196: return Item::JungleTrapdoor; case 53: return Item::JungleWood; case 612: return Item::Kelp; case 839: return Item::KnowledgeBook; case 161: return Item::Ladder; case 875: return Item::Lantern; case 66: return Item::LapisBlock; case 635: return Item::LapisLazuli; case 65: return Item::LapisOre; case 328: return Item::LargeFern; case 597: return Item::LavaBucket; case 797: return Item::Lead; case 603: return Item::Leather; case 566: return Item::LeatherBoots; case 564: return Item::LeatherChestplate; case 563: return Item::LeatherHelmet; case 796: return Item::LeatherHorseArmor; case 565: return Item::LeatherLeggings; case 871: return Item::Lectern; case 164: return Item::Lever; case 805: return Item::LightBlueBanner; case 657: return Item::LightBlueBed; case 303: return Item::LightBlueCarpet; case 416: return Item::LightBlueConcrete; case 432: return Item::LightBlueConcretePowder; case 643: return Item::LightBlueDye; case 400: return Item::LightBlueGlazedTerracotta; case 384: return Item::LightBlueShulkerBox; case 332: return Item::LightBlueStainedGlass; case 348: return Item::LightBlueStainedGlassPane; case 284: return Item::LightBlueTerracotta; case 85: return Item::LightBlueWool; case 810: return Item::LightGrayBanner; case 662: return Item::LightGrayBed; case 308: return Item::LightGrayCarpet; case 421: return Item::LightGrayConcrete; case 437: return Item::LightGrayConcretePowder; case 638: return Item::LightGrayDye; case 405: return Item::LightGrayGlazedTerracotta; case 389: return Item::LightGrayShulkerBox; case 337: return Item::LightGrayStainedGlass; case 353: return Item::LightGrayStainedGlassPane; case 289: return Item::LightGrayTerracotta; case 90: return Item::LightGrayWool; case 269: return Item::LightWeightedPressurePlate; case 324: return Item::Lilac; case 109: return Item::LilyOfTheValley; case 225: return Item::LilyPad; case 807: return Item::LimeBanner; case 659: return Item::LimeBed; case 305: return Item::LimeCarpet; case 418: return Item::LimeConcrete; case 434: return Item::LimeConcretePowder; case 641: return Item::LimeDye; case 402: return Item::LimeGlazedTerracotta; case 386: return Item::LimeShulkerBox; case 334: return Item::LimeStainedGlass; case 350: return Item::LimeStainedGlassPane; case 286: return Item::LimeTerracotta; case 87: return Item::LimeWool; case 828: return Item::LingeringPotion; case 718: return Item::LlamaSpawnEgg; case 859: return Item::Loom; case 804: return Item::MagentaBanner; case 656: return Item::MagentaBed; case 302: return Item::MagentaCarpet; case 415: return Item::MagentaConcrete; case 431: return Item::MagentaConcretePowder; case 644: return Item::MagentaDye; case 399: return Item::MagentaGlazedTerracotta; case 383: return Item::MagentaShulkerBox; case 331: return Item::MagentaStainedGlass; case 347: return Item::MagentaStainedGlassPane; case 283: return Item::MagentaTerracotta; case 84: return Item::MagentaWool; case 374: return Item::MagmaBlock; case 692: return Item::MagmaCream; case 719: return Item::MagmaCubeSpawnEgg; case 767: return Item::Map; case 214: return Item::Melon; case 676: return Item::MelonSeeds; case 673: return Item::MelonSlice; case 604: return Item::MilkBucket; case 598: return Item::Minecart; case 863: return Item::MojangBannerPattern; case 720: return Item::MooshroomSpawnEgg; case 144: return Item::MossyCobblestone; case 496: return Item::MossyCobblestoneSlab; case 482: return Item::MossyCobblestoneStairs; case 246: return Item::MossyCobblestoneWall; case 494: return Item::MossyStoneBrickSlab; case 480: return Item::MossyStoneBrickStairs; case 250: return Item::MossyStoneBrickWall; case 206: return Item::MossyStoneBricks; case 721: return Item::MuleSpawnEgg; case 211: return Item::MushroomStem; case 547: return Item::MushroomStew; case 851: return Item::MusicDisc11; case 841: return Item::MusicDisc13; case 843: return Item::MusicDiscBlocks; case 842: return Item::MusicDiscCat; case 844: return Item::MusicDiscChirp; case 845: return Item::MusicDiscFar; case 846: return Item::MusicDiscMall; case 847: return Item::MusicDiscMellohi; case 848: return Item::MusicDiscStal; case 849: return Item::MusicDiscStrad; case 852: return Item::MusicDiscWait; case 850: return Item::MusicDiscWard; case 800: return Item::Mutton; case 224: return Item::Mycelium; case 798: return Item::NameTag; case 855: return Item::NautilusShell; case 781: return Item::NetherBrick; case 227: return Item::NetherBrickFence; case 129: return Item::NetherBrickSlab; case 228: return Item::NetherBrickStairs; case 253: return Item::NetherBrickWall; case 226: return Item::NetherBricks; case 273: return Item::NetherQuartzOre; case 776: return Item::NetherStar; case 686: return Item::NetherWart; case 375: return Item::NetherWartBlock; case 189: return Item::Netherrack; case 71: return Item::NoteBlock; case 602: return Item::OakBoat; case 259: return Item::OakButton; case 507: return Item::OakDoor; case 181: return Item::OakFence; case 216: return Item::OakFenceGate; case 56: return Item::OakLeaves; case 32: return Item::OakLog; case 13: return Item::OakPlanks; case 166: return Item::OakPressurePlate; case 19: return Item::OakSapling; case 589: return Item::OakSign; case 115: return Item::OakSlab; case 154: return Item::OakStairs; case 193: return Item::OakTrapdoor; case 50: return Item::OakWood; case 379: return Item::Observer; case 145: return Item::Obsidian; case 722: return Item::OcelotSpawnEgg; case 803: return Item::OrangeBanner; case 655: return Item::OrangeBed; case 301: return Item::OrangeCarpet; case 414: return Item::OrangeConcrete; case 430: return Item::OrangeConcretePowder; case 645: return Item::OrangeDye; case 398: return Item::OrangeGlazedTerracotta; case 382: return Item::OrangeShulkerBox; case 330: return Item::OrangeStainedGlass; case 346: return Item::OrangeStainedGlassPane; case 282: return Item::OrangeTerracotta; case 104: return Item::OrangeTulip; case 83: return Item::OrangeWool; case 107: return Item::OxeyeDaisy; case 318: return Item::PackedIce; case 586: return Item::Painting; case 723: return Item::PandaSpawnEgg; case 615: return Item::Paper; case 724: return Item::ParrotSpawnEgg; case 326: return Item::Peony; case 125: return Item::PetrifiedOakSlab; case 854: return Item::PhantomMembrane; case 725: return Item::PhantomSpawnEgg; case 726: return Item::PigSpawnEgg; case 727: return Item::PillagerSpawnEgg; case 808: return Item::PinkBanner; case 660: return Item::PinkBed; case 306: return Item::PinkCarpet; case 419: return Item::PinkConcrete; case 435: return Item::PinkConcretePowder; case 640: return Item::PinkDye; case 403: return Item::PinkGlazedTerracotta; case 387: return Item::PinkShulkerBox; case 335: return Item::PinkStainedGlass; case 351: return Item::PinkStainedGlassPane; case 287: return Item::PinkTerracotta; case 106: return Item::PinkTulip; case 88: return Item::PinkWool; case 81: return Item::Piston; case 771: return Item::PlayerHead; case 11: return Item::Podzol; case 766: return Item::PoisonousPotato; case 728: return Item::PolarBearSpawnEgg; case 7: return Item::PolishedAndesite; case 503: return Item::PolishedAndesiteSlab; case 490: return Item::PolishedAndesiteStairs; case 5: return Item::PolishedDiorite; case 495: return Item::PolishedDioriteSlab; case 481: return Item::PolishedDioriteStairs; case 3: return Item::PolishedGranite; case 492: return Item::PolishedGraniteSlab; case 478: return Item::PolishedGraniteStairs; case 820: return Item::PoppedChorusFruit; case 99: return Item::Poppy; case 584: return Item::Porkchop; case 764: return Item::Potato; case 687: return Item::Potion; case 72: return Item::PoweredRail; case 361: return Item::Prismarine; case 135: return Item::PrismarineBrickSlab; case 365: return Item::PrismarineBrickStairs; case 362: return Item::PrismarineBricks; case 786: return Item::PrismarineCrystals; case 785: return Item::PrismarineShard; case 134: return Item::PrismarineSlab; case 364: return Item::PrismarineStairs; case 248: return Item::PrismarineWall; case 628: return Item::Pufferfish; case 605: return Item::PufferfishBucket; case 729: return Item::PufferfishSpawnEgg; case 187: return Item::Pumpkin; case 777: return Item::PumpkinPie; case 675: return Item::PumpkinSeeds; case 812: return Item::PurpleBanner; case 664: return Item::PurpleBed; case 310: return Item::PurpleCarpet; case 423: return Item::PurpleConcrete; case 439: return Item::PurpleConcretePowder; case 636: return Item::PurpleDye; case 407: return Item::PurpleGlazedTerracotta; case 391: return Item::PurpleShulkerBox; case 339: return Item::PurpleStainedGlass; case 355: return Item::PurpleStainedGlassPane; case 291: return Item::PurpleTerracotta; case 92: return Item::PurpleWool; case 150: return Item::PurpurBlock; case 151: return Item::PurpurPillar; case 133: return Item::PurpurSlab; case 152: return Item::PurpurStairs; case 782: return Item::Quartz; case 276: return Item::QuartzBlock; case 277: return Item::QuartzPillar; case 130: return Item::QuartzSlab; case 278: return Item::QuartzStairs; case 787: return Item::Rabbit; case 790: return Item::RabbitFoot; case 791: return Item::RabbitHide; case 730: return Item::RabbitSpawnEgg; case 789: return Item::RabbitStew; case 162: return Item::Rail; case 731: return Item::RavagerSpawnEgg; case 816: return Item::RedBanner; case 668: return Item::RedBed; case 314: return Item::RedCarpet; case 427: return Item::RedConcrete; case 443: return Item::RedConcretePowder; case 632: return Item::RedDye; case 411: return Item::RedGlazedTerracotta; case 112: return Item::RedMushroom; case 210: return Item::RedMushroomBlock; case 502: return Item::RedNetherBrickSlab; case 489: return Item::RedNetherBrickStairs; case 255: return Item::RedNetherBrickWall; case 376: return Item::RedNetherBricks; case 27: return Item::RedSand; case 368: return Item::RedSandstone; case 131: return Item::RedSandstoneSlab; case 371: return Item::RedSandstoneStairs; case 249: return Item::RedSandstoneWall; case 395: return Item::RedShulkerBox; case 343: return Item::RedStainedGlass; case 359: return Item::RedStainedGlassPane; case 295: return Item::RedTerracotta; case 103: return Item::RedTulip; case 96: return Item::RedWool; case 600: return Item::Redstone; case 272: return Item::RedstoneBlock; case 234: return Item::RedstoneLamp; case 172: return Item::RedstoneOre; case 173: return Item::RedstoneTorch; case 513: return Item::Repeater; case 372: return Item::RepeatingCommandBlock; case 325: return Item::RoseBush; case 681: return Item::RottenFlesh; case 599: return Item::Saddle; case 626: return Item::Salmon; case 606: return Item::SalmonBucket; case 732: return Item::SalmonSpawnEgg; case 26: return Item::Sand; case 68: return Item::Sandstone; case 123: return Item::SandstoneSlab; case 235: return Item::SandstoneStairs; case 256: return Item::SandstoneWall; case 505: return Item::Scaffolding; case 519: return Item::Scute; case 367: return Item::SeaLantern; case 80: return Item::SeaPickle; case 79: return Item::Seagrass; case 672: return Item::Shears; case 733: return Item::SheepSpawnEgg; case 829: return Item::Shield; case 380: return Item::ShulkerBox; case 837: return Item::ShulkerShell; case 734: return Item::ShulkerSpawnEgg; case 735: return Item::SilverfishSpawnEgg; case 737: return Item::SkeletonHorseSpawnEgg; case 769: return Item::SkeletonSkull; case 736: return Item::SkeletonSpawnEgg; case 862: return Item::SkullBannerPattern; case 617: return Item::SlimeBall; case 321: return Item::SlimeBlock; case 738: return Item::SlimeSpawnEgg; case 872: return Item::SmithingTable; case 866: return Item::Smoker; case 137: return Item::SmoothQuartz; case 499: return Item::SmoothQuartzSlab; case 486: return Item::SmoothQuartzStairs; case 138: return Item::SmoothRedSandstone; case 493: return Item::SmoothRedSandstoneSlab; case 479: return Item::SmoothRedSandstoneStairs; case 139: return Item::SmoothSandstone; case 498: return Item::SmoothSandstoneSlab; case 485: return Item::SmoothSandstoneStairs; case 140: return Item::SmoothStone; case 122: return Item::SmoothStoneSlab; case 175: return Item::Snow; case 177: return Item::SnowBlock; case 601: return Item::Snowball; case 190: return Item::SoulSand; case 153: return Item::Spawner; case 826: return Item::SpectralArrow; case 689: return Item::SpiderEye; case 739: return Item::SpiderSpawnEgg; case 825: return Item::SplashPotion; case 62: return Item::Sponge; case 831: return Item::SpruceBoat; case 260: return Item::SpruceButton; case 508: return Item::SpruceDoor; case 182: return Item::SpruceFence; case 217: return Item::SpruceFenceGate; case 57: return Item::SpruceLeaves; case 33: return Item::SpruceLog; case 14: return Item::SprucePlanks; case 167: return Item::SprucePressurePlate; case 20: return Item::SpruceSapling; case 590: return Item::SpruceSign; case 116: return Item::SpruceSlab; case 240: return Item::SpruceStairs; case 194: return Item::SpruceTrapdoor; case 51: return Item::SpruceWood; case 740: return Item::SquidSpawnEgg; case 545: return Item::Stick; case 74: return Item::StickyPiston; case 1: return Item::Stone; case 540: return Item::StoneAxe; case 128: return Item::StoneBrickSlab; case 223: return Item::StoneBrickStairs; case 252: return Item::StoneBrickWall; case 205: return Item::StoneBricks; case 174: return Item::StoneButton; case 556: return Item::StoneHoe; case 539: return Item::StonePickaxe; case 165: return Item::StonePressurePlate; case 538: return Item::StoneShovel; case 121: return Item::StoneSlab; case 484: return Item::StoneStairs; case 537: return Item::StoneSword; case 873: return Item::Stonecutter; case 741: return Item::StraySpawnEgg; case 552: return Item::String; case 42: return Item::StrippedAcaciaLog; case 48: return Item::StrippedAcaciaWood; case 40: return Item::StrippedBirchLog; case 46: return Item::StrippedBirchWood; case 43: return Item::StrippedDarkOakLog; case 49: return Item::StrippedDarkOakWood; case 41: return Item::StrippedJungleLog; case 47: return Item::StrippedJungleWood; case 38: return Item::StrippedOakLog; case 44: return Item::StrippedOakWood; case 39: return Item::StrippedSpruceLog; case 45: return Item::StrippedSpruceWood; case 515: return Item::StructureBlock; case 378: return Item::StructureVoid; case 652: return Item::Sugar; case 611: return Item::SugarCane; case 323: return Item::Sunflower; case 858: return Item::SuspiciousStew; case 876: return Item::SweetBerries; case 327: return Item::TallGrass; case 316: return Item::Terracotta; case 827: return Item::TippedArrow; case 142: return Item::TNT; case 783: return Item::TNTMinecart; case 146: return Item::Torch; case 836: return Item::TotemOfUndying; case 742: return Item::TraderLlamaSpawnEgg; case 268: return Item::TrappedChest; case 853: return Item::Trident; case 238: return Item::TripwireHook; case 627: return Item::TropicalFish; case 608: return Item::TropicalFishBucket; case 743: return Item::TropicalFishSpawnEgg; case 456: return Item::TubeCoral; case 451: return Item::TubeCoralBlock; case 466: return Item::TubeCoralFan; case 445: return Item::TurtleEgg; case 518: return Item::TurtleHelmet; case 744: return Item::TurtleSpawnEgg; case 745: return Item::VexSpawnEgg; case 746: return Item::VillagerSpawnEgg; case 747: return Item::VindicatorSpawnEgg; case 215: return Item::Vine; case 748: return Item::WanderingTraderSpawnEgg; case 596: return Item::WaterBucket; case 63: return Item::WetSponge; case 561: return Item::Wheat; case 560: return Item::WheatSeeds; case 802: return Item::WhiteBanner; case 654: return Item::WhiteBed; case 300: return Item::WhiteCarpet; case 413: return Item::WhiteConcrete; case 429: return Item::WhiteConcretePowder; case 650: return Item::WhiteDye; case 397: return Item::WhiteGlazedTerracotta; case 381: return Item::WhiteShulkerBox; case 329: return Item::WhiteStainedGlass; case 345: return Item::WhiteStainedGlassPane; case 281: return Item::WhiteTerracotta; case 105: return Item::WhiteTulip; case 82: return Item::WhiteWool; case 749: return Item::WitchSpawnEgg; case 110: return Item::WitherRose; case 770: return Item::WitherSkeletonSkull; case 750: return Item::WitherSkeletonSpawnEgg; case 751: return Item::WolfSpawnEgg; case 536: return Item::WoodenAxe; case 555: return Item::WoodenHoe; case 535: return Item::WoodenPickaxe; case 534: return Item::WoodenShovel; case 533: return Item::WoodenSword; case 758: return Item::WritableBook; case 759: return Item::WrittenBook; case 806: return Item::YellowBanner; case 658: return Item::YellowBed; case 304: return Item::YellowCarpet; case 417: return Item::YellowConcrete; case 433: return Item::YellowConcretePowder; case 642: return Item::YellowDye; case 401: return Item::YellowGlazedTerracotta; case 385: return Item::YellowShulkerBox; case 333: return Item::YellowStainedGlass; case 349: return Item::YellowStainedGlassPane; case 285: return Item::YellowTerracotta; case 86: return Item::YellowWool; case 772: return Item::ZombieHead; case 753: return Item::ZombieHorseSpawnEgg; case 754: return Item::ZombiePigmanSpawnEgg; case 752: return Item::ZombieSpawnEgg; case 755: return Item::ZombieVillagerSpawnEgg; default: return Item::Air; } } }
98.943518
212
0.769056
nickc01
29484a32429ce7134dfc053205982f20a8f9d836
15,316
cpp
C++
tests/tests/thread_tests/thread_pool_tests.cpp
HungMingWu/concurrencpp
eb4ed8fb6cd8510925738868cf57bed882005b4b
[ "MIT" ]
null
null
null
tests/tests/thread_tests/thread_pool_tests.cpp
HungMingWu/concurrencpp
eb4ed8fb6cd8510925738868cf57bed882005b4b
[ "MIT" ]
null
null
null
tests/tests/thread_tests/thread_pool_tests.cpp
HungMingWu/concurrencpp
eb4ed8fb6cd8510925738868cf57bed882005b4b
[ "MIT" ]
null
null
null
#include "concurrencpp.h" #include "../all_tests.h" #include "../../tester/tester.h" #include "../../helpers/assertions.h" #include "../../helpers/thread_helpers.h" #include "../../helpers/fast_randomizer.h" #include "../../helpers/object_observer.h" #include "../src/executors/constants.h" #include "../src/threads/thread_pool.h" #include "../executor_tests/executor_test_helpers.h" #include <mutex> #include <algorithm> #include <unordered_set> #include <iostream> namespace concurrencpp::tests { void test_thread_pool_enqueue_case_1(); void test_thread_pool_enqueue_case_1_not_tp_thread(); void test_thread_pool_enqueue_case_1_task_queue_not_empty(); void test_thread_pool_enqueue_case_2(); void test_thread_pool_enqueue_case_2_tp_thread(); void test_thread_pool_enqueue_case_3(); void test_thread_pool_enqueue_case_4(); void test_thread_pool_enqueue(); void test_thread_pool_dynamic_resizing_test_1(); void test_thread_pool_dynamic_resizing_test_2(); void test_thread_pool_dynamic_resizing(); void test_thread_pool_work_stealing(); void test_thread_pool_destructor_cancellation_test_0(); void test_thread_pool_destructor_cancellation_test_1(); void test_thread_pool_destructor_cancellation(); void test_thread_pool_destructor_pending_tasks(); void test_thread_pool_destructor_joining_threads(); void test_thread_pool_destructor(); void test_thread_pool_wait_all(); void test_thread_pool_timed_wait_all(); void test_thread_pool_combo(); } using concurrencpp::details::thread_pool; using concurrencpp::details::thread_group; using namespace std::chrono; void concurrencpp::tests::test_thread_pool_enqueue_case_1() { /* Case 1: if this thread is a threadpool thread and its task queue is empty then enqueue to this thread */ waiter waiter; thread_pool pool(4, seconds(20), "", nullptr); pool.enqueue([&]() mutable { //we are inside a threadpool thread; const auto chosen_id_0 = pool.enqueue([] {}); //this_thread is a tp thread and it's task quue is empty. assert_same(chosen_id_0, std::this_thread::get_id()); waiter.notify_all(); }); waiter.wait(); } void concurrencpp::tests::test_thread_pool_enqueue_case_1_not_tp_thread() { thread_pool pool(4, seconds(20), "", nullptr); const auto id = pool.enqueue([] {}); assert_not_same(id, std::this_thread::get_id()); } void concurrencpp::tests::test_thread_pool_enqueue_case_1_task_queue_not_empty() { waiter waiter; thread_pool pool(4, seconds(20), "", nullptr); pool.enqueue([&]() mutable { //we are inside a threadpool thread; const auto chosen_id_0 = pool.enqueue([] {}); //this_thread is a tp thread and it's task quue is empty. assert_same(chosen_id_0, std::this_thread::get_id()); const auto chosen_id_1 = pool.enqueue([] {}); assert_not_same(chosen_id_1, std::this_thread::get_id()); waiter.notify_all(); }); waiter.wait(); } void concurrencpp::tests::test_thread_pool_enqueue_case_2() { /* Case 2: if case 1 is false and a waiting thread exist then enqueue to that thread this test a non tp thread -> should use a waiting thread, if exists */ waiter waiter; thread_pool pool(4, seconds(20), "", nullptr); for (size_t i = 0; i < 2; i++) { pool.enqueue([waiter]() mutable { waiter.wait(); }); } std::this_thread::sleep_for(seconds(2)); const auto waiting_thread_id = pool.enqueue([] {}); std::this_thread::sleep_for(seconds(2)); for (size_t i = 0; i < 10; i++) { const auto id = pool.enqueue([] {}); assert_same(id, waiting_thread_id); std::this_thread::sleep_for(seconds(1)); } waiter.notify_all(); } void concurrencpp::tests::test_thread_pool_enqueue_case_2_tp_thread() { /* this test tests case 2 but in the case that this_thread is a thread pool thread but its task queue is not empty. in this case if a waiting thread exists, it should enqueue the task to that waiting thread. */ thread_pool pool(4, seconds(20), "", nullptr); waiter waiter; std::thread::id running_threads[2]; std::thread::id tested_threads[2]; for (size_t i = 0; i < 2; i++) { running_threads[i] = pool.enqueue([waiter]() mutable { waiter.wait(); }); } assert_not_same(running_threads[0], running_threads[1]); for (size_t i = 0; i < 2; i++) { tested_threads[i] = pool.enqueue([] { std::this_thread::sleep_for(milliseconds(500)); }); } assert_not_same(tested_threads[0], tested_threads[1]); std::this_thread::sleep_for(seconds(2)); pool.enqueue([ &pool, running_thread_0 = running_threads[0], running_thread_1 = running_threads[1], tested_thread_0 = tested_threads[0], tested_thread_1 = tested_threads[1] ]() mutable { const auto this_thread = pool.enqueue([] {}); assert_same(this_thread, std::this_thread::get_id()); assert_true(this_thread == tested_thread_0 || this_thread == tested_thread_1); assert_false(this_thread == running_thread_0 || this_thread == running_thread_1); const auto waiting_thread = pool.enqueue([] {}); assert_not_same(waiting_thread, this_thread); assert_true(waiting_thread == tested_thread_0 || waiting_thread == tested_thread_1); assert_false(waiting_thread == running_thread_0 || waiting_thread == running_thread_1); }); std::this_thread::sleep_for(seconds(2)); waiter.notify_all(); } void concurrencpp::tests::test_thread_pool_enqueue_case_3() { /* Case 3: if case 2 is false and this thread is a thread pool thread then enqueue to this thread */ thread_pool pool(4, seconds(20), "", nullptr); waiter waiter; for (size_t i = 0; i < 3; i++) { pool.enqueue([waiter]() mutable { waiter.wait(); }); } pool.enqueue([&] { for (size_t i = 0; i < 64; i++) { const auto thread = pool.enqueue([] {}); assert_same(thread, std::this_thread::get_id()); } }); std::this_thread::sleep_for(seconds(2)); waiter.notify_all(); } void concurrencpp::tests::test_thread_pool_enqueue_case_4() { /* Case 4: if case 3 is false then enqueue the task to a threadpool thread using round robin */ const auto thread_count = 4; const auto task_count = 4 * 6; thread_pool pool(thread_count, seconds(20), "", nullptr); waiter waiter; for (size_t i = 0; i < thread_count; i++) { pool.enqueue([waiter]() mutable { waiter.wait(); }); } std::unordered_map<std::thread::id, size_t> enqueueing_map; for (size_t i = 0; i < task_count; i++) { const auto id = pool.enqueue([] {}); ++enqueueing_map[id]; } assert_same(enqueueing_map.size(), thread_count); for (const auto pair : enqueueing_map) { assert_same(pair.second, task_count / thread_count); } waiter.notify_all(); } void concurrencpp::tests::test_thread_pool_enqueue() { test_thread_pool_enqueue_case_1(); test_thread_pool_enqueue_case_1_not_tp_thread(); test_thread_pool_enqueue_case_1_task_queue_not_empty(); test_thread_pool_enqueue_case_2(); test_thread_pool_enqueue_case_2_tp_thread(); test_thread_pool_enqueue_case_3(); test_thread_pool_enqueue_case_4(); } void concurrencpp::tests::test_thread_pool_destructor_pending_tasks() { waiter waiter; object_observer observer; auto pool = std::make_unique<thread_pool>(1, minutes(1), "", nullptr); pool->enqueue([waiter]() mutable { waiter.wait(); std::this_thread::sleep_for(seconds(10)); }); for (size_t i = 0; i < 100; i++) { pool->enqueue(observer.get_testing_stub()); } waiter.notify_all(); pool.reset(); assert_same(observer.get_cancellation_count(), 100); assert_same(observer.get_destruction_count(), 100); } void concurrencpp::tests::test_thread_pool_destructor_cancellation_test_0() { const auto task_count = 1'024; object_observer observer; { thread_pool pool(4, seconds(10), "", nullptr); waiter waiter; for (size_t i = 0; i < 4; i++) { pool.enqueue([waiter]() mutable { waiter.wait(); }); } for (size_t i = 0; i < task_count; i++) { pool.enqueue(observer.get_testing_stub()); } waiter.notify_all(); } assert_true(observer.wait_cancel_count(task_count, seconds(20))); assert_true(observer.wait_destruction_count(task_count, seconds(20))); } void concurrencpp::tests::test_thread_pool_destructor_cancellation_test_1() { std::exception_ptr exception_ptr; const auto error_msg = concurrencpp::details::consts::k_thread_pool_executor_cancel_error_msg; { thread_pool pool(1, minutes(1), error_msg, nullptr); pool.enqueue([] { std::this_thread::sleep_for(std::chrono::seconds(1)); }); pool.enqueue(cancellation_tester(exception_ptr)); } assert_cancelled_correctly<concurrencpp::errors::broken_task>(exception_ptr, error_msg); } void concurrencpp::tests::test_thread_pool_destructor_cancellation() { test_thread_pool_destructor_cancellation_test_0(); test_thread_pool_destructor_cancellation_test_1(); } void concurrencpp::tests::test_thread_pool_destructor_joining_threads() { auto listener = make_test_listener(); { thread_pool pool(24, minutes(1), "", listener); for (size_t i = 0; i < 8; i++) { pool.enqueue([] { std::this_thread::sleep_for(seconds(10)); }); } for (size_t i = 0; i < 8; i++) { pool.enqueue([] { std::this_thread::sleep_for(seconds(1)); }); } std::this_thread::sleep_for(seconds(5)); //third of the threads are working, third are waiting, third non existent. //all should quit and be destructed cleanly. } assert_same(listener->total_created(), 16); assert_same(listener->total_destroyed(), 16); } void concurrencpp::tests::test_thread_pool_destructor() { test_thread_pool_destructor_cancellation(); test_thread_pool_destructor_pending_tasks(); test_thread_pool_destructor_joining_threads(); } void concurrencpp::tests::test_thread_pool_wait_all() { thread_pool pool(10, seconds(1), "", nullptr); //if no tasks are in the pool, return immediately { const auto deadline = high_resolution_clock::now() + milliseconds(10); pool.wait_all(); assert_smaller_equal(high_resolution_clock::now(), deadline); } object_observer observer; waiter waiter; const auto task_count = 1'024; for (size_t i = 0; i < task_count; i++) { pool.enqueue(observer.get_testing_stub()); } pool.enqueue([waiter]() mutable { waiter.wait(); }); const auto later = high_resolution_clock::now() + seconds(2); std::thread unblocker([later, waiter]() mutable { std::this_thread::sleep_until(later); waiter.notify_all(); }); pool.wait_all(); assert_same(observer.get_execution_count(), task_count); assert_bigger_equal(high_resolution_clock::now(), later); unblocker.join(); } void concurrencpp::tests::test_thread_pool_timed_wait_all() { thread_pool pool(10, seconds(1), "", nullptr); //if no tasks are in the pool, return immediately { const auto deadline = high_resolution_clock::now() + milliseconds(10); pool.wait_all(std::chrono::milliseconds(100)); assert_smaller_equal(high_resolution_clock::now(), deadline); } object_observer observer; waiter waiter; const auto task_count = 1'024; for (size_t i = 0; i < task_count; i++) { pool.enqueue(observer.get_testing_stub()); } pool.enqueue([waiter]() mutable { waiter.wait(); std::this_thread::sleep_for(milliseconds(150)); }); for (size_t i = 0; i < 5; i++) { assert_false(pool.wait_all(milliseconds(100))); } waiter.notify_all(); assert_true(pool.wait_all(seconds(10))); assert_same(observer.get_execution_count(), task_count); } void concurrencpp::tests::test_thread_pool_dynamic_resizing_test_1() { auto listener = make_test_listener(); auto pool = std::make_unique<thread_pool>(1, seconds(8), "", listener); auto do_nothing = [] {}; assert_same(listener->total_created(), 0); pool->enqueue(do_nothing); assert_same(listener->total_created(), 1); std::this_thread::sleep_for(seconds(1)); assert_same(listener->total_waiting(), 1); pool->enqueue(do_nothing); std::this_thread::sleep_for(seconds(1)); assert_same(listener->total_resuming(), 1); std::this_thread::sleep_for(seconds(12)); assert_same(listener->total_idling(), 1); pool->enqueue(do_nothing); assert_same(listener->total_created(), 2); //one thread was created and went idle. another one was created instead. pool.reset(); assert_same(listener->total_destroyed(), 2); } void concurrencpp::tests::test_thread_pool_dynamic_resizing_test_2() { auto listener = make_test_listener(); auto pool = std::make_unique<thread_pool>(10, seconds(5), "", listener); auto sleep_50 = [] {std::this_thread::sleep_for(milliseconds(50)); }; auto sleep_500 = [] {std::this_thread::sleep_for(milliseconds(500)); }; for (size_t i = 0; i < 10; i++) { pool->enqueue(sleep_50); assert_same(listener->total_created(), i + 1); } std::this_thread::sleep_for(seconds(3)); assert_same(listener->total_waiting(), 10); for (size_t i = 0; i < 10; i++) { pool->enqueue(sleep_500); } std::this_thread::sleep_for(seconds(1)); assert_same(listener->total_resuming(), 10); std::this_thread::sleep_for(seconds(10)); assert_same(listener->total_idling(), 10); pool.reset(); assert_same(listener->total_destroyed(), 10); } void concurrencpp::tests::test_thread_pool_dynamic_resizing() { test_thread_pool_dynamic_resizing_test_1(); test_thread_pool_dynamic_resizing_test_2(); } void concurrencpp::tests::test_thread_pool_work_stealing() { auto listener = make_test_listener(); waiter waiter; object_observer observer; thread_pool pool(4, seconds(20), "", listener); for (size_t i = 0; i < 3; i++) { pool.enqueue([waiter]() mutable { waiter.wait(); }); } std::this_thread::sleep_for(seconds(2)); const size_t task_count = 400; for (size_t i = 0; i < task_count; i++) { pool.enqueue(observer.get_testing_stub()); } assert_true(observer.wait_execution_count(task_count, seconds(30))); assert_true(observer.wait_destruction_count(task_count, seconds(30))); assert_same(observer.get_execution_map().size(), 1); waiter.notify_all(); } void concurrencpp::tests::test_thread_pool_combo() { auto listener = make_test_listener(); object_observer observer; random randomizer; size_t expected_count = 0; auto pool = std::make_unique<thread_pool>(32, seconds(4), "", listener); for (size_t i = 0; i < 50; i++) { const auto task_count = static_cast<size_t>(randomizer(0, 1'500)); for (size_t j = 0; j < task_count; j++) { const auto sleeping_time = randomizer(0, 10); pool->enqueue(observer.get_testing_stub(milliseconds(sleeping_time))); } expected_count += task_count; const auto sleeping_time = randomizer(0, 5); std::this_thread::sleep_for(seconds(sleeping_time)); } assert_true(observer.wait_execution_count(expected_count, seconds(60 * 2))); pool.reset(); assert_same(observer.get_cancellation_count(), 0); assert_same(observer.get_destruction_count(), expected_count); assert_same(listener->total_created(), listener->total_destroyed()); } void concurrencpp::tests::test_thread_pool() { tester tester("thread_pool test"); tester.add_step("~thread_pool", test_thread_pool_destructor); tester.add_step("enqueue", test_thread_pool_enqueue); tester.add_step("wait_all", test_thread_pool_wait_all); tester.add_step("wait_all(ms)", test_thread_pool_timed_wait_all); tester.add_step("thread pool work stealing", test_thread_pool_work_stealing); tester.add_step("threadpool auto resizing", test_thread_pool_dynamic_resizing); tester.add_step("threadpool combo", test_thread_pool_combo); tester.launch_test(); }
28.154412
116
0.729499
HungMingWu
294a66a7222890b1e1219c0d8e8031f62d46e330
1,964
cpp
C++
contests/uva/uva-11728.cpp
leomaurodesenv/contest-codes
f7ae7e9d8c67e43dea7ac7dd71afce20d804f518
[ "MIT" ]
null
null
null
contests/uva/uva-11728.cpp
leomaurodesenv/contest-codes
f7ae7e9d8c67e43dea7ac7dd71afce20d804f518
[ "MIT" ]
null
null
null
contests/uva/uva-11728.cpp
leomaurodesenv/contest-codes
f7ae7e9d8c67e43dea7ac7dd71afce20d804f518
[ "MIT" ]
null
null
null
/* * Problema: 11728 - Alternate Task * https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=2828 */ #include <iostream> #include <iomanip> #include <cstdio> #include <cstdlib> #include <numeric> #include <string> #include <sstream> #include <iomanip> #include <locale> #include <bitset> #include <map> #include <vector> #include <queue> #include <stack> #include <algorithm> #include <cmath> #define INF 0x3F3F3F3F #define PI 3.14159265358979323846 #define EPS 1e-10 #define vet_i(var, tipo, lin, col, inic) vector< vector< tipo > > var (lin, vector< tipo > (col, inic)) #define vet_d(tipo) vector< vector< tipo > > #define lli long long int #define llu unsigned long long int #define fore(var, inicio, final) for(int var=inicio; var<final; var++) #define forec(var, inicio, final, incremento) for(int var=inicio; var<final; incremento) #define forit(it, var) for( it = var.begin(); it != var.end(); it++ ) using namespace std; #define sizec 2001 bitset <sizec> bs; vector <int> primes; void crivo(){ bs.set(); bs[0] = bs[1] = 0; fore(i, 2, sizec){ if(bs[i]){ for(int j=i*i; j<sizec; j+=i) bs[j] = 0; primes.push_back(i); } } } int main(){ crivo(); int n, val, add; vector <int> num (sizec, 0); num[1] = 1; fore(i, 2, sizec){ if(bs[i]) num[i] = i+1; else{ fore(j, 0, primes.size()){ if(i%primes[j] == 0){ add = primes[j]; val = i/primes[j]; break; } } num[i] = add + num[val]; } } /*fore(i, 1, sizec){ cout<<"["<<i<<"]:"<<num[i]<<" "<<endl; }*/ while(cin>>n && n!=0){ val = add = -1; fore(i, 1, sizec){ if(num[i] == n){ val = i; add++; //cout<<"i: "<<i<<" add:"<<add<<endl; break; } } cout<<val<<endl; } return 0; }
22.067416
103
0.536151
leomaurodesenv
294d8cf4a4e322ce16ad955ca5998eb69e25b524
3,425
cc
C++
src/js/js.cc
mywebengine/myserv
1b7e0a1822bd8cb62d0640392d58424633866c97
[ "MIT" ]
null
null
null
src/js/js.cc
mywebengine/myserv
1b7e0a1822bd8cb62d0640392d58424633866c97
[ "MIT" ]
null
null
null
src/js/js.cc
mywebengine/myserv
1b7e0a1822bd8cb62d0640392d58424633866c97
[ "MIT" ]
null
null
null
/* g++ -c js.cc -o ./js.o -std=c++17 -Wall -pedantic -I/home/alex/cc/certify/include -I/home/alex/cc/v8 -I/home/alex/cc/v8/include gcc -shared -o ./js.so ./js.o -I/home/alex/cc/certify/include -I/home/alex/cc/v8 -I/home/alex/cc/v8/include -lv8_monolith -L/home/alex/cc/v8/out.gn/x64.release.sample/obj/ -DV8_COMPRESS_POINTERS -pthread -ldl -std=c++17 -Wall -pedantic -lboost_system -lboost_thread -lssl -lcrypto g++ ./jf.cc -I/home/alex/cc/certify/include -I/home/alex/cc/v8 -I/home/alex/cc/v8/include -lv8_monolith -L/home/alex/cc/v8/out.gn/x64.release.sample/obj/ -DV8_COMPRESS_POINTERS -pthread -ldl -std=c++17 -Wall -pedantic -lboost_system -lboost_thread -lssl -lcrypto -o _jf -I/home/alex/cc/v8/include -lv8_monolith -L/home/alex/cc/v8/out.gn/x64.release.sample/obj/ -DV8_COMPRESS_POINTERS -pthread -ldl -std=c++17 -Wall -pedantic -lboost_system -lboost_thread -lssl -lcrypto g++ ./jf.cc -I/home/alex/cc/certify/include -I/home/alex/cc/v8 -I/home/alex/cc/v8/include -lv8_monolith -L/home/alex/cc/v8/out.gn/x64.release.sample/obj/ -DV8_COMPRESS_POINTERS -pthread -ldl -std=c++17 -Wall -pedantic -lboost_system -lboost_thread -lssl -lcrypto -o _jf clang-12 -std=c++2a -fprebuilt-module-path=../../mods -Xclang -emit-module-interface -c js.cc -o ../../mods/myjs.pcm -Wall -pedantic -I/home/alex/cc/certify/include -I/home/alex/cc/v8 -I/home/alex/cc/v8/include -L/home/alex/cc/v8/out.gn/x64.release.sample/obj/ -DV8_COMPRESS_POINTERS -lv8_monolith -lstdc++ -lboost_system -lboost_thread -lssl -lcrypto clang- -std=c++2a -c helloworld.cc -Xclang -emit-module-interface -o helloworld.pcm clang-12 -c ./js.cc -Xclang -emit-module-interface -o js.pcm ../config.cc ../http/http.cc ../file.cc ./v8/v8.cc ./js/v8/api/fetch.cc ./js/v8/api/log.cc -I/home/alex/cc/certify/include -I/home/alex/cc/v8 -I/home/alex/cc/v8/include -L/home/alex/cc/v8/out.gn/x64.release.sample/obj/ -DV8_COMPRESS_POINTERS -lv8_monolith -std=c++2a -Wall -pedantic -lstdc++ -pthread -ldl -lboost_system -lboost_thread -lssl -lcrypto -lm g++ -fPIC -Wall -g -c libhello.c */ #include <iostream> #include "../config.h" #include "../http/http.h" #include "../file.h" #include "./v8/v8.h" #include "./js.h" using namespace std; namespace myjs { string Init(char* argv[]) { return myv8::InitV8(argv); } Instance::Instance(myconfig::Config& conf) : conf_(conf), v8ins_(conf_) { } string Instance::Init() { string err = v8ins_.Init(); if (err != "") { return err; } string self_js; err = myfile::ReadFile(self_js, "./js/self.js"); if (err != "") { return err; } err = RunScript(self_js + "\n__mInitExInSelf()"); if (err != "") { return err; } err = CreateModule("./js/addons.js"); if (err != "") { return err; } return ""; } string Instance::CreateModule(string mname) { v8::HandleScope scope(v8ins_.isolate_); v8::Local<v8::Context> context = v8ins_.context_.Get(v8ins_.isolate_); v8::Context::Scope context_scope(context); return v8ins_.CreateModule(context, mname); } string Instance::RunScript(string js, string resource_name, int resource_line_offset, int resource_column_offset) { v8::HandleScope scope(v8ins_.isolate_); v8::Local<v8::Context> context = v8ins_.context_.Get(v8ins_.isolate_); v8::Context::Scope context_scope(context); return myv8::RunScript(context, js, resource_name, resource_line_offset, resource_column_offset); } myhttp::Response Exec(myhttp::Request req) { return myhttp::Response(); } }
43.35443
415
0.715328
mywebengine
294f44beb38dfd47dcb4b0553fd10373edf28812
961
cpp
C++
CodeForces/Flipping game.cpp
abdelrahman0123/Problem-Solving
9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b
[ "MIT" ]
null
null
null
CodeForces/Flipping game.cpp
abdelrahman0123/Problem-Solving
9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b
[ "MIT" ]
null
null
null
CodeForces/Flipping game.cpp
abdelrahman0123/Problem-Solving
9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define all(v) v.begin(), v.end() #define sz(v) v.size() #define cin(v) for (int i = 0; i < v.size(); i++) cin >> v[i]; #define cout(v) for (auto i : v) cout << i << endl; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<char> vc; typedef vector<string> vs; ll gcd(ll a, ll b) { if (b == 0) return a; return gcd(b, a % b); } ll lcm(ll a, ll b) { return a * b / gcd(a, b); } int main() { fast; // ll t; cin >> t; // vs p; // vl p; // while (t--) ll n; cin >> n; ll m = -1; vi v(n); cin(v); ll sum, res = 0; for (int i = 0; i < n; i++) { for (int j = i; j < n; j++) { sum = 0; for (int z = i; z <= j; z++) sum += (1 - v[z]); for (int z = 0; z < i; z++) sum += v[z]; for (int z = j + 1; z < n; z++) sum += v[z]; res = max(res, sum); } } cout << res; return 0; }
19.22
67
0.504683
abdelrahman0123
2953669081323ae812de39e5d9d99cc4329622f8
3,076
cpp
C++
examples/time/main.cpp
rosflight/airbourne_f4
1009867d7e6d9b5730b4d58d238a276782769f8c
[ "BSD-3-Clause" ]
7
2017-10-12T17:40:36.000Z
2021-03-31T03:30:58.000Z
examples/time/main.cpp
rosflight/airbourne_f4
1009867d7e6d9b5730b4d58d238a276782769f8c
[ "BSD-3-Clause" ]
42
2017-08-04T19:47:25.000Z
2020-06-03T00:34:41.000Z
examples/time/main.cpp
rosflight/airbourne_f4
1009867d7e6d9b5730b4d58d238a276782769f8c
[ "BSD-3-Clause" ]
8
2018-01-30T02:51:10.000Z
2021-06-06T04:55:48.000Z
/* * Copyright (c) 2017, James Jackson * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * * Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "led.h" #include "printf.h" #include "revo_f4.h" #include "vcp.h" VCP* uartPtr = NULL; static void _putc(void* p, char c) { (void)p; // avoid compiler warning about unused variable uartPtr->put_byte(c); } int main() { systemInit(); VCP vcp; vcp.init(); uartPtr = &vcp; init_printf(NULL, _putc); LED warn; warn.init(LED1_GPIO, LED1_PIN); LED info; info.init(LED2_GPIO, LED2_PIN); info.off(); warn.on(); const int size = 9; uint32_t delays[] = {1000, 100, 31, 2000000, 8000, 29238, 1900, 394177, 1923984}; uint32_t time[size]; uint32_t supposed[size]; while (1) { warn.toggle(); info.toggle(); uint64_t start = micros(); uint64_t sum = 0; delayMicroseconds(delays[0]); sum += delays[0]; supposed[0] = sum; time[0] = micros() - start; delayMicroseconds(delays[1]); sum += delays[1]; supposed[1] = sum; time[1] = micros() - start; delayMicroseconds(delays[2]); sum += delays[2]; supposed[2] = sum; time[2] = micros() - start; delayMicroseconds(delays[3]); sum += delays[3]; supposed[3] = sum; time[3] = micros() - start; // for (int i = 0; i < size; i++) // { // delayMicroseconds(delays[i % size]); // sum += delays[i % size]; // supposed[i] = sum; // time[i] = micros() - start; // } for (int i = 0; i < 4; i++) { printf("now_us: %lu, delays_us: %lu\n", supposed[i], time[i]); } } }
28.747664
83
0.663849
rosflight
29542b0e31957ff9e314b88effa86d2bf62c859f
7,892
cpp
C++
Engine/Math/Placement.cpp
openlastchaos/lastchaos-source-client
3d88594dba7347b1bb45378136605e31f73a8555
[ "Apache-2.0" ]
1
2022-02-14T15:46:44.000Z
2022-02-14T15:46:44.000Z
Engine/Math/Placement.cpp
openlastchaos/lastchaos-source-client
3d88594dba7347b1bb45378136605e31f73a8555
[ "Apache-2.0" ]
null
null
null
Engine/Math/Placement.cpp
openlastchaos/lastchaos-source-client
3d88594dba7347b1bb45378136605e31f73a8555
[ "Apache-2.0" ]
2
2022-01-10T22:17:06.000Z
2022-01-17T09:34:08.000Z
#include "stdh.h" #include <Engine/Math/Placement.h> #include <Engine/Base/Stream.h> #include <Engine/Math/Geometry.h> #include <Engine/Math/Projection.h> // Stream operations CTStream &operator>>(CTStream &strm, CPlacement3D &p3d) { strm.Read_t(&p3d, sizeof(p3d)); return strm; } CTStream &operator<<(CTStream &strm, const CPlacement3D &p3d) { strm.Write_t(&p3d, sizeof(p3d)); return strm; } ///////////////////////////////////////////////////////////////////// // transformations from between coordinate systems /* * Project this placement from absolute system to coordinate system of another placement. */ void CPlacement3D::AbsoluteToRelative(const CPlacement3D &plSystem) { // create a simple projection CSimpleProjection3D prSimple; // set the relative system as the viewer prSimple.ViewerPlacementL() = plSystem; // set the absolute system as object prSimple.ObjectPlacementL().pl_PositionVector = FLOAT3D(0.0f, 0.0f, 0.0f); prSimple.ObjectPlacementL().pl_OrientationAngle = ANGLE3D(0, 0, 0); // prepare the projection prSimple.Prepare(); // project this placement using the projection prSimple.ProjectPlacement(*this, *this); } void CPlacement3D::AbsoluteToRelativeSmooth(const CPlacement3D &plSystem) { // create a simple projection CSimpleProjection3D prSimple; // set the relative system as the viewer prSimple.ViewerPlacementL() = plSystem; // set the absolute system as object prSimple.ObjectPlacementL().pl_PositionVector = FLOAT3D(0.0f, 0.0f, 0.0f); prSimple.ObjectPlacementL().pl_OrientationAngle = ANGLE3D(0, 0, 0); // prepare the projection prSimple.Prepare(); // project this placement using the projection prSimple.ProjectPlacementSmooth(*this, *this); } /* * Project this placement from coordinate system of another placement to absolute system. */ void CPlacement3D::RelativeToAbsolute(const CPlacement3D &plSystem) { // create a simple projection CSimpleProjection3D prSimple; // set the absolute system as the viewer prSimple.ViewerPlacementL().pl_PositionVector = FLOAT3D(0.0f, 0.0f, 0.0f); prSimple.ViewerPlacementL().pl_OrientationAngle = ANGLE3D(0, 0, 0); // set the relative system as object prSimple.ObjectPlacementL() = plSystem; // prepare the projection prSimple.Prepare(); // project this placement using the projection prSimple.ProjectPlacement(*this, *this); } void CPlacement3D::RelativeToAbsoluteSmooth(const CPlacement3D &plSystem) { // create a simple projection CSimpleProjection3D prSimple; // set the absolute system as the viewer prSimple.ViewerPlacementL().pl_PositionVector = FLOAT3D(0.0f, 0.0f, 0.0f); prSimple.ViewerPlacementL().pl_OrientationAngle = ANGLE3D(0, 0, 0); // set the relative system as object prSimple.ObjectPlacementL() = plSystem; // prepare the projection prSimple.Prepare(); // project this placement using the projection prSimple.ProjectPlacementSmooth(*this, *this); } /* * Project this placement from system of one placement to system of another placement. */ void CPlacement3D::RelativeToRelative(const CPlacement3D &plSource, const CPlacement3D &plTarget) { // create a simple projection CSimpleProjection3D prSimple; // set the target system as the viewer prSimple.ViewerPlacementL() = plTarget; // set the source system as object prSimple.ObjectPlacementL() = plSource; // prepare the projection prSimple.Prepare(); // project this placement using the projection prSimple.ProjectPlacement(*this, *this); } void CPlacement3D::RelativeToRelativeSmooth(const CPlacement3D &plSource, const CPlacement3D &plTarget) { // create a simple projection CSimpleProjection3D prSimple; // set the target system as the viewer prSimple.ViewerPlacementL() = plTarget; // set the source system as object prSimple.ObjectPlacementL() = plSource; // prepare the projection prSimple.Prepare(); // project this placement using the projection prSimple.ProjectPlacementSmooth(*this, *this); } /* Make this placement be a linear interpolation between given two placements. */ void CPlacement3D::Lerp(const CPlacement3D &pl0, const CPlacement3D &pl1, FLOAT fFactor) { // lerp the position pl_PositionVector(1) = LerpFLOAT(pl0.pl_PositionVector(1), pl1.pl_PositionVector(1), fFactor); pl_PositionVector(2) = LerpFLOAT(pl0.pl_PositionVector(2), pl1.pl_PositionVector(2), fFactor); pl_PositionVector(3) = LerpFLOAT(pl0.pl_PositionVector(3), pl1.pl_PositionVector(3), fFactor); // lerp the orientation pl_OrientationAngle(1) = LerpANGLE(pl0.pl_OrientationAngle(1), pl1.pl_OrientationAngle(1), fFactor); pl_OrientationAngle(2) = LerpANGLE(pl0.pl_OrientationAngle(2), pl1.pl_OrientationAngle(2), fFactor); pl_OrientationAngle(3) = LerpANGLE(pl0.pl_OrientationAngle(3), pl1.pl_OrientationAngle(3), fFactor); } void CPlacement3D::Extrapolate(const CPlacement3D &plPlacement, const CPlacement3D &plSpeed, FLOAT fFactor) { // extrapolate the position pl_PositionVector(1) = plPlacement.pl_PositionVector(1) + plSpeed.pl_PositionVector(1) * fFactor; pl_PositionVector(2) = plPlacement.pl_PositionVector(2) + plSpeed.pl_PositionVector(2) * fFactor; pl_PositionVector(3) = plPlacement.pl_PositionVector(3) + plSpeed.pl_PositionVector(3) * fFactor; // extrapolate the orientation pl_OrientationAngle(1) = plPlacement.pl_OrientationAngle(1) + plSpeed.pl_OrientationAngle(1) * fFactor; pl_OrientationAngle(2) = plPlacement.pl_OrientationAngle(2) + plSpeed.pl_OrientationAngle(2) * fFactor; pl_OrientationAngle(3) = plPlacement.pl_OrientationAngle(3) + plSpeed.pl_OrientationAngle(3) * fFactor; } ///////////////////////////////////////////////////////////////////// // translations and rotations /* * Rotate using trackball method. */ void CPlacement3D::Rotate_TrackBall(const ANGLE3D &a3dRotation) { FLOATmatrix3D t3dRotation; // matrix for the rotation angles FLOATmatrix3D t3dOriginal; // matrix for the original angles // create matrices from angles MakeRotationMatrix(t3dRotation, a3dRotation); MakeRotationMatrix(t3dOriginal, pl_OrientationAngle); // make composed matrix t3dOriginal = t3dRotation*t3dOriginal; // rotate first by original, then by rotation angles // recreate angles from composed matrix DecomposeRotationMatrix(pl_OrientationAngle, t3dOriginal); } /* * Rotate using airplane method. */ void CPlacement3D::Rotate_Airplane(const ANGLE3D &a3dRotation) { FLOATmatrix3D t3dRotation; // matrix for the rotation angles FLOATmatrix3D t3dOriginal; // matrix for the original angles // create matrices from angles MakeRotationMatrixFast(t3dRotation, a3dRotation); MakeRotationMatrixFast(t3dOriginal, pl_OrientationAngle); // make composed matrix t3dOriginal = t3dOriginal*t3dRotation; // rotate first by rotation, then by original angles // recreate angles from composed matrix DecomposeRotationMatrixNoSnap(pl_OrientationAngle, t3dOriginal); } /* * Rotate using HPB method. */ void CPlacement3D::Rotate_HPB(const ANGLE3D &a3dRotation) { // just add the rotation angles to original angles pl_OrientationAngle += a3dRotation; } /* * Translate in own coordinate system. */ void CPlacement3D::Translate_OwnSystem(const FLOAT3D &f3dRelativeTranslation) { FLOATmatrix3D t3dOwnAngles; // matrix for own angles // make matrix from own angles MakeRotationMatrix(t3dOwnAngles, pl_OrientationAngle); // make absolute translation from relative by rotating for your own angles pl_PositionVector += f3dRelativeTranslation*t3dOwnAngles; } /* * Translate in absolute coordinate system. */ void CPlacement3D::Translate_AbsoluteSystem(const FLOAT3D &f3dAbsoluteTranslation) { // just add the translation to the position vector pl_PositionVector += f3dAbsoluteTranslation; }
34.920354
107
0.743031
openlastchaos
2955bfc38938dd4d1a2db2c8fb6621d1fcb3e5ca
11,797
tpp
C++
src/hypro/algorithms/reachability/handlers/jumpHandlers/singularJumpHandler.tpp
hypro/hypro
52ae4ffe0a8427977fce8d7979fffb82a1bc28f6
[ "MIT" ]
22
2016-10-05T12:19:01.000Z
2022-01-23T09:14:41.000Z
src/hypro/algorithms/reachability/handlers/jumpHandlers/singularJumpHandler.tpp
hypro/hypro
52ae4ffe0a8427977fce8d7979fffb82a1bc28f6
[ "MIT" ]
23
2017-05-08T15:02:39.000Z
2021-11-03T16:43:39.000Z
src/hypro/algorithms/reachability/handlers/jumpHandlers/singularJumpHandler.tpp
hypro/hypro
52ae4ffe0a8427977fce8d7979fffb82a1bc28f6
[ "MIT" ]
12
2017-06-07T23:51:09.000Z
2022-01-04T13:06:21.000Z
#include "singularJumpHandler.h" namespace hypro { template <typename Representation> auto singularJumpHandler<Representation>::applyJump( const TransitionStateMap& states ) -> TransitionStateMap { // holds a mapping of transitions to already processed (i.e. aggregated, resetted and reduced) states TransitionStateMap processedStates; DEBUG( "hydra.worker", "Apply jump on " << states.size() << " transitions." ); for ( const auto& [transitionPtr, statesVec] : states ) { DEBUG( "hydra.worker", "Apply jump on " << statesVec.size() << " states." ); for ( const auto& state : statesVec ) { // copy state - as there is no aggregation, the containing set and timestamp is already valid Representation newState( state ); // apply reset function applyReset( newState, transitionPtr ); // check invariant in new location auto [containment, stateSet] = intersect( newState, transitionPtr->getTarget()->getInvariant() ); if ( containment == CONTAINMENT::NO ) { continue; } // optional: apply reduction (future work) // Note: Here we misuse the state's timestamp to carry the transition timing to the next stage -> just don't reset // the timestamp in case no aggregation happens. if ( processedStates.find( transitionPtr ) == processedStates.end() ) { processedStates[transitionPtr] = std::vector<Representation>(); } processedStates[transitionPtr].emplace_back( stateSet ); } } return processedStates; } template <typename Representation> void singularJumpHandler<Representation>::applyReset( Representation& stateSet, Transition<Number>* transitionPtr ) const { // We have 3 different implementations for applying resets and want to check that they all give the same result. // Note: applyResetFM is the one that definitely works. // Todo: Decide for one implementation and remove other 2 if ( !transitionPtr->getReset().empty() ) { assert( transitionPtr->getReset().getAffineReset().isIdentity() && "Singular automata do not support linear/affine resets." ); IntervalAssignment<Number> intervalReset = transitionPtr->getReset().getIntervalReset(); if ( !intervalReset.isIdentity() ) { auto transformedSet1 = applyResetFM( stateSet, intervalReset ); #ifndef NDEBUG auto transformedSet2 = applyResetFindZeroConstraints( stateSet, intervalReset ); auto transformedSet3 = applyResetProjectAndExpand( stateSet, intervalReset ); assert( transformedSet1.contains( transformedSet2 ) && transformedSet2.contains( transformedSet1 ) ); assert( transformedSet1.contains( transformedSet3 ) && transformedSet3.contains( transformedSet1 ) ); #endif convert( transformedSet1, stateSet ); } } } template <typename Representation, typename Number> HPolytope<Number> applyResetFM( Representation& stateSet, IntervalAssignment<Number> intervalReset ) { // Apply reset using FM (definitely works, is slow) std::vector<std::size_t> projectOutDimensions; HPolytope<Number> projectedSet = Converter<Number>::toHPolytope( stateSet ); std::vector<Halfspace<Number>> newConstraints; for ( std::size_t i = 0; i < intervalReset.size(); ++i ) { if ( !intervalReset.mIntervals[i].isEmpty() ) { // non-empty intervals represent some reset different from identity -> project out dimension, memorize new interval bounds projectOutDimensions.push_back( i ); // create and store new interval bounds vector_t<Number> normal = vector_t<Number>::Zero( stateSet.dimension() ); normal( i ) = Number( 1 ); newConstraints.emplace_back( normal, intervalReset.mIntervals[i].upper() ); normal = -normal; newConstraints.emplace_back( normal, -intervalReset.mIntervals[i].lower() ); } } // add interval bounds as new constraints projectedSet = projectedSet.projectOutConservative( projectOutDimensions ); projectedSet.insert( newConstraints.begin(), newConstraints.end() ); return projectedSet; } template <typename Representation, typename Number> HPolytope<Number> applyResetFindZeroConstraints( Representation& stateSet, IntervalAssignment<Number> intervalReset ) { // Apply reset by identifying 0-constraints of variables reset to non-zero value // Uses FM right now (should work, relatively slow) std::vector<std::size_t> projectOutDimensions; std::set<std::size_t> resetToZeroDimensions; VPolytope<Number> projectedSet = Converter<Number>::toVPolytope( stateSet ); std::vector<Halfspace<Number>> newConstraints; for ( std::size_t i = 0; i < intervalReset.size(); ++i ) { if ( !intervalReset.mIntervals[i].isEmpty() ) { if ( intervalReset.mIntervals[i].lower() == 0 && intervalReset.mIntervals[i].upper() == 0 ) { // reset to zero: solve via linear transformation resetToZeroDimensions.insert( i ); } else { // non-empty intervals represent some reset different from identity and from zero-> project out dimension, memorize new interval bounds projectOutDimensions.push_back( i ); // create and store new interval bounds vector_t<Number> normal = vector_t<Number>::Zero( stateSet.dimension() ); normal( i ) = Number( 1 ); newConstraints.emplace_back( normal, intervalReset.mIntervals[i].upper() ); normal = -normal; newConstraints.emplace_back( normal, -intervalReset.mIntervals[i].lower() ); } } } // set entries in resetToZeroDimensions and projectOutDimensions to zero for ( auto& vertex : projectedSet.rVertices() ) { for ( Eigen::Index i = 0; i < vertex.rawCoordinates().rows(); ++i ) { if ( std::find( resetToZeroDimensions.begin(), resetToZeroDimensions.end(), std::size_t( i ) ) != resetToZeroDimensions.end() ) { vertex[i] = 0; // a selected dimension cannot be in both sets continue; } /* if ( std::find( projectOutDimensions.begin(), projectOutDimensions.end(), std::size_t( i ) ) != projectOutDimensions.end() ) { vertex[i] = 0; } */ } } HPolytope<Number> transformedSet = Converter<Number>::toHPolytope( projectedSet ); // find bounding constraints for dimensions which are not reset to zero and remove them // Assumption: Those constraints do have non-zero entries in their normal vectors only for those bounding constraints // temporary: FM elimination auto [constraints, constants] = eliminateCols( transformedSet.matrix(), transformedSet.vector(), projectOutDimensions, true ); transformedSet = HPolytope<Number>{ constraints, constants }; // add interval bounds as new constraints transformedSet.insert( newConstraints.begin(), newConstraints.end() ); // TODO convert to V-Rep., set entries in resetToZeroDimensions and projectOutDimensions to zero. Convert to H-rep, remove constraints (detect syntactically) on projectOutDimensions, insert new constraints. return transformedSet; } template <typename Representation, typename Number> HPolytope<Number> applyResetProjectAndExpand( Representation& stateSet, IntervalAssignment<Number> intervalReset ) { // Apply reset by projecting reset-dimensions to 0 and removing all constraints on them // Fastest, want to test in practice to confirm that it works std::vector<std::size_t> resetDimensions; std::vector<std::size_t> resetToNonZeroDimensions; std::vector<Halfspace<Number>> newConstraints; for ( std::size_t i = 0; i < intervalReset.size(); ++i ) { if ( !intervalReset.mIntervals[i].isEmpty() ) { resetDimensions.push_back( i ); if ( intervalReset.mIntervals[i].lower() != 0 || intervalReset.mIntervals[i].upper() != 0 ) { // reset to zero is solved via linear transformation resetToNonZeroDimensions.push_back( i ); vector_t<Number> normal = vector_t<Number>::Zero( stateSet.dimension() ); normal( i ) = Number( 1 ); newConstraints.emplace_back( normal, intervalReset.mIntervals[i].upper() ); normal = -normal; newConstraints.emplace_back( normal, -intervalReset.mIntervals[i].lower() ); } } } // set entries in resetDimensions to zero: Convert to VPolytope, set dimensions to 0, convert back VPolytope<Number> projectedSet = Converter<Number>::toVPolytope( stateSet ); for ( auto& vertex : projectedSet.rVertices() ) { for ( auto i : resetDimensions ) { vertex[i] = 0; } } HPolytope<Number> transformedSet = Converter<Number>::toHPolytope( projectedSet ); // Remove constraints on dimensions that are not reset to 0 auto constraintMatrix = transformedSet.matrix(); auto constraintVector = transformedSet.vector(); for ( Eigen::Index row = 0; row < constraintMatrix.rows(); ++row ) { for ( auto i : resetToNonZeroDimensions ) { constraintMatrix( row, i ) = 0; } } // remove redundant constraints. This also removes zero-rows in the constraint matrix Optimizer<Number> opt( constraintMatrix, constraintVector ); auto redundant = opt.redundantConstraints(); constraintMatrix = removeRows( constraintMatrix, redundant ); constraintVector = removeRows( constraintVector, redundant ); transformedSet = HPolytope<Number>{ constraintMatrix, constraintVector }; // add interval bounds as new constraints transformedSet.insert( newConstraints.begin(), newConstraints.end() ); return transformedSet; } template <typename Representation> auto singularJumpHandler<Representation>::applyReverseJump( const TransitionStateMap& states, Transition<Number>* transition ) -> TransitionStateMap { // holds a mapping of transitions to states which need to be aggregated TransitionStateMap toAggregate; // holds a mapping of transitions to states which are ready to apply the reset function and the intersection with the invariant TransitionStateMap toProcess; // holds a mapping of transitions to already processed (i.e. aggregated, resetted and reduced) states TransitionStateMap processedStates; for ( const auto& [transitionPtr, statesVec] : states ) { // only handle sets related to the passed transition, in case any is passed. if ( transition == nullptr || transitionPtr == transition ) { // check aggregation settings auto& targetVec = toProcess[transitionPtr]; targetVec.insert( targetVec.end(), statesVec.begin(), statesVec.end() ); } } DEBUG( "hydra.worker", "Apply jump on " << toProcess.size() << " transitions." ); for ( const auto& [transitionPtr, statesVec] : toProcess ) { DEBUG( "hydra.worker", "Apply jump on " << statesVec.size() << " states." ); for ( const auto& state : statesVec ) { // copy state - as there is no aggregation, the containing set and timestamp is already valid // TODO: Why copy? assert( !state.getTimestamp().isEmpty() ); Representation newState( state ); // apply guard function applyGuard( newState, transitionPtr ); // set target location in state set newState.setLocation( transitionPtr->getSource() ); // check invariant in new location auto [containment, stateSet] = rectangularIntersectInvariant( newState ); if ( containment == CONTAINMENT::NO ) { continue; } // reduce if possible (Currently only for support functions) applyReduction( stateSet ); DEBUG( "hydra.worker.discrete", "Representation after reduction: " << stateSet ); // Note: Here we misuse the state's timestamp to carry the transition timing to the next stage -> just don't reset // the timestamp in case no aggregation happens. if ( processedStates.find( transitionPtr ) == processedStates.end() ) { processedStates[transitionPtr] = std::vector<Representation>(); } processedStates[transitionPtr].emplace_back( stateSet ); } } return processedStates; } } // namespace hypro
45.373077
207
0.712554
hypro
2956b6dbed34cad750b59d1ef38ccfa90ee10da9
2,901
hpp
C++
include/memoria/api/common/iobuffer_adapters_col1d_vlen.hpp
victor-smirnov/memoria
c36a957c63532176b042b411b1646c536e71a658
[ "BSL-1.0", "Apache-2.0", "OLDAP-2.8", "BSD-3-Clause" ]
2
2021-07-30T16:54:24.000Z
2021-09-08T15:48:17.000Z
include/memoria/api/common/iobuffer_adapters_col1d_vlen.hpp
victor-smirnov/memoria
c36a957c63532176b042b411b1646c536e71a658
[ "BSL-1.0", "Apache-2.0", "OLDAP-2.8", "BSD-3-Clause" ]
null
null
null
include/memoria/api/common/iobuffer_adapters_col1d_vlen.hpp
victor-smirnov/memoria
c36a957c63532176b042b411b1646c536e71a658
[ "BSL-1.0", "Apache-2.0", "OLDAP-2.8", "BSD-3-Clause" ]
2
2020-03-14T15:15:25.000Z
2020-06-15T11:26:56.000Z
// Copyright 2019 Victor Smirnov // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #pragma once #include <memoria/api/common/ctr_api_btss.hpp> #include <memoria/core/datatypes/traits.hpp> #include <memoria/core/datatypes/encoding_traits.hpp> #include <memoria/core/datatypes/io_vector_traits.hpp> #include <memoria/core/iovector/io_vector.hpp> #include <memoria/core/tools/bitmap.hpp> #include <memoria/core/datatypes/buffer/buffer_generic.hpp> namespace memoria { template <typename DataType, template <typename CxxType> class ValueCodec> struct IOSubstreamAdapter<ICtrApiSubstream<DataType, io::ColumnWise1D, ValueCodec>, false> { using ViewType = typename DataTypeTraits<DataType>::ViewType; using AtomType = typename DataTypeTraits<DataType>::AtomType; using SubstreamT = io::IO1DArraySubstreamView<DataType>; SubstreamT* substream_{}; int32_t column_; IOSubstreamAdapter(int32_t column): column_(column) {} static void read_to( const io::IOSubstream& substream, int32_t column, int32_t start, int32_t size, ArenaBuffer<ViewType>& buffer ) { const auto& subs = io::substream_cast<SubstreamT>(substream); subs.read_to(start, size, buffer); } static void read_to( const io::IOSubstream& substream, int32_t column, int32_t start, int32_t size, ArenaBuffer<AtomType>& buffer ) { const auto& subs = io::substream_cast<SubstreamT>(substream); subs.read_to(start, size, buffer); } static void read_to( const io::IOSubstream& substream, int32_t column, int32_t start, int32_t size, DataTypeBuffer<DataType>& buffer ) { const auto& subs = io::substream_cast<SubstreamT>(substream); subs.read_to(start, size, buffer); } template <typename ItemView> static void read_one(const io::IOSubstream& substream, int32_t column, int32_t idx, ItemView& item) { const auto& subs = io::substream_cast<SubstreamT>(substream); item = subs.get(idx); } void reset(io::IOSubstream& substream) { this->substream_ = &io::substream_cast<SubstreamT>(substream); } size_t size() const { return substream_->size(); } }; }
27.894231
103
0.668735
victor-smirnov
2958d41172ecbbfdbb94938db9c8701c8e8367c5
32,682
cpp
C++
src/eepp/core/string.cpp
SpartanJ/eepp
21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac
[ "MIT" ]
37
2020-01-20T06:21:24.000Z
2022-03-21T17:44:50.000Z
src/eepp/core/string.cpp
SpartanJ/eepp
21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac
[ "MIT" ]
null
null
null
src/eepp/core/string.cpp
SpartanJ/eepp
21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac
[ "MIT" ]
9
2019-03-22T00:33:07.000Z
2022-03-01T01:35:59.000Z
#include <algorithm> #include <cctype> #include <climits> #include <cstdarg> #include <eepp/core/string.hpp> #include <eepp/core/utf.hpp> #include <functional> #include <iterator> #include <limits> namespace EE { const std::size_t String::InvalidPos = StringType::npos; /* * Originally written by Joel Yliluoma <[email protected]> * http://en.wikipedia.org/wiki/Talk:Boyer%E2%80%93Moore_string_search_algorithm#Common_functions * * Copyright (c) 2008 Joel Yliluoma * Copyright (c) 2010 Hongli Lai * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /* This function creates an occ table to be used by the search algorithms. */ /* It only needs to be created once per a needle to search. */ const String::BMH::OccTable String::BMH::createOccTable( const unsigned char* needle, size_t needleLength ) { OccTable occ( UCHAR_MAX + 1, needleLength ); // initialize a table of UCHAR_MAX+1 elements to value needle_length /* Populate it with the analysis of the needle */ /* But ignoring the last letter */ if ( needleLength >= 1 ) { const size_t needleLengthMinus1 = needleLength - 1; for ( size_t a = 0; a < needleLengthMinus1; ++a ) occ[needle[a]] = needleLengthMinus1 - a; } return occ; } /* A Boyer-Moore-Horspool search algorithm. */ /* If it finds the needle, it returns an offset to haystack from which * the needle was found. Otherwise, it returns haystack_length. */ size_t String::BMH::search( const unsigned char* haystack, size_t haystackLength, const unsigned char* needle, const size_t needleLength, const OccTable& occ ) { if ( needleLength > haystackLength ) return haystackLength; if ( needleLength == 1 ) { const unsigned char* result = (const unsigned char*)std::memchr( haystack, *needle, haystackLength ); return result ? size_t( result - haystack ) : haystackLength; } const size_t needleLengthMinus1 = needleLength - 1; const unsigned char lastNeedleChar = needle[needleLengthMinus1]; size_t haystackPosition = 0; while ( haystackPosition <= haystackLength - needleLength ) { const unsigned char occChar = haystack[haystackPosition + needleLengthMinus1]; // The author modified this part. Original algorithm matches needle right-to-left. // This code calls memcmp() (usually matches left-to-right) after matching the last // character, thereby incorporating some ideas from // "Tuning the Boyer-Moore-Horspool String Searching Algorithm" // by Timo Raita, 1992. if ( lastNeedleChar == occChar && std::memcmp( needle, haystack + haystackPosition, needleLengthMinus1 ) == 0 ) { return haystackPosition; } haystackPosition += occ[occChar]; } return haystackLength; } Int64 String::BMH::find( const std::string& haystack, const std::string& needle, const size_t& haystackOffset, const OccTable& occ ) { size_t result = search( (const unsigned char*)haystack.c_str() + haystackOffset, haystack.size() - haystackOffset, (const unsigned char*)needle.c_str(), needle.size(), occ ); if ( result == haystack.size() - haystackOffset ) { return -1; } else { return (Int64)haystackOffset + result; } } Int64 String::BMH::find( const std::string& haystack, const std::string& needle, const size_t& haystackOffset ) { const auto occ = createOccTable( (const unsigned char*)needle.c_str(), needle.size() ); return find( haystack, needle, haystackOffset, occ ); } String::HashType String::hash( const std::string& str ) { return String::hash( str.c_str() ); } String::HashType String::hash( const String& str ) { return std::hash<std::u32string>{}( str.mString ); } bool String::isCharacter( const int& value ) { return ( value >= 32 && value <= 126 ) || ( value >= 161 && value <= 255 ) || ( value == 9 ); } bool String::isNumber( const int& value, bool AllowDot ) { if ( AllowDot ) return ( value >= 48 && value <= 57 ) || value == 46; return value >= 48 && value <= 57; } bool String::isNumber( const std::string& value, bool AllowDot ) { for ( auto& val : value ) { if ( !isNumber( val, AllowDot ) ) { return false; } } return true; } bool String::isLetter( const int& value ) { return ( ( ( value >= 65 && value <= 90 ) || ( value >= 97 && value <= 122 ) || ( value >= 192 && value <= 255 ) ) && ( value != 215 ) && ( value != 247 ) ); } bool String::isAlphaNum( const int& value ) { return isLetter( value ) || isNumber( value ); } bool String::isHexNotation( const std::string& value, const std::string& withPrefix ) { if ( !withPrefix.empty() && !String::startsWith( value, withPrefix ) ) { return false; } return value.find_first_not_of( "0123456789abcdefABCDEF", withPrefix.size() ) == std::string::npos; } std::vector<String> String::split( const String& str, const StringBaseType& delim, const bool& pushEmptyString ) { std::vector<String> cont; std::size_t current, previous = 0; current = str.find( delim ); while ( current != String::InvalidPos ) { String substr( str.substr( previous, current - previous ) ); if ( pushEmptyString || !substr.empty() ) cont.emplace_back( std::move( substr ) ); previous = current + 1; current = str.find( delim, previous ); } String substr( str.substr( previous, current - previous ) ); if ( pushEmptyString || !substr.empty() ) cont.emplace_back( std::move( substr ) ); return cont; } std::vector<std::string> String::split( const std::string& str, const std::string& delims, const std::string& delimsPreserve, const std::string& quote ) { std::vector<std::string> tokens; if ( str.empty() || ( delims.empty() && delimsPreserve.empty() ) ) { return tokens; } std::string allDelims = delims + delimsPreserve + quote; std::string::size_type tokenStart = 0; std::string::size_type tokenEnd = str.find_first_of( allDelims, tokenStart ); std::string::size_type tokenLen = 0; std::string token; while ( true ) { while ( tokenEnd != std::string::npos && quote.find_first_of( str[tokenEnd] ) != std::string::npos ) { if ( str[tokenEnd] == '(' ) { tokenEnd = findCloseBracket( str, tokenEnd, '(', ')' ); } else if ( str[tokenEnd] == '[' ) { tokenEnd = findCloseBracket( str, tokenEnd, '[', ']' ); } else if ( str[tokenEnd] == '{' ) { tokenEnd = findCloseBracket( str, tokenEnd, '{', '}' ); } else { tokenEnd = str.find_first_of( str[tokenEnd], tokenEnd + 1 ); } if ( tokenEnd != std::string::npos ) { tokenEnd = str.find_first_of( allDelims, tokenEnd + 1 ); } } if ( tokenEnd == std::string::npos ) { tokenLen = std::string::npos; } else { tokenLen = tokenEnd - tokenStart; } token = str.substr( tokenStart, tokenLen ); if ( !token.empty() ) { tokens.push_back( token ); } if ( tokenEnd != std::string::npos && !delimsPreserve.empty() && delimsPreserve.find_first_of( str[tokenEnd] ) != std::string::npos ) { tokens.push_back( str.substr( tokenEnd, 1 ) ); } tokenStart = tokenEnd; if ( tokenStart == std::string::npos ) break; tokenStart++; if ( tokenStart == str.length() ) break; tokenEnd = str.find_first_of( allDelims, tokenStart ); } return tokens; } std::vector<std::string> String::split( const std::string& str, const Int8& delim, const bool& pushEmptyString ) { std::vector<std::string> cont; std::size_t current, previous = 0; current = str.find( delim ); while ( current != std::string::npos ) { std::string substr( str.substr( previous, current - previous ) ); if ( pushEmptyString || !substr.empty() ) cont.emplace_back( std::move( substr ) ); previous = current + 1; current = str.find( delim, previous ); } std::string substr( str.substr( previous, current - previous ) ); if ( pushEmptyString || !substr.empty() ) cont.emplace_back( std::move( substr ) ); return cont; } std::string String::join( const std::vector<std::string>& strArray, const Int8& joinchar, const bool& appendLastJoinChar ) { size_t s = strArray.size(); std::string str; if ( s > 0 ) { for ( size_t i = 0; i < s; i++ ) { str += strArray[i]; if ( i != s - 1 || appendLastJoinChar ) { str += joinchar; } } } return str; } String String::join( const std::vector<String>& strArray, const Int8& joinchar, const bool& appendLastJoinChar ) { size_t s = strArray.size(); String str; if ( s > 0 ) { for ( size_t i = 0; i < s; i++ ) { str += strArray[i]; if ( joinchar >= 0 && ( i != s - 1 || appendLastJoinChar ) ) { str += joinchar; } } } return str; } std::string String::lTrim( const std::string& str, char character ) { std::string::size_type pos1 = str.find_first_not_of( character ); return ( pos1 == std::string::npos ) ? str : str.substr( pos1 ); } std::string String::rTrim( const std::string& str, char character ) { std::string::size_type pos1 = str.find_last_not_of( character ); return ( pos1 == std::string::npos ) ? str : str.substr( 0, pos1 + 1 ); } std::string String::trim( const std::string& str, char character ) { std::string::size_type pos1 = str.find_first_not_of( character ); std::string::size_type pos2 = str.find_last_not_of( character ); return str.substr( pos1 == std::string::npos ? 0 : pos1, pos2 == std::string::npos ? str.length() - 1 : pos2 - pos1 + 1 ); } void String::trimInPlace( std::string& str, char character ) { str = trim( str, character ); } String String::lTrim( const String& str, char character ) { StringType::size_type pos1 = str.find_first_not_of( character ); return ( pos1 == String::InvalidPos ) ? str : str.substr( pos1 ); } String String::rTrim( const String& str, char character ) { StringType::size_type pos1 = str.find_last_not_of( character ); return ( pos1 == String::InvalidPos ) ? str : str.substr( 0, pos1 + 1 ); } String String::trim( const String& str, char character ) { StringType::size_type pos1 = str.find_first_not_of( character ); StringType::size_type pos2 = str.find_last_not_of( character ); return str.substr( pos1 == String::InvalidPos ? 0 : pos1, pos2 == String::InvalidPos ? str.length() - 1 : pos2 - pos1 + 1 ); } void String::trimInPlace( String& str, char character ) { str = trim( str, character ); } void String::toUpperInPlace( std::string& str ) { std::transform( str.begin(), str.end(), str.begin(), (int ( * )( int ))std::toupper ); } std::string String::toUpper( std::string str ) { for ( std::string::iterator i = str.begin(); i != str.end(); ++i ) *i = static_cast<char>( std::toupper( *i ) ); return str; } void String::toLowerInPlace( std::string& str ) { std::transform( str.begin(), str.end(), str.begin(), (int ( * )( int ))std::tolower ); } std::string String::toLower( std::string str ) { for ( std::string::iterator i = str.begin(); i != str.end(); ++i ) *i = static_cast<char>( std::tolower( *i ) ); return str; } String String::toUpper( const String& str ) { String cpy( str ); cpy.toUpper(); return cpy; } String String::toLower( const String& str ) { String cpy( str ); cpy.toLower(); return cpy; } String& String::toLower() { for ( StringType::iterator i = mString.begin(); i != mString.end(); ++i ) *i = static_cast<Uint32>( std::tolower( *i ) ); return *this; } String& String::toUpper() { for ( StringType::iterator i = mString.begin(); i != mString.end(); ++i ) *i = static_cast<Uint32>( std::toupper( *i ) ); return *this; } String::StringBaseType String::lastChar() const { return mString.empty() ? std::numeric_limits<StringBaseType>::max() : mString[mString.size() - 1]; } std::vector<String> String::split( const StringBaseType& delim, const bool& pushEmptyString ) const { return String::split( *this, delim, pushEmptyString ); } // Lite (https://github.com/rxi/lite) fuzzy match implementation template <typename T> constexpr int tFuzzyMatch( const T* str, const T* ptn ) { int score = 0; int run = 0; while ( *str && *ptn ) { while ( *str == ' ' ) str++; while ( *ptn == ' ' ) ptn++; if ( std::tolower( *str ) == std::tolower( *ptn ) ) { score += run * 10 - ( *str != *ptn ); run++; ptn++; } else { score -= 10; run = 0; } str++; } if ( *ptn ) return INT_MIN; return score - strlen( str ); } int String::fuzzyMatch( const std::string& string, const std::string& pattern ) { return tFuzzyMatch<char>( string.c_str(), pattern.c_str() ); } std::vector<Uint8> String::stringToUint8( const std::string& str ) { return std::vector<Uint8>( str.begin(), str.end() ); } std::string String::Uint8ToString( const std::vector<Uint8>& v ) { return std::string( v.begin(), v.end() ); } void String::strCopy( char* Dst, const char* Src, unsigned int DstSize ) { strncpy( Dst, Src, DstSize ); } bool String::startsWith( const std::string& haystack, const std::string& needle ) { return needle.length() <= haystack.length() && std::equal( needle.begin(), needle.end(), haystack.begin() ); } bool String::startsWith( const String& haystack, const String& needle ) { return needle.length() <= haystack.length() && std::equal( needle.begin(), needle.end(), haystack.begin() ); } bool String::endsWith( const std::string& haystack, const std::string& needle ) { return needle.length() <= haystack.length() && haystack.compare( haystack.size() - needle.size(), needle.size(), needle ) == 0; } bool String::endsWith( const String& haystack, const String& needle ) { return needle.length() <= haystack.length() && haystack.compare( haystack.size() - needle.size(), needle.size(), needle ) == 0; } bool String::contains( const std::string& haystack, const std::string& needle ) { return haystack.find( needle ) != std::string::npos; } bool String::contains( const String& haystack, const String& needle ) { return haystack.find( needle ) != String::InvalidPos; } void String::replaceAll( std::string& target, const std::string& that, const std::string& with ) { std::string::size_type pos = 0; while ( ( pos = target.find( that, pos ) ) != std::string::npos ) { target.erase( pos, that.length() ); target.insert( pos, with ); pos += with.length(); } } void String::replaceAll( String& target, const String& that, const String& with ) { std::string::size_type pos = 0; while ( ( pos = target.find( that, pos ) ) != String::InvalidPos ) { target.erase( pos, that.length() ); target.insert( pos, with ); pos += with.length(); } } void String::replace( std::string& target, const std::string& that, const std::string& with ) { std::size_t start_pos = target.find( that ); if ( start_pos == std::string::npos ) return; target.replace( start_pos, that.length(), with ); } void String::replace( String& target, const String& that, const String& with ) { std::size_t start_pos = target.find( that ); if ( start_pos == String::InvalidPos ) return; target.replace( start_pos, that.length(), with ); } std::string String::removeNumbersAtEnd( std::string txt ) { while ( txt.size() && txt[txt.size() - 1] >= '0' && txt[txt.size() - 1] <= '9' ) { txt.resize( txt.size() - 1 ); } return txt; } std::size_t String::findCloseBracket( const std::string& string, std::size_t startOffset, char openBracket, char closeBracket ) { int count = 0; size_t len = string.size(); for ( size_t i = startOffset; i < len; i++ ) { if ( string[i] == openBracket ) { count++; } else if ( string[i] == closeBracket ) { count--; if ( 0 == count ) return i; } } return std::string::npos; } int String::valueIndex( const std::string& val, const std::string& strings, int defValue, char delim ) { if ( val.empty() || strings.empty() || !delim ) { return defValue; } int idx = 0; std::string::size_type delimStart = 0; std::string::size_type delimEnd = strings.find( delim, delimStart ); std::string::size_type itemLen = 0; while ( true ) { if ( delimEnd == std::string::npos ) { itemLen = strings.length() - delimStart; } else { itemLen = delimEnd - delimStart; } if ( itemLen == val.length() ) { if ( val == strings.substr( delimStart, itemLen ) ) { return idx; } } idx++; delimStart = delimEnd; if ( delimStart == std::string::npos ) break; delimStart++; if ( delimStart == strings.length() ) break; delimEnd = strings.find( delim, delimStart ); } return defValue; } std::string String::fromFloat( const Float& value, const std::string& append, const std::string& prepend ) { return prepend + toString( value ) + append; } std::string String::fromDouble( const double& value, const std::string& append, const std::string& prepend ) { return prepend + toString( value ) + append; } void String::insertChar( String& str, const unsigned int& pos, const StringBaseType& tchar ) { str.insert( str.begin() + pos, tchar ); } void String::formatBuffer( char* Buffer, int BufferSize, const char* format, ... ) { va_list args; va_start( args, format ); #ifdef EE_COMPILER_MSVC _vsnprintf_s( Buffer, BufferSize, BufferSize, format, args ); #else vsnprintf( Buffer, BufferSize - 1, format, args ); #endif va_end( args ); } std::string String::format( const char* format, ... ) { int n, size = 256; std::string tstr( size, '\0' ); va_list args; while ( 1 ) { va_start( args, format ); n = vsnprintf( &tstr[0], size, format, args ); if ( n > -1 && n < size ) { tstr.resize( n ); va_end( args ); return tstr; } if ( n > -1 ) // glibc 2.1 size = n + 1; // precisely what is needed else // glibc 2.0 size *= 2; // twice the old size tstr.resize( size ); } } String::String() {} String::String( char ansiChar, const std::locale& locale ) { mString += Utf32::decodeAnsi( ansiChar, locale ); } #ifndef EE_NO_WIDECHAR String::String( wchar_t wideChar ) { mString += Utf32::decodeWide( wideChar ); } #endif String::String( StringBaseType utf32Char ) { mString += utf32Char; } String::String( const char* utf8String ) { if ( utf8String ) { std::size_t length = strlen( utf8String ); if ( length > 0 ) { mString.reserve( length + 1 ); Utf8::toUtf32( utf8String, utf8String + length, std::back_inserter( mString ) ); } } } String::String( const char* utf8String, const size_t& utf8StringSize ) { if ( utf8String ) { if ( utf8StringSize > 0 ) { mString.reserve( utf8StringSize + 1 ); Utf8::toUtf32( utf8String, utf8String + utf8StringSize, std::back_inserter( mString ) ); } } } String::String( const std::string& utf8String ) { mString.reserve( utf8String.length() + 1 ); Utf8::toUtf32( utf8String.begin(), utf8String.end(), std::back_inserter( mString ) ); } String::String( const char* ansiString, const std::locale& locale ) { if ( ansiString ) { std::size_t length = strlen( ansiString ); if ( length > 0 ) { mString.reserve( length + 1 ); Utf32::fromAnsi( ansiString, ansiString + length, std::back_inserter( mString ), locale ); } } } String::String( const std::string& ansiString, const std::locale& locale ) { mString.reserve( ansiString.length() + 1 ); Utf32::fromAnsi( ansiString.begin(), ansiString.end(), std::back_inserter( mString ), locale ); } #ifndef EE_NO_WIDECHAR String::String( const wchar_t* wideString ) { if ( wideString ) { std::size_t length = std::wcslen( wideString ); if ( length > 0 ) { mString.reserve( length + 1 ); Utf32::fromWide( wideString, wideString + length, std::back_inserter( mString ) ); } } } String::String( const std::wstring& wideString ) { mString.reserve( wideString.length() + 1 ); Utf32::fromWide( wideString.begin(), wideString.end(), std::back_inserter( mString ) ); } #endif String::String( const StringBaseType* utf32String ) { if ( utf32String ) mString = utf32String; } String::String( const StringType& utf32String ) : mString( utf32String ) {} String::String( const String& str ) : mString( str.mString ) {} String String::fromUtf8( const std::string& utf8String ) { String::StringType utf32; utf32.reserve( utf8String.length() + 1 ); Utf8::toUtf32( utf8String.begin(), utf8String.end(), std::back_inserter( utf32 ) ); return String( utf32 ); } String::operator std::string() const { return toUtf8(); } std::string String::toAnsiString( const std::locale& locale ) const { // Prepare the output string std::string output; output.reserve( mString.length() + 1 ); // Convert Utf32::toAnsi( mString.begin(), mString.end(), std::back_inserter( output ), 0, locale ); return output; } #ifndef EE_NO_WIDECHAR std::wstring String::toWideString() const { // Prepare the output string std::wstring output; output.reserve( mString.length() + 1 ); // Convert Utf32::toWide( mString.begin(), mString.end(), std::back_inserter( output ), 0 ); return output; } #endif std::string String::toUtf8() const { // Prepare the output string std::string output; output.reserve( mString.length() + 1 ); // Convert Utf32::toUtf8( mString.begin(), mString.end(), std::back_inserter( output ) ); return output; } std::basic_string<Uint16> String::toUtf16() const { // Prepare the output string std::basic_string<Uint16> output; output.reserve( mString.length() ); // Convert Utf32::toUtf16( mString.begin(), mString.end(), std::back_inserter( output ) ); return output; } String::HashType String::getHash() const { return String::hash( *this ); } String& String::operator=( const String& right ) { mString = right.mString; return *this; } String& String::operator=( const StringBaseType& right ) { mString = right; return *this; } String& String::operator+=( const String& right ) { mString += right.mString; return *this; } String& String::operator+=( const StringBaseType& right ) { mString += right; return *this; } const String::StringBaseType& String::operator[]( std::size_t index ) const { return mString[index]; } String::StringBaseType& String::operator[]( std::size_t index ) { return mString[index]; } const String::StringBaseType& String::at( std::size_t index ) const { return mString.at( index ); } void String::push_back( StringBaseType c ) { mString.push_back( c ); } void String::swap( String& str ) { mString.swap( str.mString ); } void String::clear() { mString.clear(); } std::size_t String::size() const { return mString.size(); } std::size_t String::length() const { return mString.length(); } bool String::empty() const { return mString.empty(); } void String::erase( std::size_t position, std::size_t count ) { mString.erase( position, count ); } String& String::insert( std::size_t position, const String& str ) { mString.insert( position, str.mString ); return *this; } String& String::insert( std::size_t pos1, const String& str, std::size_t pos2, std::size_t n ) { mString.insert( pos1, str.mString, pos2, n ); return *this; } String& String::insert( size_t pos1, const char* s, size_t n ) { String tmp( s ); mString.insert( pos1, tmp.data(), n ); return *this; } String& String::insert( size_t pos1, size_t n, const StringBaseType& c ) { mString.insert( pos1, n, c ); return *this; } String& String::insert( size_t pos1, const char* s ) { String tmp( s ); mString.insert( pos1, tmp.data() ); return *this; } String::Iterator String::insert( Iterator p, const String::StringBaseType& c ) { return mString.insert( p, c ); } void String::insert( Iterator p, size_t n, const String::StringBaseType& c ) { mString.insert( p, n, c ); } const String::StringBaseType* String::c_str() const { return mString.c_str(); } const String::StringBaseType* String::data() const { return mString.data(); } String::Iterator String::begin() { return mString.begin(); } String::ConstIterator String::begin() const { return mString.begin(); } String::Iterator String::end() { return mString.end(); } String::ConstIterator String::end() const { return mString.end(); } String::ReverseIterator String::rbegin() { return mString.rbegin(); } String::ConstReverseIterator String::rbegin() const { return mString.rbegin(); } String::ReverseIterator String::rend() { return mString.rend(); } String::ConstReverseIterator String::rend() const { return mString.rend(); } void String::resize( std::size_t n, StringBaseType c ) { mString.resize( n, c ); } void String::resize( std::size_t n ) { mString.resize( n ); } std::size_t String::max_size() const { return mString.max_size(); } void String::reserve( size_t res_arg ) { mString.reserve( res_arg ); } std::size_t String::capacity() const { return mString.capacity(); } String& String::assign( const String& str ) { mString.assign( str.mString ); return *this; } String& String::assign( const String& str, size_t pos, size_t n ) { mString.assign( str.mString, pos, n ); return *this; } String& String::assign( const char* s ) { String tmp( s ); mString.assign( tmp.mString ); return *this; } String& String::assign( size_t n, StringBaseType c ) { mString.assign( n, c ); return *this; } String& String::append( const String& str ) { mString.append( str.mString ); return *this; } String& String::append( const String& str, size_t pos, size_t n ) { mString.append( str.mString, pos, n ); return *this; } String& String::append( const char* s ) { String tmp( s ); mString.append( tmp.mString ); return *this; } String& String::append( size_t n, char c ) { mString.append( n, c ); return *this; } String& String::append( std::size_t n, StringBaseType c ) { mString.append( n, c ); return *this; } String& String::replace( size_t pos1, size_t n1, const String& str ) { mString.replace( pos1, n1, str.mString ); return *this; } String& String::replace( Iterator i1, Iterator i2, const String& str ) { mString.replace( i1, i2, str.mString ); return *this; } String& String::replace( size_t pos1, size_t n1, const String& str, size_t pos2, size_t n2 ) { mString.replace( pos1, n1, str.mString, pos2, n2 ); return *this; } String& String::replace( size_t pos1, size_t n1, const char* s, size_t n2 ) { String tmp( s ); mString.replace( pos1, n1, tmp.data(), n2 ); return *this; } String& String::replace( Iterator i1, Iterator i2, const char* s, size_t n2 ) { String tmp( s ); mString.replace( i1, i2, tmp.data(), n2 ); return *this; } String& String::replace( size_t pos1, size_t n1, const char* s ) { String tmp( s ); mString.replace( pos1, n1, tmp.mString ); return *this; } String& String::replace( Iterator i1, Iterator i2, const char* s ) { String tmp( s ); mString.replace( i1, i2, tmp.mString ); return *this; } String& String::replace( size_t pos1, size_t n1, size_t n2, StringBaseType c ) { mString.replace( pos1, n1, n2, (StringBaseType)c ); return *this; } String& String::replace( Iterator i1, Iterator i2, size_t n2, StringBaseType c ) { mString.replace( i1, i2, n2, (StringBaseType)c ); return *this; } std::size_t String::find( const String& str, std::size_t start ) const { return mString.find( str.mString, start ); } std::size_t String::find( const char* s, std::size_t pos ) const { return find( String( s ), pos ); } size_t String::find( const StringBaseType& c, std::size_t pos ) const { return mString.find( c, pos ); } std::size_t String::rfind( const String& str, std::size_t pos ) const { return mString.rfind( str.mString, pos ); } std::size_t String::rfind( const char* s, std::size_t pos ) const { return rfind( String( s ), pos ); } std::size_t String::rfind( const StringBaseType& c, std::size_t pos ) const { return mString.rfind( c, pos ); } std::size_t String::copy( StringBaseType* s, std::size_t n, std::size_t pos ) const { return mString.copy( s, n, pos ); } String String::substr( std::size_t pos, std::size_t n ) const { return mString.substr( pos, n ); } int String::compare( const String& str ) const { return mString.compare( str.mString ); } int String::compare( const char* s ) const { return compare( String( s ) ); } int String::compare( std::size_t pos1, std::size_t n1, const String& str ) const { return mString.compare( pos1, n1, str.mString ); } int String::compare( std::size_t pos1, std::size_t n1, const char* s ) const { return compare( pos1, n1, String( s ) ); } int String::compare( std::size_t pos1, std::size_t n1, const String& str, std::size_t pos2, std::size_t n2 ) const { return mString.compare( pos1, n1, str.mString, pos2, n2 ); } int String::compare( std::size_t pos1, std::size_t n1, const char* s, std::size_t n2 ) const { return compare( pos1, n1, String( s ), 0, n2 ); } std::size_t String::find_first_of( const String& str, std::size_t pos ) const { return mString.find_first_of( str.mString, pos ); } std::size_t String::find_first_of( const char* s, std::size_t pos ) const { return find_first_of( String( s ), pos ); } std::size_t String::find_first_of( StringBaseType c, std::size_t pos ) const { return mString.find_first_of( c, pos ); } std::size_t String::find_last_of( const String& str, std::size_t pos ) const { return mString.find_last_of( str.mString, pos ); } std::size_t String::find_last_of( const char* s, std::size_t pos ) const { return find_last_of( String( s ), pos ); } std::size_t String::find_last_of( StringBaseType c, std::size_t pos ) const { return mString.find_last_of( c, pos ); } std::size_t String::find_first_not_of( const String& str, std::size_t pos ) const { return mString.find_first_not_of( str.mString, pos ); } std::size_t String::find_first_not_of( const char* s, std::size_t pos ) const { return find_first_not_of( String( s ), pos ); } std::size_t String::find_first_not_of( StringBaseType c, std::size_t pos ) const { return mString.find_first_not_of( c, pos ); } std::size_t String::find_last_not_of( const String& str, std::size_t pos ) const { return mString.find_last_not_of( str.mString, pos ); } std::size_t String::find_last_not_of( const char* s, std::size_t pos ) const { return find_last_not_of( String( s ), pos ); } std::size_t String::find_last_not_of( StringBaseType c, std::size_t pos ) const { return mString.find_last_not_of( c, pos ); } size_t String::countChar( String::StringBaseType c ) const { return std::count( begin(), end(), c ); } String& String::padLeft( unsigned int minDigits, String::StringBaseType padChar ) { if ( mString.length() < minDigits ) { mString.insert( mString.begin(), minDigits - mString.length(), padChar ); } return *this; } bool operator==( const String& left, const String& right ) { return left.mString == right.mString; } bool operator!=( const String& left, const String& right ) { return !( left == right ); } bool operator<( const String& left, const String& right ) { return left.mString < right.mString; } bool operator>( const String& left, const String& right ) { return right < left; } bool operator<=( const String& left, const String& right ) { return !( right < left ); } bool operator>=( const String& left, const String& right ) { return !( left < right ); } String operator+( const String& left, const String& right ) { String string = left; string += right; return string; } bool String::isWholeWord( const std::string& haystack, const std::string& needle, const Int64& startPos ) { return ( 0 == startPos || !( std::isalnum( haystack[startPos - 1] ) ) ) && ( startPos + needle.size() >= haystack.size() || !( std::isalnum( haystack[startPos + needle.size()] ) ) ); } bool String::isWholeWord( const String& haystack, const String& needle, const Int64& startPos ) { return ( 0 == startPos || !( isAlphaNum( haystack[startPos - 1] ) ) ) && ( startPos + needle.size() >= haystack.size() || !( isAlphaNum( haystack[startPos + needle.size()] ) ) ); } } // namespace EE
27.533277
98
0.66581
SpartanJ
295ceda83f968b9575b83eb91a5be8d97198ebd3
781
hpp
C++
include/mariadb++/decimal.hpp
mcoffin/mariadbpp
5e509ed33e1474a5c0b91d4cd8fec0684988dc1f
[ "BSL-1.0" ]
89
2018-03-31T07:29:47.000Z
2022-03-05T01:33:58.000Z
include/mariadb++/decimal.hpp
mcoffin/mariadbpp
5e509ed33e1474a5c0b91d4cd8fec0684988dc1f
[ "BSL-1.0" ]
38
2018-06-05T01:14:46.000Z
2021-11-04T21:44:51.000Z
include/mariadb++/decimal.hpp
mcoffin/mariadbpp
5e509ed33e1474a5c0b91d4cd8fec0684988dc1f
[ "BSL-1.0" ]
57
2018-05-08T11:05:51.000Z
2022-01-12T14:14:56.000Z
// // M A R I A D B + + // // Copyright The ViaDuck Project 2016 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef _MARIADB_DECIMAL_HPP_ #define _MARIADB_DECIMAL_HPP_ #include <string> #include <mariadb++/types.hpp> #include <mariadb++/conversion_helper.hpp> namespace mariadb { class decimal { public: explicit decimal(std::string str = "") : mStr(std::move(str)) {} std::string str() const { return mStr; } f32 float32() const { return string_cast<f32>(mStr); } f64 double64() const { return string_cast<f64>(mStr); } private: std::string mStr; }; } // namespace mariadb #endif
20.025641
68
0.636364
mcoffin
29621e521890b7dcaa05484c21f225012c2c5ac8
333,875
cc
C++
src/GLC.cc
Rombur/ouranos
4337455790802b11bd520f48057ffea90d7657bc
[ "BSD-3-Clause" ]
null
null
null
src/GLC.cc
Rombur/ouranos
4337455790802b11bd520f48057ffea90d7657bc
[ "BSD-3-Clause" ]
null
null
null
src/GLC.cc
Rombur/ouranos
4337455790802b11bd520f48057ffea90d7657bc
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2013, Bruno Turcksin. * * This file is subject to the Modified BSD License and may not be distributed * without copyright and license information. Please refer to the file * license.txt for the text and further information on this license. */ #include "GLC.hh" GLC::GLC(unsigned int sn,unsigned int L_max,bool galerkin) : RTQuadrature(sn,L_max,galerkin) {} void GLC::build_octant() { std::vector<double> azimuthal_nodes((sn*(sn+2))/8); std::vector<double> azimuthal_weight((sn*(sn+2))/8); std::vector<double> cos_theta(sn/2,0.); std::vector<double> polar_weight(sn/2,0.); // Build the Chebyshev quadrature build_chebyshev_quadrature(azimuthal_nodes,azimuthal_weight); // Build the Gauss-Legendre quadruture build_gauss_legendre_quadrature(cos_theta,polar_weight); unsigned int pos(0); unsigned int offset(0); for (unsigned int i=0; i<sn/2; ++i) { const double sin_theta(std::sqrt(1.-cos_theta[i]*cos_theta[i])); for (unsigned int j=0; j<sn/2-i; ++j) { omega[pos](0) = sin_theta*cos(azimuthal_nodes[j+offset]); omega[pos](1) = sin_theta*sin(azimuthal_nodes[j+offset]); omega[pos](2) = cos_theta[i]; weight(pos) = polar_weight[i]*azimuthal_weight[j+offset]; ++pos; } offset += sn/2-i; } } void GLC::build_chebyshev_quadrature(std::vector<double> &nodes, std::vector<double> &weight) { unsigned int pos(0); for (unsigned int i=0; i<sn/2; ++i) { const double j_max(sn/2-i); for (double j=0; j<j_max; ++j) { nodes[pos] = M_PI_2*j/j_max+M_PI_4/j_max; weight[pos] = M_PI_2/j_max; ++pos; } } } void GLC::build_gauss_legendre_quadrature(std::vector<double> &nodes, std::vector<double> &weight) { switch (sn) { case 2: { nodes[0] = 0.5773502691896257645091487805019574556476017512701268760186023264839776723029333456937153955857495252252087138051355676766566483649996508262705518373647912161760310773007685273559916067003615583077550051041144223011076288835574182229739459904090157105534559538626730166621791266197964892168; weight[0] = 1.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; break; } case 4: { nodes[0] = 0.3399810435848562648026657591032446872005758697709143525929539768210200304632370344778752804355548115489602395207464932135845003241712491992776363684338328221538611182352836311104158340621521124125023821932864240034767086752629560943410821534146791671405442668508151756169732898924953195536; nodes[1] = 0.8611363115940525752239464888928095050957253796297176376157219209065294714950488657041623398844793052105769209319781763249637438391157919764084938458618855762872931327441369944290122598469710261906458681564745219362114916066097678053187180580268539141223471780870198639372247416951073770551; weight[0] = 0.6521451548625461426269360507780005927646513041661064595074706804812481325340896482780162322677418404902018960952364978455755577496740182191429757016783303751407135229556360801973666260481564013273531860737119707353160256000107787211587578617532049337456560923057986412084590467808124974086; weight[1] = 0.3478548451374538573730639492219994072353486958338935404925293195187518674659103517219837677322581595097981039047635021544244422503259817808570242983216696248592864770443639198026333739518435986726468139262880292646839743999892212788412421382467950662543439076942013587915409532191875025701; break; } case 6: { nodes[0] = 0.6612093864662645136613995950199053470064485643951700708145267058521834966071431009442864037464614564298883716392751466795573467722253804381723198010093367423918538864300079016299442625145884902455718821970386303223620117352321357022187936189069743012315558710642131016398967690135661651261150514997832; nodes[1] = 0.2386191860831969086305017216807119354186106301400213501813951645742749342756398422492244272573491316090722230970106872029554530350772051352628872175189982985139866216812636229030578298770859440976999298617585739469216136216592222334626416400139367778945327871453246721518889993399000945406150514997832; nodes[2] = 0.9324695142031520278123015544939946091347657377122898248725496165266135008442001962762887399219259850478636797265728341065879713795116384041921786180750210169211578452038930846310372961174632524612619760497437974074226320896716211721783852305051047442772222093863676553669179038880252326771150514997832; weight[0] = 0.3607615730481386075698335138377161116615218927467454822897392402371400378372617183209622019888193479431172091403707985898798902783643210707767872114085818922114502722525757771126000732368828591631602895111800517408136855470744824724861011832599314498172164024255867775267681999309503106873150514997832; weight[1] = 0.4679139345726910473898703439895509948116556057692105353116253199639142016203981270311100925847919823047662687897547971009283625541735029545935635592733866593364825926382559018030281273563502536241704619318259000997569870959005334740800746343768244318081732063691741034162617653462927888917150514997832; weight[2] = 0.1713244923791703450402961421727328935268225014840439823986354397989457605423401546479277054263886697521165220698744043091917471674621759746296492293180314484520671351091683210843717994067668872126692485569940481594293273570249840534338241823632441183746103912052391190442197035702977497812150514997832; break; } case 8: { nodes[0] = 0.1834346424956498049394761423601839806667578129129737823171884736992044742215421141160682237111233537452676587642867666089196012523876865683788569995160663568104475551617138501966385810764205532370882654749492812314961247764619363562770645716456613159405134052985058171969174306064445289638150514997832; nodes[1] = 0.5255324099163289858177390491892463490419642431203928577508570992724548207685612725239614001936319820619096829248252608507108793766638779939805395303668253631119018273032402360060717470006127901479587576756241288895336619643528330825624263470540184224603688817537938539658502113876953598879150514997832; nodes[2] = 0.7966664774136267395915539364758304368371717316159648320701702950392173056764730921471519272957259390191974534530973092653656494917010859602772562074621689676153935016290342325645582634205301545856060095727342603557415761265140428851957341933710803722783136113628137267630651413319993338002150514997832; nodes[3] = 0.960289856497536231683560868569472990428235234301452038271639777372424897743419284439438959263312268310424392817294176210238958155217128547937364220490969970043398261832663734680878126355334692786735966348087059754254760392931853386656813286884261347489628923208763998895240977248938732425615051499783203; weight[0] = 0.3626837833783619829651504492771956121941460398943305405248230675666867347239066773243660420848285095502587699262967065529258215569895173844995576007862076842778350382862546305771007553373269714714894268328780431822779077846722965535548199601402487767505928976560993309027632737537826127502150514997832; weight[1] = 0.3137066458778872873379622019866013132603289990027349376902639450749562719421734969616980762339285560494275746410778086162472468322655616056890624276469758994622503118776562559463287222021520431626467794721603822601295276898652509723185157998353156062419751736972560423953923732838789657919150514997832; weight[2] = 0.2223810344533744705443559944262408844301308700512495647259092892936168145704490408536531423771979278421592661012122181231114375798525722419381826674532090577908613289536840402789398648876004385697202157482063253247195590228631570651319965589733545440605952819880671616779621183704306688233150514997832; weight[3] = 0.1012285362903762591525313543099621901153940910516849570590036980647401787634707848602827393040450065581543893314132667077154940308923487678731973041136073584690533208824050731976306575729205467961435779467552492328730055025992954089946676810510810729468366466585774650346143712142008566866150514997832; break; } case 10: { nodes[0] = 0.1488743389816312108848260011297199846175648594206916957079892535159036173556685213711776297994636912300311608052553388261028901818643765402316761969968090913050737827720371059070942475859422743249837177174247346216914852902942929003193466659082433838094355075996833570230005003837280634351; nodes[1] = 0.4333953941292471907992659431657841622000718376562464965027015131437669890777035012251027579501177212236829350409989379472742247577232492051267741032822086200952319270933462032011328320387691584063411149801129823141488787443204324766414421576788807708483879452488118549797039287926964254222; nodes[2] = 0.6794095682990244062343273651148735757692947118348094676648171889525585753950749246150785735704803794998339020473993150608367408425766300907682741718202923543197852846977409718369143712013552962837733153108679126932544954854729341324727211680274268486617121011712030227181051010718804444161; nodes[3] = 0.8650633666889845107320966884234930485275430149653304525219597318453747551380555613567907289460457706944046310864117651686783001614934535637392729396890950011571349689893051612072435760480900979725923317923795535739290595879776956832427702236942765911483643714816923781701572597289139322313; nodes[4] = 0.9739065285171717200779640120844520534282699466923821192312120666965952032346361596257235649562685562582330425187742112150221686014344777799205409587259942436704413695764881258799146633143510758737119877875210567067452435368713683033860909388311646653581707125686970668737259229449284383797; weight[0] = 0.295524224714752870173892994651338329421046717026853601354308029755995938217152329270356595793754216722717164401252558386818490789552005826001936342494186966609562718648884168043231305061535867409083051270663865287483901746874726597515954450775158914556548308329986393605934912382356670244; weight[1] = 0.2692667193099963550912269215694693528597599384608837958005632762421534323191792767642266367092527607555958114503686983086929234693811452415564658846634423711656014432259960141729044528030344411297902977067142537534806284608399276575006911686749842814086288868533208042150419508881916391898; weight[2] = 0.2190863625159820439955349342281631924587718705226770898809565436351999106529512812426839931772021927865912168728128876347666269080669475688309211843316656677105269915322077536772652826671027878246851010208832173320064273483254756250668415885349420711613410227291565477768928313300688702802; weight[3] = 0.1494513491505805931457763396576973324025566396694273678354772687532386547266300109459472646347319519140057525610454363382344517067454976014713716011937109528798134828865118770953566439639333773939909201690204649083815618779157522578300343427785361756927642128792412282970150172590842897331; weight[4] = 0.066671344308688137593568809893331792857864834320158145128694881613412064084087101776785509685058877821090054714520419331487507126254403762139304987316994041634495363706400187011242315504393526242450629832718198718647480566044117862086478449236378557180717569208295026105115288152794421677; break; } case 12: { nodes[0] = 0.125233408511468915472441369463853129983396916305444273212921754748462056241389688742868298469491359594104598791320510973151599696644634079597205789302813634271497518773646107977862904010858517498034581635360090619153385339857922243809504545097342064247739686883799517760948964137522919201; nodes[1] = 0.3678314989981801937526915366437175612563601413354096213117998795040899295167878738787344285005465772346331263959771452151351521793274393532419916377427538287132038966416227430371828447096318893454788484182261146122752697960937162960050463962319787423676668046033025242558536362617894366679; nodes[2] = 0.5873179542866174472967024189405342803690985140480524815102708796673406993758952624357107649887482019096015599929288926772310695910886717514249918984370415196579965493152179248683469934224574654227055695910787179434915414363513919167428554596877940491139756923177447689738849120865435563147; nodes[3] = 0.7699026741943046870368938332128180759849257500189316376644190642491165431084712240164249992234219106176175404542218562070401628526535475949194203515875471151443518462689657014336785786996070706826282210248876021615678923575906254310951538410899341797549230707021382467596975621464477134163; nodes[4] = 0.9041172563704748566784658661190961925375967092132975465540757606812347957292357904869694278237332678118603828964104223488997198195429960106352490125826829199834735444861420614089910024700968257625822169344644869874616758075784239807438092064065954540171679180850205196702894963912359448494; nodes[5] = 0.981560634246719250690549090149280822960155199813731510462682121807793244318253982225257267890452235785556492372841273185245457030447077167082769674887528861125655501844826629100412021372015399969612358827884663023371873515839205303744147639383170419389543470920618543180673569225988370568; weight[0] = 0.2491470458134027850005624360429512108304609025696188313953510031162794274572880430311568006180423530648334761178771858330585110736036496880396421037700854294150273722109172825701968430164659192402161982079625520732434085776613788579662540329347837170742904111565650371846972323325015720931; weight[1] = 0.2334925365383548087608498989248780562594099721997548747305234978214920000794116752806790265085636904667387564397088688338985427884089160966197503884738075353324814517948875038881216279280304248959830878229357729079164423103001879530654707315375809270840669989018891281956753131165193423269; weight[2] = 0.203167426723065921749064455809798376506518147274590146398594565797645632510472843795144395064605232431160429336863259964961371351902101329079104201895994236856568902452607382802768524457038466812400647581340638998753052152617280593445415722327927963339557545261423500783899286052850767594; weight[3] = 0.1600783285433462263346525295433590718720117304908641779098995441579542251732911506816565526370577305270748770968128026272437638608826490446750310024340951121367986902065997927856009804637591399838724493887258633605906166774286382455298444870458396283884610940466728874776625823124924247387; weight[4] = 0.1069393259953184309602547181939962242145701734703248800051260421028189936274975765405373180963164574135763593331411441611703305169635508448480086523269196005011439044764920482935551535857607910705249218071033795470424895712830930967806467598358517298903536137451828089012822811396588037254; weight[5] = 0.0471753363865118271946159614850170603170290739948470895605053470038097211520387106708259070754145360966161016755967385796674804082391329967384636510990980857579796788584959896597568705489452579970026951919317931124539907107094212532123682663180160342232703368882666374567833050364187887189; break; } case 14: { nodes[0] = 0.1080549487073436620662446502198347476119516054742375570408210613080135290117300071301006881766893672374502026424466474638099232632258191427567218197315040975280613727384226506948794430877532150884455563913298190602048364164800243197396659071012506161702814425014635643221773541001328892761; nodes[1] = 0.3191123689278897604356718241684754668342612035338439565966501872573334405127927831649337054213464131802793151826090394496145640578710017716508863222239624560801212099312854217234880828771645863784793742391213044784251217681147835116435367778962949997448460558214759676525644841351801594858; nodes[2] = 0.5152486363581540919652907185511886623088852825693060369515047690927849518320556604520720203507728923922907932905090138695274035571340047593918260565305721101163765207320034258082303853204178402034361739066244912248016186415710382355676747454553979637438627635490786064892912451481973721288; nodes[3] = 0.6872929048116854701480198030193341375384012127471706756192664886281848961831332569473730705052118384106603630216790054729627432715418501010682124688172738908295266288544358991283933860810695937145959049268853887847137691751697848752890551614067877996475717650653147982694804026342351254071; nodes[4] = 0.8272013150697649931897947426503949610397011014750811815607090542414798308100288735704263901378895453991241406273986535333275661226737816179582645106990793680866931756477801456785985507825114729158304266968496560867214893369794439592826736432286425172143208924251106624044295037127737490111; nodes[5] = 0.9284348836635735173363911393778742644770392104098376187179624474821310935443598531114139056836575176363551261559882603607008578010786539258018984540044065049415788809817953116114771913082523534585966056536730436866908555508986983297412486132245749388483890945436457404705549484348178721002; nodes[6] = 0.9862838086968123388415972667040528016760914072392258816440708117777495541324916379106462396651517527602612562941358578689852603067447974494119727032471089820717007295567504818026168797055598944753969294261970695004471812726754299089862565428933676463914802477677291745002965827767360741735; weight[0] = 0.215263853463157790195876443316260035274997558054128800219776392543618787353994604001024441410819578237256672332436770992948165976464930189035601908050981428041757802691565082287626417365449192946281203662033345376460522564310634412912654698349487266562730897512393716549425155133887783267; weight[1] = 0.2051984637212956039659240656612180557103390613094194517168972902833671448252497203394318399918908957243692694424494287284534856133850644865918702302140316671417873329934748278391381113256848128254396760209050529765354249731237553251469192851898072394707049964721031773292256965337005468577; weight[2] = 0.1855383974779378137417165901251570362489226029373316590200349250690983502635254444255527311467122229825611215057289188990778964974252160895085525241528364360728640406002723237969714138507534560933312278904499388523844853663939226179218798247606150274514935557012909889503067356410067833406; weight[3] = 0.1572031671581935345696019386238421566056680373373233749693170438747681763696082985139580933624180762768531519990811885018854374920646576267489242910372646019870010221956474591078423228056106861169077132184669351601383774428385022658899238684439084685022864905124096570215866733146092008329; weight[4] = 0.1215185706879031846894148090724766259566693456900746722910753925431597438925264923188199062703750071489155506530592569942811574313408868548096421257144546080289185410615420786200564675456293296025406102396367179854059007550049729049892410130191072357341821083329663867464821867539341968434; weight[5] = 0.0801580871597602098056332770628543095836977853945947652013990654895714744572871698635361908191377559686225015908038847487953091382572604434376755119844740947797387723700536610577178522653954549123135546624971159464576653576521600937489354127710937535198838649279475628473516378736712929573; weight[6] = 0.0351194603317518630318328761381917806197056092771272765814998901964163228378082705376767969986464636614217324764405511345585478510619843098677334088459571639479324880874445672906474148414770675031860143060108937026176235406760523793904458974659810087587180865408885105556219147609526200925; break; } case 16: { nodes[0] = 0.0950125098376374401853193354249580631303530556890654566972198172251252982445921329847586929757833520996553912423163124483074773224487565507552825376683317590042639430675226808621968298306398385834094062354452738853673370952242716875153912021891680290435986783119557067235389351844245724875; nodes[1] = 0.2816035507792589132304605014604961064860694907705998005488347339559251794991307704414402291520401592843373670756676799439586082317318595924277817407374616529972673172532181829993235047128041390568389016122167102956500177825088396891248315076199870306732893196077699300080783278160388268526; nodes[2] = 0.4580167776572273863424194429835775735400316130355234909011547509477591742902936077354355279359880932508890488802524109819378387263875748374372456802481418656153209542267373920974363173240942222040312612330532653123205501204421111104074762176186316667057022346422007533674383870669928163176; nodes[3] = 0.6178762444026437484466717640487910189918822177656577941037973555417333177548114244569110304279585031122000569275624151076936925727848010402595876903273247179517798914362511464102876638848562701414071395222427996580524502897074237462419393840518491384428806676527323585381078172060016106792; nodes[4] = 0.7554044083550030338951011948474422683538136564575030097817571769222968610312716777206220569192494434216539226257757678979776951755606291644397833797722369885243242046906798866349950829217197588925310437168084369511369689261376271132103717538964348180234457737297258035338547704003530793529; nodes[5] = 0.8656312023878317438804678977123931323873353848475267081035114255677603977124905582571324943647723542038214283313414643013860029908661750240618421060695691357885060000446425683961857266556079460930206564550102153241869468759866739066626836770199244933157211083365506097141892552664327847109; nodes[6] = 0.9445750230732325760779884155346083450911392725910726009255536520666097889026823042195657287381583189493289311009073188864109526806102494798196007717799111788591676488419490727814170144843220494323478581257881972120927685699837677135359009690477976986581402819250512783872697998966630058366; nodes[7] = 0.9894009349916499325961541734503326274262740716576451300512239047313241372158253969385364319067981810135134358598978665082530237078791797359303822324413999695095711078087727905307199080635719546126798380959938811380435009735652992230642464639938589347925375828009051127056909219223903533179; weight[0] = 0.1894506104550684962853967232082831051469089883959029750375132452000228907691330063001339778335339522825338056432096423297083652175404007311690388189431844411595815612767118459616173498175974279783368912090196026294264906147293439818164037940618838412163450874403569646465188699526105009401; weight[1] = 0.1826034150449235888667636679692199393835562236546492824184951443794304649501111749604004251169852753140450247468164720359323414531767503677231287901939855049593288980367779339835260945463293576871039381184643035967488751413022888111613573519788630660749465009519914881317048638180707164801; weight[2] = 0.1691565193950025381893120790303599622116394734160282817450829356808036642099305309321553225420782280475616663029174311301070245194017485677345250958562776298891264277426735059304319847991653319152533740752257147529442896440995961657448930494413086332128490066363561659644970262910622840035; weight[3] = 0.1495959888165767320815017305474785489704910682078364668054219621873604040204179824517786384030592580740666978710981552017441608823947804369332735108707683892775563858478598112791002547854739387534174159632646453366676666558524965031020211316827351475733089362794299590848309953779341872602; weight[4] = 0.1246289712555338720524762821920164201448868592222026799447505904294109639214653535979691900176556843602150494472276923163298743356166759951219803027530793950381177302731194738185536484170853382049815857557341629265257965586456133775651283810710467884531826649993812111024573155970869490184; weight[5] = 0.0951585116824927848099251076022462263552635031837126581568222872296317595776819594470249573208049864890125891496209414830603481210533228470521726818393631052313960626642025883937935575862183078092754984560926424378606161380726146645506474202051743093462038386816818873937323729463744264427; weight[6] = 0.0622535239386478928628438369943776942749865083529068579013035158195357388870438190612117095368517345326677408437010587484095102733930688584375043469278735539030250578328671232854442125221885072444734914927471878528529881785852210014369332953413853555572557051831454875621973358414449964621; weight[7] = 0.0271524594117540948517805724560181035122673755667607979906103190738041136642161732493257792290308808998974259954086067547083751974232521958283764526154679805418678763257877173475328975259417904071578049294517404669732770687128254946226155762176028585659082598276568361140612201745491935876; break; } case 18: { nodes[0] = 0.0847750130417353012422618529357838117333173869060899200433645176254997906532800016378045507274396124437829275672798731227331774869591555742707869354503347804827247386813860083492943153960827370950056849139593030465987915517910181494323385414322247870220801616210167503447932213563159478785; nodes[1] = 0.2518862256915055095889728548779112301628617656596404580202710317367844935557242218070775421093862471964631424494432651250600548532785241952804861607909494284233921092736984549611801749674468819063730487487982301410941675444751653415111376578708966480260742797102399929583900718033759327209; nodes[2] = 0.4117511614628426460359317938330516370789896821200255112811488677903896731004254097743468503936510289261843214273255523679596193584878879367777174383864260484718209265892528661527036305809062189916714650340389469457285122976412592686370359591178240021067563577951998332485195378692379215131; nodes[3] = 0.5597708310739475346078715485253291369276264857707094166399869440621845282065205196590820483600443686064305949981517700730205326721345021312279007380138111436618919477997252488912228840889276391566530300511555000407709153823662506388077533588735843273742170711587833812410748841733985050272; nodes[4] = 0.6916870430603532078748910812888483894522705728175077589021626568371973689036292511338108081451326302512715434263282146016602222404375263511358081081355117023215477414027132560924872142002376157090470964638301283208172410282175605496698693378531770444657040491959385718913076247587470628082; nodes[5] = 0.8037049589725231156824174550145907971032989216119224817504280641953881054289442872282869654424117596467152955000680227836548195338155457937510726733209200198004702508792102856629906949154253696726098507976346863982112440044562546852114733109991186383542181201274590590370795593314392268347; nodes[6] = 0.8926024664975557392060605911271455154078952713522982141874663149072405824367849358306675870806031563946071223515443126239253900887518555749242643109675905854829563531948787298537904063594779599761695011435151016859951784419272996641462898499377325907533789040905081319348608175241483916026; nodes[7] = 0.9558239495713977551811958929297763099728441348113064788453876296908980712047732239578823929596339243208559482466056887788906043119002511048689169938982404066468253675430144509701567089745157575736895029193279729376434486706077259413254472259577468248101576870177750661249908727294092126311; nodes[8] = 0.9915651684209309467300160047061507702525789368454396929196756302398570935917796097517634696126012271523731072179779355873881301740594359250415621032096476004025642882577409246336921223339351585917712567917677623257005985578876226609693419436372609608161063669905409072224762588495765160794; weight[0] = 0.1691423829631435918406564701349866103341058193703438802698751915490594441915546421709209140397781535882236287858096022651991109570105409679724328782921212245564934063159034512433937773326382340213877306682008490401803026464426090514675100961891997919361138887123759382863686530866127972569; weight[1] = 0.1642764837458327229860537764659275904123389539973529532444969709116484218452080077553637577470604890284648113509545041993644726379185282871113207576557673424148421704789647486570815505590931928740872581565708587404351827700772678358448394118368041141223571486216522533602397578204727788698; weight[2] = 0.1546846751262652449254180038363747721932183962673541726666419147277828692306437303123469238522236810610823138635759151314464904508619440285864710786047569608481404523324601264735344481079235728593245977248380570057190791293991887575270796743004370720572961243853465885948926313557194625353; weight[3] = 0.1406429146706506512047313037519472280955024103309725598834561952604655869277498970306627690269133215655608200217275770685544170251231718644306129004824026118944766630591084763322327613982486061679811396793683948249135515722138610771570619097928166812612498836789391700951269947345168633319; weight[4] = 0.1225552067114784601845191268002015552281638973334390971672535136540574395994036818381972199250410149007167708455810165486796115018827133040140143404137921288394045516938052752003072949826623487274490764701140571187993024296332307194300911675059927766461093255811877510343876834731962512392; weight[5] = 0.1009420441062871655628139849248346070628011388876789016103745366556507973804985233524506387113404511235918423705414132943111061599125790124570032420205399215139736906316754374178287629629818649856828420523731488700775027353808841169146345320562519294959618701674957105726006182889016178398; weight[6] = 0.0764257302548890565291296776166365256053179062083582874495213792344100072917929793417651026783961556386755094377371250624710740108554558830513694718616741579405961948021942164059258052391191883635397652229042344876375847235881442974454263056439849686517694850815001034580970692779127113393; weight[7] = 0.0497145488949697964533349462026386416808662461289102022463043078655723432958034162950413709493755363901578109123761072246185991085606677862915057965108447312909911728438022161634770405530539475169791168653216398791251592475094524716122801457301171483506316945948812057997564235047218740689; weight[8] = 0.0216160135264833103133427102664524693876852314755899454620759901413530902373451219032513030698711967035264924116967392053551181478743988660852695341581009207010816978420860521062185588642790444835684731603087600331123347457553616726010767569443955174785105791766212787985301684570081667535; break; } case 20: { nodes[0] = 0.0765265211334973337546404093988382110047962668134975008047952443842563420483369782415451141815562156069985056463641327044405378245712628847111887172768133849480713034639232220573314968967976578624002126908309880442644981195204905648677468155050797193996060978666309220354740163118897397462; nodes[1] = 0.2277858511416450780804961953685746247430889376829274723146357392071713418635558277949521251909687080317737313156043021742990408764128121348527309473103510231012088770889101526899727869312951647279166230222083532237485779698033678575987234663095414012801053067685591624158148344361195752847; nodes[2] = 0.3737060887154195606725481770249272373957463217056827118279486135156457643730595278958956836345333789447677220885281501530593501068444273954500663893598076876632116269160694032156736748270203663186845460433681971911054257380408445871617371947413964535372457387465138670353227723685242870666; nodes[3] = 0.5108670019508270980043640509552509984254913292024268334723486198947349703907657281440316830508677791983294306884352623565652540225691147912695617386450606003834133539672964815466909956561514101091590010957544863926131866746678211741307841744076338006709425045419675774556151498035520402212; nodes[4] = 0.6360536807265150254528366962262859367433891167993684639394466225465412625854301325587031954957613065821171093777259573620410810297092032405446994739443650537331906321586488794157012474756582161960205379517855031717327595950200970542877586428866635712964405838287500018038820406993696960313; nodes[5] = 0.7463319064601507926143050703556415903107306795691764441395459060685353550381550646811041136206475206123849006516765614963114309728028906789375472400269214183897220068963288979058850209548743013321442485351491957120911186313909609633405415948092225881978601529357254454910055662779167650089; nodes[6] = 0.8391169718222188233945290617015206853296293650656373732524927255328610939993248099192293405659576492206042203530691409455744267670339561156784556927871651303614757720382422461584374656765616405754841392655432820150389419609038711147956974464600816733249843930304105365594281399220263222406; nodes[7] = 0.9122344282513259058677524412032981130491847974236917747958822191580708912087190789364447261929213873787603917546460264117368633829388364812137731072764160539290861731887984543836691517730025113125160507543614452998823427889139340036155775261652542681121293143129162250026709325798464559842; nodes[8] = 0.9639719272779137912676661311972772219120603278061888560635375938920415807843830569800181252559647156313104349159642305288604107945950841916012896973856125442362722204039344929993138383198252917335788877307216356759417337912146196947795957049391561976704802249548893795179890457356617851265; nodes[9] = 0.9931285991850949247861223884713202782226471309016558961481841312179847176277537808394494024965722092747289403472441901380148603873987776712384136792903672018478363391883474614446467923321455848994412127013518584596328653839755407926529209842664597749680291209275759831792849248136886138353; weight[0] = 0.1527533871307258506980843319550975934919486451123785972747010498175974531627377815355724878365039059354400184281378782601150279679600783005530039321842277357554019203124915100518499038184507289979208511728338097884847930234840391745787787603960313774754576020521238652300682735542710944263; weight[1] = 0.1491729864726037467878287370019694366926799040813683164962112178098444225955867806939613260352104810517091385456733800686575677792178649430941723424667532046356472774228709560694803833239714102500755019738911703717170310002053316744710774788331941474319396315320062727688974661711619397638; weight[2] = 0.1420961093183820513292983250671649330345154133920203033373670829838280874979343676169492242832005826013306857366620140189402437272742182737236253724487588567621276688265922710626976924994669598575042368845029007422245631263596983756760256569446985608014039758824276822804479323371308934112; weight[3] = 0.131688638449176626898494499748163134916110511146983526996436493708854356429480933143557975183972629245105980054636247016400316830607538704952932577689132201902021181666362879795141713525128804030525410925388026264783643215389540368786522194165102288258575353624172248387510459119776031765; weight[4] = 0.1181945319615184173123773777113822870050412195489687754468899520201747483505115163057286878258190174460626754309231659133886817937422099122542309757118513383856290919785688442004649951483215887378851802439188486330757698272816855138495620519895987774292383111032264708641859679188600095692; weight[5] = 0.1019301198172404350367501354803498761666916560233925562619716161968523220253943464753493157694798582137585903552548326593234407721971982947468111885795226965581584345480416762264760609122842382150145830070657006817955059316458539298252170005077219224922112385771403739725657450818783267313; weight[6] = 0.0832767415767047487247581432220462061001778285831632907448820607856930828940794194713751908437908393490961161119327637705991492770889027822910222187699193186160700364391275137979683413090460002469936166941844144330159650771507260085403067307251888321939680464514855705930284166808865996089; weight[7] = 0.0626720483341090635695065351870416063516010765784363640995843454379748110336656786445637660568322035126032533995920732617572100906357057485305643635379372052174565132880956643096197824783282502822044536246229255150791963516814947223936297508668215819063938781024256991067440283222516531374; weight[8] = 0.0406014298003869413310399522749321098790906399899515368176068545618322967509873282955389206230443849761898257096750750226100388420589263242455270189562763042394217695623102760213193663915194028524305033283414664156073509698450908818586062170756508088247402639869134213644998336627334563899; weight[9] = 0.017614007139152118311861962351852816362143105543336732524349326677348419259621847817403105542146097668703716227512570008208322919217356715608110009655621137928066105955538408464981760593482616529445662145250737154216181476956539350020274158495991703186071698688078395432051877120218676412; break; } case 22: { nodes[0] = 0.0697392733197222212138417961186280818222962994802314747066819465116093736326394460765183943704338544487872879297059588180033327284588814829765290589958930816827683819027975240010371384304403293006441518966800560096166835004986529663005334083512206079426025466748937247428751659198329275444; nodes[1] = 0.2078604266882212854788465339195457342156751090979336496686533043682008413147176642165988241256992139747148429164396137301032053129758462919390218859076745053871930193737381045073535779470166381394472658147242493006733457683477445454896261295813361831250794375173965387698151085021081066977; nodes[2] = 0.3419358208920842251581474204273796195591732991706873439968623836890134389071469626565583973670432969162147909503025211809029900193785632716055794963188840938139634043270075431286944340946612041356768384008154475609682832761043428877012946148985839911985951697395733918251238882032509593673; nodes[3] = 0.4693558379867570264063307109664063460953437911307365477961000296935770146856366138743971488225101492291850114525777464877792079460894977421933875122673916354296672702286403150725978368293906924393668956433358332924338310871684645721961718778180518136837252092828994117036875774977213886771; nodes[4] = 0.5876404035069115929588769276386473488776156035737178397700338213724683778280443603591601052112766026299647996928162076818592934953977649845567713747670456101265784085765574771332303586295076750983144649843287534815679394334116082332978793662422725195378553395541727144929540490203403103535; nodes[5] = 0.6944872631866827800506898357622567712673422899774351611217337753922859397742930548395941147986103530893269580282553791415127377386864375964837001478604713427001644699748896235364008190630423569709728718171119800272125723914023930698006599806723052142785709394656805128359234731615054245738; nodes[6] = 0.7878168059792081620042779554083515213881786713315631581216933977111322762527080749000515189593333852554635409093717603489873434411727051427474082796547821666156699061466115607190480689350504051328056350088958768677063039455380794936986720457271245167172434030075322346989748521086269120324; nodes[7] = 0.8658125777203001365364256370193787290847967555884461561270933692627168949415204348084801562838572452479382036173090143081908030074046245762607547256306199944486518225741918512378561665240146288140746996737110706844186863140320009722684373256354805433230750587063140255807431297485084656004; nodes[8] = 0.9269567721871740005206929392590531966353296533720519820445731915271361191115411255036937528474533582111241746101902751541475724844301811429998300361612346204486608254022635585072184423798133318382846352169533054983463056748090984096756819473655357474426076359737223149021183009650996441715; nodes[9] = 0.970060497835428727123950986765268710805968923137802969559738212336374260774842508637541354627034285352279221628282085920821738943924761292073863094841848350593733417267400496848644911329681669283632038639618777449965146871296034678966156471022308792123949727316682415329005015899062243619; nodes[10] = 0.9942945854823992920730314211612989803930541983960315349770229249666564977040799118207719257762716042709613141325979204159359222397150371909847469699343828753811533349746520941374295276631590079995018537251129473876543314456515042300019276967404080443374797633943150099536799221717383492964; weight[0] = 0.139251872855631993375410248341809957873920217457425858126197877073037712818768596298747496824058914113093167157962721105490063037735945705368013554774786449446301992859427256084690367597657268817092023841871315156005340599231398042635738899417087195975359991616234502233438058611331987745; weight[1] = 0.1365414983460151713525738312315173965863676529886861681094697349382075581645378333809906329322980338064166098619410384683080837352686179002153940492154657031000279046612887404941032702402863540489150533615329544848350259523513713718107237294224552847158550848712612535614861972824779777976; weight[2] = 0.1311735047870623707329649925303074458757418941880306531253797034245446103135289740914341000330802590357453133430374671516356351504504246601963151768842030638131958733505362877145593040145815186758260217713701867970876075860868220072903240340382067261517549996687431186964515504642502351783; weight[3] = 0.1232523768105124242855609861548144719594449990049679724284219718851355027991754540317802460344263428062179538248874191344588354067067945434706349235332478397563735704166808201424795855530810763983066837919814260363914879417089719256224363311637486835202619996443651660233049512097896196499; weight[4] = 0.1129322960805392183934006074217843191142633321209947042725975462486131309236108336596048814249688672616781549051053825552718538410303432071472857511738274194595666330339049635233207892233756723419514293771341236682855672426337138118775758049252375609197111935963957307498339896884695320756; weight[5] = 0.1004141444428809649320788378305362823508110887676996257849609143404530960742237727428606391633595573776349093540661740314708763653482563321696553170923589751450442384859766568385469374554135972424729074657466417224854304101874849974350913267934517683214118430098813097798290926305738073941; weight[6] = 0.0859416062170677274144436813727028661891444053490797832865700110482460247731261574320222498147195279420031166714886305554569826230842395878601500101939183046172720437239928289392785032135016684742279615109509348640374882414379905254219055080017839272008510689158029965727382187052179071799; weight[7] = 0.0697964684245204880949614189302176573987750529550805273863113717639464034872858940393928407934487484578347691548227869811070577976316010787643313789567315773077142560385751072667930433873534185706036938053329982020371598607210384850944336260599416771946201385073813370989287571075428730939; weight[8] = 0.0522933351526832859403120512732112561121500935692363161227100832976763423599328247819681900497942379853944769639050807493316042515144884278871959026979582690008885621444759508018223720337014558360364717123912529925149692547390811951232658701582125573521341464543076941011085466862268500532; weight[9] = 0.0337749015848141547933022468659129013491693144744746604328831945599515117530614883989149488223271820394668642314209914197484933174725421873500935790418921972193376234783246855382688816781804190261643002466304858994685158135658866855354087005529714468844343938457001078010839443093190369368; weight[10] = 0.0146279952982722006849910980471854451902119491243237309244975914201881065327481711422837741075183291745146645313623078477205144737567463695709303564356102011342773018068167026561369456028675505684034531150576801768514070973362409521530961694669031717636051398699267833817966933073957187542; break; } case 24: { nodes[0] = 0.0640568928626056260850430826247450385909991954207473934243510817897392835939101078028928761342525090823242273835115756994869112500371756765277735374378372436515481804668409746233647956019276711845937319580510697455314397618513360822351096139837050674073737720614748330506959387258141490546; nodes[1] = 0.1911188674736163091586398207570696318404051033147533561489185765880859526918717419824911112452097307135934146013595461392721542943443689459384015952736491888634107638852139839821480663334386199430823059446316182589874503457282270169922471283825305735240671464262733609193984099421023790425; nodes[2] = 0.3150426796961633743867932913198102407864782608248172687542301295298821563412434083438735095552082106072251617364030643536658931791308690387340350108862316429911426633492164449851684039691011610681827256891467485494251442677599304969349712405008328365242087382043028815467866505618650936915; nodes[3] = 0.4337935076260451384870842319133497124524215109279688080808012846567644070336309140577354304660756168836170633415002629755076381975174699198632370585889341378575229685577710965327823199539830928400741454067377627746745635503614810834602257701251585352190552527778684113280867150779959852524; nodes[4] = 0.5454214713888395356583756172183723700107839925876181754336143898305648391795708970958348674408062501977746653313676778948810297400650828985504068941547021866808914316854182653519436295728612315264181208390018064915325250677148594855874434492614547180849377989457776201862945948751249939033; nodes[5] = 0.6480936519369755692524957869107476266696582986189567802989336650244483175685397719281177703657272433990519954414744003453347794058626075519074876962003580684127104697893556584036149935275154534232685850207671594298434446955488396349075497667624732345971957611938685137884801129695447597312; nodes[6] = 0.7401241915785543642438281030999784255232924870141854568663823682719003386409229324413313561311287943298526270745398288213617461973439599491355223046073660810109486527571776420522757185953076208759863287235084614803697918067466580746275122563457575959399650481778575563118955957829855078072; nodes[7] = 0.8200019859739029219539498726697452080761264776678555872439810260013829789535545400822605211725837960666424765858309152369975956748693910897310401393217997751433463343851603146734984964062776585418194561809063555489816762580329418137298754264378316716417347949040725111554705589243953692169; nodes[8] = 0.8864155270044010342131543419821967550873330433089200403710379167756748343989591721041235019961817012535295108910075024175885664874383567124270976139069615059721185542370372118538064873468961679956606315961988138722471292807573552657465373246065266349095264290446955886450980216411579068464; nodes[9] = 0.9382745520027327585236490017087214496548196580774513466350271759095894960525356709599646415358699555094267057623515929895997449470704383076095012442349544937551633313675972481722466159802428487600880633341786121580661077521685134893546419567859808853944866142065617471979973235700469563606; nodes[10] = 0.9747285559713094981983919930081690617411830530401787198115935651071811212809802245386374742817154549827412585755713491144798180281062083910290010368962899139003272102551955405455775700818480561392470581718221938768668731616756379649281934548623489251537698395239432800432811839537332490367; nodes[11] = 0.9951872199970213601799974097007368118745976925960028774416005451142838320694577378833972893371157088623453462978965853994497237745715598401409351804188189455255566266162142239452364851560816782389596967291836243391359167365098731808888455424405665558369621091780571617968925046375452278564; weight[0] = 0.1279381953467521569740561652246953718517112395416678824212995763723475915405364024120919775667347423307078678605027534354336365506630173201256407760369958705384835762891562911475479559477218918074170718365754182501974550951925484331523758090745471505157505768499921691572488912345533434646; weight[1] = 0.1258374563468282961213753825111836887264033255813454041780915168813938726666625968820381792564211407244125340112283619371640023694354842556219623307075721695505167028832011944572440814161265754364153991752782846305315778293182951298508346824950922490384565834525141570991957343073460241123; weight[2] = 0.1216704729278033912044631534762624256070295592038057787774717545126253937177169619177578034307728419129571458407698685455109927385962626203664197972099671299080663146992247474377374928428629909818345130957392521139337403891946990001210368274459006298591636884893163373907763429334385715701; weight[3] = 0.1155056680537256013533444839067835598622703113764964705844493600886702535513185499403442576468127956599599096047023274406552399890629831050388267870570157536484442644788074009392626299528272339158271789101012709245867329169327356527615681351864802567093740938014246237226139721687821239517; weight[4] = 0.107444270115965634782577342446606222794628690134220021766541640886821866394437105980586727120915236672945076498454815476823439901643102885282830543962266851556251956709331696682107380679861280071851870323872823740641856241992841364843152888380035317713347953732555881218806283399463124951; weight[5] = 0.097618652104113888269880664464247154427918968853685944083310610022954338577591978348020039690718187482414745713364268645676642419728572107043424944384211806071042042791689191672508012725933985685876262715739521302925263010913644942223616059647289160432915821120275634713911721781926285332; weight[6] = 0.0861901615319532759171852029837426671850805882379330055884071438612868844607805312688886562972816971732787465671984327992158782827038381983594380916492525003385563462630861694048857276454548529177279961693054540872738963763950131372564031674654030737773100525128451496727198421916322556908; weight[7] = 0.0733464814110803057340336152531165181193365098484994714027024906600413884758709348323251422694445551958844309079341158927693012247996928526423877450601776912550600854944985229487704917122675007345403564777169078420148392438502785281584325129303566997853186794893103931008654660416023204965; weight[8] = 0.0592985849154367807463677585001085845412001265652134910373765512940983031775082415660683556106090092998654733952492642466909653073834070291103432919838456250955380753837859345492817299145644958959367291816621761687898337760987530926613795554356869343124524696513178977787335055019515914172; weight[9] = 0.0442774388174198061686027482113382288593128418338578967413972297210243762822664396343947170155594934934611803046066530352490769669525012630503089839091175520932522330681764807671830570648211944799908348398720715944900305481342571090714940628894962186599515560606956040614089479788668773348; weight[9] = 0.0285313886289336631813078159518782864491977979319081166016648047576440056374291434256854254228098755422737224452711633426188506404779428430343631052424983978091405445557790206527391293478807818130301641760878492678184457761229065303399826533483010921962299302202888714000294545957159715602; weight[10] = 0.0123412297999871995468056670700372915759100408913665168172873209410917255178811137917987186719204245118391668507179752021919736085531955203240536027970786521356478573832633493407323107496772162595516230980489700767963287958540270795597236457014112169997285946194632806836898378754527134097; break; } case 26: { nodes[0] = 0.0592300934293132070937185751984033607902347353890355821542722916843870361199734203384106268857877678198550897839977605940893211312251862007201662964743139324756301481912892195982893789066892077668501727246565183023470167683912835901964819243111723802266080530560715268863429511528456608972; nodes[1] = 0.1768588203568901839690577484183447499773837638012642614803476997840452800554160871176150882635941013167365708202744959998694550004143591440689658109223823333814833363006613500488034219804089956043085313307672593244991820619683160974479700166763945830792347712576243758481806136907120452111; nodes[2] = 0.2920048394859568951428353820778302968847193869629903782123441919037016245780079075823957046927731475186516575333675016156452655603060624327760291736265879327496614183587072548342413025327828925926807044511960347126277144530605381696907803913010165690487451553731188764227033028369755825397; nodes[3] = 0.4030517551234863064810773770988831036599374096993161825891411335481842170473706530497579511944073217332145833626048115202594166896953362216623012493084439301400719818993462419237555598055265066500552359628751051093244610710036551123566411327997337486804026853036011451817994135463458339414; nodes[4] = 0.5084407148245057176957030647255691753763067541857508137211004696039273949293566902340225422747508180523560338355560920198242538382205368577154842540359685834663487552211568079932227142360640203964437217620834977885105192308777576580587570483032449298051005131070768870328936909856357125245; nodes[5] = 0.6066922930176180632319787469168870544352645722659098903786433125199281268902532004658328086100107074994051207505548709554107951421702299102706760171826543087219932229299651701528697035077584074614423722463513633076260264217596052929834303042053725499795576487409601856659616299925283776288; nodes[6] = 0.6964272604199572648638139137294246978607533177908191517045574538383605469958380287959138448873265560111183664825904415904301096859815459345642820544123821160767652787788119345128407103363544900212788064484404234830098047851416535305914834349355274567460915953454254597995958626435740812166; nodes[7] = 0.7763859488206788561929672472422838669762182562551948721631684216270329286408266459694211276559880321947331236830146777075121378317233756734921217349801670699959341483437649175812707282020563564804602269295035065623060048168572792149986203225761962481461935893638218166462361049781466472392; nodes[8] = 0.8454459427884980187975070614678381615720751020913295694301764729116169146712362949501475621793890573005087988094399448245842437611729218894716028876694798580358747992579444977933157878571817628191348239138978583818763914563799675024867006656634034571261235698964935578145778744676185900694; nodes[9] = 0.9026378619843070742176655992312102513411240053729053725551656547794657991025459868576608302501374633161862556548684550121768877913416885827342704735530285332322656948573646423178879864368809120474228997718204750353235735467162212428309072444926785867382765962061588136108116882096353723225; nodes[10] = 0.9471590666617142501359152835180367545207103376843152700182677796098576444524608077707061977514090760804547054075648536551205318284570435785806606641981101181600696872540159380831180895248889525236247098129453902261654934025779156495656574891108742693060604367182906690324135596316451876881; nodes[11] = 0.978385445956470991100580354311926305446916563747318502485414861316505150745012471338934421241119597487299656422120553915250168141569953465251287328849517981986526368977442710768555706263248593255286340950676089668666289753538316177883252887412177724365323355392931555258143055708315272464; nodes[12] = 0.9958857011456169290032169593229060259568578551195596673965278094055662966332778064519065880568373619497433860389580536264100926349771431376529363031935209365974267493674891357503236273914608309254638573138860265244347715252858899544196065228140709571716291936052481805556046228223228551059; weight[0] = 0.1183214152792622765163710857004686846498902708289053180943201993796206947495628682408562140672814183273234787825834197886357855451568519644439730889565575581950194738363915787996885243299886713072366592913757326080825201666139532888237316047456833266834800671302654927834441987700256624041; weight[1] = 0.116660443485296582044662507540362213631964881221924216460162697211265665928319726512696339645002059417577132130491198043365979398112931053888563899466120738752206581979507044381283333958529627893164840198119157589733278651217928040168256042627115325735185815281630218550722407151981376664; weight[2] = 0.1133618165463196665494407184425981452459503629250152139882879298874891065645794544926484529358517517779488130046388419714856695423422987601896071601997675084092362189314972562275795927708681978063622679165438261356473187597935378119102666085193553784883076069406906095961922980572937997813; weight[3] = 0.1084718405285765906565794267279975822894382034213066445296057086094613992729055839694315915206510451876285651545394414292523525637060999068868824620566111937574879686918690959401866758780294165773572080809058466519886667115763840282466614159510168333713998138269714528574891354850316093718; weight[4] = 0.102059161094425423238414070253430792327208811354242010331873819408652668805474002570691814298168621256940499547905820693713733669756925119936029532498643645773005280968075388836849214733340735797237538857282749787253240866680895059739339850848206597144948860944301821610678798112105264289; weight[5] = 0.0942138003559141484636648830673031985491657459142072798633149023680344992834542113333221054489469876856820456772268091506224758674487734002433958053274697472378053623611470658661580345092790299164604720041477572226563496713589498577655431024871809584540061670378581364590537104089712848773; weight[6] = 0.0850458943134852392104477650799816965839203167766782761860561814199877920153055281822865776877077852435336562840014045790938140013368187723629438558404179514453904106037410086996433417759881353951842708566911789738248264444999170059544761951997607595905437459636253529235705415169607617494; weight[7] = 0.0746841497656597458870757961028483386387471618810406807790308417428196308093774629667530413927888734106508131503332029387080181581632235640686228478354335372703151647882615125453597191743420869613355495949996342326906871129103814819829686425251042756759450658140701026290373559799823095738; weight[8] = 0.0632740463295748355394536899070450957222228420126945106660958866079883917122760276618460691594827069104030137659167450964673353083811992321840191919549322458619818544233591804807618616407184549910950027370754774947586343958048973416866139641900681073727544962521126921185131814453669850056; weight[9] = 0.0509758252971478119983199007240733795258793185429719348238376859994173124500316451893646194600609291252129298233144220607665732488472621157204196169618735391689708926483995716683384815153996388610889990131035086255252039254968733557443697830577362863632960421563021271045743062766912155307; weight[10] = 0.0379623832943627639503031412488504946907704217440489576753118246528079004163358478818302859965711504322477635286967563698915389833424259469142851273061305233952191035044361335829512232566468280277802220189910167379801445814250595054692097456679252703630045879773663263909325824147695461069; weight[11] = 0.0244178510926319087896158275197884002404959261972703420520468950756917156988678896538281853633560265624400961257155257030129076271337043786757350847862624924014552536087369256260795633238900021627027055592823560557962774805006527779680074348299458662355943179946222257680639639644130566261; weight[12] = 0.010551372617343007155651187685251977904345737179694614550055427636763222293509751344444703024130644662411193024636412174983816086271485784485522326809779318331906433654578237345120433132979174302994263871481757884062851232120570444540555609350901014521533412680183441207727520390447500238; break; } case 28: { nodes[0] = 0.0550792898840342704265165273418799778507959910608336837453385872588945445343075766484127254654299797214973501164993485704945865259107641152224797745340851727729444098362912404771634064674649525260474125521731086865339753283505512764813963694189922968797760456895239360225273202840506249275; nodes[1] = 0.1645692821333807712814717778911654571457254156011681764942856266953318504756964478182443649797852074645303951256699503528162535403168329116318906470953061814295792889157304036697809579233724375392444416361380279898863615640513989010775071738790462084615855444131410701427812659781302295834; nodes[2] = 0.2720616276351780776768263561257697348247612966935229524996759265024423402409136967867889262559464621450878190174158322267817416285246941179178434297501180293817856185034182285174132828163866980124980972853569541411872396751161768838870366294744166217378726419420895528369005072806571294483; nodes[3] = 0.3762515160890787102213572095560869828716939770432229103443527203938317188429564038282773337354751187391901030087069219383448415668616179981145033921933291981851813308298032251049515760441356168452959325922741977444816982222955159441033646457048040073002637740735511487325887408215474443259; nodes[4] = 0.4758742249551182610344118476674340426272161453786559514091126929432723741989728911271411956233494800956880730588909018959626119858587598303403876707286858504187480185473499239662909264399908380008994097385690056975359986739999574264122098161407498583115401933009774181112843802496007073178; nodes[5] = 0.5697204718114017193080032833564309331247126856566472278200296776622147526372830005050836113837362104288688525687124345591908564829807618422417133123852126965343953947536179901511546353323312138892912604235102547639527555130149821851571676954293640074592568676208871014050223808550284728375; nodes[6] = 0.6566510940388649612198981765067428215696016902499299618317034974958503009836257821883556012750141759633266812348847654765747749919034676096427785841864316027701995433064194477434959039000047164401973735800144619292425241741204492247843862690874835666892627746147694471958734820331403142395; nodes[7] = 0.7356108780136317720281445102925343680160610199930418932285277763358112584693301909334084416625422220812798457503165338033625495729557455526942124372187833621184780206626201302110415595407002704664886277323548167876909385537094772385598298440503915965759041340312757288960461827327677137685; nodes[8] = 0.8056413709171791714478859554252776586717014148083116682106871617803895432608720347984010342982382161166503822885868263342914512608229393159365711094670908394472827245447032823046124953442919358038527294220222520277494561464579155540117650405324969460146113860199014546530319691730846389834; nodes[9] = 0.8658925225743950489422545673796868043418628307842263369775467330166944085651223859225731680846334294512457295614283702720652735462445667126364998736060678750879303900705298077621221740487659574664913067363751481287774770482724224224380013005876415217586496890879318900734436959386358173547; nodes[10] = 0.9156330263921320738696894233299271463524967952091215086615002446030081785070407201027981483536581724650841936777560334224184105804232255859736317379652457128255400336197037590478290114550467216506949127020511516230165674863211967967503665166677637329158508305778095277013525664775531553064; nodes[11] = 0.9542592806289381972541018397052155890034038740879516754147144486238306405958307988608163055285995376390566550796112350800872974531355128568437254619009503770514252557222214765762143395765521805790381996994718265660304960996465257653910875820600429798690778472292311111537683803262685508113; nodes[12] = 0.9813031653708727536945599458078302764441549532531383096760256814587284519217767995019269270555137827173002393457924282210800595522365399080561740360074155353426707306849001658633097605489325031631973839412334504421520829856354046781302169647511819222235730014103907269215447067366550072823; nodes[13] = 0.996442497573954449950436390483310991750130432096425904585672329490484218961068725320715406608400390653652503711909038010286254877419182616000223668599697467282958117937279359151531949693236576007431168877249563309651810507438203148982783241735303914551789349288023660544224639061915399203; weight[0] = 0.1100470130164751962823762656018176139566255294912316332786681012296124101207071574068912667778348371808465639116876143097799221490136995721591772149339017163901457021174549909428311492378682472470508127064884681247201951042616508309392337140899075152445730963494024226401194931140942261464; weight[1] = 0.108711192258294135253571519303673367875278454666043967657121170477313326383128788108242663150355703702326980895978636929100207225394016692379549311572112113816975929133758353524149574151167394223307448689718989290653409128009317870944794651253318656273924338884284339814428082880332328772; weight[2] = 0.1060557659228464179104164369968108287899229626851595168306202962859225127394103867388241424834962012273078611089630165356643962518224230315694280540385327754905964050927709674735437373673921430281088050127850325900398194119361809169745229354915045847308916075607548330499461441314977293066; weight[3] = 0.1021129675780607698142166385057121350465800023579205409339754522028463984370336406980606097027925746943639232477303452274301255506338545288545730760497913310200402063235913355826938100483558262358432441643766661940770631163686322452691764481109149838151305415994472530287051755548361486178; weight[4] = 0.0969306579979299158504890060954406017650331233564616049568762818143693940775473070964284877070366271248225365469150055769243046302695751627428760132080891413511692878889464590596416247636960742413488591651592685027717349237649464466313360943304777746358118613556882191881518442533188371539; weight[5] = 0.0905717443930328409421860313367841298228574854544848723758685338544567154667427043656621794341979617336112762226797145850693341656301048972582502244280369951465163408279215770977104341697299875916611239477887459569905716855350122817869792360294553294859181288425391637308189789118338551533; weight[6] = 0.08311341722890121839039649824433247986113441344385133299635567173254245282603428475034290016074106183190721582110448182758961851015668545232556330789802239241357405164797209987817574706943574717887036794787078903952484651603878579317689601101281354875732961005732967633359346009724909372; weight[7] = 0.0746462142345687790239318871730220380216358612063334474393200562149638420653772993487163390899446929206626014742800340474313557773987354219967921631283059231278944626695810615634564805554296020555034792138681786339026817353854132185576576429813620795997798023174945140903820464535083795739; weight[8] = 0.0652729239669995957933975667755046363536354311626070263354848181520768947389879404740072198708792920884545149688727051731125718562961812978536057905157454398989454164043749274052465276527646128670322941301944069366410855040527211787804063639624069987607870624300471466905379650370802781444; weight[9] = 0.0551073456757167454314829182269455912190579642256653884068927539729426232193425976865226242566350842778911159407323481285751451954628207112379860943874522122334081953958344789963345813599660932337760735523082694645422406312249678210893567283089505124023693090266491817675560160879300124001; weight[10] = 0.0442729347590042278395878776532073906149941127085668437151470618842241776136999314936324525093982657898966391630806038411454656313867877485596867267393719164412724125587720385268712947850530275715337299075826924485973931749375794672434013110408815445055831791609636659042424448371377106147; weight[11] = 0.0329014277823043799776308191705320459815308174200971878592616206037646366926127407234250306118424209061966208374030746358344669749731071499248738765261901035144890563785661725062921592227423799025881088291006671272863381905661283722191292720194900702228092436409813507563945950264322363595; weight[12] = 0.0211321125927712597515003809932654344513693507232856377976684902510651557535770919641524533796102866875982355090530854590783965261502353092159603508052810740300484628254004527479714623312062408619424396240100985421872614971771213040371040833049054859978993205056711318833592093577797358387; weight[13] = 0.009124282593094517738816153922951706240344491098290999416739691323899459865798129145091630865234989834113914351519333723264689555411773023921677795769166865124924070735055084695081417285192623761433213108747727148065359380741542252350005508063610915567192898268747101121764544257361500645; break; } case 30: { nodes[0] = 0.0514718425553176958330252131667225737491414536665695642551608439879647552104271090558700907072854858412170899635906782855404191129702728808523144530392232654264631183554440197685971331042752378626568812513629962453619937700252386253290921395290926823329112338749353087625023188601027243615; nodes[1] = 0.1538699136085835469637946727432559204185519712443384617189629829157871485108161013969231065107407855799011175495206195335050517724180031262813716150461397152106711242582382929789309259204408368523080956323187158211209000384086388768007877084154359661105612565474641295806464472440559613154; nodes[2] = 0.2546369261678898464398051298178051078827893033025184261642859750889635315690788029063662813842362025759552167825575814186565260370519736880659296940217016563848294644639597233539810135706072416623387710681664000432940004194824529034932403406250539644792810433629328958784451494332477054583; nodes[3] = 0.3527047255308781134710372070893738606536310080214256265941844689002694162331910786643603967521135294516581782708310394901685156456740704776387462378336778370248764415565489715116819030482217295417428858581433104226124296744773577998591079659193326273542464108763230580969296917981665174156; nodes[4] = 0.4470337695380891767806099003228540001624075938614244097544773817276153517285842070040068887212418983425726204873969880542716594095116444206717835677002037016580780829891598477448715725381293323345045040130902555490101866519971046650419764924224326816633212201649044930058674023368293351132; nodes[5] = 0.5366241481420198992641697933110727941641780069302971054527434829120149086189783786311411600971899025809158583070355739858761845812172343550873040315384070858220855183962540302102685912116363796801081936773992527348733174948535855919971047876542709809672220506816560615347724193680505741985; nodes[6] = 0.6205261829892428611404775564311892992073646928295281325950511701243353149748891177411525844553278210647878999613748066950225566277422129386014757515268748301219589621425428074045499154596463301561011956945582022888355853236866790372516286178374526608178826557093833936025078035424883646263; nodes[7] = 0.697850494793315796932292388026640068382353800653954656379722846739976721243159960695381636440089046905450694399413409299439262653367257556327268507747465382455505402810148132884185977951276051308357058023033560900977918616093704002962390229436217386154044275157574420824618816715113493662; nodes[8] = 0.7677774321048261949179773409745031316948836172329084532064943873651585701729950450526096025862396842022469759650171928816875948226836243939703216272654695319943565474651361000808890713652871397239725918099151402489406906826143599096147571851904096607035876389435365002423721669398081567035; nodes[9] = 0.8295657623827683974428981197325019164390686961703416788069529834536565065895816350829524435081401600437154545577773166228029067117655376108757692938657933972875588588430753035750878251196211271049785105014961234790324502615271519832245463976818929474148455505744353889185300283922547804327; nodes[10] = 0.8825605357920526815431164625302255900566891471464842320683260531216162626951916557292158382857321048534905810684954823827369323799717517335773194173117009889557716360377131164934368737939023640829176490254480824203121456012346356776248301887049376088129593534684417006907886351949423558037; nodes[11] = 0.926200047429274325879324277080474004086474536825329060911037133679422995651102326816772880150558862444861062983200678524892124218758889726149572883767411267691764849268455751562012519817478107567767234257447830142069313283540163718808495300695440553799649706867394194788046126026868310165; nodes[12] = 0.960021864968307512216871025581797662930359217403923399485661672424939957707068429227189443703800023782391726774543843204887357375016075797683365146653436519713798641291987457615499259982807226412282041263652034268328272781885369692496279817894819506248931391804886983156799108128654017885; nodes[13] = 0.9836681232797472099700325816056628019403178547097113635171800101511442953647910437020759716603547136805776256013720933120159978135497748147525677352954213015974652412982556869910645908793741157112662996545425630303876298216871671993299786197221740081918230048017337834905169066884026623134; nodes[14] = 0.9968934840746495402716300509186952833408820381177507901080942978023876952101637408158820195580617174125740509596381683164378022460308452558361621231532766166921355494851282927517945807022184342414275090237509023717839165888266876366861770930220851822663347709393957573720880662743214778986; weight[0] = 0.1028526528935588403412856367054150438683755570649282225863189866760162386566094293926288463218887091650381585270908625590053445978239177795052674324957515226663636160335575668878063493186261671686882624330929603473759846051176014653042963514948841143662284846586189686019067732898717610999; weight[1] = 0.1017623897484055045964289521685540446327062894871268408642609454196425136053176749454759978197839119888169338588769649886018819457568530510708281309698946557409161878458726265960868539155064191296592463121210969643911447519855356836414089532555801463383240633692238060254720273710309278594; weight[2] = 0.09959342058679526706278028210356947652986926366670427722136514618394666038990880901809229928932418470537352322959203675222348838562359611909805717191113205359606200050529286191881600521974495503495333886751349987387738584195484650506858157939249436909022105507525281502594225617635435679; weight[3] = 0.0963687371746442596394686263518098650964064614301602459129942757328375347420031237249512478181041953633430935835834288197000803895624710429536202842762901250488870051334710164978776073862861802213555661667284153848853275175069378371282386975948227219178401258277579422579433706527209170773; weight[4] = 0.0921225222377861287176327070876187671969132344182341075276750470019730470700941682984640529168119071589549493941005013696126288523763993711849560627622427833259423372559792528314656491144184492918206723466318588289468171537766902321736868038710695170271349347467111293719995726307509307221; weight[5] = 0.0868997872010829798023875307151257025767533287435453440122221298821535822542614942479550335096391053302154776019539209406619483630825958724261288707769820292356754029544772224731284821092724478146108668146057958877076425955307203698984045429359784730875551261954889612211132529185008781255; weight[6] = 0.0807558952294202153546949384605297308758928037084392998902585937060511805670263456042124027692178080807494161474009618558462327979629287536355263579083607486046073087258005032327767599146454367957342383429114331796686973491805814466967589522630590194498503665586856816498511889097848987327; weight[7] = 0.073755974737705206268243850022190734153770526037049438941269182374599399314635211710401352716638183270192254236882630110305411634059049009547550060408308856574185455956705697102430369256501782775938882963991596342322057641888187293617125274825836696511094705679642335447440091172998712161; weight[8] = 0.0659742298821804951281285151159623612374429536566603789670315160421436724660941793658199139115987374394782058082712373988450962159804762426477633200057724681034023276783098863997630509840188685006502107416150562481345502564072836657368468511680143506440358209555344453724726011362777150684; weight[9] = 0.0574931562176190664817216894020561287971206707217631345487157990032321474099543769252119996509501253555599743482798455629388790947476401681176388945597180414076148650148914716471802544005183493006885849097569780518771120020977604600370760468758771243595345183330380468307141071466423922812; weight[10] = 0.0484026728305940529029381404228075178152718091973727363451919367918054256771021527977674395635622634543746459550720073818864426087596962108853347751049536841226255113895768650124931408308265673541438713150783995016856778099928531435052518490821873280366070824842348766871244689660671750128; weight[11] = 0.0387991925696270495968019364463476920332009767663953521077327897059469709527697939190550262790351056563402285583822744188206925141861794260583939877159855035479333343357892544116326939217823908621720841252813140642531925834449431166289601458975171077789454072754464361741140858754464254102; weight[12] = 0.0287847078833233693497191796112920436395888945462874964741801226081459889400139331017302067114841715549403922622512825506642372067805104126330262627788332269001527659280415133952729921245050276746353987524891704688700239990945317117646018587537620495712268472303933921750138636771244265894; weight[13] = 0.0184664683110909591423021319120472690962065339681814033712983655145855995213079736540805190296754179556380958320461635999372661279183091178697974341059394966404363209112875218225559374625772771412570364902798372901542832626799720933912035579156051240269314197714911156876559705067118501012; weight[14] = 0.0079681924961666056154658834746736224504806965871517212294851633569200384329013332941536616922861735209846506562158816909503692653793774223661109542198348044851955603309467397707138540407696809336917394179025875658501026293415549754075585346733118577944700418384800474712363695707696266864; break; } case 32: { nodes[0] = 0.0483076656877383162348125704405021636908472517308488971677937345463685926042778777794060365911173780988289503411375793689757446357461295741679964108035347980667582792392651327368009453047606446744575790523465655622949909588624860214137051585425884056992683442137333250625173849291299678673; nodes[1] = 0.1444719615827964934851863735988106522038459913156355521379528938242184438164519731102406769974924713989580220758441301598578946580142268413547299935841673092513202403499286272686350814272974392746706128556678811982653393383080797337231702069432462445053984587997153683967433095128570624414; nodes[2] = 0.2392873622521370745446032091655015206088554219602530155470960995597029133039943915553593695844147813728958071901224632260145752503694970545640339873418480550362677768010887468668377893757173424222709744116861683634989914911762187599464033126988486345234374380695224452457957624756811128321; nodes[3] = 0.3318686022821276497799168057301879961957751368050598360182296306285376829657438169809731852312743263005943551508559377834274303920771100489026913715847854727626540340157368609696698131829681988642689780208633461925468064919389286805624602715005948661328152252049795463242055567997437182143; nodes[4] = 0.4213512761306353453641194361724264783358772886324433305416613404557190462549837315607633055675740638739884093394574651160978879545562247406839036854173715776910866941643197988581928900702286425821151586000969947406313405310082646561917980302543820974679501841964453794193724645925031841919; nodes[5] = 0.5068999089322293900237474743778212301802836995994354639743662809707712640478764442266190213124522047999876916596854537447047905434649918210338296049592120273725464263651562560829050004258268002241145951271730860506703690843719936432852920782304931272053564539127514959875734718036950073563; nodes[6] = 0.5877157572407623290407454764018268584509401154544205727031788473129228586684474311408145102018661764979429510790747919023774933113319119601088669936958908618326367715806216053155906936017362413244183150445492317940727345571648726363597097311647731726438279098059670236086983675374932643925; nodes[7] = 0.6630442669302152009751151686632383689770222859605053010170834964924461749232229404368981536611965356686820332804126742949900731319113817214392193185613161549689934301410316417342588149871686184296988807305719690974644891055567340650986465615021143958920599684258616066247948224049997371166; nodes[8] = 0.732182118740289680387426665091267146630270483506629100821139573270385253587797727611292298988652560055905228466313310601075333829094630570926240639601009902567982815376254840388565733846030450161774620971196087756484387383432502715118096615117242484073636640563609696801484680439912327302; nodes[9] = 0.7944837959679424069630972989704289020954794016388354532507582449720593922816426654241878967890821228397041480126630294067578180914548706957761322921470535094589673860419616615738928385807346185892317514562489971543238450942224396667500582904031225063621511429185567036727089257387570529468; nodes[10] = 0.849367613732569970133693004967742538954886793049759233100219598613724656141562558741881463752754991143937635778596582088915769685796612254240615386941355933272723068952531445772190363422003834495043219316062885999846179078139659341918527603834809670576387535564876596379488780285979062125; nodes[11] = 0.8963211557660521239653072437192122684789964967957595765636154129650249794910409173494503783167666654202705333374285522819507600044591355080910768854012859468015827508424619812224062460791781333400979810176198916239783226706506012473250929962326307746466256167673927887144428859779028909399; nodes[12] = 0.9349060759377396891709191348354093255286714322828372184584037398118161947182932855418880831417927728359606280450921427988850058691931014887248988124656348299653052688344696135840215712191162135178273756415771123010111796122671724143565383396162107206772781551029308751511942924942333859805; nodes[13] = 0.9647622555875064307738119281182749603888952204430187193220113218370995254867038008243801877562227002840740910741483519987441236283464394249183812395373150090695515823078220949436846111682404866338388944248976976566275875721000356873959697266702651250019105084704924793016185368873243713355; nodes[14] = 0.9856115115452683354001750446309019786323957143358063182107821705820305847193755946663846485510970266115353839862364606643634021712823093784875255943834038377710426488328772047833289470320023596895438028281274741367781028592272459887917924171204666683239464005128153533797603112851826904814; nodes[15] = 0.9972638618494815635449811286650407271385376637294611593011185457862359083917418520130456693085426416474280482200936551645510686196373231416035137741332968299789863385253514914078766236061488136738023162574655835389902337937054326098485227311719825229066712510246574949376367552421728646398; weight[0] = 0.0965400885147278005667648300635757947368606312355700687323182099577497758679466512968173871061464644599963197828969869820251559172455698832434930732077927850876632725829187045819145660710266452161095406358159608874152584850413283587913891015545638518881205600825069096855488296437485836866; weight[1] = 0.0956387200792748594190820022041311005948905081620055509529898509437067444366006256133614167190847508238474888230077112990752876436158047205555474265705582078453283640212465537132165041268773645168746774530146140911679782502276289938840330631903789120176765314495900053061764438990021439069; weight[2] = 0.0938443990808045656391802376681172600361000757462364500506275696355695118623098075097804207682530277555307864917078828352419853248607668520631751470962234105835015158485760721979732297206950719908744248285672032436598213262204039212897239890934116841559005147755270269705682414708355646603; weight[3] = 0.0911738786957638847128685771116370625448614132753900053231278739777031520613017513597426417145878622654027367650308019870251963114683369110451524174258161390823876554910693202594383388549640738095422966058367070348943662290656339592299608558384147559830707904449930677260444604329157917977; weight[4] = 0.0876520930044038111427714627518022875484497217017572223192228034747061150211380239263021665771581379364685191248848158059408000065275041643745927401342920150588893827207354226012701872322225514682178439577327346929209121046816487338309068375228210705166692551938339727096609740531893725675; weight[5] = 0.0833119242269467552221990746043486115387468839428344598401864047287594069244380966536255650452315042012372905572506028852130723585016898197140339352228963465326746426938359210160503509807644396182380868089959855742801355208471205261406307895519604387550841954817025499019984032594036141439; weight[6] = 0.078193895787070306471740918828306671039786798482159190307481553869493700115196435401943819761440851294456424770323467367505109006517482028994114252939401250416132320553639542341400437522236191275346323130525969269563653003188829786549728825182082678498917784036375053244425839341945385297; weight[7] = 0.0723457941088485062253993564784877916043369833018248707397632823511765345816800402874475958591657429073027694582930574378890633404841054620298756279975430795706338162404545590689277985270140590721779502609564199074051863640176937117952488466002340085264819537808079947788437998042296495822; weight[8] = 0.0658222227763618468376500637069387728775364473732465153710916696852412442018627316280044447764609054151761388378861151807154113495715653711918644796313239555117970398473141615070299152284100887258072240524028885129828725430021172354299810423059697133688823072212214503334259555369485963074; weight[9] = 0.0586840934785355471452836373001708867501204674575467587150032786132877518019090643743123653437052116901895704813134467814193905269714480573030647540887991405215103758723074481312705449946311993670933802369300463315125015975216910705047901943865293781921122370996257470349807212516159332678; weight[10] = 0.0509980592623761761961632446895216952601847767397628437069071236525030510385137821267442193868358292147899714519363571211100873456269865150186456681043804358654826791768545393024953758025593924464295555854744882720755747096079325496814455853004350452095212995888025282619932613606999567133; weight[11] = 0.0428358980222266806568786466061255284928108575989407395620219408911043916962572261359138025961596979511472539467367407419206021900868371610612953162236233351132214438513203223655531564777278515080476421262443325932320214191168239648611793958596884827086182431203349730049744697408543115307; weight[12] = 0.0342738629130214331026877322523727069948402029116274337814057454192310522168984446294442724624445760666244242305266023810860790282088335398182296698622433517061843276344829146573593201201081743714879684153735672789104567624853712011151505225193933019375481618760594889854480408562043658635; weight[13] = 0.0253920653092620594557525897892240292875540475469487209362512822192154788532376645960457016338988332029324531233401833547954942765653767672102838323550828207273795044402516181251040411735351747299230615776597356956641506445501689924551185923348003766988424170511157069264716719906995309826; weight[14] = 0.0162743947309056706051705622063866181795429637952095664295931749613369651752917857651844425586692833071042366002861684552859449530958901379260437604156888337987656773068694383447504913457771896770689760342192010638946676879735404121702279005140285599424477022083127753774756520463311689155; weight[15] = 0.007018610009470096600407063738853182513377220728939603232008235619215124145417868695329737690757321507793615554579059383751320420651802608450587898724334892578447981718123461786245741821450532206761048290250145550420443352452066582270484458245287741600106046589190749751963235314838079961; break; } case 34: { nodes[0] = 0.0455098219531025427490756708519301638310841501872054020244250948683604853949396379143247293329158600722260966288606559905051129464870312737640810994348369951561033839485371185684284025049349003876725668061427936709653494378506995537930887814214850230287293713342350420022497966302744749399; nodes[1] = 0.1361523572591829758944288243311178314972806177645362821058074023867090221073300705071830913804907464108716307097315791923202574611764485346173571276629558360899265950003012762162283795437199816372256368061894517774621516301589209034343863570461647783953136458901669013900489004588077886828; nodes[2] = 0.2256666916164494838686411809343472443521897210479805529953532564170051423245163118002406847520221955922807624006526995325999661887693536391162979615801244453789514592990284209501733530894414714024648473097250038482911474919053336487146051278216196284758247400756255163157825859888419082934; nodes[3] = 0.3133110813394632474583167656509779947712298655844929405715060663224950048451900046324500172712190704514973421746561934751206415712220243150265666797643183342237762871958967963923445932935132195312896812802620990385718404983563919399657074240104208523100705261852166409400331436511859095164; nodes[4] = 0.3983592777586459406314947529323515293424621296556482146472807907925530992320823506805075857454251790352002218655897685979337799990541631804910727882375303036274424530577244924274374659746651708821281108402632066580230959005782094840067824688939318086264371186469775944134747264546349672324; nodes[5] = 0.4801065451903270341941026805073971085873549489039057841341092630685086745324520515750505872204961710149893905633859586491729253762612050445484388822059374848199627719803525114167259945832631044464532172873823240828020908257051227105764434628598576957864364830776561161616492248012155400956; nodes[6] = 0.5578755006697466427364598862162745813374413780453538954770176283630205688581714754656993986055212940548797235523357173712248381684712993864956561359575801646280100744838629222558353754176672052501470176007601915387210098001027127576988214810814314579133752193300862188927390610549392835446; nodes[7] = 0.6310217270805285453177757555190082778108972540734435310451954450006933855852856170790674611582999117257570745590601584457883340232291381801973660153709181282501077017536371412307874635752046467574728697678752761497074789461660552628983928740929008471277031778852877061273029343039652387855; nodes[8] = 0.6989391132162629079330001065757771826377640314557563104234454084284884150204652831607979063354994234609228349917657871009239518503475354505283792793205770667651426761109395895894172290058464728746496283684257088326990005355033159818291283874046480005994111439498116372237868120216561991012; nodes[9] = 0.7610648766298730141874089689787368336044993667261969216800161004036133290297644873859233185656262008700614603421506276363258370768451419112239716052488440450993276886855615681765583719154013569565988430818108114175848084922937049619910511370703486080513301919538972895921804400870920502558; nodes[10] = 0.8168842279009336645915789065869732583931499109742539021193640919417407938771560791068408090233154119841870859174363751768571740686438445548777493593098203784388701302534820854281984708288404711181424596385822021185253383067884508783028864860650999089895622999920309776500075097251662111782; nodes[11] = 0.8659346383345644692635720906712998446966353017367830686595942077458842462777305207678788695553414386400742907329658283142218013534967701664906565792415465588441065392271848878371244919693439946756242748250304051737000984528979421914162390289794561935673323222677065884731453905427485450464; nodes[12] = 0.9078096777183244688008998890192874601623975728031520940414631975333852258169812932393063508298951489852431270036369247414769301689541815674523258992263579821731810350059495675161875721241787980659371130467083313608446475705578093071501514121777214152023824579770206949443089716492918525712; nodes[13] = 0.9421623974051070916316760254605729030062056923371175582135024016976182416715178180552164006070609212268839506193760352663969581958645437170869902810228140220980905290968175574400634663732506301969131871769761977076853257978311624078869301894188186673582654286403949848671113714124664424939; nodes[14] = 0.9687082625333442817646465730559935109678087453534733359920669231648669390216195091695300542379402048086910019147553140572711634370733156449931855244577939358600092663772802603156586815815332101074771544927376234925028227152795537847950115416495952926513869192058724395669966773330119029606; nodes[15] = 0.9872278164063094850497504310996849729487701486601322192344089006574902036003160910896163754117365156335343332174617289839732576235349344164770507731287181472383118356330256569645341321538544320210384018957374606113820417938777491216258268312308568212683310317542531084891553274179364926302; nodes[16] = 0.9975717537908419192433724374546292314005098826849297729399442965525721299550802652164143971150062160605512014983059883958269625291319700852091958580296946904585410771831017352358053928017651634830044706070544058300586804823137354904106223802638921228612737997102272041942967334066087055003; weight[0] = 0.0909567403302598736153376039485779599246056162602594401156125680698440288103832353984335132222316706821145615188195923116087754441876419105563104456332105550158863012853400904911424307590348013163611181929746905410226241439774532650104103470780556607518986255945545072642322517224586336727; weight[1] = 0.0902030443706407295739422420174939288410295000506306356949861227618211051224911655789111917589310374868581472334155938708372688352656715400715971190668833470617070771508272396226092309758563091715169359212459223484807407425772119604018578974062720565530423997544841513823466424674007667733; weight[2] = 0.0887018978356938692870764573648807127442830067038041309663205250402024692947640796826783063350930447945269253871098200762689240812800698590213311934928955870074094515154145824029169264596130475002568556504642608509430434084658771463037054111721158102061550100441267498636706811654396789359; weight[3] = 0.0864657397470357497842468562807475803140706909018175724950227649518068390947162580218303470617322360485753800638354102157805415852482772560304798485252104377755064959316274741011365678400704152241860796258497492575133463086274773807752879857420883711949511281374529379845547090225516683248, weight[4] = 0.0835130996998456551870202280461493905807155938575466916012288621473986780042771281302214605454989090198686430479079285180478849511626459007512855520767872945120586732576727961661179556748412500796434856544989495512003663015584504683378905063544933297706363275367419011659144450628689458376; weight[5] = 0.0798684443397718447388188328064379935505558719721942995949004704170566033391323132555627358017565286800099264353218810388170140736180348844484624253512616621591097004493049523765643168556888905279255208744210763870423054570341560457454846103466467324123389772466580137256588473887969148633; weight[6] = 0.0755619746600319312708339742284357240588192694813414625282933670744204616763580802945432976571003648185145499701127018958199369141056867671136275339761143770806856135338584737648555212928014768295101833507849058303495710508650344676365634952514922625830925621455159488529046635719692420407; weight[7] = 0.0706293758142557249990387965676853550011627204909059651184865543605639290616919628218888151376731925860077741140209298202665699757101499022801185169496554962338808647318391378492037133680344669622811059433185646758696800481722160200641027417521254494405354964894760932146937380362823204162; weight[8] = 0.0651115215540764113785444300648937735836372460728131918847517351366411585580699172705140614942878109576973436131539561549866407812949082751598025064051027873442564151448126360205455343751296123346532689008674958237088798236542077979177439323305322426647734693863613665175472872459554877961; weight[9] = 0.059054135827524493193960972350526190828486182346504483033111098940082612608650974721226546165098073510015365034168872187217036722368928581439086707238799117122004125832742432608797328432286967602774547910596410247904225276573741134880749064700592741406975228636462690854084925442824993245; weight[10] = 0.0525074145726781061682459748424675996587196809469698659248224988276657920032930557175468722742755842763401203360120985152182558978577065853021361623449831563203381324179093220639319987352680784251291137084815342389762859100289153744707373543699512555375173012298507806150276219260288493965; weight[11] = 0.045525611523353272453822563395270602998238418996315382094622278840389030550829876689026497514447484454482015836880566214679556494982969969894079983077730704222512888995940427452739649359625250267762541865796641555747788169787803629195734468655188836173619413674966205132463177812066535287; weight[12] = 0.038166593796387516321765920289976558823947006126667351613376685590403739777358568057518258407504379384226418397741859765382156795147089554915646744169655168064224422934558234603122020395493380150938009200606389608540018930655114013503731037992625591320596644996161239981444194503226128497; weight[13] = 0.0304913806384461318094423876813175910306268453895807874799121397766281958059272166710556394510676770236520186068833002928637027213071329875634360541668195784021409963172386480594092386471047193102751409712868854390098047586172376669310445210308530690628979222127842008292637188498667892346; weight[14] = 0.0225637219854949700840940887149542612490345883881878337714684558008778963333730831552394474765584807969111942518551160370747927081630815222450591836541044027348341289928582667350062931223390475488270395388628237798194218706295717072772882141368305336905522131407055191226842857844199700897; weight[15] = 0.014450162748595035415202210328746990687540433584656060141734033887568915871889084946241555914043602739923176811717063968575802759513353566393611327882986683843092699708370520654463160606685881854262172605840260461382506415545726006107036225064699981593582010571968667914561292724476765403; weight[16] = 0.0062291405559086847186064610714377861245273284298048459413498383766285440867939995875614537826999227402764393410433091165551392587866509368139286959877996451003520117996847650274381131001264048936968800841034394024893913832298059154406321866154360756368352692017290255789475172753727218118; break; } case 36: { nodes[0] = 0.0430181984737086072269689782283634345542947948060091897684001805588207970036525604226355932503748168093594546640700340295111525563329028911897433681601360869044181627247719454065479805116946621451811425216217065294083969685457200422868935431582905203854326661866765553054483284472996638251; nodes[1] = 0.128736103809384788651993388005152301177289724599373133605902891035306123614618552050473432571649983975638157374475929768808835915836608532674777418787520183865521671021139146861115173593765403331051655398639639666171155231183534281390725560419887082936588558708571533286430134103453561326; nodes[2] = 0.2135008923168655789432262289027139167584617312727681945501039103720856586002708063001410564624095062132272164943257051840374629251714695848251949537750240301411010650111173385141018398780660468815305858456827552671927982410915769851226642373749275046207162799976558220061858233707685163452; nodes[3] = 0.2966849953440282705032390477451704527002418229598253267016144527730535414480507322802385828535714728567929319958190502385103519634821455225168924653453892923977181940858186184475503116433501192294192131315582727818801267397488593978870295090628965048805503398856907043673622238723579026708; nodes[4] = 0.3776725471196892163227363896699076221661728048852878662073906701112646425313112712984893819131576117685858156740989611899774988789917773534373445836498758815175216526720714611683618709966744583738576242725956211825815543907982496825809894488243474962271340011556068684195218933552730746475; nodes[5] = 0.455863944433420267207217669327440925957842388296857472656179509478259430223059124160989063454299391403357950232199161774385637735334542208199880100054141882603345026833791846287238863103434574537317291230845651072707465215292745348911437002872653537077403196320282099195485244696700745277; nodes[6] = 0.5306802859262451616407090801215698176612228726468220764758785608457946472472640395273913643970148319513554919955673401738174464184279428749262736890756244447223392963531597620014937466188163708769589342549980060700033006218406676153427161963427544613613583247625511714551181566199154511618; nodes[7] = 0.6015676581359805350799449750735947517429541559867519099752375920264779879986079817680048133017398200262333524535829416245636990609605137530234523510082108957854782050826124561818220201451050288908439761597184630509784074266261965035005302580426037352352968020110813835732926251761413995235; nodes[8] = 0.6680012365855210620971913443409176391647024902126376534015958647639694560818337986514651325624053121366614213175490038308093688945742201149925891969195389787694469778652035563169205956524629528485837966840431901884835124272615222403897559545807523861008750158816031526785277017373510461339; nodes[9] = 0.7294891715935565820902604790061089855658430469051970041058310804221979566170802033762421397427892969641517116597408127965104135917306133244934717664936579654690586895630274412815450407905590130283622178524663015910440060530285414342036606529556297204561508544477095677422397884987998144175; nodes[10] = 0.785576230132206512827768965080292603302330505839601360648132637197556234530800177485637397604752025027083927324472058599721796518535960182511213255390087509602951089208702915744432649511101485291093984727752100935773738317940324829488009218004311721791245859566066470226289067193544158889; nodes[11] = 0.8358471669924753064188208724986006533467793793923251442188642595488473929201348104369487571297650029815842338898833586506499646258828919795313079990230570458460575932640214403994826471354892405263321251880815361615265137359904763713864006910685356643202666908818428515432225096427614189444; nodes[12] = 0.8799298008903971319824273374658355887732928420807569277678735984338167131445476406652763544278574038474305285688340566582552625650291497797303237466310235340301422749050423912499811421957669261424614763375960760187605762796257221793154760587154632100313418609513595124894615546996424959159; nodes[13] = 0.9174977745156590660758672230261563999369094678136548558519931066719313572891587693267625925199962426423144144060098601045977019704571923658622463175423343262830776951955854819853866429524563746775637522239348583893071494919841582631440526260241123702735546971434818471856556139145711125799; nodes[14] = 0.9482729843995075452024741149452278462893765253336736325502110369294206380156234409045885949981985041670325572894502942871309015478573145700889506898071017299773884302589226508864343225611209318526081472705286124746487271414908522220702300204378972383540007469176411329722780993599794698056; nodes[15] = 0.972027691049697949335605048431108327616046396265951740572812283883874430233554000137103024630593305989570070380666993470933277206836267670147677737467006419796571763104461691773529817861182745313533380520457066543005819764959182819046695561260902015911699906201749093546398542708982985595; nodes[16] = 0.9885864789022122380733951078771074466071625200652870557881915271345414069158205223748385901289387396661987114680831372707844908508005437128667611289793080810615327620051160479832945910313769176545733764162016953668299316163620429059842527204437977129585578605191153794597467329039251170951; nodes[17] = 0.9978304624840858361988283455807502386498164623966313125905411677997313605670588974595733156496611358025843013833092029581538461275116766439499686870566709128769094917521270961279491962343517798303192993049434061580308738988791580963092083798047495117386896776189100500967168286076195483592; weight[0] = 0.0859832756703947474900851747905265541600549156034958522907520701334269219259454985740935601391647868886347499176352850183377229381328679235373397113377036108801987509830239464462679016813895095209927382094635748034851253597965507734471845234745618556480733569914364445104148396408290357606; weight[1] = 0.0853466857393386274918505430764897709987865854972912941284849709033699606923643584495079422491248784638788708201422634846432027980201526776635248801278203163605081248788080857614381653770809673649995313752445532543951348285696058006612686268589027263660939033656157260805672413441619459714; weight[2] = 0.0840782189796619349334576242915958212039359139576060455039823714786119490086983892036661490773009235216345020346307175052804677799289202482812576973513970970077316072964011434776964199575895692366348078989556313076461764727408405937015036830899375913576180245531662197278257931243801037797; weight[3] = 0.0821872667043397095172234735449423028649630729346221209808090284142439373125827008003062129626542446374902505700292435573240684744450741542752298320944261338364141957015673783780818030498390769026504101112723148561187480573418882254755175328843544630452653731085711442482092205250745801269; weight[4] = 0.0796878289120716019087246655018639073275341575147260201875516705109826217637261188443506338482291482541756932681862457390824231587216783455201108873687325710852988181556915976037987209640544936942105420167995430751580284138874810181965093068315418016624785082921227679647992945932241626138; weight[5] = 0.07659841064587067452875773372150164172792755683199183378203784650532938939187957967624534105253696671914084982095940770035320407380888557440741166051390163543282000720465734182150068443242013201755720067736567199459928984957513778079669234507456397624106996135636497592949296777918919516; weight[6] = 0.0729418850056530613538733769412742182869469526169905444028124149550841940689437932435635389178379406543223071825591833710450401858365844912383888092125183592606781779179431605695410104634999102458959465441036418724514139113569044565146054256553859129524098849803437107643142577729400444866; weight[7] = 0.0687453238357364426136896393636132083417307646421384912295507261856561789084517417497612901652932499019092020521859309247470402967390359701905800364165648540525598924648649118910204273364694712670656501323844527603671885387309785978428943937364290263451859707851721129835309397112260063735; weight[8] = 0.0640397973550154895563847986258563397460214705508407249274347431573196041768986842235462360964290893536145077012161540550672473456039784053557467582668822605571719193912857003258577487117921905971333872239967666101674226542094583863709330759686500727800692364936837868301402497831311851378; weight[9] = 0.0588601442453248173096753998189200359427540957825592892456530514427578549921127550648082064448510908219262010475445596681956351650487931506381786315658595562302547428096779070866817319995018501008797736420447381877468436535245185244839605066619373399573705672263179392766960574037191809527; weight[10] = 0.0532447139777599190920256282862196496889296110589429206872737676710698746217667209520055611474839962222607235569114686669886792192854633495356388995521975498069946717436594822855587157998313614712070670562208855791127557797137379469791984007449638716748600910745035893853408660213692117007; weight[11] = 0.047235083490265978416616829616674832073151787434369630264018379347917683174976247659980714497479865666448893948613822367557604309090152543022687405304440058106580779879137182101979508667602017999080075133294761815134664664750283615231754402109680427773267201400003642371778098461735575453; weight[12] = 0.0408757509236448954741145451432631915479370611190781462078432938890981916475966573584384178369372636148185447960218777460021686422264753341646465440823634083454111905762960940372811828143873063156983521710212200344038230964669221999826528241417048343882430199940359482732612852317005116477; weight[13] = 0.0342138107703072299212450615627145540700969113267764835297438458444983145731547972563490446401011887011144457042893768191644202515131799267052768730815841564434097916636996855507850216122834599443477912039500686944734011368006834088725498987669341908838958577431798921600759819533520138798; weight[14] = 0.027298621498568779094417180867983357990456828142050855355414144958485194405730384902084518919498262907300435065105212713205007508333160578244023014741724043973307959512669125223597632879679760819264213502121129225033046032222480617192326344412359393632519017855069318269023634951270974773; weight[15] = 0.0201815152977354715320989289582211274195865102408615652505493691740123099179142538770330753987455906453351837072884510360950506519394335162838677134346704474894684256981118672818142793591580260128646632485774062426857271305383716321933656182351858923511320562754892536747833113712820195039; weight[16] = 0.0129159472840655744045034114977916491919612128514796718500303920436209214297608153678848815892022869866990853985347380194938892221718134354279766454316006462476872423163543325820281344574022971170053578980846593713706038861508690729641627862234478690767089143111746152813951832626369710081; weight[17] = 0.0055657196642450453612559843905478374172245918941785101760579133845148979874965027963746750171292260392955534081460616074171279791543503755081140001156132948835037018061510575750709104360185993725124919550989803156506065336232873490929203051294587538637390541937489122683507770673132663416; break; } case 38: { nodes[0] = 0.0407851479045782399133164323297849207847736426836548116935974778259399967500690234895840618226155549129982854246738099611005359242656183153838695925419452080192437811263762783354064004445193580227878614318228079570045169664314968653199288402999007588626846782058142896450158433447973411187; nodes[1] = 0.1220840253378674198696123813294071165681181414993000088037745510996371151988704184765198202152345198321107166720120243741300167333845833449907982822624803279837953727821297837889506000500303453310791075437676709688330481606243313818985592147886677668773080746844239965138506952948856199054; nodes[2] = 0.2025704538921167032039777815146070573716550857537035172476667223490339036721621204965748718161445949113059118525859803936104227502277212937134194797556417330685022119243273315288475938204688108784216005834869729646146426140633473297334676265354375204786107885421930876335550560450972366973; nodes[3] = 0.2817088097901652613601140714187000767696705087836113318001762860743828847967416310255205783210049184802332234316698982966878214098449129288502905155960319235238565610517391166235547768124067909090414763144241011015120772483977441270806799938626957755120370630239713985339958445721475425544; nodes[4] = 0.3589724404794350132567176214565342917960629492113680737882096505226856372950114846256228692931698202230032318149653597681224694380299421577213105909280805536777850171207047588665546299869396642035261379507356236276491568465091487834195315626322256288742402773557955735042621908064895294376; nodes[5] = 0.4338471694323764843732561625178422040059238004068391237024189549655447501756443340886221017352181450737346761495202103101124890015210405179581153765159264018265098478567691805458602219124508060255912726819551452003065240772070970188400947067552968356403694102491207551298503761679095308537; nodes[6] = 0.5058347179279311032405337164676520027938465506371876450162200589921066279969108172516585233126210102217893793906570508845860452347409668674588055077218404869186661726725233650830528964132197007918911851187547171925324953866585872649953413664141556045049353750454386973289123112584375311236; nodes[7] = 0.5744560210478070811329275009244725102101995978537987646070776761062170917073556280472831223131408467211929687094339140903376225936200840935951571640768093557916587327569398694180617494762018435653471717165117294030495243347451948948984143449278531636179743160889224590428116348227044300456; nodes[8] = 0.639254415829681707180344869500260271701170395409661428896235593234244406631228285735924213302220689142928310221708892426240194131650007106103784965609805414071205250704242194333863105490621476637666406041089480907126761924264984402713927100908446183691780794609447010966117400943739783564; nodes[9] = 0.6997986803791843559128258406274158756382070153005904377307189524552369012017930889465787890405831923501718813010589471976916292344406485804974209483619274761169785854755095047495024377388741046387382871262740239416532907693064267655217511941346188761060532558733770532639809407840182454675; nodes[10] = 0.7556859037539706807377380967793874135038375707467039273016863591611774085436485969231964823668859363213992672975804110276559883042509286180793938071391276515073440705873517827696358700833403561889774053456889616865698029576547703182898330115941116712572328468504380236961834675408485802977; nodes[11] = 0.8065441676053168155515653759796983257317729813293196212055083881195450217787814964516200795367191527198723456298313600249159061528930942021458736383193880857964585202384306931083201491883854178111128926523776290089028309030354365971636795928889003653854292734076115200625666140910098939074; nodes[12] = 0.8520350219323621888596497112472762804403850373276309688815571124383804083392254877059434483068283317564991107849310396210048472405159217954457848417087274293137533062194580817486159144180019880052484696806361869162942910520069978705215175438788205980471993438450020989017783271850103085838; nodes[13] = 0.8918557390046322167949370319739175115798990532345153609620889010584017773319308370238200050026033408753172652311921133220895898046830529595626756202372111753288192778392092151651493504942172056387598979906653191328961787346731272543949462066965299852050597409548020661015861520405910674363; nodes[14] = 0.9257413320485843968251095622130509114809178764811055207211366608436060384722040860628881821769857857816258758643260333977025646461715101248986753612832503525667338006508669841539136082907018835101525377527328199785953835527471621854586778688579099414098311456904950995812321333336325010196; nodes[15] = 0.953466330933529595670542153117441217385778970722928709744032785998659968545218453659240130233582534774898151891733479282535753978148461113540586642158959960576450194110227244917027542615969931264642558826861849879462445562515021686850000796728098509715242914037584352087294029733065323037; nodes[16] = 0.9748463285901535076408855409463886425919753587660735159915535795213615418522097861453793631489077475879942531686312828815850606606723934989449712098819567832006321696976642960827145823863021255140243314880501660378006503263873026307903475085446191459107418015415582384949678647211551489721; nodes[17] = 0.9897394542663855719444258911056793473243812469080222063838314990738588956493016881458138665353391265218854757816642382229846984673611790015352422220966822016772001723861780871441428722351400666426728990571430880333042570017721499615526670791599829502155990828063146809349579608909666722819; nodes[18] = 0.9980499305356876198128470765515809974904653702745880901607443940139348595515166700882640925126086848353532659625191604229888026859390699340181237848617802304847467284152010720002778119121338543224871675570944920093329339106385213311051213023875110360435233042859503016171489774735327253913; weight[0] = 0.0815250292803857866992187698858300556016426514704967984381025969810613740455260134645356096536517518325244361399729923311904673697738497632791280686590776524802100556645013968622133901828861830588920043407937193348376699381459622360465391802375859166845903438152394943202482472881261699113; weight[1] = 0.0809824937705971006232694699490581419365151697840887541415660285674956476215695785864793808704972846251788446435353953176505178426035265559751550846421476416169233449477753175084271510914344979033709739945310763790096212992182208403080387805470945324269604464850156957757495756055449144869; weight[2] = 0.0799010332435278215860276839251856965503012395896815789806037026530647898028063520696585769535689677273615872263873136546515624619309854098535412213272555240625726511680830810208718753361120979994818851444944964343074406819457912869758991425759400464531654245687921069430224893959510594598; weight[3] = 0.0782878446582109480753754033357362625649037448578418255747512468314395956363700243899345133373081941043752346535878112387134516911784219807248788575348786775507898114606646469955610249975784297935428504952097828452100972246117164229064069396142651867033262803079038570386555694973213399723; weight[4] = 0.0761536635484463960659935411044725279963452188325545187924837214075260627232247752887879960236912058244239555368883758246887219201371133894466075317928886878937835502501598866640144833996113467065040414545592484484725686152297148928561507352551801369534930857590395022143830630811241716382; weight[5] = 0.0735126925847434571452064448483364785766371950924317553565023047410037235764841445499973456651930542908262890980469082789481928899279163455495331634594354423192329750774832967029084938471290754131950960415755233003457883401863499264938410488981586634357532929983826469104923479628263833636; weight[6] = 0.0703825070668989547392829675936588408392617017624612064593790162511652948771592891420122791755335256039984089362197276103787155799589517329558684770065751800010578753242876700107932631350643767980307607584493255107133975228023439320760495433459793595419878151331387748604300512758679658324; weight[7] = 0.0667839379791404119350461515290192599559521560352792417304765874875873044895440701723717442150901476701992887317224387207634363837870245561489064093030959290790598963573551548611738612767184844687526424615038410883158829307069383788854721742760579986835960537437343127750309764533372389439; weight[8] = 0.062740933392133054052969671525137064320903888996908758341130045033623304360526890450524386060542716274008516662038236978034576185157496814877229676911857723022029061910569412335798218973282156795767430863487090503449945337536047722681226123929150399964061839874038256065424701175918133619; weight[9] = 0.0582803991469972060223058682581400559151277021585559865019694201419249310092343052893294192614494140612048114856231810786473477278151405271858774381466042551287383378088942209363375057258358888109873139017773784713566233596718500056352102737238614848035983765660950868029140557678734648177; weight[10] = 0.0534320199103323199737569906312487560769153103387560856157033624341860890809433362639143132430046503379780386666975110603367385767046278955057530196625536562332663817864694446756936403886853697457347053713300848533170674877322383917394337603440034632431740501270145095664173870846561117676; weight[11] = 0.0482280618607586833743521799114202241893610027852761322899681710714497610172107119291143825298380606089066628299979431843068687200232065289699547629750738832192672668178171509074765376160096695580810069698162118079864065908373592276573417691649941996475362716395530142424781729518621544377; weight[12] = 0.0427031585046744342358784343588077086784174845681521442437553170825466505209371500368711762300453975897425948199419955122558198493635753947672413666610900950393755295386310821262593521733322961267087351170015779942532956120884108929033007549189500823642849239533357026432411955679567873313; weight[13] = 0.0368940815940247381649401623368149503473561172405834899659696121096898744871711286459900460157291145216062505058477663220854691393388639868688717635220474925745427880630786187655722217268331786364881825759288893230702114406475988534467217094542045343619341603030012335910066839919847890729; weight[14] = 0.0308395005451750546587310863133086889204118954971985188475210983146172629442106915027195768158698845242834936493338171678876103420024352767098623527723046311559890482314561119711064789018636247802603353481370263850199448323301030794657237040723695287822924416856219458417671620291888969747; weight[15] = 0.0245797397382323758952012054467062874459591622272020466960350763394232174904243295613159849725468199211673059421295947649801723413553742837020126012482558139504467446253212619599762831188845765493475595690327301368026056949641868550630687397580589545357543799768967836664997455459335397226; weight[16] = 0.0181565777096132368988761257547822022629123390397971224250378537886392975823629866757233995037270996657171749545316753138174632330262225786295418212901226947173848710192693202350723300636564493055184136365043339417877735399402103640325219400302485863733560580436537925684102057652311333652; weight[17] = 0.0116134447164686741776683012004374273572367478601123296850107011099528374550670585784366381102359245004577044709616421728412808931702179272952910329600397172805136223339271978309539671806625614525221870194082510266081814959627855375406675177560920721008094852448488540407921315418297500643; weight[18] = 0.0050028807496393456758995420918993704638392718626217059140341376536029812792271634022832313624767863160394010465356734678215868527450490515547453501246953026748161876142557276297899208644197360968138749364594122151354780554421711532863861620978048529403252697746944301330362380158277935132; break; } case 40: { nodes[0] = 0.0387724175060508219331934440246232946793646343831415991686371814380065750009207562086042738063514843900740720936834079453973320780490382668951180110474166261315839949200261083848853078015066473021563104420605364428655010372310398407500879846856979806260346749479540591420129798011298065484; nodes[1] = 0.1160840706752552084834512844080241137687285308542159490302974321615791639478671735153771134610938427797368020682710027396461829046568432662618737006287454239959800560578326496481977855895512739168365424763715320662091420043156944036815055875474248335752944260913450868338578230277431777387; nodes[2] = 0.1926975807013710997155168520651498948140920211052088748854675922365027216636434115499246207426015185563112120961525336504077458842983031778352374311727193681144603579129906564382192316000401630378570619300482412127974630499268753296353365529455146942439026462378605440393133368225933231088; nodes[3] = 0.2681521850072536811411843448085961834248043732362469814572599748738211931937342243521903751985304821055031157584806628770005379355217212805218597032571254495248052537633074026824585230743483711732922210089657290826844886857884650988973694198564044157382475041133710327288151852192158413686; nodes[4] = 0.3419940908257584730074924811791943100669536200273257964634095840981437089421208833231954666480002650097183512549316033554548093676097147355543572604795027768133252496293583747891038677108031494713595712077624453403526314734435698830600148345447049960987314133543630375947983206850953614132; nodes[5] = 0.4137792043716050015248797458037136829740996240529182382944022510686426636092207314378360588714878735765828127432199828129608545523475114606982436766403272546898005087790309644334083104831779150178459547626638838369472907863017682248906440874709098926360321425679413446753478406394482180873; nodes[6] = 0.4830758016861787129085665742448230045990223955331141007893352432259434427419068592458751048211574786071188212091703304662875098865374155618712754198783099567090368339220383890885629682728508140400454317870914643586041435020748040629191345043187602420027006076648683844335345133797488941688; nodes[7] = 0.5494671250951282020759313055295179702339751015956514649025654717218557451134835904717632922456344632846815618417771097999922463920880726568452792558764796457354274969859701080671040451235825432190694002842823321471540545365828260670558725088304365187801682128018559512787383396362830814084; nodes[8] = 0.6125538896679802379526124502306948773801237816831496111353475625301909724244382352201219596194301085688296276657507955354564859154383949632349615610178463302465450625677437426322335579261713164614566337945281016700891217126889632422276694807232959758548054946242419970158274843546562896128; nodes[9] = 0.6719566846141795483793545149614941099703259813838511500710929689866624759566197659460319449414247484143693664846640249410433967574668427681724556072645888899902999109957289396311828373868864257543565675491155033278241973768423824379629810889131235474158639425957943751802579105358101437125; nodes[10] = 0.727318255189927103280996451754930548557378673533328137547551244185929114646088472607541106024961037177437172068325115132068030798200777855917892385144259763685649900007689806111208247139066557942574988847129347848369365946124318727793645614045713857098889926516730480715517860352272154847; nodes[11] = 0.7783056514265193876949715455064948480206913161268917942453420606293119419161805714412000916455954100951830053795233247507698641970544722847159856321506153015059764239421714518116481182392648638895672746573008812783918160973568965931102441772747870273162552580798659655085131520530622370713; nodes[12] = 0.8246122308333116631963202306660987739072403842429877996917909631528071718426957244324495250320997840421522989385573064249180956274746679787751740619987083687806593741767318070790340984289743718842568646039284940001952390909834861877921413925776493604508600529889546834570106784082910700988; nodes[13] = 0.8659595032122595038207818083546199635705465530111016494599402548066820788470825553009165622169194663154203350066402206491680303142899174610003067614032101532412431885409274954692449165276705619542257290246709023222657528554547845627638450858756755504332449006069263907210308491862169777414; nodes[14] = 0.9020988069688742967282533308684931035844880810576694677252601115403701814009847073958939877340805982026522923282235552226594521048839206076272888040152334107810206777814359785563804695611048738682633185711383914425119106257784410320846069028896142336651718457065337341409725046171512118291; nodes[15] = 0.9328128082786765333608521668452057164347535752826924492293430154156405239233462295338546873417845462223664550349244297500644930141092943489617002184369950518025928004051708853476015870934550935048098618114762988723507356945934171527545038397147168708240644635119160300580550761333724406468; nodes[16] = 0.9579168192137916558045409994527592850948834906027470315690538435817583556234837293204206116356370210419616302479734544749032901632128586811804671597294182522422573335355602167071250747800131501787457523846378232947004192597257717898484701968473491747310048787832008827262026358023658685519; nodes[17] = 0.9772599499837742626633702837129038069786679320379860964292620160110632144442144571876893008887298586723063430725290153090130600267046997364560203029836522187505100184095156544802898022620218089131682490764138062866156210804450733569425565477481658702656993261965133267818736936372009339002; nodes[18] = 0.9907262386994570064530543522213721549622220813510865378830762443040789032385445966291105059825021678098495682760597336211971546432886185883314956337485516864330212694006044030016395477282616785959093287915090727554052676614935503968760713699338471104841229808231231300279920758541233926572; nodes[19] = 0.998237709710559200349622702420586492335770381595045906603336117096838863019727805077886187731208284346697196268812609614867897550598426581197494366244590175438859840302626210784505751330455981422943288946136895214190796691246391128558183957283158133521955987932442044279216204993487154415; weight[0] = 0.0775059479784248112637239629583263269636686527881064357329542738540721327490710463728207484145373962887436020545761738921291514892183177650943670333701710492145517561609565879019048590777336262752626659343741118947295588687483940522813185199346231557824654943279937427947959503155501733276; weight[1] = 0.0770398181642479655883075342838102485244397541639404154891808924325416430904644372005083887322608362903719810482581464584425749029421246936054323976708766641864462820632748839023735155531955594595624264541202634262497035522823610686860379008884163905995163674516796003369858129155848786735; weight[2] = 0.0761103619006262423715580759224948230125595538450711070541824590292992406358325830853096257288652290722381067507981453519653384448295422459693863766623883369931590683237664957042644543195791144812142975659714994431551684800631897051747400435338341698314072605681632019622102168381496135797; weight[3] = 0.0747231690579682642001893362613246731912029344203598217313408914176534030327235554391483060090357061123651763504828222270782504041222753700502530256248764292617890618520298055757846731067220304043226423856680076695981595122050066936262970600012168849513660071239360683891775797954808662865; weight[4] = 0.0728865823958040590605106834425178358575590809857986304762548168329905557307434021897087817499474010150711566973900741006277024394830098459453114877678358547339440916628678814139354850157729660132068304118266007106425144524984015472075750108305827449190473650123974793810519726224099665328; weight[5] = 0.0706116473912867796954836308552868323595591039955860973106842689626636973119484777546001360415957850115839854176227675444590431110265739438134882682592918681428972702390481056800325780044782899635655158117247989494730099992028098515995182750146090821782961652947062014758801588198414463575; weight[6] = 0.0679120458152339038256901082319239859841972383792859547178962035930407816268793736830270188967206193503659017719171556397127170324170011216027485941896331338383815434313574999627842430748777733465312334103553641591437383802077108360176375820145271240034222035941094346054559446168253020807; weight[7] = 0.0648040134566010380745545295667527300326929642084889063631952442712839729256856260330232673495969761124583914201136223518871448462171110590846049476429186646143893760146730392408234568341346973094152183369218304972998024647744482544092081354847498780568423247107107517630478033217242713221; weight[8] = 0.0613062424929289391665379964083985959025937635111743219868976386868681558231174593689294998210761432516547923248697663634262020275011284358867949576689946895863391322455596066523109497906111895893300717793523281690563949601207928596295450068814425875865415874881670341955185776937606932062; weight[9] = 0.0574397690993915513666177309104259856001048358544536265066812669255483617113900167538567628153734868434070562975343108435753716591136668138275220547460739471117127381229571514505485837427778901431812332083759632834062478515016763836901833444375957631807554228042514199455651318381657872142; weight[10] = 0.0532278469839368243549964797722605045553211718220064507643608805265208150218710747924450309406542661751574702368152865626280356084026424470377628100803115693301882887017455344911777116750039749947422856274116427842870670324820279083510029505793950167858665261455645262068985433489616312817; weight[11] = 0.0486958076350722320614341604481463880678430273771197751406460512751784284174808750208128122195961932521294700951438164450558828277850574172196016748343854646875133548519265315884526526598412245603258089957074159003231388863326378596959724322194314073833984590673464009665512891998034548681; weight[12] = 0.0438709081856732719916746860417154958110068371702368897585259086498017858059179222889622076955395113422348049439420250186330018011748657798222357560021465406763577402860254582824445733276252440335335228696959221390613083127129280743050586200233945151405499415451921282671680138516266351415; weight[13] = 0.03878216797447201763997203129044616225345921123202585783726688891953873014369075381611079968542272342157605985360741093798968470947871456810840101268212121615021568112872518355422527058835868625967630890341840838150748216476340981755074232397130157642952378118442875393211789135177811992; weight[14] = 0.0334601952825478473926781830864108489772417866537643504131911766990523997712651522643002126070942115917774138149374820703297319508823171321141404089094487306445488163125383834019822228131710709026161924697765091179891329527825315219214186608205214626731156088429271481031366697909138118912; weight[15] = 0.0279370069800234010984891575077210773025508620507663984480859164503748994816909394417083482090641572364449221131063020677752280888152410289880637881847530339531994738781971088096681645225136240520035464630354733355403412196748369464941907167878991450199548040499292331856558342820463318698; weight[16] = 0.0222458491941669572615043241842085732070331966793544278807342400056913115201579749942482145193131990379745766106547158015520888460807841783558897342985822413086498109035683778579113762557377130835698446425049894843265391398337299112210435597834436220126731549840762516529642686322264678759; weight[17] = 0.0164210583819078887128634848823639272923422933469577619719039155135904393012102736686553722623838835090674084813662067697713521648938843125622915310380280523075520125817163834224234438855053022716195744185744685832181518445388622299847024421956457272046087186376406735415196478803541299741; weight[18] = 0.0104982845311528136147421710672796523767926213157967797156751236116252988969108307005368304740322441458709767603875595729724617702108542404006228599466228502384496773562149845593713443184160690657547364709584409390648455906754309423791758497005415246367622050095385595086131913536958600647; weight[19] = 0.004521277098533191258471732878185332727831110199705990700341942342663947001948225131287635827890030939506746956476209979989035875404887600511081280420539663019714823882850996547580441433943953790566043840225961131927694334598813535774631564896828221623886602157241389785685501525778663856; break; } case 42: { nodes[0] = 0.036948943165351775813095980037559426641708452249222531349645010606524170696083857530217773875697544219694960358827157795471132563885638090996704528323264466430993885971645993259311353863621242990960854011741930567893057625795921707578222152604375823902628714171641992059378640522132965463; nodes[1] = 0.1106450272085198683491225450026410048673440244836308074034761448800633088328708252925406909348536470975394047810493795607933982991675485254062085364712614493975058077444889113202216338127409940795075581361747411764977429438030978771211075608192492175399458405070664490227272083047479140831; nodes[2] = 0.1837368065648545508527556393807429409333239616225151003544115713532119737115205884666688346120040683587485515502434099513905982365075328094284163318534074156954504327249613964978502529944455656974572819741574306165805688633895786370455028365652161108585011150413100482734359671395449391652; nodes[3] = 0.2558250793428790839664147910187084487687664564654009546606981667076479754905940387809403218356086491388635239730022604028101814168034750134378731822234789725064637076233061000062961948403199685206769512854122070990448444727587129940320225402079426863042413866441830444040015202877990064253; nodes[4] = 0.3265161244654115121971565893754656690584114704985845239381966338134362139332000229756212972273297584732422217294902353530370529792888318309563277830793889597245968568128861217747709146519523881315913298929533027154882041645425089602576946388645348734406865877350430850116671360731095591965; nodes[5] = 0.3954238520429750576770939545943719807991785764863534882619755104382334752176817473380218854752843478541640246982206133400652666670433866327539047219629229565365199399485026266154037149637154185901381913850110454567526891876512028205720552029131462465554252850032581601039842417465882350721; nodes[6] = 0.4621719120704219297590750299306359851096649084736086310928303621397541386322989729573907095723929775694802205247147682853041958036636649879478836587413518962497030690970774680230652869261455101766375654648648289345183400406633166430801677215776578522481257390007739453133309102060200838203; nodes[7] = 0.5263957499311922875928675587919014614357397649299099289284323511786528423308660773156148870198798417096461795247813228843652707336708539342621039641144050601086359733963698747743538893123674171845936936237545790313853312190650623581150526314537166204558198675677587501899138444837464883517; nodes[8] = 0.5877445974851093228407113454739957199054313048280016458982562702218697857642985157339939819641291682043414817030199941290537726292543929732520017554582119086888049369549267383568122898748498769732628560214610595272298764720091263905733212617014259751548920142703511796004498325490794802265; nodes[9] = 0.6458833888692478339574963037184117011690865438401438646847262183541865374829930525902858806350826514583527989385454837658127397362719622861842613798930889882176005474041114680171820040343464138318379097998954970514747975460866969428960794658589951247330387646550932954372874056762066600829; nodes[10] = 0.700494590556171213741569929055465534300175941800093181127569280382645726185296790039840964708989083878617286852350523691243610590039290746289750102998671280995207212139368560481421914834982125353995814089332539455133138912912806470663363155718631208819154399663539841666754488365914992487; nodes[11] = 0.7512799356894804895684721759146586555025645198295409248539312307361791287425612971904935277260122831970851752499666418307096429222305509200149197440545715203522328773324739075567670686249004587262267698240845372056077832964520034730710852943413120695100507362605054841404974299708726005753; nodes[12] = 0.7979620532554874132327059525463766601323755112906541340580999385164149611421833697828851776979629423858549033940207851472160652970973107746334156919842806533736727400620614817166233763900788278048923049822740032260709179007959314245751488213946098636601290198753580288087042879108384154544; nodes[13] = 0.8402859832618169009254399950860998178233985751935683568051072777295817603912017280073430569132422196633408025516026048317618888663536709792970542690249986664524829936044388581810375737530852329544742046973490288602644217497386605180198129607938474998059776778332707382547616384629598432546; nodes[14] = 0.8780205698121727427119851034786235340628197162439185987558612703235041967532064169945662492103741132725453051316708972320092323582901456659597565691931007385939501567106980829686520796305184204064446271775731730931909704867159632060266154997772450886945104615613787143969957888659968010141; nodes[15] = 0.9109597249041274525838478792085065423189003513394556038784481336931501226568621395421591537925355058159113732574073362573215983848525755068925831806570507133380325723634316695739162691880146671903257330773070595235301057483728432398871185870752801604241257587133084964542778388371213149692; nodes[16] = 0.9389235573549881785331734336255919702513878184501718708418034494200090922620962555322607621637287134210046395394223341275413101711424822057703487384045440540975016027756143659045128887308439390427691400613661072928926411217286014832842656527072952661246237065837069075617165724978477908902; nodes[17] = 0.9617593653382044887469271578533226811717212889140319989786297060166305631635840350986388702068876359863501468841585372674966070382864637790962124406220337389078145556696595538639546641428318826858101732535168112835701581627130360740918865020520486097122687912130760778078690361077369394149; nodes[18] = 0.979342508063748193708982566542856095586474980129062928615509269975504392382826306454629548673443420737849096089683024818610418409607875029806671863243603702135165458874369031748697484644829541909483745703521476138480429730207015152709361371028498213469705747639861923185549169452395640207; nodes[19] = 0.9915772883408609197923612532808688334526932647371040175768790481316447314960557033137656250635902567810454367784950864833239224467788004673299197279355346415546742854993501877475723429653375154521906014493292918364920011124398849358085798088044012154867507977301175318448410825216809766932; nodes[20] = 0.9983996189900624150228681268470502761778760835227812517648555025451016880458536437225602120670189934204340006058217799876323866722828529314773378365425690716107333092665424278926911308978100755507869014368657386787666717359023176323550568549678924893045537365733679999437483735615248566727; weight[0] = 0.0738642342321728799963855611497914131284705205020709080739717027887304904536477047533554069576581154669590360355631466883265917666302261897290225831595501844628719066170739042556352374332559716234641506978813807557493306222376081116854140007126732493904923865960372768318989333785241242445; weight[1] = 0.073460813453467528264028257054303938733655783450405239362752101300684363045281734613103388893146908122069883495241856323835372278005393488243952190153845532845210884973796004339205000983059846471285864932978510531851558028628641106063797248395854378638615089860929363962207611685712046074; weight[2] = 0.0726561752438041048879057614925330312767836839684272299957304738755112515970983793817024033453050284380192118754261884761028774844458640161636469206763861293220343454832311032188328516662622898064801683080188015893196855780094950342637161995111487218212610224252976748443508007277976009398; weight[3] = 0.0714547142651709829218104441174621550225898638775037186326404641480370991281011022134889927586906408834053188160331744705954317882204337567641736616672121255598965909157172496483321276110366902223516303649365653232839600740751421524099611390714066104008900104016949691562937283500096761711; weight[4] = 0.0698629924925941597661547863814822044439273130474320937075310571277781788856802716060083226127138376982870630323201885318947477828132543187815294935512493035425413188996821012980299423895101864493493422290089645374893053462345202228061030203284516145391001624975712090972782305279960875222; weight[5] = 0.0678897033765219448553634022137663072661347346585931978698987123261813216589444950806525608723857714963214617582004854506407271270429111338498842947355295980273485735184369279413007186433373381230111715342441949661415585376997745731876447147109923599559735074900978664097156893701887289686; weight[6] = 0.0655456243649089789270051078517944256097822940857930823316482894668944930248907054745213515405086122709448534126491055842746155407845020651103781463782124214875713671322708859931593386153021874289686518559774755245206453336449633017416298837643282505915700473574812537956438568783606438494; weight[7] = 0.0628435580450025764093182513237798891527970439218897387187869714379519473677603882127492525916631852364576282881703337915006108342147745151309466370974176158430375452937892371252911801122830567624214524798679377578839213588778505140293784620230514049959351230384933735929061889327002716511; weight[8] = 0.0597982622275866543128315457535348515098534186959439094532330083655363367058360111733097552411733269247467586885595077437665938582511357971007586204110392038055149663243274627087275269333153635552412390450996114804006464335645814837715393855593263033989922604983508934362829257312865987148; weight[9] = 0.0564263693580183816464268551396956893988731585762885074228808834547824588810469707971948889532717939448134609692737355236177032280152888967656145542664170004519657305099484049887736642961359487332994832390844166105934296194487376402791679624579349872992758965879029995018560135387767151241; weight[10] = 0.0527462956991740703439425390440974770315659878271861196217404725998423434898616015886673453876327509680302460754127452696221120531594994265707368556541068943844401329077288142230201001561783190477126848661134804560514814433242353667865439825407036846796590477548806627153127678755815927621; weight[11] = 0.0487781407928032450274493631284027239211176969342269030310122365252644831465883508604306653028725957253782301614702640355365288710227635289099909172660651917175159566761996599487989417481780295633866657749715676475600999675610976619658330034867572959236025310952119972956497023966442818506; weight[12] = 0.04454357777196587787431636598523424131859546603712758124526016367570477567459431538569203592389553142470468312738007759468523617653742672798541212793301891342515714195515261901824151012572224351939610089519550567816107897214128616331029294442700764819583284087725948665486404221650428639; weight[13] = 0.0400657351806922617605961248300369345537337018657456150992271997820268896258132540871186093095187398979082399826577262709904883082125012518926533117882251691814278594806476873742065781764608044405828684683704632415991128705593550097071142459304484851052890618599362300136763606731947151649; weight[14] = 0.03536907109759211083266218112650754190574852178064145007283220372013970360418125770844990250382181704485072916248354197572318165091767555504366567381471750689587492302628058027492400557959909566987225070473562214900385306925791486177279481968328230916604906902265989143048010668841248881; weight[15] = 0.0304792406996034683629047335233923977917696542444008948236439164149845893187062325410919426478878365609924290254032183605175892787831967038983521616006952384740553134878332322573321944929619764714878363433080563852895910033486272695034313538282058551351934782803160363859076069699256753123; weight[16] = 0.0254229595261130478867424429094308643861354103739789548611818969074535953059174761954215120280057875682151565607493638547118436424269665910037432687340067143581004429153751750895938461635997718322138268806603658363384616736934052899218592224330081102605495230569550555496395474197850782646; weight[17] = 0.0202278695690526447570557190793541850826714265524220962116535809267414386512254291583631619437813227354148610881079389891551298727605100826581050676112347782572644652381433636200945785083930274640847099675981148377222875243062712416642400379736718615305875984194067025272434939172183940091; weight[18] = 0.01492244369735749414467767810586576762009274749010789659465733447011190172643220465939101605340132074255413313815664104400036769758657804944103349737313659438657973595747853662414849993489574835088574337083057463504064605884249828579486266806997588834264379429423843696439560254038987311; weight[19] = 0.0095362203017485024118201002926979981886847987350125725118652036428031899307189703049478568696213371479460309794247391741890456248081871185293351141180110545720465539120524377954211319291357593121460980410191222528150561901341246891300769632726477430989242072265593764553998406688487975566; weight[20] = 0.0041059986046490846106027794968359626570167733748022903578521270428391487776731442043396282630437397019805843273160208463132051353609107864270649020099228289995442447748346122569310245013763451523580600000992678031842902944098700202045987418191232375295633413587192433789969495103265748308; break; } case 44: { nodes[0] = 0.0352892369641353590581967046314163558850021975895270767771388050026708293129204296538088503405177394704904068432241515798528419456417467129317841397971244337295076320014668142807439854372285560782940231746230660848399854169482044830132966885947763510923563227341169364307311155993362997823; nodes[1] = 0.105691901708653247117305848915121752383385998859597613782401496431801112854648588967954920974066900109572104138324971369950267892662922135908391879396983818698616161584758434002196531897290200708390100805988660460674889279970651810967849891465885572299440740394506655747259661937212538541; nodes[2] = 0.1755680147755167857465077493809765906473745067245133154070245723292646007903540328194437736725586808460508032536663383557877664808730350566331285567888304710339339741896475772967430854444663184246650866370975190952677272200804843617203034889249150450381003515353436399948112099138376847657; nodes[3] = 0.2445694569282012515073024347405186205304872592800496036700898164834537791738473723743737723302910343471849383775170785916792241266432208639662737690658700862488650357129550979545454310020984484469822932529872620027047479351800798292291264596922114708380746685364661797437545399267902205141; nodes[4] = 0.3123524665027858122365451635729785355192636217532886364263612199150661788908954922884511030298548975939922034932331382765453445805128191210193719427343228091597866924527114372610573271548842277391069714518047485946267930945978030112852038728329565500681219197886456764628242670306016406037; nodes[5] = 0.3785793520147071325117646727721978567428208484956703732898381975889831995741042976894772550002618329400932042639789089898277810245011014248306098395937839068491738353175448015952795575926234404737232929490094044540229429701166966256060627042630226719140461802534627320349723379635373670715; nodes[6] = 0.4429201745254114838348265936473135495384784603081179492402539240282748728783953265204634132167718594161896831971059004114516265553397039648511959713600848169422879312915303526711233501985736759673344030841709561106451786151896118448964452460106329038515776994315071713535607600728483219326; nodes[7] = 0.5050543913882023179827983522911772386120732955053486132737692965774043073834158351017183529167997594520251186940547282426160489329346036492124015798275312771689203507537158279497770277044575917667883856476448837176459391722949911170324965965967053595810172430666523234162055535365211969831; nodes[8] = 0.5646724531854707684246368193820752194907454796042661152355681236679256900286378421769257212190004193313511381678796589390237214088839759717695531178990806744708573541891827901904867736957551200364393303683316001462614370257373426857135261594599923606736998387059201947692943419279312016953; nodes[9] = 0.6214773459035758478024246991217667471444058800171635591564723228211174570955205813342910111368745391742198867329641501388575161323766673142729170831103656824159567260046074245214220987997016943421276430474064125356695604179160216379875447569932001398764743128179177295941935935746761791642; nodes[10] = 0.6751860706661223653336990385638999233282554011237708753022771731829055958454006567643047721700598418388508899984192854918214808091340499143297335715957345568840334293427141920444504442850837534468487580314609272822914458954055743339517050512973301577602393140620435729685523380642426112568; nodes[11] = 0.7255310536607170026069649367199536110124658002080952599330228789386978508902907910003799132932736694406564644283330958622513090701044623270477981296369195386420064649914376787863989088027134169936743490305312946848061944422541309660377153277066840651760092370843324610918130768909966007971; nodes[12] = 0.7722614792487558990177585492319880137280964395654471097630738794275481445263943248121492881702583093931766311400973143112187079051837223826723180925061318261755485006273129788125568157067616654202494361405718162624165426871331458566647373836396923508453807736592739421276253249026320924716; nodes[13] = 0.8151445396451350104874376357519405502994005745085942435687942216755226541123537227234778370842604755987363155373433925855121105830453765180843555569956510684989500064457900577204884608417153092556603432483254360442013127289283237844342451653653416351274949170275575494387874216977836163095; nodes[14] = 0.8539665950047103787283022412926838903611690620290684497480062464050636880751604044517892733320768349570845805489952218634606118194029678341621003548756414329863219351185482149531675321663081032503147084395994430090601698342168298778716786554271396302902274914559928165096920219788761410853; nodes[15] = 0.8885342382860432023383679101903223247583324582094259000677896835595330502762120320097732669223853925791630762104510050716131423507706161465263338220574900593094799475238407491939969060138679245138395624150564241780672252454512481095431020196696722393032717820815825538122481864024917903282; nodes[16] = 0.91867525998417577432300108669425204893798526304505300597341221431601373534871960365742846732460028435307489192991572026658528814537736832545291772542990304002331627326448052102768730955614534492002805053441676325059380643439429741023093665481689932884250710804167973761665091087952660547; nodes[17] = 0.9442395091181940992032546530269892510724549347599229753438932967406399755150165712555474285053029417627966289999326872342348329226691772984854833183481934157760937778998068222212498123832239324067575013047680732433639315020246447866668078673647915961392501132906941469858183667493109657697; nodes[18] = 0.9650996504224931393943980505802349747168771385898850927753516345171667679573961271532233183365173033180514974795984689950798743580361899523601296768892318048174666832794306592908137409219182829497372573501859967241736281296075142465149320035724749849535548043619038630167123641781118717559; nodes[19] = 0.9811518330779139666627490053504878288056755555396577395291552338174169283679797290689572733917901059512414860434615715222475511583962227419587168846569639862626615307987439785725629845617277793739359936360579751791576187421800660875361044553338651825189698719340852810547196591054281677905; nodes[20] = 0.9923163921385158084833380036135385688118977843522100774582564757323982234648015796641238475803734174553927168666062984265566870307527977780609711977334937349699589139696682932883757076173715545229694325681197652093043915942817200409357633651580410056269200570075644497983062201850776628678; nodes[21] = 0.9985402006367742249360567206066503490560300331754145979988481656824135483072647580556639621594218549657048266489306763785891069988814966409213836838335483208442604184093408978984981414233549701766451336435863927930939337442958902165870292619783586971372987415936904294458208327098983301062; weight[0] = 0.0705491577893540688113382874802998849910634255089236447907414326260208751999569079495016727567606920269128095682406802714103149431654106915194181052750815434519232539128527064721494678952091093759983483775238425641871151214885475111023776013321110503572906723961233022373951090503872523434; weight[1] = 0.0701976854735582125871420419443993876688266862156284579333328387082539035726253988615994022381085954045429976935308906446766529728359407675287202918515574237278773443609137569434575348666108442236442355249114807857801224207917495989427625257777172281966900820280153758361894881888446223219; weight[2] = 0.0694964918615725780370840909250112567820934753811742273600419770557786077458813051715052421476849846054888157413914847480197502296813598558882944808017906045848507354356648355395813583278948304381171040614588431274756338819434294513485353174342760345792801626610129060791005966971200936341; weight[3] = 0.0684490702693666609854586607043498724451555436359000408982943875429468915293275278830634139244197330862073737931230440153707397448205681208119342829829832233363697962681206559404352786738863519952330837291638555106386463041268335151145286326350466963247961448622081534440737747058914292647; weight[4] = 0.0670606389062936523957049193517193507807130130727615679567511018619690259937892736171295700189024884652338088193045736110732185114554457765494235971319675330145990362747217297396701419503557406269329356289078371244030888583201022002313994376114631249824046218960143602669151213237724562985; weight[5] = 0.0653381148791814349842408948456221894960108011296769285835340096041848163073677524444516918144255656871728924351494133505167009951353041596735801397817334304830573635166582187925098620551903971399095118038672695019337772425304573503530701893322242370995963965597744482960388990438434700376; weight[6] = 0.0632900797332038549501388710197149306380242882440941854437439850419204146627540762034402787669587517858618097966165399995584641883479219804623052833864712687292200750213040568150711742853434277084841166437293432232645353415416141638917340688536336534178207852406384178822355517642019346756; weight[7] = 0.0609267367015619680385578368743741006725724894816501122292957942358748606890927833012083427089882933968518559519680853021020377638891525586204706017313583827842668571120233245734204137063398027778135776475381237643568280343517811533356435459735184816120071486150436848954638140807806533759; weight[8] = 0.0582598598775954953342106898442771680047561691033535673546965738733802880810642775191416996396814196218222993076025813251401597416301149482786329750853551124069700817913084868652723671049794361282574780944543033039600165777424560752553647233514678349823106587069583419355596022567683741278; weight[9] = 0.0553027355637280525487466326431529914715348464176177601014935719998323292429106497141838596006407163591081672562006917062783673622518653066948134465306603250117956470192554625652261243196536986701864238802915932982335814177833652184421612148991574824289036210582536297007995399659664698958; weight[10] = 0.0520700960917044618812318029931987510562641747411169265586390681045517537488594770310093745014142317664938039471814387503124614570587708282444587432801095789622754099548053132211385346876069845577095542788584904864853329846145083510410493733651274950166126250625423468037044959551425344789; weight[11] = 0.0485780464483520375276394366912927376150513991068246759257438497878840924748134275797234273060427793851631099681331557442501900323413273192426359332728720951356469677912500480439871237123818627867994058658623326245629949381352072982706099557257515987356806175305869907788155795965451287648; weight[12] = 0.0448439840819700314462431864030511071809630216557339996903100789697607524979254120568388083861294372350924028810352535610666041524130211467328317278107534833018011947407708546821570318951297085620414258715944206630502164236992800902412919610784418808099380053360598942076491501861482618884; weight[13] = 0.0408865123103462189084471692830684868540792890267025960424328429620653542754864543504626242970016773499223301306137578536656931898411061093644719592626374202370016490381410254645435927892299586496540744710435771817519181461458845318037377026236245296472121380621787072364876717667113487431; weight[14] = 0.0367253478138088736429092923487017997107087879997468728911092250746807052295610905923237686355926037776691901766433607774679882422094622564994734765724263017954793302871419377632942350817923430561059110209515512925995555748552805872236780400935997941055427072714793535908749862713398788434; weight[15] = 0.0323812228120698208808469395401116011469480517800294205069247736676167521859218043665225891797627130006300544698604667398405659186747337193390896097261505875450783551708479190858311774461437743003889690106235505172810569004519687787913564677011793190961431465788917732722932419418418993155; weight[16] = 0.0278757828212810100811142917793870643220588398929903486447491345928356268213815398287951387479759047299468268036210896974615690609471460421990720170397776889823030541042032452228885391714018524865823221546562140431374820345487766996946300119607188188656234877755495416918387156534427217978; weight[17] = 0.0232314819020192106289582629387314174882219020356579971822161362393891436444010286849646243294853551278617991430866888887243112877443114185690373569751365380364710802664161815035419061397484600006155416545759205309169523778042877585093595319744956667973613491048123582167940864901542681172; weight[18] = 0.0184714817368147491720422237433998441155207383139018773349047645648909892703470318700178940274367095175607372602259405848667813040063054790493250954620726923226282149927619224948887842566700829278861112152386182243065659882291526336361381177201159767054540555608129965938002558042497874308; weight[19] = 0.0136195867555799855202050663900613788732667197548707233110763651057836985268641462269741930288734021595584467111576161951381037690310605603297964386020812870915972204938940407270640516599264665052618991650360304211582285536913332726531014798076506679264348913571810000253023788982233095695; weight[20] = 0.008700481367524844122565623424313140208468421158361896093374448982742925916789764877056550502231350368724113975650323487367358419428814204082484999760372994472551988317836378198961457508926114641451788789409841814354310434490105417266944471635976336030509380605687911242458133624641993464; weight[21] = 0.0037454048031127775151737788317615384776979163432821731665936393976361923828788698700858334414825951421743541696629227456919667130908567503197294376766504845862353441291078993449098424655787524409261811103029599961620404427138783428505256291127020922823873017301745057662098067031405532483; break; } case 46: { nodes[0] = 0.0337721900160520415195578318914397638159161159962019206821051777282625013199129883154032185359908371001907211070629873764939459920390989819586832755353237410904778015609096787902184029359935084343494538258762838909218497245746528474442371709282676930736213697644051456588580681636800032697; nodes[1] = 0.101162475305584239515859657008649390881871360501493739619515960454422900570498073287493777140387839816126841292416227335274675288073899841527137974724165082215685866225382249170808404647625107226745828617674073281486603455031647611932607075024749580073244349652369984444972923581710601124; nodes[2] = 0.1680911794671035286067967374277021274474892818364693967319825443303811983733974947849010420596188279976049677422277078150796710715121601867634494921516802900135177921353134449442874489462244215666833891428080062963469902066728483402807999172958899653415627887533718962630903458094767179911; nodes[3] = 0.2342529222062697686260561155737924925740888219904980256225286351457074736563581262614009886006941380630179857376820382013589472994084176479853343640288460489022160942652080453282402580030631582401507149964286087676482495770444223365117794631446680534161161942334225082812951404630008093244; nodes[4] = 0.29934582270187001548343925657790392935609231755423834922366658784363328187394987288857624641476030585414534254631884274112809474179014489984277697785077121572894624242547400543454155866886499462979492931161542022028780009947989088976876959135860029807059585819150515731967949632787719749; nodes[5] = 0.3630728770209957101237069785146516898473888428576424714979837496844619785846060291566558078831164276840571164550677902274951781469757521162391917577370424596733784169353149425853090550499453081832839764026100757411003544535880694398226198781546938272526144116120992244318077511216823089893; nodes[6] = 0.4251433132828283973221468634285674191693377691079346916820562832984002897237720358239516046364681266547317059929006903912910065324097067021991563490202573324588498441286339942265402182130762680445503304131882743554306626667015432427030837171982980533856585753110003043272873072511049547656; nodes[7] = 0.4852739183881646627723201937084548083196675592830387035445024489048585187806459093825818567981112075896410706955533369266631982732117986376198648044827335419902471823344340942472441130794565808098548130889960731619843372788483730430423531744808477573798299948417237499433950764808385371269; nodes[8] = 0.5431903302618026352709626910288768360339784703849160853908402413064678603433252666285712733596617988622986447751142694490338609808025051229289952189220928327451912973229794740730236484063059417137281300578281005696280785044940434649874878864767336334102973649049604589632288099951118225426; nodes[9] = 0.598628289712715153177172533600167310148466334564629947822168399476283787540298311450735878271288664500462684204469841931464776337815760035766573598952010531720320516763335701839151240910179802427573446349514023904062923625005350356744517634349124234949287715951597424783731468503037726636; nodes[10] = 0.6513348462019977151064771558168593672276040573184759394492121603559346318625584843707983474074000410787649126907576957845118739910903740699173771190056855715539269371894918083127723830003914306351224649198885149931037508513064625064403643826105301440589046650692707471198971695658153228223; nodes[11] = 0.7010695120204056975121220894265004502495759831499386464684372990093011556179967578761126356172100959686245774740802798709472442535454360482727382624337018933610606007394504878031209763360797818127400600339234064443061648756768418153541821764617139732759061935913220236424691369573292925376; nodes[12] = 0.747605359615666054000336505268002868905722180002546494969313387175753660481642082864041717969806159352078059365721738883298605439629570710002790219084729846466334859465999651232555969717648147825583402439263935961081659147292386123714875364200953483483152755841797166933785312177028812646; nodes[13] = 0.7907300570752742551891441474203024111479695130847111098690078796847471001389123228006835515525974134156679814582380035431131142754076005752109675159807201144622339003974941992186604399186010140775560921510139142837650564884724078654352244894011756578461643834455334855278096202092782846603; nodes[14] = 0.830246837066066053032385304790806117995806253970380608030244879399951201595797178461687055389200418480632258981897351793408963787788857992348688258768194748486461275764033174321106045253120934059682250365074686476525495591168423500614201941526008970930613521934878140139157980811548640011; nodes[15] = 0.8659753948668580629158887768165984386873047443379044840303013054826346397441181261334519838049376076904948091818833227240919115138264624744260135517060574643853618529951437682696453806670196821625906777943389640265893575619111156861975382301359878440625466118427103057679159868192888930954; nodes[16] = 0.8977527115339419657013199513197812894546296453013510899814199981581709328852470927233273655903495972704075355220067032157279147630866590745515139968558315610788084626640070026281500072051789058439197060040521138205387319565964553061279838421156506798246046025120673277615664460767925366483; nodes[17] = 0.9254337988067539509774913576991242588823437564389558476012036266538490306754354122759920661285318969967051232698121531339455508358451095094377638082258049537371156800960468410232605371492184918641305398496168460902596389698534391326884410242349917748939620495302171646697943213277535534757; nodes[18] = 0.9488923634460897956222135394369141395257713832932453327810935659489233208890869121515289360506599635766189920987063974852539978215525640108525852444616044202223602719786664286354644401651843976933779055268478563100996066671276389537068732795432508029770567611121546196173073856448205102865; nodes[19] = 0.9680213918539919427377480663718155085223118263536301007153201738888957676607885092407530343233983140890434865890247521803751463152100821364618776558521634492759466307155569118771542134486150286960520824920345905124329366706879521262987215599155948314746791293631994687383422690884276922329; nodes[20] = 0.9827336698041668634779795796591887202195633702984288006458191668298887464438062851451080502914321771998482415152491860512544242552933718403839546577959492390426681116206142013673459526650275914504058062582154725556403502790830575638443412731180620274822490035102725704912006961038448392238; nodes[21] = 0.9929623489061743640730954446661934091211028309083840251988476174226641125303255012408605697400441713307379503287798434798744031617080950211424775798364305981472428154723427980513961167727120691888229371413911400272065865405145926977790007356846414340476646259442523884976605625938407874595; nodes[22] = 0.9986630421338179811282684173908887745841556074346317260911055450026776598114654117071922344578388881161508344754793190535167328691318039871920520584027347438585963357439016798601563550392106296626966522622336912475962706832547887040005068075788391652115420146726572022865383721316752323089; weight[0] = 0.0675186858490364588202141891643010802121482695398182551451699354871041635199993775723880329698085717670869626199795530003891345240444199590827048410198577870521901172677690017568712439750628635280299975374634080832643517106902506165020695253322804548295133084068903465516602268733612328821; weight[1] = 0.0672106136006781758623741548270975961765396811656452021597761229459225252451843015633766286231392874012025404027230520662760071316164488888348329069618055990894756684741246280528859457291566051062778742362049938829178485584594973116703462667970199094383491878003747881603937324018492884703; weight[2] = 0.0665958747684548873757619664227337019443637088009921092697510420992912039902728532847010247150289629549477240608715068362743341608039925123204106235882651937743106480178362232025425323452751589483252820808039728931976627290573707503741586275986191361676233444960084832211172995812122156972; weight[3] = 0.0656772742677812073787575656855557676217161397738117154814314216843754978889627735420756144410082459542080822931664951368255170635048725725852082464888999003343235411092120437997395022652366977201665916185030442074384718517627254806693935008226882124672524351507871271283801457462586332362; weight[4] = 0.0644590034671390695882794391082550639237956450450184924974791989573918735809630005761452066484390414799129900547957842163617323020618617615111522437068583931481591119615488221620076864868616590200081299459526435126509223995762903053737553101991013874993679337069517840491699472885564933191; weight[5] = 0.0629466210643945081789519522471109312332461650317862208710798053694392165054084522279711185405040089580104099284228475246124915953057541601131512609965250290211132388996349655782967726513770614201743953984375559652516709571315466112878278771791448114865669595651051421074100008800683809092; weight[6] = 0.0611470277246504810153566079041910377727816328578536076277397436472018806785961953503077384501560093284013884844562885926951432289895855592749914100759935902991896013580878467103298739837546421287260926927546760878005816794332142599805572193158160114132729266566307710360516264560517063041; weight[7] = 0.0590684345955463148075507226369077370982169484922302967719964049486841536078229352269951327030434532866846547049823737927907411842606696065759938536682576130591701419542714353538278693429528799777043825813818733972718040076853450301380715199194997225955816430096207992462645595931886512691; weight[8] = 0.0567203258439912358168744036032867145864270226091147547411219248884671390310777080803999278456959461640652792351320782738851650618598779237244840670717821839176953244039617214470111048809129618167470870678451432147077450573328105016659383621521121208678258556877217839533462011462754282858; weight[9] = 0.054113415385856754491637643259223075259897469041135066237872252040159132422545371014511123400404820231970624571071433516758204673356649913202148660054350072662294846043836621529600031762368255151647578907634123752034842606966404093631444363825618883208241772187952801278868083655867496623; weight[10] = 0.0512595980071430213353652993714480334641815016265305324956380028275840258194562205985873388745457275760386337564001046656332694710538455440993166302489109426033780618241822759262734640335388856168354293543283990972994833932538204600986026321482356831729513309207198599639962561728209514902; weight[11] = 0.048171895101712200530468863223220936681975492367462169167421778078823742839584151659078287984146225255493321694063312211821207061282615008061094541582756734031229169543023726228282538179869842996887591820133204685272395100995629824547919304457766763704851258679056059604111129130830483147; weight[12] = 0.044864395277318126767094613562774856442286700518425178377238509110235769880521139231423776703965757925101684363044419643770170053408733513429111211705126607826324885160838956362616586470054634431083885094425838747106155853855200401662221578738370007473414745055320205796028825846571863501; weight[13] = 0.0413521901096787297042201758702314784242062241137726261523035561573841536987155437484189692658460164120658999560456013774092036287146673381006005643846654338862543460451992109822670865707680134977467190550976206726108323177566933733056018688604643919006642910399386038982618670622469584044; weight[14] = 0.0376513053573860713276607992284591170269551194542606719625461957046566959064810923626875577650525450146606367842619583476817770797063040901503214691006784136234185072187561338761661663992964354165272779036283553354981270376450773727040235484799313075924969763460674961981074888058564277755; weight[15] = 0.033778627999106896520603893881145328727799480475200311002167413072967728024701971412605780638453569699212691876490543129306084054320797047382688685313754084186749218044702304153530557868598005513341724104461467079522395656893126919507958289667908432845495274227175659319059452908128827414; weight[16] = 0.0297518295522027557990517292357229370930287538189488674889944434470849475373725664894903619614788059773213299023579529439426917922710813767478103483636335780013863189038402065097394516738065651389483726722381027158373176171259792452861158391160595832619361967105747791475482681591842102365; weight[17] = 0.0255892863971300106346995122003440281028795607386169939537977431536345666219142946068029929095708852141261426826190944374420319074939851398624464531856023851010897911283166558144511692213544034462781180656846332578198393548252771467186781742394570235852910717536750274011492184685113436631; weight[18] = 0.0213099987541365010544793610708784018288437765205240163949760787241527831564000242250895146679191751074266216126203203285195581777801217090823351676435521222113220554875598417954526546586906263284852929812357082822282518956423046729550849772292341435437968228282751262561501896349564136227; weight[19] = 0.0169335140078362380462307136717604313337264438256941510857628143229244010215985591436745131299398762523839095001809343904471322225492052582220376590752708996928719430505069363113199717158011595565017407000839738160695210143504938191000040415039102501184698477216381474597228896558422798557; weight[20] = 0.0124798837709886842067345717509833751775225473853508904910092968996628210054995961950844714527858147468813260489466266763295558407099581114004716409279850292168027064312278664816185383738716334304216909127610026618913970027966195863032210546549992845099497862945139205210881334432564295991; weight[21] = 0.0079698982297246224516130389263249654262887709925965393803974999979756281243706337056814973872702014226274826016188869062378360898018792682378282301421451658403523453469933351173657207264839439782989724115950811361583343336938107496832527663477395413297008860027674333493011158245361174164; weight[22] = 0.0034303008681070482860187831480434044411729458052113312443288164348759498925512381825033889217970518701696628657488319845910116951026737379988592846933232414208984123245692408478035306849070658308357728573451775161500478630705114668337533514140229369873861457522338543528133412265939673044; break; } case 48: { nodes[0] = 0.0323801709628693620333222431521344420459628023615180924250032200173778192033824263362735606192681682400367095349344164805253339336387227562143033309933613048005985693434381987818201481883459708779882194210519641874072840153368237061052666187976157919313172960863861628381000595094587588988; nodes[1] = 0.097004699209462698930053955853624520152736229300936986430580765944804036262622285099333696696838482251782946732767916338280146687215461892885262614507377477016216369626353734517704634998485497845287278557096944336844633510368214754716443206792414853127255583775294604837750153713907779125; nodes[2] = 0.1612223560688917180564373907834976947743743797418951177032426375565163420995818327669417213304078905047469289913643484865687644250612355007927116617795075726826856211319024099286480529947830675509681216099789241579986072883173180183756777641306119014248393198804021443734101953272478086356; nodes[3] = 0.2247637903946890612248654401746922774385618040416548061647426410451819418975142321008966769832523968757738085925020813633283546171689855524749511386953518352781265890518521436423483793631580745438946344313218704432914437669009715424118067933691427706349189683644822963043496308070736548139; nodes[4] = 0.287362487355455576735886461316797687851558305801039778908500032168999844268762601001704292339961272995214058625810091249868879016571972602501163638980369411897516808779888097191828724252681176366227012075027580894573518833825847931483730601352532268455529624894259912734014534581597096756; nodes[5] = 0.3487558862921607381598179372704079161343096499683925760321229677812815940686757361857953413104847160280374576428630687758267800894381499018788076584644599829594877130739163145564793679207454032995884311111581358032893511567524785194776052845563074850934900960282532026840979559791515974264; nodes[6] = 0.4086864819907167299162254958146332864599228429948880647711509833256205384841291116873915805142899986436114737684448709470307082779870061618597920932084296118862076288434792491643583952570621779678917397973976535200724285667082169336308347928155411376922203813637738684403894770306209513414; nodes[7] = 0.4669029047509584045449288616507985092368121042585169441818691951347943934426041117896321899521249367540958369808560023408894000301389595681966323964992646011965161709344802230996956836398402865779629217552653963315941245332943404605356160774030036035812901620845357937981663968567270001267; nodes[8] = 0.5231609747222330336782258691375085262891876218118841075802295472194144547473478378097802191241734396997924509742898611580628879308282360293385903809815567379534023934251408600146505859712141453532895311600963821788438898409406964154220798487081205986934867979553730903344355531319706864088; nodes[9] = 0.5772247260839727038178092385404787728539972861401955280523973994277369963343625345949080176332758354499599142004845406197732474905562060699217319563779455006245105319191336263054840156749477295988855140896170934557051892106170295081164928959752697217727905252899776063732625007412660506619; nodes[10] = 0.6288673967765136239951649330699946520249089997901617709817329945195319139770730440009534690880035500729300617461673600043305587317176931496094779552836108942993260952954280025686861022963859059310235981795207019884581242390756356185126160144595772809088950477447408497428058463581093785584; nodes[11] = 0.677872379632663905211851280675909058849954679026048613071040642975494646879817410787234779026949520681001012272404115964909412280970787148918283989881918558113321844034245504998189305757207944538995185072701494950200354489606220674407089575379844746721958854047082743699334465743405516822; nodes[12] = 0.7240341309238146546744822334936652465850928122807223627293663025733514606200897197132835750604891104577518163120484582658800174693895509966659219730140279189488412561175044248435340666400502162020648032487714907667210819493361875857045126469933874318152853045476429683539190650865146845639; nodes[13] = 0.7671590325157403392538554375229690536226423308482073722351285886640508368078610297555027042768830402396101913017961342648732426625507709974969886151874238882108460464288721776828310372261641739074723240066262844153885144216683911191793788609618554564855052572641464561624936660643716516963; nodes[14] = 0.8070662040294426270825530430245384459730130294604153865758629418121821540044306528587505494693216399795084724684038764786660391153451303785346325829879169125179637179869502449038944186766189389960620284319019575168462640669335900176796578621694063718586615677186853319526889558837795931212; nodes[15] = 0.8435882616243935307110898445196560498708870117375524015149131998988410546898537440620409553769606902806958167048591938845025015179542687623201124666205126284766684526602482974072107496385950974545043261329552934262890456054327356228832079667667563851644669620122005574187684259483704883944; nodes[16] = 0.8765720202742478859056935548050967545616485337299619927478757518746727101403896723986855219259667852143358799948242384662297583851335787035211895586975548130288710653673627670240675622070824293344088388158312026024660289836064405088534253381328208139908628236298146864439498352402118899043; nodes[17] = 0.9058791367155696728220748356710117883122621998274108453524854254710168231209903168021038398680981022214429169319017710975360013383348010715570893926035906020288754398184826444594856795580592716008531171383282133694774328791387131323934510270867503119159734775656959815632383572657867140949; nodes[18] = 0.9313866907065543331141743801016012677199970856189504298706048642530730422171117004814233978308572612576107803914678314724860513072594985139003576769053733087385408190420712132114120725838908495665356346932986188420356555725712007913480683483201166114638294544452991420503249057385566622795; nodes[19] = 0.9529877031604308607229606660257183432085413318239187368639476034939458705853335873459030640014006567593065907266428726812347294584753964392930795158115000641109325489714712870880297641634621723737500491906722071151348235107161758193225807469311919132905091399402956814596650320119298445784; nodes[20] = 0.9705915925462472504614119838006600573024339116308837060283723521653233091284917549829147537048491975519718142430786348351156971268381219524460301022841594218867377023274789263039153971329753128283957675276638298590096929793150902506405404017374017263556524863367379420927441067400998664328; nodes[21] = 0.9841245837228268577445836000265988305892392234173847299576501679855297780009805053951314899480078238327304298947042842928481799606952772566942573525021819530709401907672028961517174691513475087037175707824219016553116764594541493332276957166382649655212695959925653711732933130430827227821; nodes[22] = 0.9935301722663507575479287508490741183566147495946719296171518380987546182067771786290419810076653658707794725617515799662389829710022177318209380664631193614136055345075703607668275077740411649842085541887030219645923098582169161303385895586016157196262331334058188227333163347469240571803; nodes[23] = 0.9987710072524261186005414915631136400889376502767210386129404813754588436074917000156558049981457228323111399757426667107783686146764979424301931921202864901934760728750598495567831609976798771170638384784993532847474526751192964462907047527007519731784755343424413652889476747582001549614; weight[0] = 0.0647376968126839225030249387365915535520819189466365100145630955230830789112652102024388586148790257788504178817149406047213653777355165787109361497393610668464404058173590514459457218162820036853260853476893083916876577017950192396753949750327804531473587112366883193491439113058399613456; weight[1] = 0.0644661644359500822065041936577050657256919244555303087605584565373923533729548831698602843931871385340030175202203667683923636126306800176183882596684399495491942372660596596356926236523817913678955210087298528334383346959188152334943162945018899436306253539186876929627564832875066671546; weight[2] = 0.0639242385846481866239062018255154089189740849826429998908742074995537825861121896138913510047200154797654299464853013914131198803664765984362905448826628656098363699210906102535255075640718685418176298042239357008734991509977575972169401757797865944093378190769429188446886679443503356812; weight[3] = 0.063114192286254025657126022750233318127413643371100791211147247908038119210866702715591019250622765359661030504080756048509339497381338079232705821085723043595456233294264080283819162331479594340527362119300046999015126652579244400709395388878981390931908078284678001225721796422023136062; weight[4] = 0.0620394231598926639041977841375985183063833996650914615690378145027390359016166007430301654642341792123950625581326363632974090601727932588665503966644951620409846055448253160088846837109809554668739184790769777564218698158247876958118862217650947629303715877152671148497105041838693575829; weight[5] = 0.060704439165893880052969232027820477885260864256477755111511444660637894279751753620085819634771129502321701272863759816665487721018178215213564660137215627940595964791462287316855429075024808741011644609872218806459416249834579498889811013183614485331157602894831974022969735147348883757; weight[6] = 0.0591148396983956357464748174335199106596556025570549985562911334858351427004807103097816283504301067145337581695456289376039830513792879318191825604750751808579778340286564325820343687137802381989835131943251463047540892402824878256504821255914479922071822226677097993296619726126963050339; weight[7] = 0.0572772921004032157051502346847005762415271230041120775388499374768174542185642264331596590441971930673621537502613979228275806036649770523729037269590396605505788888297452487135047545234709500282948119277498415520755790433226932951687496519443335996237447309318373040221125631050111510598; weight[8] = 0.0551995036999841628682034951916354390044509256075610005480562579305852367514577542949214003983936245935099233555326166840067728538535180246281250095428642203897649239499695557145555426826339726223278435361963395286663248980175847584856397277819554489412173746852687479370448932694933197623; weight[9] = 0.0528901894851936670955050562646989146617264856331091863864912338482927624906331606970843403634381497908317850195729589364536877532718433530073031198384043794058712301651801700250106264343517104436330268731364270443107293677300896119296195993166329507710981247494486005793880120807927289435; weight[10] = 0.0503590355538544749578076190878656060329940930259063306937920572469344146602481475739536937748716602476117493749244875858054285030225668399920442432703261223051996660668346813340688638213160761734150627440682870958462139218071425255284480255792269432147953655343759406749212586469145768123; weight[11] = 0.0476166584924904748259066234789298301579980667434496853967698962788098850790553558921186822101807747577471093843789681954550367400998642293049039011428801469248019436301751923621082166337425051357096710523378922796487352726070502102353375510072185845091506254256366999031877822684979636883; weight[12] = 0.04467456085669428041944858712585039498846278686250200843292144633919149051230219570285507033445191597262243455627672121790437329143514285719835417794752689114355605923589578220634338431225002502435368065875022942307571295172714637976516510154698183413670663877406518826782227549059860187; weight[13] = 0.0415450829434647492140588223610647977534728260340380630827348212227258256296586929707635839644013631284715345075710659622564449467324978249684928773840551030649825993350348553085257670883154936305063329655125785484153458390782728700528984154364603355339105273978609629412377032026386535504; weight[14] = 0.0382413510658307063172172565237156178638239683549822889292581910340505392241094723284160592135801401793729375778354214012906402625157588605731423234705243025803585381465439498192468739422200783843619859665465451993517044449780382427455830953184651143173247685556045880601715355066276988534; weight[15] = 0.0347772225647704388925485859638024105972813969070680987180066361796767233590362801423131281719636131419846638499551949941320248224095394378130720247934453639087592808429866374736085398086276338344886592794735316537318850395473169040328209710322551135768671808804729962027374860089837684125; weight[16] = 0.0311672278327980889020657568463544194542853414835695355095437188614314126242430459323899675502770854681172632831370422789602958657379399544794489944882423669337641568778676876103415498799281931537899613937659041581231888768414972328438819770226385469193123192380972632082067588109125106551; weight[17] = 0.0274265097083569482000738362625058204511841551616509759972809374993765019410236080239987462027920403237449474284444948789638628394355878066094467843602824760139004690135115733710861681278905130204344113095556099347782237196035386088178092164366260022756686042906129257040190872924606394517; weight[18] = 0.0235707608393243791405193013784492302217297385221885987342390648645650637963913094518367755410967761634190806690824078462688206169213053713839743055605466423717304973224210361070599559010345444087408317436337478066837024618745352434711580028189318635705775026733754863990182519965475724838; weight[19] = 0.0196161604573555278144607196522127096958130377341322391811208305074092462981216840449513783774442841949609835308771105841281547195578590179091197712101493381105236769524246761434056145453248993188037222880380082880780160676065594181655110753447781561231392530437840563066406163509859145627; weight[20] = 0.0155793157229438487281769558344603139763762689915524695130934310526924333561999548391816052133014721114401358107806537024400131770649099216044201000988551783955073406285409222168389437506459771369978703174261967499687905211552648334359139017500567829091264152081809203694794919148138113686; weight[21] = 0.0114772345792345394895926676090916280864205063087476406537668167410350365850873671845112866361972727003593616013319766908431686721431557599899878110361766928366128660002635276311177447975047450494623463316753479008881407947518044839424512047421057962221674204381188357080440093473240191307; weight[22] = 0.0073275539012762621023839796217865500587079025592013532748818295488069800725028316706480375165203492985348352058130145019210595229781155983356959210927756601384839999895988071487053794233206191516948990247724302244333532639963678373653429402048630396323584935042879329231777271594470137779; weight[23] = 0.0031533460523058386326773115438914875782839388316936222952094932503195864383168624422174587740479242783786832411810766857395666084711474099319465151509325584851182123492882592877145774634208031405492080241435958192743600081224060525654433479828742651348932788741657302081374766455222910404; break; } case 50: { nodes[0] = 0.0310983383271888761123289896659491942472962229599980429747962356620305239606004565028047384756036743609342213054916932164258131193040411751026920689241449011097193178455222668065986763613933471614816223861172742872735315854546459495291942313151871872131180410409964578036057942486779145999; nodes[1] = 0.0931747015600861408544503776396003478856713839221386146828891556461802516674295107179672198298784688901653049792063891285161907411935710988161659353070912475552745379285159612966725856043762887770393250006529115742102585653286033650783364904729767419897102113013850780637334748895180766148; nodes[2] = 0.1548905899981459020716286209411095012018502200549376323967303263535578248323610939527290673193556208942496733933139171111540496120153679896445246556537339604612859252206782877782641209825926825157887271492506356092759283658366551226302165747715092608324835604075651546089215707666800199163; nodes[3] = 0.2160072368760417568472845326171013337057559725101332727036211263619901938350004687445286661319291794064580451138376184642327027227845452915036133761630496235920939213563307856173950186022147749415427485165406683776942667262672110823564317650976728334189578624108122074277516104858015265246; nodes[4] = 0.2762881937795319903276452785211301857148015871319961506135055794383769236196981027633040616238063303466132601081904590994370379660824771939021847203146564102074359612078560657474242541077466168948230410549367539428578772936515014388114362317612148717284148806206383497327446587408084245254; nodes[5] = 0.3355002454194373568369882572910716978412185930367957619004305397109861948253310226160694958026607226807878236147924457729558433971162345789732848207721523269734048412559476552838958941996511917968725969211179228961225704987759400132094253259757639678020017328166747459335022612704082064973; nodes[6] = 0.3934143118975651273942292538238172702461394686726560030790366208564977281243987699606861202733329910632711185067193327834436164543144718154962665382568598316578061708483274869831275077690614757554582193762851478757468247983390332863339488918337020846612195743013962590561058936806898562661; nodes[7] = 0.4498063349740387891471314677783758173150645134651736659414806698859708536989042214873355910644272276669887846423613574480568092964732835178367006355710221603442066614927023096798438098964248040996669064693461531068957595760451247362275493393367318680428031480081377433126360358777391395998; nodes[8] = 0.504458144907464201651459131849141192635378678270679238182739210968226378693932598787000137183296006514821308242716698423477699127370412350838521709324119082047874319857659886566562444050130928440690271219326726744700735075752319170458506447082463711955712381417719713447119561096434748921; nodes[9] = 0.5571583045146500543155229096258016078158983822377502613164614867604894521887321767073612986839087455344605756084827067563266351029331009722084475685718333426314216836101809669035926062249352713312736423741618907753546821912336807924207446619903002126974566647473194379477112664991003319013; nodes[10] = 0.6077029271849502391803817963918328936042050206759943557121311889396856476834209221465869800317154224441747118261375858195273700386258803121371756998408139494120489716878706661103811563337304371670332259134160387119570729079580554433943242255391556852788523492219849110642761070865002587912; nodes[11] = 0.6558964656854393607816248640036798190414105283823318265309345913921084785807517624649539530178704352004452729615913202721064660196638286797403734879943564470340604041349987558699200324066849818623859895871432880070030373598333045564767173322028951327862572831127021899017357155925903737838; nodes[12] = 0.701552468706822251089546257883655728149719228484695642740924379033292245834595296968157771841325078726136162664153259904144212903342310629548357630033372348513424972364316245342111571459428734837074928138207892303042980064003860224900347038608352543015451218397463935272874134518185060138; nodes[13] = 0.7444943022260685382605362526821942428701879313295845785247791479329297913088695200494981098607466747245861939548355027718421268656716257290263134609150248533217038449076341003667546323902938700921530218888076131308142373788956223099062529656228422280639027085512055244834293207625522222826; nodes[14] = 0.7845558329003992639053051963409912008473162725564443527388591218931310203939999876847130857580782518424642260617197703766591358582279888423126974706276315111724646202999470416014104562581832010014309664248196010603302257892440327966687541854603566804414574590353056199413480291149032024371; nodes[15] = 0.8215820708593359483562541108739395377607413833434857485233744606154686656061347179924886450651287164363938793872891125416083125692290421753100014219969580607305029232964083857010379335138953146284848148616331836175384084113157158870563781334333290808364508605719404678719441659157143947045; nodes[16] = 0.8554297694299460846113626439347574676548330394869059634383299203413186300718576442191105257369901333121963699477590765744676048431253014560972726386291522674864852925977467110232998454322408267820517228518799830494233636784985399721186517405243964807837218974584122696958479526279501024415; nodes[17] = 0.8859679795236130486375409824667536341942903107558083624465571396548873258374075451665011758623680195570790805844392859685927635339476448831827473992735226109842958846888451928332897692737189856147457408243157863998772688300129008402899329273738955916734897929675350359484720954221020488749; nodes[18] = 0.9130785566557918930897356427716570947841881916977823896227265532008524340106515562802471052150034141823396018998546244787883064826080188436358794452751373955836413977386435676539280267310369010028007946850039115385098841799551970875864682796624717556307675548536659706857477009313402727761; nodes[19] = 0.9366566189448779337808749472724966021537315980952029223750542738093561312349230344186141970738167340957460443866430218553110098870570420758610694406736849993444774254524097383322189015590186704910198301469255069298454429840434221690957122354892307183728397378528625778598142045490544697097; nodes[20] = 0.9566109552428079429977456441566220940514341246260465428559790829730553062968089391204525732104352388312934367488954182758273304734605586122506583424141721602478444493744490912578765462498496947314992010522126985600781923767493689117116481606317787989709607049847921859143187366377294068808; nodes[21] = 0.9728643851066920737133441046062520536691734070499542017450962752256767189858167889175439147194338156258543588356514485569836759662340193287869213571961760422781169890315959462975774268191429514424463531413225833324782481432099303839501586907427025421341402079057930425214259527474481878185; nodes[22] = 0.9853540840480058823090096256324894040155926309454058087178092210085350814702507706567935357988693084717360048777592529211975482976200999138335922151355075742278279079281583409637063122367381643367228428984092208210957974909616473382012915336331607687807533058908419636635757430236892192287; nodes[23] = 0.9940319694320907125851082004206947281574779710683235903365247891159333102441986200847502032997488182597606600945459419958549215257107600909497912431076196464989212967891293626057814097833081516374703513635326134819095701676989809941280809053034462502697330311898546802092693406276002055604; nodes[24] = 0.9988664044200710501854594449742185059962435129040785251770386176575391083082719606000817676304540908816211142125746246395146062751602721269012718747075215374285691593278562767853983187135230076747980429953846819229059201451936042829796424039633265927034501611175851432195329432234117877341; weight[0] = 0.0621766166553472623210331073606134308676824692010266331011656376197576116005161496153965234256251945035190878538514646027013624173900556610838761659666942055109367824940206833480509708770585965856278059828616376291100636294863879189012831678201204004108488665741182142651742559639551734037; weight[1] = 0.0619360674206832433840875097808306885728770566912449049427597061169548212868868663541874012601839334985088784270698064309969541498088869067871658103239608498898570222942039787789491100273928863404949851014677414818424352394725004762435803560633359022843198264104954032099529619257259491801; weight[2] = 0.0614558995903166637564067860839153750972675757640075143092240503590591099522169672748200364437562204885807990970763029249537758507233212237017742284844183388808291922833760284738758450117061649994572963447806753613201097620387227379616502864895473076255186860857337328863552346319006579831; weight[3] = 0.0607379708417702160317500153848110016097992732354035357231967745617595765171250534312181750296374263128879019092782305080557064856348434408055005766902937540177876396530061691581507402968423487639092501934532702439761390506498453609601806061350696178237290197888702751499183627828908402727; weight[4] = 0.0597850587042654575095764053125852307966660420726690045852419788036192214142032773895684201637879463019262072380031466476567220929846354621807808797175608715872823266008581920669925958405350260637422098766570723624719697799240929217940484053449893456571504673198080898063777197662458641641; weight[5] = 0.0586008498132224458351224366308484662097675134440254733132503424753544800506010023534917402823387735713487722160695308103736016013598877502341407681854271828711140153510988037511037581064245169313459924938540820035525160696902589953067412036754296845157116278286705995866817148389552326749; weight[6] = 0.0571899256477283837230293150659931630115753722570917549368537813528049256668563831914853051327519838343266837277662399801237849491243357879685587847939246168190354707776779534518066772752353854076858916160306814778908970118801094130377959554891723025464423995945639001222807895668961759585; weight[7] = 0.0555577448062125176235674256122694975951352999839026758171727785103185507145957318820639368998658383891702034680656404642584182170695551545892155693846318189390209831617210201856838868147573364357753897444101398300478442200366082264079846351201406914825288748851048678390818799658442894729; weight[8] = 0.0537106218889962465234587972556645527680232135299221530458999991815965161756756795399811463890559716706390607630333580513802468065310049578003524120769795024923001794565883709570478049199582519196957329760304489224976006321620359421219668709500097205487235850716303396776885970216050912557; weight[9] = 0.051655703069581138489905295840095279649825449395439645099533186451192177308562865499955919291070998211945733531087230536398905174851121913358052847034832206892197271597775815649283122380044945707302272504442068639373167689486624061693252223663913029869902342770952016571975414683435427402; weight[10] = 0.0494009384494663149212435807514327286922870509666131247921235602480698457058893934855742576111012442758806751884673539284143694774538910767598530854628612574565368779513275794147215370869906758615264094416837517423065027140919758686756919254935943043547824194682360399426732716524246141873; weight[11] = 0.04695505130394843296563301363498768251406430618605272996580427934336506071982918321772533927803330418127148266353891891730783028024995970407779511688495011833925704858010176705373000480130282972264414250145548002275950628487927461806121308391093406752752302136584048644405426398807886424; weight[12] = 0.0443275043388032754920222868303941974607612983554531656632319068276227294714772828508214754531825733608057601420433182446740997664319779818997585520416813922459267355934426368607473489745720599652869554865615372043424853098967308046422295118461130471747696561564617535249767562911218564247; weight[13] = 0.0415284630901476974224119789640670178089779754858409900770369779521852810066505337033894639785000653543199247940076276702781088475205489401985605222658616647455668295744035872613926105162445460879372679080469473413669485040157849266788132495103028963867982810247165653013110017625307860661; weight[14] = 0.038568756612587675244770150236385934864771705000518926510807400152266753249947479020171318147887407669699148297180522600539391466503697614682624242426880046497111854959730227822224610494054947231715167469242161155882926601159757012739020539776161367774706792966521335426028885109414537805; weight[15] = 0.0354598356151461541607346110009757970969600004969844709128704508599711665304799705630640668049640238126696394380419907379503955293819633755652145958301737960247068800412033714746537177390275107383816819172073796541953142569288628557776771276366225834861950445500205918325393478764409996431; weight[16] = 0.0322137282235780166481658273230039534485890588334252171583296054159113002451764634600621885258031843895035356680268477238846720276382240117467605812342957953994837188490052230941410296186300830228854450014025595966788892475461447355342233688977045020827005029856893142819770147092803439821; weight[17] = 0.0288429935805351980299063731132324325178468655935374578357126230562653296642843390466277200547673991574846975798750985468255118305424015794455356767643380854134868810708427452633175969512666954713336776150048514778191254810795774602056446799780622170709599733556475059858754302007429798032; weight[18] = 0.0253606735700123904401948783854427234601612599757121373393963329520377577467275278746042485641112812210948127250697749464745053424003499073219081421087639806114725782423686151356176334891707357397125669841676191720237079416284620695420651119989843568903711718265753550654762411171703450081; weight[19] = 0.021780243170124792981592069062690341227313462357934296044027139447670830221994978692528405062919036610750543988184459389787201683069180558744227305401230414887261661705663865566154900860877968946139457454588973130627030391289554278934416656126926195411019074492775663013159990535947112244; weight[20] = 0.0181155607134893903512599434223546198446673170497340354264529158733622897233659107514002021809730631088150939321765227490103352735558796697553684721170649011933661399026597449929061923375118129851679367723500846074579634471567200824783716259879992414056880302373215102412572472560511617743; weight[21] = 0.0143808227614855744193789089273243499370317861705878927721016221542517365633168875929040291288750820092046947340490223191159819387119533624327827984346761897882810460464837843710180794865913762173820888463912370242663735489505137991570616343466837217057560706590056964622010532542543453623; weight[22] = 0.0105905483836509692635696814992410223394018190864591294563347171456491606290268573531131180287061868857866290798882540355464247606188273633281593909433230031790655254203200931965314220288613325252143665088580444388746098084157541099474412949255722933578429041377751704679271112676830648139; weight[23] = 0.0067597991957454015027788781779850318018738324064668105528787058554029967944856787527566093874153215001888105419718171291279415096115053570914447616194407900935890266684583680811662741768053259969244873142935863704016269005056434462624167822195711509108470288942381864465704162582866654251; weight[24] = 0.0029086225531551409584007243428554808066729964599463206185935272835507710401075371030889534746865396796712229961775201041637525208319912384405887138057352162245263117236613745907325298881366403327115219447579691089142464776280578769352296965930400516951643315492273864484850375720177732566; break; } case 52: { nodes[0] = 0.0299141097973387660436807760707999268188436082499469816198575393911517137319610109736968891544016864996756954564644313854005317400236883290353731826588953706871221729792605901617969176115208644136170912365984784870060830748025992405337124861570163299256900914194825018126349384495057638983; nodes[1] = 0.089635244648900565488854691122399303169851287190198420484102629430721031214167831380425953528138253651560466954193833250331631914232348549155236316207895255898550402909016020938220462222387486313623225410785857809529142799861001603853546950916907734242858269918903728118358556301133946567; nodes[2] = 0.1490355086069491804886340400181135703222697618882335324355708655438541551358555599837913963526310736189526730254023668377020094212470092561595980169443439441487953825780313637374796777105613296641182994350481456561810173131831793520462705476036862795808175433621682483416099295910983795506; nodes[3] = 0.2079022641563660596864661281223455182726628108282046469354128177946080057962187382922909880236702321366831522238598884100764335323131364348684498367628105208828002698366624289557902741702522948365970841103978771775585226170871159204752837725758113449657886873016852529123013274447805957084; nodes[4] = 0.2660247836050018274729717305988398844559243749621846684671372572085213786674715172068671977834604609261729554412901928217939779358465038200555154186731607251631366312149330057758877126932194980842064274339496330976012505178247374393414902773558282552641681058074467345467908830585529405525; nodes[5] = 0.3231950034348078255010990666014471790540475338065794579393387322782615557987724779637245194983428374234321898722443818800220166781612108506110024830218448621253941927812880954623437933407908916386925351700308463311236870834155882671913758658554190326851727058732598549019158820071854632551; nodes[6] = 0.3792082691160936692466817669394488804621215913511966093360123101035273303581823952926012840819751051084081937253680762806640865919178799320243475362337830771535422422540306780544720853163347590458411852177809832826163791398283076760852191403038359413352821230942246442266182523275511821286; nodes[7] = 0.4338640677187616703090865682097802607437458524184033858190972556065949459441455343521713763486497690013706020549101349548465004672161708941523758343188976393858412966239058634841740824563328776906934366487375697756504103003254904063646779053526598599638022247383737764030129239675657186068; nodes[8] = 0.4869667456980960777824582413464655568504550397190236877426344804284211044868666327758311989273922573268554157627640184506822738075048958824620072520052052274974686083531936763610083310983089303047796239608416531837095087519548940450922572162876342857209140953413190427152589271523175066547; nodes[9] = 0.5383262092858274383759511679753567638234901414030809734098556335937699593215542949329750966608025251391909404902756692664930712920296663104361183999284937155173626535329604071341595693892870576890849937640875010620114375821599062842504722715744465131587956710125521874739689634787862145214; nodes[10] = 0.5877586049795790699020257815572042238812201665380434899597849611703688505892422971975905873154008259769652025341930834636805203932518889898149113520070007047135262736464824755436146866572025379086113568333656885658481291836796643796671572383433538011566161365630379236501101463392357282026; nodes[11] = 0.6350869776952459242981245792888096535935989889549896632034837966482065711724667467824452238790232706173764183117712003656791274860409904873954424493949444559253561806528171251876922377853138878456260800761527563333762718786976354425821602996738220001104558161875041372734143468915953712318; nodes[12] = 0.6801419042271677020922387797366410079009967101657759155654529887601207020328352457627414288956096168139870946157207046436705806197590864384205391778395977705919202076425792947526593849441196792277380500700856291488209812733614777973617487166476600674204204497766315812504091920828971691221; nodes[13] = 0.7227620997499831936768166760719359547839939052147200199234892689297139041115590380465102194176393999586443698537109721729644687758821403035399053665325311167802713335681293778120417879614333617527628836311786495834070335252365064505844663780118011519687874134116893074777626112463467252845; nodes[14] = 0.7627949951937449602792111630890508407918305745076215467186477546754172240710168541973907453972576744514163605951019759347683573361976428357866941384960221766443418162800332901650845070318451548329158143631489853693380415918567791005755517149095465871742005391669734032912277954592769552415; nodes[15] = 0.800097283430468324334758754225807651197641858607701580587308494383192679347083582503507996165395456254687585695259834696390519920009943901899709922099505652509767638571318425352331235756484566223198929059844465614374671095032967307002875950574394524912112560071683421817482242258607051598; nodes[16] = 0.8345354323267345349617263896212386852459363126692260532316753953752935606437882556132963308345498757611617886453313165478960682287330803030523409669214920637818285752682471217239589222985238708405550565718393778703840341575733650823340823721318720114001555954355559005708609186910766568036; nodes[17] = 0.8659861628460675852443585176242069408983389526242908239353345450137496620282737953144857361185312823991307113395346833880659599106234215290867318876198066856264940007725915787478056884077924551514976942489566171593777920044269303671972855894452757670619040448289228359948970657297235146494; nodes[18] = 0.8943368905344953225208440882635275553455809955623764931926988622237791619576913625361356887645796033865445287345182279324839525761372519107363581567609553131661491268821242136450223893040754654935407590275236818677246436865113428345919782631044894387036599947579006544440650903163105905023; nodes[19] = 0.9194861289164245398935963765418815850295202727024720571862228606273070202713075558997884335413180199679670530150935771246689241629538100726519579524208912287215771635954049185858704456128323379038852483894107086642778652174107274755110339757331454381463882780242448820654411649564621240369; nodes[20] = 0.9413438536413590568435791838505670058287655454363191996700318718956069274561962731757292021045029805552872307293399599795710842217262319076704797765735731348292702598029909577391420279619616401374394855490326321301274917243027641484527389540069486660462105240564943337473253653402939481119; nodes[21] = 0.9598318269330865525320251534250654427878474760376774154149939732436280601524582085756397191798231321392951135729793680751368921004492390866286059862386505613487844851821782295696819097263506139889883237886121323965070411832521024271674224254607940591928345162971289830925712565182505279099; nodes[22] = 0.9748838842217445031407064703996455544599236639459383978284433505624298045243005863075601279114528752676884801989345222189739623399314753573671273581632631215095266208687677728974044242052005291435522320489638556870903165513362466794886759317785745862693431855001535579580166817781576525428; nodes[23] = 0.9864461956515498406453228591183973680227390358273262327971529783165911435722829842558145629061136329384975605202078694298405019860448659027083437283150950100495486291485091275076449555120315478998568958173863139005390917310576577811718456676454675617735793277642829373618220725199950486861; nodes[24] = 0.9944775909292160292450432717995717066319117760978821714588562965582496724889117684595945848388872207608064637522839555990387386391547113610797392362994406392702876415206034534045027541633644527082297989396176334942077833033512347164564241714831077584977068833493732570597168945644181266835; nodes[25] = 0.9989511111039502780909614407165925612780132611153575616799248405004389142979138086614943179988118999109017969675859857247886657044810387096937913358683202232307488277618099196923762324849887121912705956573496557912028345236155598481581369751215416103969755792140242786150790988630208755036; weight[0] = 0.0598103657452918602477853788114774609444808036304140629325763147494409627007561314224986700920387512738748661058225913926132806166386309214648609095408936827797681268874365424207727560494038340010899611623484002444168317935229831928830660737233309024163341991925083948276975075418597182184; weight[1] = 0.0595962601712481582583108787484149536622772803819419155385807811216201226945312370453016085924124041913655969475888970336516472766944360191070440778622130055980643117806358306246070809996428738830980591743489182188630823692728480750828752194633845671794229920133736266643897743311156360822; weight[2] = 0.0591688154660429703693320023948709783254170522175978797865113524599074946787826776977643408000844922245899242495425742676591578804481088173574678899551264815914714673875013690943284718603129502562020232986242767834353387883148702074601511756984831994020397775820847951250475860228863861798; weight[3] = 0.0585295617718138685502905989716236936380687327423255988373217702849558181407120137633361269376347307049838762775688238768481911294059421959517451356874245890849743281931029515816006157044476714278836658658495387782403435595505474042579101034868400810787042145397675644077876130757291983473; weight[4] = 0.0576807874525268276539319976634035195394398350513375844862481531749364437605875952847011260975745714698283190199131905679907308190635102714212135622148831598675175418764493299552748906060649375766210625405743788784586762552147850820792141960330962979150364777700213132366073594804588109805; weight[5] = 0.0566255309023685971908082404783701505672200728147146762239886498265408099963279243879364046181585102654498977726873576175548707828074622947556354986853652988080141275160445779822394239285106754113409226801801581582438024249323264476974513492855213409085590166507340061396027006376099296978; weight[6] = 0.0553675696693026525490410934512185822901540032510420234131144118112831708343121504857637137316137587149663146273818887662097045785900766736982393920351284374538436686066945138788775609479880455969522066195264361661348043467890495003700195161107838880697472808124180822118321459626204895086; weight[7] = 0.0539114069327572647508368248937999595766012469593051258848183001559998862686687795769395443765031148076237791271947553076079528146243968010916049069327927227750813453882544042708591057735990721136639998215710019511756047105308913861960486015026088956273168922948942442487875048237422257219; weight[8] = 0.0522622553839069930343941444263921437081990780858669848773571680514976992862594229924913648648398942480468370966967134831559344679865514280697074069375486538861201438332805022267228741174150382396099727284613332224897161423058944625039319649376184231147978787881389123201591069473020862102; weight[9] = 0.0504260185663423772182112540828587544625779587655397969886837989423393003611477613331634568016642181881402562249026808504075673556272405141411781180284328177063303857129103214369966723855278079244966787311069026881749307399604523598107415690356821018623476635957288264629373893649208399586; weight[10] = 0.0484092697440748968539602492860462780097495217284633972848027562768288868241594512997151176360377322831095013157019103824699228130158998290504116475153438802869904467958831595564299694751664166506288814292242176102689704159506950245432818745962502639115017281708868431234916710681370760904; weight[11] = 0.046219228372784793507645705335284639223901021626422840508031765816015160205871088721816883280983819802253843445861861853749377178942422254804880136385008960607002181296573208757134928309745739155327081772470411944261651116335872048534838772101970745052347879580628660905337839134504208428; weight[12] = 0.0438637342590004079951296655787644501641606665302048159962246339241378578259279509932806159405068703341529544735968089134994953908102861399148107998736951025833533998337388512471156880055343162782283552409310061849363151188086197259626971884879297673182501983217772643847796838540810503657; weight[13] = 0.0413512195005602716790402864239551629382699693154642276674598924609380789996494391016755838674196308209810518018140862555909507389398257523575530466384241019746619994491049049083535296871843090128398589890610982218282146823546176221027374138222076809221654187277380679171455673048850345544; weight[14] = 0.0386906783104239789851012067403526469280782659935645860649681723298465227549214963917442109736666626515017615156753367758519905033719845379162365128474325794610192273983128017563308338598549084158617808376084994397791433481423775658924486088417388814748630314602714196518129821747284831088; weight[15] = 0.0358916348350972329419423932852807387853385030651726362693942911836404334044972345813292046799079018405156670086253376381759803523465481052522235088246562157775083742708761242410246546408483864440134185992679541949821226721934977778895067239829235571304115946886260412256038756414879432549; weight[16] = 0.0329641090897187979150100447786951961767273925745843488003966138307967755644485569154482632689966908997219052434582291598764118525158282862271446251309836607032996387332074356700355383976290797805151242953452666689930573364189254345911989028996682892579258018069457245025958042533309390475; weight[17] = 0.0299185811471439466412820687399708879321233155105875174834793724627493418719507560240715873918037135936539376534074405992964889970249414229563376034602787436121138894834691189242054491915055353671132084603559133976212111955468947756401642659565850527277235781213651727793125762982206010264; weight[18] = 0.0267659537465040134494930802860183788552618844990582872570309964378511008015662541026784651484268037885772756926483982760240822393216074332893661110608196942174941464436667963737861129950438352330689985646591983625240043385791494353982603681985544457397719914198737304313232422145105806131; weight[19] = 0.0235175135539844615903225199100546094292291290029855012254292491128710444452431861956205905583069067044786776303251265091695307022669198897870775128791882752826161741636474661095009853046652192247758783709858414190205154553231573495305959495562730449970717285209066954521254266487795212416; weight[20] = 0.0201848915079807922029890342094782372367124670848078201907053153022804933093017910272194508282846471410154781931167548883946559966677336918506989488740831404059005047645445300474006977736675479602322490151638271807519808666756856500001065133196188005171071196815146317602934895208016826926; weight[21] = 0.0167800233963007356779215368705201620834158091638185160071399098726294772478125352658137771698478574663624637343346573120515371202462446633003413461994970103625277701203542207445710541059258388662528453098963539074204738057397434886775226016006350222049508328901734928576881009796826088128; weight[22] = 0.0133151149823409606566003444777991485546764997333043912196613474307117920145268092238816407281678579997566914399233238375264239439389404006680926635485895157018853354647091005066194069975978948964673557305692878726809220113089463172153847140300840482036602772563064220142932908106104660461; weight[23] = 0.0098026345794627520619511681166895023278384118572793052735047727358385157910058025834744082085694960454847672165275744519753953358657350351386545188983383725519879530540181727657279816742944723948391118385324385954703246485721080140170637305842188125869106292042798092001047257562724684631; weight[24] = 0.0062555239629732768997161021698145466164117046531312593637996623530438086155010908361570458459841218235499508799472826835435947281935169075964914299326714594085849416341139097380181971907657093594675044511556800058016601378653224730341471696059704124436569989830746178759641020487686700605; weight[25] = 0.0026913169500471111189521798688452180236693737610649004187705478912990016015308627461767975605648407160144053057363972991051243846452097128309826900511804375118685699114698551814655200176578845294097944721816599040263017197897391786286354331380214779373747979259616402732789341020739037078; break; } case 54: { nodes[0] = 0.0288167481993417776562358475002270529894545421779078483714952390129652365407405366858556871748171926496496071872247970998881176939607801638422365063602668370859844259548146952907682698124540208294834163854559144912881731816552768958409195528139819142180133073355590766502434565354628108016; nodes[1] = 0.086354518263248215285443177768749636369401537487063587948029992247873907240155628310881822615009050336866377601582800793691334120745812314943968361740098864315690201311913124849152775154633577156340827383479510754851992213078873408110661496471360651404204818049368848231566038212855238244; nodes[2] = 0.1436054273162561539470897628987891612947050162600677412345252601176435066373808258041476387387920389386284074154036783765330181360266225082536230552153649824570856894770069112084082090181966995169956870527684864022004468438724399408660056318800695343849944273750425128732353669045830747503; nodes[3] = 0.2003792936062135697786024628292980304541431860915509187535667588844593967589059767752225027606186068944188446627154488373381204106088376297238382717136837795706868881126235732610926707596123780391143610796622158965367652135541718738215477615026987272121862754977527523100323249985014281604; nodes[4] = 0.2564875200699973000774112144530083027269218730907741524879425231759990375013738214856168909447674659039299390924645946926768362024276118929691694739106304155631339856301590307660684324680177243293319861051494754192926451179266787663927587097038863597525330453495964082543531591969612380217; nodes[5] = 0.3117437208344682288825503901521237713929484971101820170191731784760069178452863861309098281910947404215340890852551028046199546215938989096750118468975752439675894694004493067605721054383292994867722083709845819644184114783377262619253066474633040768491357170719116041293890130930244501079; nodes[6] = 0.3659643403721911819843321081654874061220373897036415996165641318862594446679093928351432807556556445858463395888673100943905395723464664931708994398072137408029785684169950733726934806650424827717963028917523733719241750080866623697523241048962279334907690279380677133508574150954427265036; nodes[7] = 0.418969263255204528036102697462510005200790183425047582730989157557009271101032739901500276861455539781137654784208883187556873298897238119480010869086486145041511306567977955555839652705976839007968346003151606670356364041383670389036297203353090104394461482828135638755462849660796176929; nodes[8] = 0.4705824124813822836832121363277426024314466398144200439157280260753849589364102201367709489991554122623345249159587054594989619213842556824434096818958298137760787314812482634889900054962685671771879839717444959407078748529678552316713944375568635277885254552630619660464602100515137382797; nodes[9] = 0.5206323343859330733270171387497641188793668552508792204530462774993621806500143967015703129294900934034015468835676300693325057242795530288988607622858734101371387094129872784595613777639688813265163755979592407698485519140933587560332553342081022487074646659120696462090810868044387055229; nodes[10] = 0.5689527681952094297316248341771539427738414371742116186705726859595571182303951731662140214171010175248522755567832213123510059011999244954903408948538406022471856142809453485877467579121781556837743894306055740676259724112462527199912985337975735075995202550179077368784675597568536908974; nodes[11] = 0.6153831983311273707299378201617283005959726941294986221905096499397725437831581612543219207324529535544802422929872825418970066425751407663531687028165316396409131956978392008086657864545437062616185581290195046017381783128298853353302335634923692005254267171055704366162780013324365043778; nodes[12] = 0.6597693876319831246922898228562204747889582485949750486674457277381593830065444745127101041777390659961338854100367768383674880329821381218362246376922041247489056012194557818302156752249279948280367676140318689204890407461099333826073416272578699074503040507380621051261351624461464505354; nodes[13] = 0.7019638897191729193855709769696706012688111104896794390789343781768632833673937215055331439697118770813222456029923982090646508782662340875535794582563890183364508041482203593086973449785318335573957419596913317572773447198069181766018301730291798849819939419249035741783807472385563179548; nodes[14] = 0.7418265388091843162857662687535780009397291449828156030407380279810586776231061298204044800423158132284320300322423335580928668759250114424590701494325484973095085699498221837575729671734347019207573152374615502392669943918214454286221673359072470424457368252285641494080860654739721959321; nodes[15] = 0.7792249153462540215359486148405326557488890948290502591083679955732740338696965849151097815484359524443783921511668726482343786569688708229368247050827739513618634562267245603197497789184063542475651069644282744971271125674355099649570226782929612188078263175344156033764636011898430744588; nodes[16] = 0.8140347859135678354696383040751989448275901832336139754937553088001713402902269236481797912555416342745485539541765516051513606917139821453059518564583819582106065742169023857978791761877893899747676651463292675766975737554622910608296403249523361771512036971715304528926496106555042167822; nodes[17] = 0.8461405159707729494258875108728425003966323802141416573952013483987579890764167002487722693518965332553038859532202944020029743023713582684030438024367952441757865699506652552229952693133345971058796440466785826835757881647853445440502733078954195440277996300911141758143241059442466584003; nodes[18] = 0.8754354540655689394179093357226108224865474848070161720403669108202709356797973210586985684625296564106240591713422517699433182712152353869512180777968182283893550665161763999588651814997104198284549023180773955280783382248217788601636423782817805047839229222934924621123460999770326097638; nodes[19] = 0.901822286284701580757467231388427964363928404788918474280036036513356073622533886908582169299582838965798796339398525863561915707997145975832246166073690912646824620225509053878509440825255822356491015808220260404941069094265982476997268483126473666653233146372468754609578692438035328212; nodes[20] = 0.9252133598666514862562760604797913868555841935668342440680710089307697009829404570588285424348521280294764598681280640019670460631670148816607000456462149431622110488486972634094325552897826713675335635994287708395806150157498836613472822568768998683908820546868862880768180332586100782958; nodes[21] = 0.9455309751649958537638370229061804125634365885009864067622174589021326563909849238168510257101956935125732449635138946860239752584536753374525114822375832465254925007396621303986853795343109134447735256510948831507298832153871027037670418760153287311220911356018337516965894503854578052148; nodes[22] = 0.9627076457859235832569939269053899435369181747020375703625464547572582691252062378758849650499002998029523549642758198279025862497394991447276574475245216901297854939095361246168864903190909936367952936224083575494015153689601068724644155371033294414787398110331070107537829370721036315843; nodes[23] = 0.9766863288579032372000100719883068574678059732400034120243720293231578097842723868644764229765604923053750886187487744317403656320630491608012159423965935695546540945872919810123740499797824456563139338650041850847188511950068127547446265093767525840793124775502640079870207979692303559394; nodes[24] = 0.9874206373973435585521457204035462615340362908392385877511410381671308741411897649359157916482007460481095543509929119780500957307948033456094748680378385839230642053093108430660772167149736269573291550072555968058642948645143491775757831099964197666299785734708631981008924805338245882699; nodes[25] = 0.9948751170183388849188899959487026594841267588869998286161566818501447994477453083057313754407452886739446075414759355964378257763966273430379133534426628676653093648763513132729944970226341336732504969551876656492880721216392872525355999689223000153544912808085752136006391147062384087059; nodes[26] = 0.9990266668673409838510711069839584931980427857969603316816502147540906374057918346046850134848377376581717479971531441519755875413658689377073341320463230391024559918972349759638043264878061762230940022411704623326189890763845167124094193145335146277538524147673502157105307227153789134925; weight[0] = 0.0576175367071470246723761288058714771729017447215605722859442062665796719680985046628988127458997371135427516038083172476005467345044310992727778227116826443562572871376912662542338761214025311600631999363529080767239030486376541318717728419172026213498009790791006877315588298883765020779; weight[1] = 0.0574261370541121148592901317732068293892190570504253857096688442009648104578952350458007159569888465330850838234008145777880881795151703433905632526756620336346862506398302344716812552232521426002383725104356791139048700057965842599831728584581474861242314792424472521156218224657218100612; weight[2] = 0.0570439735587945985678284342542272120992117362125463539033435899063284264756698611050889233939656270056624575015503449755940311749652778812920518719329693605684273748286444237736409050869659294196751709260141415770729708003606489054820823090628323767652581059915201649714140790552238579994; weight[3] = 0.0564723157306259650310442646817612479537373621270836423416353706259311369808171689668516020862485134674403811289933429849628684939199758099963596673552410195640579189056956758693223361563608640529836694161276186701200386164012315688218146614091140123995291405634160971404603966692810886798; weight[4] = 0.0557130625605899876833698174273711106847117171157984778696334274725973732587288966287763380252676047904205198188463072359575612249743882478996198655208654098612240978841600161105799254128445251078800746679795326564094152510125573573895119959739251491044168505614144198808003432224850732741; weight[5] = 0.0547687362130579863062226347171090207246210665623550486358661957852699685219083823621563924754158211269464629017119478707085442889492468704167445110692306853088187722888813220337272547641028729983149694358794733876832797559878935775935890343916079985186377848112119233902797803241099914901; weight[6] = 0.0536424736475536112721006277252465768628158596085654398883215322370986662785115541438849972399540235766872912678119939682389291673823881859321519393802015724823352305436331845184028443144859309290537511870470604732850501784738811901451553532722787221336120953504238939279789522789890638765; weight[7] = 0.0523380161982987446655886947526850131804317669734681028818373492316187156846586233398479036182891594705348778949603722501405895702094640690465725354257006396487197916963616835338638704431757728686582967786940454260356788942800271772888996166212942480250821803682303029056863139866752972143; weight[8] = 0.0508596971461881443197092069761187459120602653893317147718321932591557798105933709317986058968809289931470555495399747028044421105838953862252588625930398243492357775883742886578185089308296036526357753467834873915559669696836253279006201633018477566073715559022159266531837868130641894236; weight[9] = 0.0492124273245288860687906303688116280775041129800626816346386065113175053260535898700637101556090802321211696494805479249815788724206738230600963574227690171908443881575329040482645804466492613917766757258070749107332846800170916317750706436264029395438177503883712436831998027721481937416; weight[10] = 0.0474016788064449910585764101153236036382065889832506088200313891205944440858142438018797945572437846362348577302216986750655050330751476207821187756114708340697094790869374380759645981440457157887857020418522769194323244440528379246955479988865801536888614492167002681251409515792741875972; weight[11] = 0.0454334667282767139748521807515445715337756390176710815146600131134728655903738250576203600470991804558672605714904343642053840136393577489813312369024430208222995618075802145188647799369342483302458917342045761502535845125684975351963833435753705533436764622417478597988760807474641891459; weight[12] = 0.0433143293095970154419257603705081181962891240438496886502092794955786252482977719921390392770572645688355400760048436190799334416082511963476886119654087453203135061429802840992030917905928584828212974555148053007683173563236464757679009487990758592442736897951118386845222793754006755246; weight[13] = 0.0410513061366449742217182108776043341937827974464546887546177878250711719879580509165700236152462541696265521233014668593283284398052450374857738274399562704634426046922992700837233875361133651593563146901002176144945216405334333026703389767543054372516846951584373947652495430045873201199; weight[14] = 0.0386519147821025168368571390515798762390115093557285540372686325128961585775022682997422296325137223382935243734396017977295732338163099935845049291408890949724919743177786150765461972520258866175296406383242163997643368155212169756088172094220984901744249587205300082663641441897878700738; weight[15] = 0.0361241258403835525828870742074248459785730799301673298891566434954592962389005715230507574610601353021398651948841127082526301940069595758824454427116453985215374293474054349886544835709647813348265986276998048673177400300253503184416052277893785504807045479183564108559752219428493149311; weight[16] = 0.0334763364643726457160404448356107927148786074236837729643371676200713435174338544064203332294143127280852967697859962154835570428925097793856449105613823143626666996164222824390496212122583516073088422791583318221356618706174197415981548393151174598749112635183404833906392116314507243882; weight[17] = 0.030717342497870676054004609916154911019962212077160465490329003245225752643022838628479309192939420230078180049734411416459196811346134379317756842647520062407537933073846787657382559671614554650588420871917064107865131236935285694264736765774615796020276982306144525225286900137080935824; weight[18] = 0.0278563093105958702870020347639151512373099356257426965550132642130820765064114415963152779064603697381958338731512008091298625723743924745830866241722318512119548933575507712832334471024418549159273111675021482903766349788626238269830683530153044434245417370669172507108366366431967660251; weight[19] = 0.0249027414672087730500549712733890425756231328791233603534653854217583169044568608692091023460475367308624582937034506236569950389574424076219405951319391228743940334931339369451312564041762336046001492363352787592659657756275363922070444721898002217551057726444294828561893010046394432189; weight[20] = 0.0218664514228530859455104265388793009815703165629724420678843066722836756853772065570019355788700435337479994692838175650068897933748347213795202560609921371640558235888154256556134524295565075785856952070597637863001573575745487895786040976003119116178114275060892898818097015237825150286; weight[21] = 0.0187575276214693779120079842840711626886355747427113427979552985636991263320364613297143108081485900665081905665383323218797749064400108680413932177635081439340771510121147258107265293060925731930010813309960176507384112539911692841716893635168344015911476082816847846386349151054556395411; weight[22] = 0.015586303035924131702968909705836765468587822357639896201316671344878585820164598293920421255569901500209570168834573101489114925356785112460236873289371253144257423135036103736424280363034479825491065872941853638781927002303916686363581532103459507138478456185022690140120085651104526576; weight[23] = 0.0123633281288476441664678242601880964639944989484336930420569836689580370466007561232058109232128531472548026992289411043055166814857096063471129922273825775404169234453864782931782566391946128832498839808172954640104347621256386512302656726394397528797406249145285616523595322173217339089; weight[24] = 0.0090993694555093969480335210624192617218747224079821802075411173083518613088047337947530109533018365731102838434973329378347727961188203629685531291451294905162305917142343735857022238350010869944993957596570463858242828798351686907584927522900779506091333399255957079854078203056899480956; weight[25] = 0.0058056110152399848788258877458752734115246519894036667893391415546441823538923058395996755173116828647476661360911741304353188451368713627678514117420178606399751252774930779087299882322140091392697873394058832035466909921751983043690398873068750694127819603752551351369403947776734388285; weight[26] = 0.0024974818357615857759460387572660298791850974668271119420965993271124253900170239132106061039837691066140669207046480118804664131403060355308436373993496150700319572201797805703364896736694457126329658353923979555994188902753162778430390809867011309206871019667563954854631726675431977796; break; } case 56: { nodes[0] = 0.0277970352872754370940611967749205218883766031467744877612491558666721293659306312265141126161825998688139837133476641395046783479025639257912184262133613461334964811341311597633393260081482816349016526161842376963322426312617901364084714920659656786539511577498017113521148243331215965974; nodes[1] = 0.0833051868224353744402873554406624481839874141890305458910885742003799276870593073017529527471618537373216465331861334439596599867228016141630452931841436772837614761899633432622639815878848561944703920208451855162179629107806832781987847703916611525793101525933093966815781247563460565496; nodes[2] = 0.1385558468103762420128865804384905953514905084625285514833684587893932920719984221472907771583804751435394873102174149092734934663508457141857536375286802961519186673546533234345973110990887021743416402076922426073720013663075533239379547395657818501290764853224559454422280722372873603219; nodes[3] = 0.1933782386352752582401847230126841618161673927638012590361582724964004800718635186273056107916450806379063436833040508729633276962924340555718640073237747771535645430687796941567241356472986630589976151392594644652816613087283373872615254690283795015625516460136529929431723904463612148587; nodes[4] = 0.2476029094343372039729665549705269728796632431427670060901902322797740494762822355211386458405402510147698195987929025693294897229297128690335506175225670366478981452179227345286733453188593102268517849699041376208607795378157434060333506286605550259257515387730597966159424660549207783569; nodes[5] = 0.3010622538672206690530942331252343439250718461243834706968355660924824445169368792378918862033252631958429830826092474667177653050453221079190390707766805426411691868601863213437401997703404901913486303161695067319766865300739723716031599500326602808888015219336353206994456407074022326405; nodes[6] = 0.3535910321749545209697073270332324056346787943811719764684198155782647029852342263072847001175679130067184524680182655007133686403285351698414736372555201304473072066201000441480131401304002129187516434239722854884689287791714156574018324805875061338704845890439612894942066110374207628781; nodes[7] = 0.405026880927091278118866962602922894655371382368290725743006053092360417364756732215332263039934923701144562419424325543442799086394138721732139590855874015239351215331619934213706030675657958256413453958514261469066240465986418848069551372601948936220042429612998169053798346237837470949; nodes[8] = 0.455210814878459578948831581324609559907226905503907879801963157016918823614297316085377500878836674255554131459882385426525822973831364020923911120776247769117467441110747923503007358799007053169134641679334665257599324831747821970377428463639255927724617732038718843913625529341050742132, nodes[9] = 0.5039877183843817141952244012186381377093059493540175024412756740115231250046080519105490160154730033142472022172603640914907627127709259188515037920973378229429380705237011232374447746043361932206314764745454610987767355755431703603245158285208188640358682026832591186356776757575646934045; nodes[10] = 0.5512068248555346187543635145763166025256625783524902433882323896946347006820574290352568457792119858091770298767743520163457880934141011736594594293756030231101266928021328878727782949929083112517178543586076741811186136737558008260643809258094220675296923896986297043700485560241695597699; nodes[11] = 0.5967221827706633201041352171384083832205008692419443647332588531297149286253963613295618519675723404497440893316001111390949460237072473972329861826122987461479486047430050204580353416818422796462862129871966299318553245478035193270685766766446028344251706450751687341788197364928897339312; nodes[12] = 0.6403931068070068942679385960628130789238065729478058308169970870265297678284740015776289780880442252986786343532029313703182420396473532673439542543738172603392646828999285107931725120278331302038435941489114848844056744593193308054034498134651778138377514887771443058063037812207129975436; nodes[13] = 0.6820846126944704555015614779698363331051093674612101942127208563924634058983449462163571225141050262931440377143055918017440264524828145638151077488261013481771068237634382999912818623867866614073004020401435551050764546420571752095352655049670076235004798254385645755009366387116058911363; nodes[14] = 0.7216678344501880835225937870475534573440485192857382543555452820389489243957918253307653065128831047173268025677871180155764147277796401337983640335102725793530519292371782962517231392355624324519209206650967067500951393168388346131119456081092955696433638471929144919896269780298937921524; nodes[15] = 0.7590204227051289022024132944458938673648372492736494693302841665867558180315317253656064517021338985083910915843641187254495867157697577067070317592855021444774792277689019151741614597424862955925643904667393958867582238567024613851392322745138859863779832872145809377900609844772290202447; nodes[16] = 0.7940269228938664980300083084860004776572033016832420454877692785588518576835017602717824922439835361969658490511765481719423913534118083514293587583441732894261428182169227510391278175736206781338397348706580110016184034838115641839133160765251994014490900471077212226251173711860515220453; nodes[17] = 0.8265791321428816516721269744568503233430421759638600863972072048618203512407849263906850457532994446008733955056605301210992008045476564363704419948789815645754638296617499957945884629052298279863114545087623663271406463163612912551598638010041043676198635471101441471744991553228116963182; nodes[18] = 0.8565764337627486354029913867668706040736741747098642806623516968211672803146188284395751403969014034911739416343784124731962525982719165588500400105835742680107287266117491531969110653276663175537710817573679937768636649707453883867171768983957211421576797871760646515996447401882873723677; nodes[19] = 0.8839261083278275407890122858092867275059814102320892519075205065541491062966278179338182992597630370648179518005591656578067306776877964071923190313948482888799778738875336402788069238464173671451397467505273524615437591706374233116880711327924519704948420541912905371473852518082516251133; nodes[20] = 0.9085436204206554908461072899572417795322110688095869157318461476824230368099263922513026379050745795646288242651155907620675693357413026463066352729711268741773847135362812248705607441714788492578760053489670990210105323991856351141111444477006194683905995665601990284797044256050610937874; nodes[21] = 0.9303528802474963005472727232916008530268143059968950267406016976340228450214016745590002956137496988286808641807148790938315870082884088984930428377558424728610819493642925290614095243951936738743545100478558268886919247141825433900675175458749251491043407595342709104886773267360702808984; nodes[22] = 0.9492864795619626356467376027949280668895635225881445221468701542761360591003370732275890037687644188729947407110237328236788058012971903963570136861014124385883592754071427086097893567187130306877676254448121473051184776211438792024566953200986463713054200369432699285464404683091194901137; nodes[23] = 0.9652859019054901836261949760550956982175512186576634281113326525424387217895774323316364098123282574591520608226940467520899893060065763288479699201136793409095699270185163322036915479901917185149695846149178376250555213203283518706871868317260497435992747612174581521623230876362445925109; nodes[24] = 0.9783017091402563833769905515381881312270138977502284238404763696421936362460874412005746466459340968745525575478635572204280373489332554323050477528849764406155771643142052620914271093300294938108816263167143303593071685500308113731507830949271663045538285956810942152287759062910563317852; nodes[25] = 0.9882937155401615110899251635234862167645411432246161649574309912343659276199164385006564303902772300528646622615520146155664296008745756817681700852124170970284272674412784491188570175360125232269159446450474828534557545205978479009855202375652749531702348395990394223490466243420319936452; nodes[26] = 0.9952312260810697472163087600989409455485384552339903745338542327254671690294919455227570044907030560201368385309471688664481358789119706927198595506375287902149866985400639639718183879522109592608679477593308152253789923618549051476705278348007343562752521902605218182215255110688191908762; nodes[27] = 0.999094343801465584353153825090904262176018978459756369772157258474555952732056785168527429295554371833863532796284797843361358450966674588755867976733652576926594859109434628033566599070307299060174106072838152635367789547594166676233205206477576792681264194087165152527887147796005645076; weight[0] = 0.0555797463065143958462734268351611701440666225563429590041722087536575657676605290578769236934478825764575827238433812255402834246786504369631690557901054301072767154137193675124957294729080492091186354138602138418643743287270814292165715733247893174212845722614574322459415150441263482667; weight[1] = 0.0554079525032451232177933918439100189095620313806630179957929486883879579564261910950875741108669609647856709082670065064451181974142128748237654741473991286096153170533874594871091658505162157945269495132672635052302004585440512656930682990219718049066752816617513723202797546274389960321; weight[2] = 0.0550648959017624257963045975478503253413555128006590125775142718657663725156100924756536500774411984394926569706285772092905380429434711305281675288317683948488856617382277646966123418400951779808617795936421087445015371133500679682962215139256716596448982066196292525640229625286047490371; weight[3] = 0.0545516368708894210617506548900901799440607237809163526321590051551876869708015698538591307426334717920985212522153043284450167473080347260091166420246129420607026984604886741792663102058244279127764170118977799811244961157145670028003087579208830231362271952505925217446562799079349499996; weight[4] = 0.0538697618657144857089544104066979942479245356718882474484464493051731402149538379458804359077114802152103280936358603309867580741434558135722547811522660556794557169711070142598003442415894683693045137256980705587247657951369253876370548781285364572973840132807643494845230908091204824363; weight[5] = 0.0530213785240107639679915586076914687273814340810240065496059295714680870965228588413878551334148974423569610268231312564909398061415257749943171778579766278854773125527617196571417696578857654809438124166923581661341912571473177093942413980921190057952045175638410000655495810571343035482; weight[6] = 0.0520091091517413998430522648274847216705325853129013583877678202334739349954496490141140121332945836227382578160684669550418855511279132997147633640534281956149068291571350183368857850135768134494651109844779043066886801678683237340868599834995064999156138979488419341638429478053829006374; weight[7] = 0.0508360826177984805601240184701986559829916379320842155137566090281368883755327593943937418787257858445504807414251874945319146840841828881828090539692455563519609827722252391938785550019573860555238457566439675874395956540986820873664422767588465973099317710157405031543694153365868871914; weight[8] = 0.0495059246830475789199660464308455564187188490713179959568292411346804765155245867604221222816668181281066718474406528818883833579821142778015360925897568390514141259772219618834466881784701632594565929310539740190658549911710312069255671926436939633582110317587077986780918474114619709667; weight[9] = 0.0480227467936002581207355056669997121440168767700242701003147882322085400258287276749989252102720277977707056780841253645539749437933756536425162028284598528036134933828470786928397144686191942691260516195345552603088158327946097314329132695561856279778258665924306833492570812798242745944; weight[10] = 0.0463911333730018967621901910664960342346098061005004903055756316382491348702675272661285615923186245834960815462562012022082605831985600517984937129632436540960398194821324616638939161971826025759998982066984613333059851506391009617021773876488491003653540614648210091412352723730925522564; weight[11] = 0.0446161276526922832134151929276237403258464384162967042256470525499894504736295943547305801711617673172403535182620431111798225488280904910544683167215729294000486464787795412651619840012731845738041573553483939231923856891631609626795164418360487612151516516033580479211227026029131605086; weight[12] = 0.0427032160846670865110385723624770808934709459666175748904150291868831123573661873028024557413043006556682134201334544156413184356655655831907873184318246542353896868561669340656087249789366385235048987181210748977386598945054199799907843383015247041127655200099880510721657427372724625787; weight[13] = 0.0406583113847445178801250227788527630755422730490527223183999177434758270615339731463270959142898257451077577040351263014677617511064949342235947160342281468086508426239367289078656313328294231919201437367827228833140341718760059792667840399799721304045656959192918518595818889907737749122; weight[14] = 0.0384877342592476624868255916233812793438196346814820132609956968399007999777428349579475759925156553653769692787911330111477273665112752241541207719284350997719569381241975644879540425435373985034305442657722545865960458237719113935390005791670555186372969496782369214844665147002468835604; weight[15] = 0.0361981938723151860358844682888862454006302346723142169208460266564677993760572147119181530971089999658980229732286045077709273218232038355891466781059737683216116419746957593192461156646725803097123280281201334234151459628717883644896147751098699603944940854571880960142913801003790901938; weight[16] = 0.0337967671156117612954266312254470498176070716782671451541213592021431875109158382034891342481882707623193925137796531051145436742013677581139712117931496713855995285895152430158562835991090032072049042101651830650511532890019421271138759615813811393377281727303754692234018031651578554637; weight[17] = 0.0312908767473104478678354777930253469778460131872277166142461206590978644446875193240650362595935192924552743667431514135825354637189936684065157225281317853384872450246321743045037159695370885800976095589967637237494842533195120159086062864199135522135287198663461681359733551078865742104; weight[18] = 0.0286882684738227417298858844303942726041341370468452293668623744817940901506166607171864496851266701352311657722861118009355743927751607064385583074054017586341569623327871254629967589017201267335201624876596956209453632062572657985038325184180443864037536896038485861112585874691625867456; weight[19] = 0.0259969870583919521918194322072723514480102520506943593733170924568072591463819551473137958959064973488072082275862095003319226040591276360604732435768158417966342541127780494151050346665994218247243022408954357102369205925765980806479241064266951786582793855333841184876380001218008071037; weight[20] = 0.023225351562565316937258157576788526555722019824579004433803827710452523413547337502367676396058425759097180515843220219675657349966968756625075794810071186663879371342652906434553463240639430319437694995851484846321869746157232692692026437655309343753019766975881322651411563387718986545; weight[21] = 0.0203819298824025726348059836669333475071194643986120084502264242544819761343283559590547770221456980823892750527183541177203749080087563677995482555553179538455001036052207615874959213945389696735627876173170451183883197779782129356959194801550916586553727579401052930304548546151045138051; weight[22] = 0.0174755129114009465049593689054571502307802805768764900066082793011006234763249217250260692812682189381159919172184347699657247468600563273469214142630822423617368821399345998138964220043907377323402415746025998677957209128235840020458743556962413236572099309048981127710200233085505484632; weight[23] = 0.0145150892780214718077707405330129910240961984992442575901907149389579931776968227336369745595578696126406628423342865537480132079562925419436463611277719591709288861687003495240075243641463417508762855908341170074971353665506209787126200590871161680190108401483052698682943307010109643555; weight[24] = 0.0115098243403833821737727593244971192748559048179691435853550406677295376089637653248705122225666868043543939174621915545820005534939237827693011814312449941860888118510201506125913087262996044058435418177218073634848958923908240392738461946630163765417564509735722346942609250788053599042; weight[25] = 0.0084690631633078876616271123750081601760774875741269159489372703623400539198310633941655394958857176663470892732919006543205436921760602970419723602730095586940786605473014921205457694440956159311672434408433984891203592087024641519579901541179485201493342826610720696143514584497803325422; weight[26] = 0.005402522246015337761311260944120872841627818184113977357585577929434577630521026438567727368682064790346756160855269481961311582831994842270185477590712037413710044614728607475510728487696477083184510172719750604236744011736898322126500073998400348501530997944414211557079604789733883764; weight[27] = 0.0023238553757732155011022764433958647375932099173585940305072914525535388352765996767275138868460803515403739407429607254311669872011703189408037822149937348621928206516982526237302505513526932985650370147814815645272653351247996908038576668653178722165906866311563185914575164931998434821; break; } case 58: { nodes[0] = 0.0268470123659423558033386895173799858434211766318936099778288245643516358900352592842625553785442594646762967376648911114286395753087741994756448125271490479482360386891861430622557306492967818096180053647711246123130268725019939801300463385848901659283155345576690988620964256552569598506; nodes[1] = 0.0804636302141427293098477923805031948893348968318648099211817751369509710733316603425401822100943774682232982517958785133120938588393356025004132603499804677411931045470948366310758667449149827547645057119081553466244732937509213943500627629517107171494926520592821028108454636957389935135; nodes[2] = 0.1338482505954668570223768478745409119529575242705604195710799447602178125127323332594494418833196725457815444018680672288007414905850397221693438733466010239602552383349266801998207464978495564856213711955435286135078663270150289108648416779927446267514447360081673426389943433848109308478; nodes[3] = 0.1868469518357613213743838814640224060615478884412170347211498981519489150267744946017111543253116226627677260780630054818574016766072547822362606448646952962869800201567403115638888394148923522985066911409970300887888121681178568234575984808998781669414345915122128708641403441445349043702; nodes[4] = 0.2393069249661534544289485090853347877005288280353303066039951021570730537876752706876746940723119485087713034801596733469345015905663845084075292555848736058900197950141596650905854524746618956818602693456724695373179438678300853713101963964203891745806468885812122575831427910523850028063; nodes[5] = 0.2910769143111091895330252683143033021895171008575493476889966215316730938924314343453203970244134186027335494824516177760358704960125126928942156079816723632416151710617750020516421295863325979806358313340219784363033159803593520271659668552495740927437427159575318842253751833519260705775; nodes[6] = 0.3420076535979952612483682674839969508776728216292872890506920086838753955208065328662838720864872566394268209202551225741837149185112292187015700436608333859420524420291538283240699206324375924334642147500422705037335025306776512948651498337073882473128150608224487256617986590139729690735; nodes[7] = 0.3919522963307531503712169412130107021850176244230042154438750588982092190036919322511380103469791536314486639738357529005285562424807059113079719829086498764844541471161267653485292473384112352195273292969163676383880246982464384383066280919343053305951299338589865106140550593684844045095; nodes[8] = 0.4407668391868395651937030622143044141224148019081763972134664174160566154069515537742975196214579635425130405068048628412083723034573997324946540024727333366018011090153021065925795531089079492227431130079150720410980480420821528781255546044539627169281982798863463981908350265729608838723; nodes[9] = 0.4883105372167184636155525727367854208942287208024512793435814144810195209064433879147092980141064774818876186043669014503366298562813700004106244047171379567186484242075917328150352430268257248370963029416221647198040358205397726786195397013713570341932372321068631187489236307526794968019; nodes[10] = 0.5344463096488475863998024174252043557887632873563370841208836435576136877127784654997723795370010331651508267088775960407165647230773251518741930916346868814317317323397584775596065956401992178423617049991904369470764352417190950172050168572131006147536782454817317102577687278587027322328; nodes[11] = 0.5790411351302250304899771171360834038201768166839603411656574812159947874265452711113332303926376116674305593599987325353998940406466528421034078000160047538699019371995574315403786853620317453815835805472184291463750867530471169961025875885416573004685341683946542534393680905888442921592; nodes[12] = 0.6219664352630791110339840587454911202322352538492550850048577970931175442328742687028751221123345206901372967185262184874082581130180372737991691522809468462511168823771090001875916977091903701648758600569491636035807502568957444448827544198676787577764588308815075223459904402513236767134; nodes[13] = 0.6630984453321252664330162997535656919606436243041219914868654563312482530242226486839396084264751094333769062608599779488674839500614998125972899020324999064205247361639547158717618871520286952582093160605472883118754858088048391898132604744943623771640036095903737159951017442255185282615; nodes[14] = 0.7023185711539081134797573014582013836606858166476068889994004064471838903329522932294928381084250231328915674686541707330643635597410633211736942839680159069710479236536438909298819039885555611819434398995605133994674877408948782021920301565691113548328967303643560576473022732585535258542; nodes[15] = 0.7395137310200422678466172348510327909706574480482035298981369635003838962642489129643845913107053984559778491554865944700098646312120293968722140001567895639654841003732815454653448046399802450837492440453702016001430439680586224392800090618580404506633934831815094874892738595527643921478; nodes[16] = 0.7745766817496527452661400464968266656489700006272807869832170212796256008586465280181832588437302934045257886995487531794581589478553933311022127232065836316580667841903904254863274587550232944998698358072129126685880118747398737400805201011350090282500686344342444346462852899873019017682; nodes[17] = 0.8074063279130881410489971522073952279832834240101305423558082495074197924072113982942913069341732442081761268942878592818036980142309596162050965429990681160787224412990940033283925199768669232742273207586768870493621821637663772204165723179761690014181331788288008982514126544599396134493; nodes[18] = 0.8379080133393733163520979206216243612868673056979423938541466160001780122384825538940505628457809531871401367274449162118517125109701142769180501148243199428300987134537691414322150527109719512196646663629009671711161439677893856998399836022817297792175279532692729479127255034688702602689; nodes[19] = 0.8659937940748074792750712325120876576942741486055610629084201202762497660888289159403849117561722575661878868092792594355843092808895421663898563050355940578990334980301217876529768063124536039830566045723675951734294700868159498682102102811038633325053145840817682263713135892958145784256; nodes[20] = 0.8915826920220301763998828208127975464825518499410306494734976434957484291868260301941081006209609403928984131050442546533667374690941411732500839849675666116791815414883427755835461416248556058091887309329176831094118939039426416262334792513526711891632452326314466371234573728743180339251; nodes[21] = 0.9146009285643525406865056498975218204956150954254061147170561082197671235183776826636517498272016072145012610128548613132629977013043842238273804330816337736346915609513508637267223962499865227037206755806466592063817348796086440399249191318161777980395391902807768947473996135668632276316; nodes[22] = 0.9349821375882593484808432347662474954091474227445639435080510777276068811579895125937714202670537549603816761385475233196711823134501319042698729140512210949286990800489225692865989183640184785073544997143061416213739784170640035904701278544363489397511538560731763804135610190191377116973; nodes[23] = 0.9526675575188690914428455100229303337055876289754912261899030118909435645518594659920895488503421429361926776093761063901522186820595133371130195826935204560319256569209188731177476464636658214377676108978042462381602653280285159725667543866231543608324667485356529406160556683043452723368; nodes[24] = 0.9676062025029240901533007846212061949128727749944259602912784021250640796733102379242447138726261216135203017018137211234538271335877906112136713265637010172681035337164294966778368685230688331972675130511309365814431431440177220745406157392148082492748291015940283359008325200168970614872; nodes[25] = 0.9797550146943503091078163343925980348698759456912891387548839751737669399785485286635894006704635444403231305880617676032314860800038423745362785289182592191330199917889427182771658342263030506370036911356777350481243904002591766664388234203049139777226048373301414922105816249496129417843; nodes[26] = 0.9890790082484426364999102552754420568832053655013215053390124926401341745750738691326846830507556529326402812040489233598302447338463579529624780386160817767683230310176150711390921647716047371502411909409930357373369176555668286500508501058498269969074171558834374582464794133185618718086; nodes[27] = 0.9955514765972909026027715261799461412769672802429748808659519140416855484176442379762677455735980420562679958695596446125290019813761444823139138749923925809207868883429770900753766939861159066461282564917520634677066319871037360764868108759956647400644824799245764382023824162697291892119; nodes[28] = 0.999155200407386606442737044184605761045813585872715630711818611208151864967754857400691892925817647325212268790311654235444679092898614702683856045061108965111137175659843188939271306044652679474195889427166596342817720696481478280110711055038985994482293471184350282419665490630749495513; weight[0] = 0.0536811198633348488639059553057246129006819920023619436266546277365746951184024215662863270361444228616577791920269209979026882413734502759767811966272603907351760906888185636252247580024253426867047146155263601267170030275715233858982225935331860502650002689089209990806341152633689234565; weight[1] = 0.0535263433040582521006108138861701805419674894903239215017231698378237154217128166364725770644050021619549459851418074512897756878582502782264612297844645443094248010923186018306135543165122457290483163247402986043545659487360375759012719449517746072125664654672731066876392646778741570446; weight[2] = 0.0532172364465790141034809843773847932124579233045218450892887171007589751043935856470854636136916093596824564029374978912631496971072743102227988406565547418856790270887688834928307837624320940250492250816127757684421035434572357188962735218149412856593293047929220475664165400941161236887; weight[3] = 0.0527546905263708334296457672315231717649335929173374798139921464488395054601125508517141955801518266044731147238895316440425889043404262733186108236053761314583877812683487809286722786175164257371912985743944842688424593401485871510643341891561220010191846945657865890637064449751617731699; weight[4] = 0.052140039183669818971260556060071825761021690134243344357910772091126817474492210529659145826913737153517672298078805596873415019450283181048491874837306756602537139337968331842845871084802356762969299768138495507248305668222686155496026709197231827527356993006193368514347858251029398959; weight[5] = 0.0513750546182857254745148206110653803029581080956232019346605287040492125497945700279270251492744068405336926852348209908364870401656740382750459012962468011969332970297754808727104859232350816962792290121873820349305072558888929102566652606063912165841983059564673717263246232931095688467; weight[6] = 0.050461942479953125297659821567631778047487966362545149578041899710322624889330647343426890277694368555769471810979182072151233623787857600524369574719448240318294051277921576497492260159104019143374676911267434276361397739263181316983053585913590048194716597683094897986703695176378189471; weight[7] = 0.049403335508962392866510865712701319650644422669361168417647275200134012035528873103496032349843840900471378162142399953955902304481337580824556183890906186555116318517896582632258661054139354555610616368707102669706840130454538213044091515685627109458411610318516917477490337407298689804; weight[8] = 0.0482022859454177484065704061098669065750307136268468625963555576256786794871930746952429949918838043722891893242585725210079633332797393936055675771424798872776106735311989215083288989170936003353930866601202026278840134639101548998967437840355411479382814966818337860475053931327358909934; weight[9] = 0.0468622567290263469184180780379200348509136109749744945437591307956766209614090351758989123418158833076270966776629794504571461672657111501558385553595952353698714008605143682397552357954616515721687368281159402148081102669553077996686098411902814779297804372718024014839597965382496679749; weight[10] = 0.0453871115148198025039805360888660491491617686449521352114825400857830753306258416635900833916388377722352289863320487636973731532685267119249219732029349348146823864822532096694212484937951208308009546414237950381226340766367590913299944549454743885160854964385594272148767806384312498318; weight[11] = 0.0437811035336402510390256923483360732427561176600973782616054048365461259851399646601515829978800896780737174162183238583842649627197145021186789643638666887737023679459948347607348880506565066315714053924591778330194680608575735266084639255712440802124084484329467779166350815727958083289; weight[12] = 0.0420488633295821259945699819172542314622665402355190603459430229864413093275686863505061008922726273361310213738032965870168432792224883011262790562132176189417332205909707268228736835696667712133025393500540781413515245309004812792166922604433994945781029138438239037936446576072449524872; weight[13] = 0.0401953854098677968880767508268822923579140402207077844356624417849162990073853918630080654283103712489143232564726427966533377373787839604949326110011846453298169835138152950331502814913123077512431549743200517221915674184959799072489956749163089812316439437654905495892221222349807718331; weight[14] = 0.0382260138458584332294590344571485400659427639863191564728220186792880559403685731895453560014157182237894348920076290413855604132495651365167826655100704598586154855531262523149357813356128611697747634326007616576282881975239318130636293091544242224281455349011101113943646025507571702022; weight[15] = 0.0361464268670872705407808569758552272333427912991269833931771084039344613398435830931408527726399566205638173244765112864485247603361214483426724002350446308274897400587730449249623724857074829919919675563665118055832627647201709167433300012000218017746741289237197976529150156594016786403; weight[16] = 0.0339626204934160107977275551845847994387837763949648005548224518880265432957602365283092280668530764864435375719390182788180733427785643931423924622669605159219464420193606425282653374142044806213099620224253239124269829106063505699509975386274579508333390477677323772759771453634965834776; weight[17] = 0.0316808912538093273202920396219502966872861645240879873259067178781881324526713706181088847689762886129719334186054280577940864647534993279167497034143288106490894927022247520818410891223320545344451273015602904322402401618290535633480250845521093432720189009673803304264465572419579895332; weight[18] = 0.0293078180441604907183940268884438100349616013719531895625243322963996836676542974522541390789825008663102742506581599580260585364388520583632068658910276429800445385949680673653490808868791436006637772022750598559028522544897467116277410234397266132684543585168136457162070425662494796889; weight[19] = 0.0268502431819818684759074786781449555910274646571860065769964468899639595702300751997471959830081660918456855293105603050454181653638868410501095754887158964029227499890504555627952210742926828105022925923168585763835132559585936195226084145510961102630292793443075649125271805123670858106; weight[20] = 0.0243152527249639525402587606257985097442911865134363058873272764104333904898576816833449701048930636325756457468693613671925415538418036159046550225765839679937080986500682728352536396220918002564171063581119942643972312064583459361656091011564490252776757345919395023084665170086018389875; weight[21] = 0.0217101561401462357669168094951182899226029340779503370338755977321058017269314387551755860273253945342811527124820313620271752472321825715891682921424798083147068937057311925495533640899142766079338293050122644840714037902988791173818888506167918888306199538575288349777662517089719137654; weight[22] = 0.0190424654618934086557876594821076039333641329342966622171180545106069201091193168329496895065214272042861726941158246509132136395279861024849007799247481641091879747701501832052631658523359451335466603556762690981369631838835326218399526906881854345382521506537971410160165815928482241312; weight[23] = 0.0163198742349709650521208304195708874821816105277690601527732140010475556612523169341198495318384402791667551892348868170658154525135530649963968112241979662984375760707406085254576616760367571389939359470408578684118345060015703906103588886343432902950447500655417526848604268607140702359; weight[24] = 0.0135502371129888121451789664017618618308308531829865016577047312732032077091570461794849180995268783861057971851182625184320224351734666437199617126284260663849721749500837959269967465860186336517024896377764768427763899592639357959981806937594168795506907169898233663471989645076742434622; weight[25] = 0.0107415535328787741168563619136618737235674500177416582814027213745621654400224951954498709924696857688932161943979329983384361786321677293509655108512029825775278595392322808034385785534021126467705935469750073940123498975175941622936925859561908943934980917095350576409322667802063750489; weight[26] = 0.007901973849998674754016745674847759507254974511445700226746914202864470655119220162622734250445512869419916772122259195126373937291840955297427284738985233632017618171789060031407210398572992481387566019175463400183686564236243672495136970877024101231584560205485468526795199247387915244; weight[27] = 0.0050399816126502430850175011746224235533308794367412626183057067988306844939330904814942942981191070614586563512888622281125741136822167764332722371374240470636166310122625148106107438365704044170148215977150733042520853574211499564243835605166328567788896440118782299166688538833904944159; weight[28] = 0.0021677232496274499430543429249845114310354402245786183237694727158732992949895875797870335750639552085569158721944413597419566074847757770480043132689610034167511849858747187769571178278754932668378526219042082696124155182919622210250260243090158709370161703597746750537506836531543034424; break; } case 60: { nodes[0] = 0.0259597723012477985891703854003448256603147607172752254926166408308344675966491065573984727357510429285490241485151566763085721550656737356150205335429530519854733445081395975402899734761478488819958887295171637258185006915982421778460846856967803603456406792754027878206555935493848231527; nodes[1] = 0.0778093339495365694192855070822252875775947828977239550142187612324959393986196072983471240897349749909202078569768437791837467751614220306955674495601571003146510567351141039159648327666678449844869136981310266145668244638287666238771690819151947081038602689483233629465043794762449169488; nodes[2] = 0.1294491353969450031464441646495757747598735243664721434154157591381217832062173911586563925305885823679975546753874327196139232133940705348899915178748525246049608139289825481080187063967885698799871911175662000379498393865089690065330678900526654641772336922901855304511120043243490708714; nodes[3] = 0.1807399648734254172408769412618526312317721686390454927304541039613249808605646221903805664955569412839479748389675683548640600499914188078602226582533968259830725758925913314893315454419616115829826720240766636430005809154151594368067650556738599974989349954913573256668107131767409419458; nodes[4] = 0.2315435513760293380103446313467554407435390519395857319460314140249391333681404939773947000453241184136556491900052574542240928769933877031016307272583004935653184032635803935149512795158977425541094534327980860252073140988290487649855983518790779606311302433290176324047133810552106351472; nodes[5] = 0.2817229374232616916906948603394415983082630607953774243553423469191154877108102352383114317551209242740561799665962806064935063157517618462024064580073572777556455041443806286896485218613702755747833969753983267899427620185013048492769822972037599309979735948460024219994486780689184377161; nodes[6] = 0.3311428482684481942523529653505527048001214963763112028954119049666994902812210667254957298911639354769112618389310738280973704916780226716086699768345312350232536142543787056396758735583625991499644809836665049479545024856858353119951526342866811566466393753148831557033289504727644488678; nodes[7] = 0.3796700565767979771549526705218877040563744331623898660638631630431002657665259500852182125062570767075906878859046972614669429084351193615911723539661504857710415212160543550659270883307038055574203366724483186541624220734496092508021717902238145933567468806083222944020622907868468231349; nodes[8] = 0.4271737415830783893074528535303119233534421361842320902082442055340599393559793988033194677015030962909345024674065110361264237770253247019899110016847429931058122807363381751941275894292375752347689110737741221173531888159431317193158733736252990001200174123534754752261274929821143347825; nodes[9] = 0.4735258417617071111081630537527946380078680050998368897497057994460898625329209546694943098523008912750318991729649301729454140329633040120547631532207466670684465772637823642303361005730410596862587671131657277092921266538558682754737900981923750281944290262589528013799769075790272054684; nodes[10] = 0.5186014000585697474178893484847213013298466762886855726908052768314910162045017013013752628808937607907101110269718482194573267843901542663487390535382278137493933661494663744628703730419385892529466387124523484794465886714674049957137751166694848678509060270673046942443131210350932987491; nodes[11] = 0.562278900753944539178272587485998729063188237659395399597587079056811625238072253201136345511168493007199938887931333816828039277121711596270366285232540581166242031094193767761323059295941261232441490843559631133268038630075264440691352159984823092489957414258177849256743824464347184695; nodes[12] = 0.6044405970485103634442087763112017206504210535910598380495927629286102253389209094165889528076702238889955546083802104874105439359909292693748748806546715598739688195637960515116992160028490195038615463825188922713256014580820938347706859611155702232805640782705564914647898419420470749585; nodes[13] = 0.6449728284894770678134478964204447171651900193466609962446551748587892724098898493611422133883758716107939040110082021127185985661719206653652469539879236662896642707494182181567098091719428329800903758259246171329062081232613503766164422111044297674617073361729395524652944372893039952774; nodes[14] = 0.6837663273813554372229302392242971590875946043388749798790581521482377188319638555150233793010461382518691501490162523562913552242610123595735887074991082892896057772078141131460137782324167935691528250577154977396591240449317181677093091577973059610255534591936535296754661140480381560891; nodes[15] = 0.7207165133557303994360210610135210777647739947332390431901613883445943763513767564167830681882330845846987429752921365870885762207652487950964463752552602540008082011922737218471056028561629061584388574258992559828351542013740212688461654203918652816206036122180072507621801642177681663257; nodes[16] = 0.7557237753065856868688420666023731059289001995647077248228937826372474138608334184924486211322154833786497149527645221405157395893031970694438982196098729045464230407522938746534249861463231916928944438140716678713074193637719083059551725522895967155285618534468458780442080913197358827207; nodes[17] = 0.7886937399322640545699447997772157352463329278792276196352758561728042067092322134425329790870103821700430870879237393983518153382348705798682689540660571846309198086162003768693785282904190088533426528243963481401296526671368738679959677797007840574515241029077469775548206965359031192714; nodes[18] = 0.8195375261621457593685181085197235718994905189695925095750946682122693686240355060417777883237581751644561539658744350156247007161378939164251568670470142513764498433774892472849731319729280494409998633911591015269453043926579987770855571156172002832282224130660530005187227719941700884499; nodes[19] = 0.8481719847859296324905154949943756012975287165067781969509887907491525583151393977574985807076471661441896502399378263052663977476688233610720647735912247155199111380820500897894420172730142086519142450029207507649942770263863737863311992319431424445770342620207451751828494851649645880891; nodes[20] = 0.8745199226468983151293080999124358051591822944357820758572042277650406674231950893923003650757613094815550973242604144892723635682694357619498437477221270121671836141700216745074051999545929071838816992898296977344804979763037866036252150459910594430833827138071336694005474141720603905179; nodes[21] = 0.8985103108100459419377893295726283301644584427470738245437340044719521669738168689138408356671929668469307807091756835549350751741590398254022439893559722551974750530230466087290713643692661497162178979324828540936658472792171451496116453292529409755916245451037415998601052411646992185457; nodes[22] = 0.9200784761776275528566568625198968287837688760137060399232293649723637593597526951879326724066975748629541763413295877252255800790658291272978555138765502511870194968004515720905573681959409919273286379267782850208528759392686779540117912266150470208771463518200544837591352196957165490085; nodes[23] = 0.9391662761164232494954190116097050964194034204011980315483164937147774903721229010239164139220948207030457305024287181250486365503235339701107505106692759319531222558350650231886402265653165752075152296659088061488553791292649199979789689810507834637683030400890848641359808480994143659961; nodes[24] = 0.9557222558399961073972318458296995024800937447666142196360949060576905842667012671752300625864850152617522644981462954803945908009652775449887192390392420149845382456650671293250472830012216102764725915117473641842034316278098450475609338146410553513839331046104850540103477094284135496848; nodes[25] = 0.9697017887650527337215440989137942725409343448682470720863275166773030493393523063079759312020963655921093105768707881183982177246503218588343404886429573997311081516087969935499114303090210670159901464977037747233536129004299588917609068746300835539647202713086923338345632001533636102264; nodes[26] = 0.9810672017525981856185767998267700338805385792218917434963732891130752198930096465493231861731623649497316626897722008006556714424724681655963546057666514990734374356590578428754859920147414701889595560232783849694836435776440414600362034676561834923302356752939938439318270667307513517465; nodes[27] = 0.9897878952222217173672789870160960425773931537869390408195725631945442823525470440914191965297562152116432915359306606697099360035020915905839254011981588331827514544070543742914523492967405945954005925395570917864719278825959733500161495033701042065514916138155560548435595950463998561112; nodes[28] = 0.9958405251188381738767467133774406527748902949771391019074832413130808430977719324853149350005814606218746052817197852980761520253131108198387965031383267657721277610843401935361720731458403548387297914189782600380877704396241358652640406768388726580349022692723169481773500350278484884245; nodes[29] = 0.9992101232274360220342295857976492663987989787113256706920228890827049544234109387465581201888208671309656987198097354483746396863650346766088838875713461461700717248610073410865203825288508482850407859484825716152168951216208896937100115460768524993087733112539642374148661740855993771203; weight[0] = 0.05190787763122063973286493836226968018015159556564093559948752392081555288767573079019510370214461670947671320553848830841968031169277510980885423005891900948537539828989292873461106827250350148840147264646051654588142238292472705529850682699118346595501809371086974085939650565286889301; weight[1] = 0.0517679431749101875438036430288237329323469454992015640732585368884643718987751611643078246617947454703322217387470328915308422758530219507738476209294827466646925495393935722141010143159098751671740343791002371786118623385220831214529729922246350005304345584360918409762135856942364340974; weight[2] = 0.051488451500980933995044397177054311733923826659580824803233229058458932406769969612031633193803544421870741379644654831361939304573132330595414145314758877074017599508950973403498013685464848687886519745559870838034066062390954028106382789502885177349614284469749338871714409462961603701; weight[3] = 0.0510701560698556274045491207344910353661970831136710547445083179356348668067987276126599044825861151359583527507609598522352248793548303916988436824091159439515239964696997770396511812383829075696701427197681914362979076021047219939131658419291369875717939980503385786676635661342301977842; weight[4] = 0.0505141845325093745982387357416536432399561627374166281440428697403574500452751894515922237946927809975873712852424088487507543730360776805895753293371926784159447887552031782630653406587886014631709625266664465690527975149418845892006494161576089837697847029042804369928002973062361555213; weight[5] = 0.0498220356905501810111592308937033124792155972437847697333692225846365460759982198169292371216582033669495708579234716821157426544123230424734671715527418790485995418631969980905261012846309069739080262153036693660128237308968648527596881957636494376856663827254262457634413059839399087205; weight[6] = 0.0489955754557568353894756868578942983575838959990902424805859817743148236941106680037073285819331364098367514618507304005864929154585876974507282211340538636186600644757821033907001674090678869880409976795136640961407824956468516497984909004527253070941382575364832313920294257869077504977; weight[7] = 0.0480370318199711809636666527287336536025000292469219569367643254577517276873235425892204447481662023796049102389384589359630637846179363425444934848086690060069330041272508928454854662504899099506487243160433881381442577757140888934531881036394898478412380343293781314160712496525159240946; weight[8] = 0.046948988848912204847013156394701566275574902583444442924363288609484548272992284052753315384955892474065279733162520977418199130437239118229433669923382438532938163249350907664117525605555818644035181361202031253545486057945079989460882541739712824921188632418681605904679139883242234724; weight[9] = 0.0457343797161144866471964552909093330079349742586849544488564418978555351337458915110206921133156460012862895895940332282950522384417999758726471544171137211259688940725532748401970862988223118280442548931073616447572810069142502817478662786115538616900166852058816550351817982625644256299; weight[10] = 0.0443964787957871133277841640913773696638849857340142985112364592240465053528441977054405677283907144285172094956589274262806608612621653931159224941661493573064937302477313258397264369499937779221738675120383925278420886307155098014688992178052024897870684566504708134965823650755394920319; weight[11] = 0.0429388928359356419542312206563828069492117719649164789897974119020201083762079195738906207391186421368906605466821154754624098307123656927213534763379538442912783620835110316680353571558279485817178849374010238181848919426937162796588056047667015440874241310667141716210977166343492211674; weight[12] = 0.0413655512355847556131638368066588968801870085215107142486795473491017185824034866281627971724199229795361143827642405247165612442786863951733387706925609998172819518394856316041012810414780581558513075816896941048294059225471107653903646028925795326010787294727712885502744846332295143379; weight[13] = 0.0396806954523807994701228348117100087628035112941742186549195189221573234062025131565688327170527587318472909944678038641283463548386130360146518144526567124187310482794079110137164700201450002056791540112565453390737409888032829362396914173475675422603259644929813752662777638744131824329; weight[14] = 0.0378888675692434440309407942092760318100842810638063715434988902851806015353265266596153742638242962660773289028470123146459112614668202212463610679249000748615484180921237815029016434316553425340011390757373208057681068323638105678128982686581362998312725721617614745267088772238161008562; weight[15] = 0.0359948980510845030665786462880623385942424200210035838581158599482575514828020541969250582691004796913562964889219972703026168214302346831971722672831857614596717496124315126553977277795886775765250782798317336424555112742763461652811323847348250341748964886798399908098330296575283274192; weight[16] = 0.0340038927249464228349144015552587411872762235528588760120306114111532776566520561453266276050761555292115975214124224411323136419656000335868299204786611905277887456830514082163263456246345920855036052319603139544956859700031079342814324949376960273743200153938949909698360967802872104847; weight[17] = 0.0319212190192963289494588995367604767666972922829914209813815847589321180116558021477684676864134695913488342649846547748743765293821851360315318683101046587544476551928426487570123737627784271670519709951626504939753116314743324624203284821371197788575003352834018358567304562368318613267; weight[18] = 0.0297524915007889452408364846734877103324751581241072319506327931570078284851770596903476763812569162172856809452900904657680749785117110005662793663718801333434877278379158278615418226916904610426245973989167512307988718422962319405027204692956873550271548328565540671753473417416536284737; weight[19] = 0.0275035567499247916352231976386222476484034707541621772545669568992269864866798754579600144603842052834706178123310974027323975653782165215230819254537117856962848437163120252882232809079277039668046070387792463418537333152342683620940709219284515670295282425206453683762275067033148841355; weight[20] = 0.025180477621521248379570965972361279131780832944189548614437035464393103686878466855602232586787834187869120642104091329554886962033534422766576856226224500580196674645965113630690324341722575919408012961810117562831877940459336154708530754572120105344996730375785321787035339655850993955; weight[21] = 0.0227895169439978198637834581929002078101673842152082582329039161655431869682794282215158801260375333634312892169385626982358982345393811546924572076970095467837319407435713745992895951666236968192692291650606810982643682972216898525002590042397324010684289262263123201265874511480159207348; weight[22] = 0.0203371207294572867750321474171063014620171125053439038177226806631324858588778131416975362326643850589637253504953082550903215448927864436508430058475325828385014694482355426087811725286026124827205522016332553182941076911645331805726970209618088155987661598158063416670565738585910052419; weight[23] = 0.0178299010142077202603962612483485676338592195833932469018398839310821406690966435430286255024689876490389577548857752986500505167930905556284777411933701887145068698488549189403788798325998927763663493214853544784453272793555153355002683163907473103430196095776156663360368424560902312258; weight[24] = 0.0152746185967847993067260380988253351779093841150728644823922493192504099605848887778074080256146397160252057485557276560608653471288494157057376540419911099112395453147884616968265272315368122259888621833508821873959533015474699710357028578583599779787809625169501512288190495877677569548; weight[25] = 0.0126781664768159601314953792695142349883383643026329456038954030943873712027105054114021820993370304474744083713924593412375467556941990262522605816274374429892913593829931948703748465119998187100834370848818874263328854623408503919496441389178041167111211306343862342579981582647749720137; weight[26] = 0.0100475571822879843578857643770572564996517474876773843432389792806996921249714503767868711999794596970885804356560133114577054288123770959995495586276347696370420070264549043015030275628699481364047887866662665794132147995954065149013144764335799114968894313779924438690152425344960026981; weight[27] = 0.0073899311633454555315169560220860608822281802062250920876044740768024683139552030493075877332116495131694172769698024823043909423377461637140715096959499308546949191002692328100260618495711596760274436398585062226793747405615553993545937696503424661502098577239775382488787104001569563161; weight[28] = 0.0047127299269535686408948217140772359480849701937150601152906186225480882505601394477170957880565671129309110906775306664417201901869251742030783500316324243243873428307119067394672208720559189299768538876023030797017540286922629299187788560338780278837507761101941206829571277476765073597; weight[29] = 0.0020268119688737584964317102098923246953116682255589499073453876573026786786685852087108358977534690314985505155616070442459531204767887941731198536540228209647396387220676389097266397170810063248409422221516967208851011406521565992160730534250788019845730172747636792675085819665498759834; break; } case 62: { nodes[0] = 0.0251292914218206147270882759991469623145049180248149489791202711032230414012127703324892744635800403874841402562327838134852770215228622059785693289477536472106628464778326991269399127060143904637603740962593754110381951959832652674322740614820063026066748212540478789973768331841841793262; nodes[1] = 0.0753243954962343327638269391178708775768458123144207998372459877598951711533372902011535812454326324271708959396886816223807775623747927500247080638560090025496942638123864504775531126765040047477236057625265781552894550104827460522702898098923978110735537353993468290682461807258124410302; nodes[2] = 0.1253292236158968086196489994997262577967554007894758046345508904682450936736920990475752268175141802607005465455391270174394664719041059674290843260604666771687156986084396180245779628311369323242153376504941622729279359385393356741405428849535123072618382839781554521054611144345852182964; nodes[3] = 0.175017459249015628555687423904236031700507709446447039666543436957945030264265960715354407677285194414178599250251393112112637994664011644581026086281378605178572573739011869943128092445225875018226673505049761535228877790299864458158866757220204147946293102232320892466168134370961275725; nodes[4] = 0.2242635856041655316689913933448827006089652567174946926548055577271435736843610434207894394253640709513537018332053099466634411755559705964561167923756161161991691895043507978057737717715222940946294171163827344272678126762682244656052082137079810767168620868027409000422088337829524222781; nodes[5] = 0.2729432026967263431886836279734809808548616203435099361683459867771692920803023354494029691987676409776914888461733113266911033816790017364613946705364894841078456230492523114465304451848485981841016266803757174012535935305202305335989716094743226142549591821328570176293986440489212226194; nodes[6] = 0.3209333415941940040741016010034563850858587021593629647898694825090241656642923017048712302938951896492661882351008300109636569554139716500141953462646750510562275869197498865057638224142775210073000057179710895298796189825089145880550380211761763388992185539192247757849543124905505312422; nodes[7] = 0.3681127750465645296630218309525079220172354555351647446607593969379592354689459123273667489766159490396935460202335204565906722644148136499795541494357754816483734115438823895719599182169164692031686668158010585337857854429762681873437240056233030421705502180164232030441882733886398462239; nodes[8] = 0.4143623237171260481295887506576113451358892995718422476367032246017323830974132275877207550209700381078892154519852440848274840904346507745383672725706570136795719237796597327928835619352569304251628687810929163690419966118413120871610236525324966453116185322486140377492718736762518460915; nodes[9] = 0.4595651572401133952071439780757526514186020870136465975265312784145274452953593873568397538725265580537740885603099855965453178270125174627584394333477039069271924650737459645439539174914796845797280179039856303578558238617023007585773273115978965106585091511543701877446171037089304904854; nodes[10] = 0.5036070893447559559170208059316162769658419672960537442107068594199709883628389699458955694059100820540598981594513494416559711738609827339924968720665397993123358991515023997175715581693170910370713652348856791915476239890654468130469203553144372339755353913783527128272012945046039895016; nodes[11] = 0.5463768663002510958161003845236337072321710915783856754287876209702673845313119723447829494778252971263978174121840391685727671275472644139398131646823689509054650095383227379592356310668536857058450805549925730917690747790924723433134664393286753080876199085981800107816754147983962537846; nodes[12] = 0.5877664479530873380021495501219877638581974968476430175898743596780767556024329791305296385604673844256166150366875561274483424635244408713698313684537939484397056781826783849348592572336350834551278429710687189433552476197750975309937644840111177165409864767728167889373387551704061052189; nodes[13] = 0.6276712806468851807269547649161627885872084383036925026182067954029798261266602635351976983451437073052178435451599592809867242497387541142997167615243150433609204007228771557839218622853491783895611871357319108513233392105957773810995029594238045087256865557725500229485752541022880073927; nodes[14] = 0.665990561335479446997546034082388079933208584475695868434466749673425742619823176166357793062865257589534227691828315864284880977660178717761172634110840156376102180204632689534260140727901260845172464138721569114865612744681197084547129889863838816488748805534007253856622194643406035069; nodes[15] = 0.7026274922222970551209727650599867231440312852895796549448059635198270170877170607431880088341550325097528702736759145704447325268740627657326755702019748806168148627200321162782118845150810698566534438198977227745452526475484312855657010206622121066396870266782552601093532333285689870515; nodes[16] = 0.7374895252831567498607842765014394602801034356311800857351341826108828754495470007940551434298204344205991401559722222702136837410299821898199208758441732592255199338889407530703750400412973870845351768546698947205180047079951745877795965819119831437015154976245728947147483652060952602456; nodes[17] = 0.7704885960554193189909446949950481884538092655054239861505444657920006892216115506471734768574660547056941127673632387973670188601885328236344291564443146175197450542745263624879383118418830118474169533079317312813234134456551268434360855751237135094347846152090074704776937424875451518666; nodes[18] = 0.8015413461039763715385055144953863473061894831078503939175564875053744031936268536324768141346284488028878140448299210029349121279015968440220758800056630473977543422760603720475817269587339300143814984539360124633524276249056977870024181702847232503052621981966168831466359876297245910463; nodes[19] = 0.8305693336040048513459311094772082229198112394952065156329913273194976957175517124652490128123128890167335226661095543745201863816316176992204063378393374654041226769590583345485823247890676276631777732491074218875996613007508158428159529656689613355481023174272153038697925571847007616658; nodes[20] = 0.8574992315120709228184033205446755068915089375116217464180942770659530232007770554238420905109953450909524460855630835774325166432505977920481358031044412193460267443119741745753612618809710068090947290226601839910198670809295036867639774037026269204672431296549267040607593492578097847407; nodes[21] = 0.882263012831897363072686624355829756017125791919386239919130745583694798530593406544926098035730313268959988505392529600420861658971129904802696743562409440176554031140998126871422041226993129986522769525515703868441297548624988488586491166577052611877949494307445079237268934757490337155; nodes[22] = 0.9047981225210934657584856024283756243984498926103230517482465853860069349927314917385041862054766022190106084975770782414210828411865663345703722823965744283426560511654763694758062516930675842732884218750297490668997896330870824514002519191728832951729241195225398416780856656524437535879; nodes[23] = 0.9250476356362037552273001307570486194486305240426581245971985608818509050460393754863589047553203070230327239195269940150826926938377484695223213444840064214788925283293938405769148658015661495939364596235740189487376557178134721607695133457292054137116060918154422275155890995359872683207; nodes[24] = 0.9429604013923285038263648116233515872414181587402121748881098396129619569436838595722194440957460877307593456058536347788248627743914949678299774472596695845924202688492541409231121124247835640290570456185979227703268503918755870474583002589530167160131668297517035236061031393923804109828; nodes[25] = 0.95849117297392709202956047516597094331710664778284721115812577475703514054767090092496015878599176489379866784249023231807190301856736032581134105012201868843898064594221881639911435576192556467126969692449374940734136871191053439795282593268154235768976065763876160237091272541190923335; nodes[26] = 0.9716007233716518064471794825403058351541605539292646774580019389159333894825084864336954573522826943366248967842273689006198099042084291212806216699108648133168262313833432864632001587069127277832447038120357627715514716425276820610790834537733247450433962297226228335422938880166911865928; nodes[27] = 0.9822559490972366494911031280097924715630012030539508450159822170903333896649626079484773985114820726850475378480268238996473758390820842802557327339250058378943847373647808083269341918202884091100811050892168014391231666496117226765872162009110132212155975288769516826050120699399854764238; nodes[28] = 0.9904299711892903524280710618606806450023153136771405800321586167136615124686983493708556426148255721484591587982571208626794967121826640979217214911632274875107082212486302537940243599300129646804087909744546785681032632152313596292954000160314248329769682605778867776150261023251350737925; nodes[29] = 0.9961022963162671328851484304761714926321402172798419577342691570905568082572140520774915737550910465873564928764263929458081560838484027927687263877970351334210868056321911349036024502239949064229530617573135939734894015278889778866235707009296489067233591836795121829695974226727731526384; nodes[30] = 0.9992598593087770296984084650357989380196344605102218530613955142341871932840234122663556604967574723961623483801986301111519608758351713045451217383581390588662467115910316876004867084529839001942282283290199689376350919201683097447655469856249686245858730355465258285320592874425507944264; weight[0] = 0.0502480003752562816884029489951356683165047234765657809277888839149221270392553521737320491221112629460156198792987742656329511335721298065618698328283544072512266544996390648541601370858143841930437125958455321558993923352245503880594157722203010133741035223321257611451522823409003975913; weight[1] = 0.0501210695690432880748041001015309680048953199339213610412642652528031717303841255976903847048097341439124013302725077000284015491648695544180380842251962799078563253537094952691478038526606634486051024849779778891992515506390807113605753208878940855529853463965796005321762139252670600639; weight[2] = 0.0498675285949523942447613106348428168881959590452746142090264067618816965252926383690831728313090671887341238646935977248084060706352183683537926296561473007195098343665464054599536561896288659502719473550223082442171824383168630566946486875607604129916446769556028890127201875927075503599; weight[3] = 0.0494880179196992925278658109047740184636337882109571078096503887992875696740323435888765552402878488287710752781550484683035578469362102588755787131165418772249506882414905999380129568890862174530104786343337024243668790275656204016824695536638885050336522481293862588384756930951814145254; weight[4] = 0.0489834962205178371048511270262173725653489027963997494051747331204319408147367757827905547378369897594804460640500896077303726845446597006777983306438552164232052941817818882320394498765763155527597981156249598481286430634392553482111345477769346994578946194118421461111547402917202707154; weight[5] = 0.0483552379634776728348031814784589867622005024623890561810127264253144231681238118689603390907151060687388366956571713047420494499585921678518431444283810358055625938576532882954708569058982939050512699353714362729860485118575960019646386975976983464362830873452535993623270574830784478006; weight[6] = 0.0476048301841012322704500882678663730607374180494971446308552813438422104085943483259726634887374253248191616960622503933031972898721500364760698724915061378312298654166251233217778025562669379972959497423736551248074771505980839705444469176788717892301775670380162368020032080856503891453; weight[7] = 0.0467341684784155248022070550794847787621597834290144551226695908672160934123449398353473001458974311087918973143025417629581433630558100856895463442268687181155030126992773082606029798431688386120358839317976288111731646051025946771439792923067647421100877310030538908534328283697656463716; weight[8] = 0.0457454522145701807772322722976961876704039463776258646421509379780418705299035639223108554330589484510569421882999303394447744075508361794684597442355791504810642261317023353852052666066869422692146265106617492008963562218541749787140804138934446129300429391033272197170530934409625168652; weight[9] = 0.0446411789771244142936446918091377844103487557080767163400970285053279775703208228805903385848500245470991841183225867135301539895685669810946416650925059895197971817805695212426989257396493806137683192431604556468174797201156669935763545993811649939678542907192803088564995818243031185952; weight[10] = 0.0434241382580474195800692304339443041957713299146806060582753133568878707490842439661115437058206760471551519174743880530922495048190242612705874473011555300915935370799824620958711838992472670886244838633951291150532423357020198299988930894721974234338722772316248642923386482927993045664; weight[11] = 0.0420974044103850966430226269038388460100870864191350467292943369887640246094359171571936230503222878259241027141562334246282275330621240354365630377515864791887586871628867769992562887636018764140773441984132830492478739919705870361888192773784555202578154779141483507000801745367922656566; weight[12] = 0.0406643288824174409682850175166634173129867186716685744742521097709422189860049738869218399961936217165650864202614367838427889317997942776315560207739448480466134565457040997832777815274907381274305401868191948464586695527076486138437088010795422052688645961179059797730785173617798111229; weight[13] = 0.0391285317519630841233108018226088606261799149434694791358010055427025966612806595892071702504302393741870840548673948717272954448189143960881396173651649945221420905856624272090430397503297894493138978479886529733652006699639067647269898300821718625177899949374719357867986594211981116613; weight[14] = 0.0374938925822800299856185635187930282343318531675349904357560728482519042871338292921294239926438682488338448143154684938516325357246318966477728770300099047560317526958910850181978406808997195450714382969993296219390236471542907237293310708287917533014179377391525256088526078987620868817; weight[15] = 0.0357645406227681412855873783617220425845980677311738019079845603324437463677565840850139081428442413705847318819856516917173295800250961596167263845394452755498920948814429926819657327997704334050403483290837656046907342310769247807357287087688292287657006907597051386882785929362794406302; weight[16] = 0.0339448443794105450911174772542360577864065417327114703325481292175073512357479854110916966464693081791011958571163585769134779226633499191807208242164269287794051051242999809403285184524784260254147896542078919943643432639436141197122683028857983347690595926490754190148285002372933664988; weight[17] = 0.0320394005816246781063392372781563731304930348629342626317560631194440837246493406214969790550013465032003533029046684759551719074172692818098108302623864894403863301445897045391024841426108761430641257337985514955847710309112252238048176635628159063860879095132182199783217413469431966988; weight[18] = 0.0300530225739898700770094692270623794862287815545353735424510093034322680254888068799848144681623001472737755545577350567258754943979552479542093804340545808615239580651264103276968059975922163573001563311884199615366271805412321710114985665767361501451968220065667866197547205566471792891; weight[19] = 0.0279907281633146375412382927540413048736838088959792963682892295399369785857045342888785318463271523286822984233311333692474762619504312841014617613594964208212506135545065733935630787694705245005773711099240024759923419787735971496072769315035527272757792818645973740464285738049081471698; weight[20] = 0.025857726954024698027095566553510515594859870025747423290670463508527580476437264427518789264651480772273618226407947184809436042077510829302948275379719512271741278940198899267101860029141105276216412472466545262855552701484433531387941795614953003503658594530894928548719555725813666361; weight[21] = 0.0236594072086827925745168006505345647014315294308404535427661834243459830136880916825372165645195593261485495914514681643740672356640386721038517660368661232615328537711190500421663231210594104449231312257443554475204861208802326829993862333499429500293744266627906863400272570219521871971; weight[22] = 0.021401322277669968841179089964905277640837520580573330393437407846972954796223379665448374910680595920712063800090438939800524127268398490494874056751472277971015508464482733968471960289417252127690847825001545191875680264969132704426491161586884123338763153179591800585599467796811634097; weight[23] = 0.0190891766585731987325037124822838057744426750473217115064419778580071096284700023606276641206600361611446750475584753768476127626129222207238027889762487283449772860611318418582089269280919991679768244265347165826327613597570733135745718374391461576097216365272756503271158333485511405548; weight[24] = 0.0167288117901773162885504717840924583631319372334291324375545183959582995972961795696632117411282336667326520637765314566842309185737078435437810224156853985814804241487111127321042058873133408449280471413224472759017686115348107681876335427350282072098316158631711306998764315062423474342; weight[25] = 0.0143261918238065177674028823094145960770999460756654785786103799361124045610961198067204628176363331564974675583115992855497007086183074098332420981989765174948814090795708847030730989881877530116786814200570092087996151711936548484245654696475072460904322278816984610795252771170074076925; weight[26] = 0.0118873901170105019448189389667979365274285962699907243634128468354368410236908755114466196179023833252945941017619181667642609091961874479576612743461727959950926967317183015056720801524943794499265214279917183961519506740282357126414606552556468611617974919497774795922097879454765254958; weight[27] = 0.0094185794284203876379375634065664281554336429515669993478583406538750358728428197152801905407534708737357506443029925186051578646727582313227214776721839716641724995565822313440428993435769828012816231441915458220549329278991547887231467441047770049884975543034711855615222435644734742081; weight[28] = 0.0069260419018309608717028240992570671195472130984561218156398230617968615162057528219928606657383314111611638878385359905458051693834122940235461018026494392311055508517989066375353524645715634324240391495228897613734384284503000432755165694024707373124551882082862991401928013297343659593; weight[29] = 0.0044163334569309048132741242554906407297119821304948961652056465309007875422747796794132360182852263374611690448605941746335350949912745684534260131702633743716697036950269939953443215067767151236108631185100307884853344735039052624020858568145313816000475291175773584932525111572039079856; weight[30] = 0.0018992056795136904803973438609351401708788497723689766323043389586840178664991372359676292042154689399109826635545316632021362654038480930349585832711542954748274863305715006989063809604407912683714245476695695056237767588405334026461240889424980139491099726075305138922032106434270118558; break; } case 31: { nodes[0] = 0.0243502926634244325089558428537156614268871093149758091634531663960566965166295288529853061657116894882370493013671717560479926679408068852617342586968190919443025679363843727751902756254975073084367002129407854253246662805532069172532219089321005870178809284335033318073251039701073379759; nodes[1] = 0.0729931217877990394495429419403374932441261816687788533563163323377395217254429050181833064967505478802134768007678458612956459126148837496307967995621683597067400860540057918571357609346700883624064782909888895547912499697295335516804810990011835717296819569741981551097569810739977931249; nodes[2] = 0.1214628192961205544703764634922478782186836383371912940423495826006931832245070944213952236889690237679661122848626352437115925113582515415979746598665681268376919737373113667247142315234607397986222184384307059013512155412722263090766858403726100735651684437098923088469949297570988091677; nodes[3] = 0.1696444204239928180373136297482698441999902667343778505894178746884342357796505591325925801106834127602396624627746208498838190598644711533868179088757129652678801285453336384132061358206434768209251779433993367981112053126660575920785488821886662635718276505127786854167528795165050389903; nodes[4] = 0.217423643740007084149648748988822617578485831141222348630380401885689634737659235537163737740243604800759921292790013642836998201691226098978544332296437547642195961469059807833597096166848933098833151166287901339013986496737408125314858259377210847115061960167857239951500335854820530586; nodes[5] = 0.2646871622087674163739641725100201179804131362950932439559895448126206429452852982016450901649805445999078728714943692622330016257776575354105370883948495294882935681426154386660616476411740312465060150591301869544672050088454083442813632094277160007745547301572849406353682760306061929911; nodes[6] = 0.3113228719902109561575126985601568835577153578680501269954571709858169098868398268719654999460149709757804582988077747605532896065842023340674450299515989484487746153929299031759475919924980452933324186984188982046762542556035347023744560814177013801414889023264804693830155588690576492164; nodes[7] = 0.357220158337668115950442615046202531626264464640909112021237019340099177403802509741325589540743874845093675632547750287037622834793938695456980400958079292460482315821150714268593539935795231095157602025909339384694681190969656053235824652679875951093689200190014853543993102190088381483; nodes[8] = 0.4022701579639916036957667712601588487132652056150208082760431843129087214967261515969669708970990221669508217089555714806012046537594438323569293594638517933840725639831594134038262580440842200076281605641993773325072728778928440394419613403725280285705765326861533477990551765453978736181; nodes[9] = 0.4463660172534640879849477147589151892067507578262501763082606820212937626970791295735937384813941473610238854736863966831464694923749954564921955859791688348936235671762050333408576202492209167272366373825152067680845198006626563761196191045700093968519269790165913301841545609485952718504; nodes[10] = 0.4894031457070529574785263070219213908493732974637398373316540793240315585537584844752851087115581833443158831657759501916744927211636581386025171070582998790865902140901838128045602667002106847665927788023098753138400106615804847725751247952878407027140260429761863258319891988431055536872; nodes[11] = 0.531279464019894545658013903544455247408525588734180238053268047166041778398245121448843253296460411619816073385211875151397248937264089998182375345915413219579220233566173902955487674957069948591213673456625912506280248298229907928060620469290406581396192419570799497688513058132396498814; nodes[12] = 0.5718956462026340342838781166591886431831910060912509932273284719418912212643223327597417735844776972648163821225207266145263395898251858906124801356522395225326954546582593857056725545247314092886133249957455688586118199388064447508712958637376347457406936802691416300157802889354368128467; nodes[13] = 0.6111553551723932502488529710185489186961245593079718443367976666933088374650288148448667879830703867726577720666491772560110368248450475818132595468834493579434418252468978282181164008820769765174450056817468275783966537351796625224747700783378315186174632657840114512887287754747902924865; nodes[14] = 0.6489654712546573398577612319934048855296904334732011728792502624366057598865738239773166627826358871699142531853930525866830933399401844502541092962631127742267449897116125748014270680393024011359139031312062573520509858894743036198986443014969748157931850178889912972291202354657382925509; nodes[15] = 0.6852363130542332425635583710313763019356410785396718681324042749913611976548967332647625541234155413035075739348863233240851709341392873173633850612006618690218164007761541855237208605116527909791956398350719463021018362527198358286721239529091637248252469435642287693207506339068528700205; nodes[16] = 0.7198818501716108268489402178319472447581380033149019526220473151184468592486433646042300919262498902882179891494724046747921544602557246455427317830132976771174504209146835854012577372395960646854355024460204286901035470812684876587693044068989973704915078171158689213412715251485203442313; nodes[17] = 0.7528199072605318966118637748856939855517142713220871932461987761167722639636968539390413583009467924995905147153923286347693864945784890119950315095740891764880991728646942920208355501445550654259850385377192973526980795946453961077798744753892199929235882097232836682421729944934586281945; nodes[18] = 0.7839723589433414076102205252137682840564141249898259334132759617476816578705098509357116190608002325895348207611752987335385494893726027026038902508685496606160441965948835252795524014713290879877269643684102005605450140247125536147801312017065532602835003540212221564314236937509990182173; nodes[19] = 0.8132653151227975597419233380863033406981418225655972166956485149356586346082019870309280128411412936411423614767918756843380999442447282903502051218203273573634847203121451086379808399639198510674436238195505371716160648058477202993836014352158139813219612968106205248494087577632573534973; nodes[20] = 0.840629296252580362751691544695873302982489823801755353928202683075593465893922171840726147868117503717663799561956411215937924134571068943700343442753760445948626598735504632170407243376224222403038093781056024445977626666740664628412660960413062370047183186652885532589557452614451434048; nodes[21] = 0.8659993981540928197607833850701575024125019187582496425664279511808356713122188567857456842034906362573453815878913951040194915987006979015304835979058725276345799813088989383312475641092775164460639450521468294104011206574786429237252678172922104036725327539940502197291939132802457917836; nodes[22] = 0.8893154459951141058534040382728516224291944615104521893194744566084811090577722526400445910623711480590529533188832105988657269430913287263821624762648137092066620632787986348052306840101775313644572400860845559833367997001666659907951051347410546710134120144598833115095140475669485797579; nodes[23] = 0.9105221370785028057563806680083298610134880848883640292531723714467102234556291968179018775780308458024302103848451312741663820589200520720207891653884985710130867134073520525932445557074805974235006810370309087879564826639263972805682465506594098949560288847385983395160311034445386606259; nodes[24] = 0.9295691721319395758214901545592256073474270144297154975928116833612430986265594515998834499355844736686512805129688214992047597092114291955925880175797899765980745854426738149516325837607227287481909072315347776012991222301207304052068204069335766550173941103055407746774520789612843561385; nodes[25] = 0.9464113748584028160624814913472647952793949717952331902317789712973664402149436591260928179188420533516264142755452159723722786167537167514691534968355366202934342465086995943893699962972237343218079763936958985487264411542890941861254842843026890160131607678957282346112697993618567018237; nodes[26] = 0.9610087996520537189186141218971572067621146110378459494461586158623919945488992563976780806866203786216001498788310714552847469661399216303755820947005848739467276644122915754949838610353627723679982220628115164983443994552616161584523205789167087822341423097206088828267065770404672828066; nodes[27] = 0.9733268277899109637418535073522726680261452944551741758819139781978152256958453749994966038154125547612207903105020176172420237675899907788807087542221018040460410464083361271842759039530092449625891215101984663282728542290395875313124045226564547294745437773482395329023327909760431499638; nodes[28] = 0.9833362538846259569312993021568311169452475066237403837464872131233426128415470535606559721330818003585532628124845662897410684694651251174207713020897795837892725294581710205598344576799985346970638130204876060998657059283079767876980544166132523941283823202290746667358872631036031924711; nodes[29] = 0.9910133714767443207393823834433031136413494453907904852225427459378131658644129997345108950133770434340330151289100150097018332483423277136039914249575686591612502752158650205954671083696496347591169012794322303027309768195334920157669446268175983954105533989275308193580349506657360682085; nodes[30] = 0.9963401167719552793469245006763991232098575063402266121352522199507030568202208530946066801021703916301511794658310735397567341036554686814952726523955953805437164277655915410358813984246580862850974195805395101678543649116458555272523253307828290553873260588621490898443701779725568118502; nodes[31] = 0.9993050417357721394569056243456363119697121916756087760628072954617646543505331997843242376462639434945376776512170265314011232493020401570891594274831367800115383317335285468800574240152992751785027563437707875403545865305271045717258142571193695943317890367167086616955235477529427992282; weight[0] = 0.0486909570091397203833653907347499124426286922838743305086688042456914190998246107310291565645676057401607079939845156005172257043376703767287395573765236401039685866479381075274920900511719320271157129622463682509122641788910270632229694394595885032921037399187298767076084601033342936131; weight[1] = 0.0485754674415034269347990667839781136875565447049294857111516761025158193093697039229163427633930410186232149083923688162761488505704450697417589593116703853157329164894580165517236877241308351214870169600093357854651930986960906313726182992933363325614247750209880050786299287510692780499; weight[2] = 0.048344762234802957169769527158017809703692550609501080629442201445249828946429202156764153264348308119169811534137999799779908820312744765416129733427088646813066886130539178187597540312913636916139844188190193872629488730769015964208394624398401975043997268903006190530430762197842013971; weight[3] = 0.0479993885964583077281261798713460699543167134714936209446323930933335214619650277588138568504103427609283146728470455041360837549685364869161566863222680599110109210456299588352028330169041000166382937545505655464884266691630625402297821494221827392164049587946530563778771030124675514431; weight[4] = 0.0475401657148303086622822069442231716408252512625387521584740318784735191312349586041971325618543660076682369564304738487584849740943805934034367382833518752314207901993991333786062812015195073547884746598535775062676699885664167707011249029305697669004958515813436770491520105115843742005; weight[5] = 0.0469681828162100173253262857545810751998975284738125649829240886861900500181800807437012381630302198876925642461830694029139318555787845567143614289552410495903601238284556145544858090965965782916339169651505119399637862876053945518410353459767034026687936026945199383607112976484520939933; weight[6] = 0.0462847965813144172959532492322611849696503075324468007778340818364698861774606986244241539105685321088517142947579291476238551538798963436740600968513359005801910700069462154098456091711311098901749803777735222026075473081311483686560830539773763176758567914860207820170792365910140063798, weight[7] = 0.0454916279274181444797709969712690588873234618023998968168834081606504637618082102750954507142497706775055424364453740562113890878382679420378787427100982909191308430750899201141096789461078632697297091763378573830284133736378128577579722120264252594541491899441765769262904055702701625378; weight[8] = 0.0445905581637565630601347100309448432940237999912217256432193286861948363377761089569585678875932857237669096941854082976565514031401996407675401022860761183118504326746863327792604337217763335682212515058414863183914930810334329596384915832703655935958010948424747251920190851700662833367; weight[9] = 0.0435837245293234533768278609737374809227888974971180150532193925502569499020021803936448815937567079991401855477391110804568848623412043870399620479222000249538880795788245633051476595555730388360811011823841525667998427392843673284072004068821750061964976796287623004834501604656318714989; weight[10] = 0.0424735151236535890073397679088173661655466481806496697314607722055245433487169327182398988553670128358787507582463602377168227019625334754497484024668087975720049504975593281010888062806587161032924284354938115463233015024659299046001504100674918329532481611571863222497170398830691222425; weight[11] = 0.0412625632426235286101562974736380477399306355305474105429034779122704951178045914463267035032832336161816547420067160277921114474557623647771372636679857599931025531633255548770293397336318597716427093310378312957479805159734598610664983115148350548735211568465338522875618805992499897174; weight[12] = 0.0399537411327203413866569261283360739186769506703336301114037026981570543670430333260307390357287606111017588757685176701688554806178713759519003171090525332423003042251947304213502522332118258365256241174986409729902714098049024753746340158430732115642207673265332738358717839602955875715; weight[13] = 0.0385501531786156291289624969468089910127871122017180319662378854088005271323682681394418540442928363090545214563022868422017877042243007014244875098498616146404178795110038170109976252865902624380463581094085479557660525450020049773872343621719025128277593787164021147974906095237533202082; weight[14] = 0.0370551285402400460404151018095833750834649453056563021747536272028091562122966687178302646649066832960609370472485057031765338738734008482025086366647963664178752038995704175623165041724901843573087856883034472545386037691055680911138721623610172486110313241291773258491882452773847899443; weight[15] = 0.0354722132568823838106931467152459479480946310024100946926514848199381113651392962399922996268087884509143420993419937430515415557908457195618550238075571721209638845910166697234073788332647695349442265578792857058786796417110738673392400570019770741873271724201517438135222598792344040215; weight[16] = 0.0338051618371416093915654821107254310210499263140045346675500650400323727745785853730452808963944098691936344225349051741060036935288424090581463711756382878498537611980973238606529148664990420534952057130296232922368792280098852092993207644225150541876980292972087619863453425206929192216; weight[17] = 0.032057928354851553585467504347898716966221573881398062250169407854535275399124366530227987935629046729162364779969274126431870966979526186907589490002269660893281421728773647001279141626157958271220102615163092206489916992120482595587916535390136003611498634162765724522022671474313619317; weight[18] = 0.030234657072402478867974059819548659158281397768481241636026542045969161851838118212761980885178641520596873511042783163461341979185470882574743804555268086640389062237383427702813367624714014426121485626242067362445894463989335423458464954799181190120473168677930333898873084606011285311; weight[19] = 0.0283396726142594832275113052002373519812075841257543359907955185084500175712880712901834579816476269393013386531176072296695948860841466158639973753393323262188023471133258509422081952937349849822864752636994881600343083839805990853930436233762729622213044478376753949590318846038229829528; weight[20] = 0.0263774697150546586716917926252251856755993308422457184496156736853021592428967790284780487213653480867620409279447766944383920384284787790772384251090745670478105870527396429136326932261251511732466974897397268573168068852344129736214469830280087710575094607457344820944885011053938108899; weight[21] = 0.0243527025687108733381775504090689876499784155133784119819985685535536787083770723737264828464464223276155821319330210193549896426801083040150047332857692873011433649334477370145389017577189505240415125600908800786897201425473757275187332157593198572919772969833130729981971352463730545469; weight[22] = 0.0222701738083832541592983303841550024229592905997594051455205429744914460867081990116647982811451138592401156680063927909718825845915896692701716212710541472344073624315399429951255221519263275095347974129106415903376085208797420439500915674568159744176912567285070988940509294826076696882; weight[23] = 0.0201348231535302093723403167285438970895266801007919519220072343276769828211923597982299498416998597995443052252531684909219367615574440281549241161294448697202959593344989612626641188010558013085389491205901106884167596038790695150496733123662891637942237462337673353651179115491957031948; weight[24] = 0.0179517157756973430850453020011193688971673570364158572977184273569247295870620984743089140579199272107974903016785911970727080884655646148340637373001805876560334052431930062983734905886704331100259778249929425439377011315288821865303197904492848823994202996722656114004109123107733596987; weight[25] = 0.0157260304760247193219659952975397944260290098431565121528943932284210502164124556525745628476326997189475680077625258949765335021586482683126547283634704087193102431454662772463321304938516661086261262080252305539171654570677889578063634007609097342035360186636479612243231917699790225637; weight[26] = 0.0134630478967186425980607666859556841084257719773496708184682785221983598894666268489697837056105038485845901773961664652581563686185523959473293683490869846700009741156668864960127745507806046701586435579547632680339906665338521813319281296935586498194608460412423723103161161922347608637; weight[27] = 0.011168139460131128818590493019208135072778797816827287215251362273969701224836131369547661822970774719521543690039908073147476182135228738610704246958518755712518444434075738269866120460156365855324768445411463643114925829148750923090201475035559533993035986264487097245733097728698218563; weight[28] = 0.0088467598263639477230309146597306476951762660792204997984715769296110380005985367341694286322550520156167431790573509593010611842062630262878798782558974712042810219159674181580449655112696028911646066461502678711637780164986283350190669684468398617127841853445303466680698660632269500149; weight[29] = 0.0065044579689783628561173603999812667711317610549523400952448792575685125717613068203530526491113296049409911387320826711045787146267036866881961532403342811327869183281273743976710008917886491097375367147212074243884772614562628844975421736416404173672075979097191581386023407454532945934; weight[30] = 0.0041470332605624676352875357285514153133028192536848024628763661431834776690157393776820933106187137592011723199002845429836606307797425496666456172753165824787973801175029578301513761259541022471768825518482406145696380621686627285992715643614469568410535180218496973657001203470470418364; weight[31] = 0.0017832807216964329472960791449719331799593472719279556695308063655858546954239803486698215802150348282744786016134857283616955449868451969230490863774274598030023211055562492709717566919237924255297982774711177411074145151155610163293142044147991553384925940046957893721166251082473659733; break; } default : { AssertThrow(false,ExcMessage("This quadrature order does not exist for GLC.")); } } }
259.421134
325
0.94421
Rombur
2965e402c3f1c9adcc84822c21e5cfb570c5d257
4,571
cpp
C++
embroidermodder2/object-base.cpp
titusmaxentius/Embroidermodder
eb9fa277310f759946524ea303d68d0a63b21970
[ "Zlib" ]
339
2015-01-11T11:52:14.000Z
2022-03-29T10:46:08.000Z
embroidermodder2/object-base.cpp
titusmaxentius/Embroidermodder
eb9fa277310f759946524ea303d68d0a63b21970
[ "Zlib" ]
208
2015-01-11T13:45:55.000Z
2022-03-26T16:18:42.000Z
embroidermodder2/object-base.cpp
titusmaxentius/Embroidermodder
eb9fa277310f759946524ea303d68d0a63b21970
[ "Zlib" ]
124
2015-01-07T17:22:23.000Z
2022-03-10T05:49:22.000Z
#include "embroidermodder.h" #include <QDebug> #include <QGraphicsScene> #include <QMessageBox> #include <QDateTime> #include <QPainter> BaseObject::BaseObject(QGraphicsItem* parent) : QGraphicsPathItem(parent) { qDebug("BaseObject Constructor()"); objPen.setCapStyle(Qt::RoundCap); objPen.setJoinStyle(Qt::RoundJoin); lwtPen.setCapStyle(Qt::RoundCap); lwtPen.setJoinStyle(Qt::RoundJoin); objID = QDateTime::currentMSecsSinceEpoch(); } BaseObject::~BaseObject() { qDebug("BaseObject Destructor()"); } void BaseObject::setObjectColor(const QColor& color) { objPen.setColor(color); lwtPen.setColor(color); } void BaseObject::setObjectColorRGB(QRgb rgb) { objPen.setColor(QColor(rgb)); lwtPen.setColor(QColor(rgb)); } void BaseObject::setObjectLineType(Qt::PenStyle lineType) { objPen.setStyle(lineType); lwtPen.setStyle(lineType); } void BaseObject::setObjectLineWeight(qreal lineWeight) { objPen.setWidthF(0); //NOTE: The objPen will always be cosmetic if(lineWeight < 0) { if(lineWeight == OBJ_LWT_BYLAYER) { lwtPen.setWidthF(0.35); //TODO: getLayerLineWeight } else if(lineWeight == OBJ_LWT_BYBLOCK) { lwtPen.setWidthF(0.35); //TODO: getBlockLineWeight } else { QMessageBox::warning(0, QObject::tr("Error - Negative Lineweight"), QObject::tr("Lineweight: %1") .arg(QString().setNum(lineWeight))); qDebug("Lineweight cannot be negative! Inverting sign."); lwtPen.setWidthF(-lineWeight); } } else { lwtPen.setWidthF(lineWeight); } } QPointF BaseObject::objectRubberPoint(const QString& key) const { if(objRubberPoints.contains(key)) return objRubberPoints.value(key); QGraphicsScene* gscene = scene(); if(gscene) return scene()->property(SCENE_QSNAP_POINT).toPointF(); return QPointF(); } QString BaseObject::objectRubberText(const QString& key) const { if(objRubberTexts.contains(key)) return objRubberTexts.value(key); return QString(); } QRectF BaseObject::boundingRect() const { //If gripped, force this object to be drawn even if it is offscreen if(objectRubberMode() == OBJ_RUBBER_GRIP) return scene()->sceneRect(); return path().boundingRect(); } void BaseObject::drawRubberLine(const QLineF& rubLine, QPainter* painter, const char* colorFromScene) { if(painter) { QGraphicsScene* objScene = scene(); if(!objScene) return; QPen colorPen = objPen; colorPen.setColor(QColor(objScene->property(colorFromScene).toUInt())); painter->setPen(colorPen); painter->drawLine(rubLine); painter->setPen(objPen); } } void BaseObject::realRender(QPainter* painter, const QPainterPath& renderPath) { QColor color1 = objectColor(); //lighter color QColor color2 = color1.darker(150); //darker color //If we have a dark color, lighten it int darkness = color1.lightness(); int threshold = 32; //TODO: This number may need adjusted or maybe just add it to settings. if(darkness < threshold) { color2 = color1; if(!darkness) { color1 = QColor(threshold, threshold, threshold); } //lighter() does not affect pure black else { color1 = color2.lighter(100 + threshold); } } int count = renderPath.elementCount(); for(int i = 0; i < count-1; ++i) { QPainterPath::Element elem = renderPath.elementAt(i); QPainterPath::Element next = renderPath.elementAt(i+1); if(next.isMoveTo()) continue; QPainterPath elemPath; elemPath.moveTo(elem.x, elem.y); elemPath.lineTo(next.x, next.y); QPen renderPen(QColor(0,0,0,0)); renderPen.setWidthF(0); painter->setPen(renderPen); QPainterPathStroker stroker; stroker.setWidth(0.35); stroker.setCapStyle(Qt::RoundCap); stroker.setJoinStyle(Qt::RoundJoin); QPainterPath realPath = stroker.createStroke(elemPath); painter->drawPath(realPath); QLinearGradient grad(elemPath.pointAtPercent(0.5), elemPath.pointAtPercent(0.0)); grad.setColorAt(0, color1); grad.setColorAt(1, color2); grad.setSpread(QGradient::ReflectSpread); painter->fillPath(realPath, QBrush(grad)); } } /* kate: bom off; indent-mode cstyle; indent-width 4; replace-trailing-space-save on; */
28.56875
114
0.646904
titusmaxentius
2967f6a1a91ad3b56f1e058f019c1e93845ede17
2,393
cpp
C++
GLEngine/BaseCamera.cpp
Darker1300/GLEngine_2017_Alpha
742cf7a0c9ba5c172b173ecc1a7f2ae384b293c6
[ "MIT" ]
null
null
null
GLEngine/BaseCamera.cpp
Darker1300/GLEngine_2017_Alpha
742cf7a0c9ba5c172b173ecc1a7f2ae384b293c6
[ "MIT" ]
null
null
null
GLEngine/BaseCamera.cpp
Darker1300/GLEngine_2017_Alpha
742cf7a0c9ba5c172b173ecc1a7f2ae384b293c6
[ "MIT" ]
null
null
null
#include "DEBUG_NEW_LEAK_DETECT.h" #include "CameraBase.h" #ifdef _DEBUG #include <iostream> #endif #include "ApplicationBase.h" //CameraBase* GLE::MAIN_CAM = nullptr; CameraBase::CameraBase() : m_projectionTransform(1) , m_FOV(0.25f) , m_near(0.1f) , m_far(1000.0f) , m_transform() { m_aspectRatio = (float)GLE::APP->GetWindowWidth() / (float)GLE::APP->GetWindowHeight(); } CameraBase::~CameraBase() { } void CameraBase::SetAsMain() { SetAsMain(this); } void CameraBase::SetAsMain(CameraBase * _camera) { //if (GLE::MAIN_CAM != nullptr) // GLE::MAIN_CAM->OnLostFocus(); //GLE::MAIN_CAM = _camera; //GLE::MAIN_CAM->OnGainFocus(); } //void CameraBase::LookAt(const glm::vec3 & _eye, const glm::vec3 & _center, const glm::vec3 & _worldUp) //{ // //m_direction = glm::normalize(_center - _eye); // // m_viewTransform = glm::lookAt(_eye, _center, _worldUp); // // UpdateWorldFromView(); //} // //void CameraBase::LookAt(const glm::vec3 & _target) //{ // // m_viewTransform = glm::lookAt(m_transform.TransformPoint(m_transform.LocalPosition()), _target, Vector3::up); //} void CameraBase::SetPerspective(float _FOV, float _aspectRatio, float _nearDST, float _farDST) { m_FOV = _FOV; m_aspectRatio = _aspectRatio; m_near = _nearDST; m_far = _farDST; CalculatePerspective(); } void CameraBase::SetFOV(const float _FOV) { m_FOV = _FOV; CalculatePerspective(); } void CameraBase::SetAspectRatio(const float _aspectRatio) { m_aspectRatio = _aspectRatio; CalculatePerspective(); } void CameraBase::SetNearFar(const float _nearDST, const float _farDST) { m_near = _nearDST; m_far = _farDST; CalculatePerspective(); } void CameraBase::CalculatePerspective() { m_projectionTransform = glm::perspective(m_FOV, m_aspectRatio, m_near, m_far); } #ifdef _DEBUG void CameraBase::PrintMat4(const glm::mat4 & _transform) const { std::cout << " X: " << _transform[0][0] << ',' << _transform[0][1] << ',' << _transform[0][2] << ',' << _transform[0][3] << ',' << " Y: " << _transform[1][0] << ',' << _transform[1][1] << ',' << _transform[1][2] << ',' << _transform[1][3] << ',' << " Z: " << _transform[2][0] << ',' << _transform[2][1] << ',' << _transform[2][2] << ',' << _transform[2][3] << ',' << " W: " << _transform[3][0] << ',' << _transform[3][1] << ',' << _transform[3][2] << ',' << _transform[3][3] << ',' << std::endl; } #endif
21.558559
115
0.646887
Darker1300
29682f83e034219dda8833b0620e746a554df523
22,434
cpp
C++
src/PerfMixer.cpp
wrongPaul/dBiz
3b1887f812ca346590c1782f4a9b267688ad08ea
[ "CC0-1.0" ]
1
2019-10-28T20:20:57.000Z
2019-10-28T20:20:57.000Z
src/PerfMixer.cpp
wrongPaul/dBiz
3b1887f812ca346590c1782f4a9b267688ad08ea
[ "CC0-1.0" ]
null
null
null
src/PerfMixer.cpp
wrongPaul/dBiz
3b1887f812ca346590c1782f4a9b267688ad08ea
[ "CC0-1.0" ]
null
null
null
#include "plugin.hpp" /////////////////////////////////////////////////// struct PerfMixer : Module { enum ParamIds { MAIN_VOL_PARAM, AUX_R1_PARAM, AUX_R2_PARAM, AUX_S1_PARAM, AUX_S2_PARAM, ENUMS(VOL_PARAM, 8), ENUMS(PAN_PARAM, 8), ENUMS(AUX_1_PARAM ,8), ENUMS(AUX_2_PARAM ,8), ENUMS(MUTE_PARAM, 8), NUM_PARAMS }; enum InputIds { MIX_IN_L_INPUT, MIX_IN_R_INPUT, ENUMS(CH_L_INPUT, 8), ENUMS(CH_R_INPUT, 8), ENUMS(CH_VOL_INPUT,8), ENUMS(CH_PAN_INPUT, 8), ENUMS(AUX_1_INPUT, 8), ENUMS(AUX_2_INPUT, 8), RETURN_1_L_INPUT, RETURN_1_R_INPUT, RETURN_2_L_INPUT, RETURN_2_R_INPUT, NUM_INPUTS }; enum OutputIds { MIX_OUTPUT_L, MIX_OUTPUT_R, SEND_1_L_OUTPUT, SEND_1_R_OUTPUT, SEND_2_L_OUTPUT, SEND_2_R_OUTPUT, NUM_OUTPUTS }; enum LightIds { ENUMS(PAN_L_LIGHT, 8), ENUMS(PAN_R_LIGHT, 8), ENUMS(MUTE_LIGHT, 8), ENUMS(METERL_LIGHT, (11*8)), ENUMS(METERR_LIGHT, (11*8)), NUM_LIGHTS }; dsp::SchmittTrigger mute_triggers[8]; bool mute_states[8]= {false}; float ch_l_ins[8]={}; float ch_r_ins[8]={}; float channel_outs_l[8]={}; float channel_outs_r[8]={}; float channel_s1_L[8]={}; float channel_s1_R[8]={}; float channel_s2_L[8]={}; float channel_s2_R[8]={}; float left_sum = 0.0; float right_sum = 0.0; float mix_in_l =0.0f; float mix_in_r = 0.0f; float send_1_L_sum = 0.0; float send_1_R_sum = 0.0; float send_2_R_sum = 0.0; float send_2_L_sum = 0.0; dsp::VuMeter2 vuBarsL[8]; dsp::VuMeter2 vuBarsR[8]; dsp::ClockDivider lightCounter; PerfMixer() { config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS,NUM_LIGHTS); configParam(MAIN_VOL_PARAM, 0.0, 1.0, 0.5,"Mix Level", "%", 0, 100); configParam(AUX_R1_PARAM, 0.0, 1.0, 0.0,"Aux Return 1", "%", 0, 100); configParam(AUX_R2_PARAM, 0.0, 1.0, 0.0,"Aux Return 2", "%", 0, 100); configParam(AUX_S1_PARAM, 0.0, 1.0, 0.0,"Auz Send 1", "%", 0, 100); configParam(AUX_S2_PARAM, 0.0, 1.0, 0.0,"Auz Send 2", "%", 0, 100); for(int i=0;i<8;i++) { configParam(VOL_PARAM + i, 0.0, 1.0, 0.0,"Ch Level", "%", 0, 100); configParam(PAN_PARAM + i, 0.0, 1.0, 0.5,"Ch Pan", "%", 0, 100); configParam(AUX_1_PARAM + i, 0.0, 1.0, 0.0,"Send 1 Level", "%", 0, 100); configParam(AUX_2_PARAM + i, 0.0, 1.0, 0.0,"Send 2 Level", "%", 0, 100); configParam(MUTE_PARAM + i, 0.0, 1.0, 0.0,"Mute", "%", 0, 1); } lightCounter.setDivision(256); onReset(); } void process(const ProcessArgs &args) override { send_1_L_sum = 0.0; send_1_R_sum = 0.0; send_2_L_sum = 0.0; send_2_R_sum = 0.0; left_sum = 0.0; right_sum = 0.0; mix_in_l=inputs[MIX_IN_L_INPUT].getVoltage(); mix_in_r=inputs[MIX_IN_R_INPUT].getVoltage(); float pan_cv[8]={}; float pan_pos[8]={}; // mute triggers for (int i = 0 ; i < 8; i++) { if (mute_triggers[i].process(params[MUTE_PARAM + i].getValue())) { mute_states[i] ^= true; } lights[MUTE_LIGHT + i].setBrightness(mute_states[i] ? 1.f : 0.f); } for (int i = 0 ; i < 8 ; i++) { pan_cv[i] = inputs[CH_PAN_INPUT + i].getVoltage() / 5; pan_pos[i] = pan_cv[i] + params[PAN_PARAM + i].getValue(); if (pan_pos[i] < 0) pan_pos[i] = 0; if (pan_pos[i] > 1) pan_pos[i] = 1; lights[PAN_L_LIGHT+i].setBrightness(1-pan_pos[i]); lights[PAN_R_LIGHT+i].setBrightness(pan_pos[i]); ch_l_ins[i] = (inputs[CH_L_INPUT + i].getVoltage() * std::pow(params[VOL_PARAM + i].getValue(),2.f)); if(inputs[CH_VOL_INPUT+i].isConnected()) ch_l_ins[i] *= (inputs[CH_VOL_INPUT + i].getVoltage() / 10.0f); ch_r_ins[i] = (inputs[CH_R_INPUT + i].getVoltage() * std::pow(params[VOL_PARAM + i].getValue(), 2.f)); if(inputs[CH_VOL_INPUT+i].isConnected()) ch_r_ins[i]*= (inputs[CH_VOL_INPUT + i].getVoltage() / 10.0f); if (mute_states[i] ) { ch_l_ins[i] = 0.0; ch_r_ins[i] = 0.0; } if(!inputs[CH_R_INPUT+i].getVoltage()) { channel_outs_l[i] = ch_l_ins[i] * (1 - pan_pos[i]) * 3; channel_outs_r[i] = ch_l_ins[i] * pan_pos[i] * 3; } else { channel_outs_l[i] = ch_l_ins[i] * 2; channel_outs_r[i] = ch_r_ins[i] * 2; } channel_s1_L[i] = (channel_outs_l[i] * params[AUX_1_PARAM + i].getValue()); if(inputs[AUX_1_INPUT].isConnected()) channel_s1_L[i] *= (inputs[AUX_1_INPUT + i].getVoltage() /10.f); channel_s2_L[i] = (channel_outs_l[i] * params[AUX_2_PARAM + i].getValue()); if(inputs[AUX_2_INPUT].isConnected()) channel_s2_L[i] *= (inputs[AUX_2_INPUT + i].getVoltage() /10.f); channel_s1_R[i] = (channel_outs_r[i] * params[AUX_1_PARAM + i].getValue()); if(inputs[AUX_1_INPUT].isConnected()) channel_s1_R[i] *= (inputs[AUX_1_INPUT + i].getVoltage() /10.f); channel_s2_R[i] = (channel_outs_r[i] * params[AUX_2_PARAM + i].getValue()); if(inputs[AUX_2_INPUT].isConnected()) channel_s2_R[i] *= (inputs[AUX_2_INPUT + i].getVoltage() /10.f); vuBarsL[i].process(args.sampleTime,channel_outs_l[i] / 10.0); vuBarsR[i].process(args.sampleTime,channel_outs_r[i] / 10.0); if (lightCounter.process()) { for(int i=0;i<8;i++){ for (int l = 1; l < 11; l++) { lights[METERL_LIGHT + (i * 11)+l].setBrightness(vuBarsL[i].getBrightness(-3.f * (l + 1), -3.f * l)); lights[METERR_LIGHT + (i * 11)+l].setBrightness(vuBarsR[i].getBrightness(-3.f * (l + 1), -3.f * l)); } } } send_1_L_sum += channel_s1_L[i]; send_1_R_sum += channel_s1_R[i]; send_2_L_sum += channel_s2_L[i]; send_2_R_sum += channel_s2_R[i]; left_sum += channel_outs_l[i]; right_sum += channel_outs_r[i]; } // get returns float return_1_l = inputs[RETURN_1_L_INPUT].getVoltage() * params[AUX_R1_PARAM].getValue(); float return_1_r = inputs[RETURN_1_R_INPUT].getVoltage() * params[AUX_R1_PARAM].getValue(); float return_2_l = inputs[RETURN_2_L_INPUT].getVoltage() * params[AUX_R2_PARAM].getValue(); float return_2_r = inputs[RETURN_2_R_INPUT].getVoltage() * params[AUX_R2_PARAM].getValue(); float mix_l = (left_sum + return_1_l + return_2_l) * params[MAIN_VOL_PARAM].getValue()*0.5; float mix_r = (right_sum + return_1_r + return_2_r) * params[MAIN_VOL_PARAM].getValue()*0.5; float send_1_L_mix = (send_1_L_sum) * params[AUX_S1_PARAM].getValue(); float send_1_R_mix = (send_1_R_sum) * params[AUX_S1_PARAM].getValue(); float send_2_L_mix = (send_2_L_sum) * params[AUX_S2_PARAM].getValue(); float send_2_R_mix = (send_2_R_sum) * params[AUX_S2_PARAM].getValue(); outputs[MIX_OUTPUT_L].setVoltage(mix_l+mix_in_l); outputs[MIX_OUTPUT_R].setVoltage(mix_r+mix_in_r); outputs[SEND_1_L_OUTPUT].setVoltage(3 * send_1_L_mix); outputs[SEND_1_R_OUTPUT].setVoltage(3 * send_1_R_mix); outputs[SEND_2_L_OUTPUT].setVoltage(3 * send_2_L_mix); outputs[SEND_2_R_OUTPUT].setVoltage(3 * send_2_R_mix); } void onReset() override { for (int i = 0; i < 8; i++) { mute_states[i] = false; } } json_t *dataToJson() override { json_t *rootJ = json_object(); // mute states json_t *mute_statesJ = json_array(); for (int i = 0; i < 8; i++) { json_t *mute_stateJ = json_boolean(mute_states[i]); json_array_append_new(mute_statesJ, mute_stateJ); } json_object_set_new(rootJ, "mutes", mute_statesJ); return rootJ; } void dataFromJson(json_t *rootJ) override { // mute states json_t *mute_statesJ = json_object_get(rootJ, "mutes"); if (mute_statesJ) { for (int i = 0; i < 8; i++) { json_t *mute_stateJ = json_array_get(mute_statesJ, i); if (mute_stateJ) mute_states[i] = json_boolean_value(mute_stateJ); } } } }; template <typename BASE> struct MuteLight : BASE { MuteLight() { this->box.size = Vec(17.0, 17.0); } }; template <typename BASE> struct MeterLight : BASE { MeterLight() { this->box.size = Vec(4, 4); this->bgColor = nvgRGBAf(0.0, 0.0, 0.0, 0.1); } }; struct PerfMixerWidget : ModuleWidget { PerfMixerWidget(PerfMixer *module){ setModule(module); setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/PerfMixer.svg"))); int column_1 = 70; int lb=5; int right_column = 310; int top=50; int top_row = 60; int row_spacing = 28; int row_in = 40; int column_spacing = 30; addParam(createParam<LRoundWhy>(Vec(right_column + 5, 10), module, PerfMixer::MAIN_VOL_PARAM)); // master volume addParam(createParam<MicroBlu>(Vec(right_column+7.5, 225 ), module, PerfMixer::AUX_R1_PARAM)); addParam(createParam<MicroBlu>(Vec(right_column+7.5, 285 ), module, PerfMixer::AUX_R2_PARAM)); addParam(createParam<MicroBlu>(Vec(right_column+7.5, 102.5 ), module, PerfMixer::AUX_S1_PARAM)); addParam(createParam<MicroBlu>(Vec(right_column+7.5, 160 ), module, PerfMixer::AUX_S2_PARAM)); addInput(createInput<PJ301MLPort>(Vec(5, 15),module, PerfMixer::MIX_IN_L_INPUT)); addInput(createInput<PJ301MRPort>(Vec(30,15),module, PerfMixer::MIX_IN_R_INPUT)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 0, 15),module, PerfMixer::AUX_1_INPUT + 0)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 1, 15),module, PerfMixer::AUX_1_INPUT + 1)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 2, 15),module, PerfMixer::AUX_1_INPUT + 2)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 3, 15),module, PerfMixer::AUX_1_INPUT + 3)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 4, 15),module, PerfMixer::AUX_1_INPUT + 4)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 5, 15),module, PerfMixer::AUX_1_INPUT + 5)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 6, 15),module, PerfMixer::AUX_1_INPUT + 6)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 7, 15),module, PerfMixer::AUX_1_INPUT + 7)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 0, 40),module, PerfMixer::AUX_2_INPUT + 0)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 1, 40),module, PerfMixer::AUX_2_INPUT + 1)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 2, 40),module, PerfMixer::AUX_2_INPUT + 2)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 3, 40),module, PerfMixer::AUX_2_INPUT + 3)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 4, 40),module, PerfMixer::AUX_2_INPUT + 4)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 5, 40),module, PerfMixer::AUX_2_INPUT + 5)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 6, 40),module, PerfMixer::AUX_2_INPUT + 6)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 7, 40),module, PerfMixer::AUX_2_INPUT + 7)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 0), module, PerfMixer::CH_L_INPUT + 0)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 1), module, PerfMixer::CH_L_INPUT + 1)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 2), module, PerfMixer::CH_L_INPUT + 2)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 3), module, PerfMixer::CH_L_INPUT + 3)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 4), module, PerfMixer::CH_L_INPUT + 4)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 5), module, PerfMixer::CH_L_INPUT + 5)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 6), module, PerfMixer::CH_L_INPUT + 6)); addInput(createInput<PJ301MIPort>(Vec(lb, top + row_in * 7), module, PerfMixer::CH_L_INPUT + 7)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 0), module, PerfMixer::CH_R_INPUT + 0)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 1), module, PerfMixer::CH_R_INPUT + 1)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 2), module, PerfMixer::CH_R_INPUT + 2)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 3), module, PerfMixer::CH_R_INPUT + 3)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 4), module, PerfMixer::CH_R_INPUT + 4)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 5), module, PerfMixer::CH_R_INPUT + 5)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 6), module, PerfMixer::CH_R_INPUT + 6)); addInput(createInput<PJ301MIPort>(Vec(lb + 25, top + row_in * 7), module, PerfMixer::CH_R_INPUT + 7)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 0 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 0)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 1 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 1)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 2 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 2)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 3 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 3)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 4 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 4)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 5 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 5)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 6 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 6)); addInput(createInput<PJ301MCPort>(Vec(column_1 + column_spacing * 7 - 1, top_row + row_spacing * 6 - 45 + top), module, PerfMixer::CH_VOL_INPUT + 7)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 0 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 0)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 1 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 1)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 2 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 2)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 3 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 3)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 4 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 4)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 5 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 5)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 6 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 6)); addInput(createInput<PJ301MOrPort>(Vec(column_1 + column_spacing * 7 - 1, top_row + row_spacing * 6 + top+12.5), module, PerfMixer::CH_PAN_INPUT + 7)); for (int i = 0 ; i < 8 ; i++) { addParam(createParam<MicroBlu>(Vec(column_1 + column_spacing * i, 75), module, PerfMixer::AUX_1_PARAM + i)); addParam(createParam<MicroBlu>(Vec(column_1 + column_spacing * i, 105), module, PerfMixer::AUX_2_PARAM + i)); addParam(createParam<LEDSliderBlue>(Vec(column_1 + column_spacing * i-5, top_row + row_spacing * 2 - 20 + top), module, PerfMixer::VOL_PARAM + i)); ///////////////////////////////////////////////////// addChild(createLight<MeterLight<OrangeLight>>(Vec(column_1 + column_spacing * i + 1 , top_row + row_spacing * 6 + top-13),module,PerfMixer::PAN_L_LIGHT+i)); addChild(createLight<MeterLight<OrangeLight>>(Vec(column_1 + column_spacing * i + 20 , top_row + row_spacing * 6 + top-13),module,PerfMixer::PAN_R_LIGHT+i)); addParam(createParam<Trimpot>(Vec(column_1 + column_spacing * i +3, top_row + row_spacing * 6 + top-8), module, PerfMixer::PAN_PARAM + i)); //////////////////////////////////////////////////////// addParam(createParam<LEDB>(Vec(column_1 + column_spacing * i + 3 , top_row + row_spacing * 7+ 10.5 + top+13), module, PerfMixer::MUTE_PARAM + i)); addChild(createLight<MuteLight<BlueLight>>(Vec(column_1 + column_spacing * i + 4.5 , top_row + row_spacing * 7 +12 + top+13), module, PerfMixer::MUTE_LIGHT + i)); addChild(createLight<MeterLight<PurpleLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5), module, PerfMixer::METERL_LIGHT + (11 * i))); addChild(createLight<MeterLight<PurpleLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 2), module, PerfMixer::METERL_LIGHT + 1 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 3), module, PerfMixer::METERL_LIGHT + 2 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 4), module, PerfMixer::METERL_LIGHT + 3 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 5), module, PerfMixer::METERL_LIGHT + 4 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 6), module, PerfMixer::METERL_LIGHT + 5 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 7), module, PerfMixer::METERL_LIGHT + 6 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 8), module, PerfMixer::METERL_LIGHT + 7 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 9), module, PerfMixer::METERL_LIGHT + 8 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 10), module, PerfMixer::METERL_LIGHT + 9 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 19 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 11), module, PerfMixer::METERL_LIGHT + 10 + (11 * i))); addChild(createLight<MeterLight<PurpleLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5), module, PerfMixer::METERR_LIGHT + (11 * i))); addChild(createLight<MeterLight<PurpleLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 2), module, PerfMixer::METERR_LIGHT + 1 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 3), module, PerfMixer::METERR_LIGHT + 2 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 4), module, PerfMixer::METERR_LIGHT + 3 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 5), module, PerfMixer::METERR_LIGHT + 4 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 6), module, PerfMixer::METERR_LIGHT + 5 + (11 * i))); addChild(createLight<MeterLight<BlueLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 7), module, PerfMixer::METERR_LIGHT + 6 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 8), module, PerfMixer::METERR_LIGHT + 7 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 9), module, PerfMixer::METERR_LIGHT + 8 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 10), module, PerfMixer::METERR_LIGHT + 9 + (11 * i))); addChild(createLight<MeterLight<WhiteLight>>(Vec(column_1 + 24 + column_spacing * i-5, top_row + row_spacing * 2 - 27 + top + 7.5 * 11), module, PerfMixer::METERR_LIGHT + 10 + (11 * i))); } //Screw addChild(createWidget<ScrewBlack>(Vec(15, 0))); addChild(createWidget<ScrewBlack>(Vec(box.size.x-30, 0))); addChild(createWidget<ScrewBlack>(Vec(15, 365))); addChild(createWidget<ScrewBlack>(Vec(box.size.x-30, 365))); // outputs addOutput(createOutput<PJ301MLPort>(Vec(right_column +5 , 60), module, PerfMixer::MIX_OUTPUT_L)); addOutput(createOutput<PJ301MRPort>(Vec(right_column +30 , 60 ), module, PerfMixer::MIX_OUTPUT_R)); addOutput(createOutput<PJ301MLPort>(Vec(right_column + 35, 100 ), module, PerfMixer::SEND_1_L_OUTPUT)); addOutput(createOutput<PJ301MRPort>(Vec(right_column + 35, 125 ), module, PerfMixer::SEND_1_R_OUTPUT)); addOutput(createOutput<PJ301MLPort>(Vec(right_column + 35, 160 ), module, PerfMixer::SEND_2_L_OUTPUT)); addOutput(createOutput<PJ301MRPort>(Vec(right_column + 35, 185 ), module, PerfMixer::SEND_2_R_OUTPUT)); addInput(createInput<PJ301MLPort>(Vec(right_column + 35, 225 ), module, PerfMixer::RETURN_1_L_INPUT)); addInput(createInput<PJ301MRPort>(Vec(right_column + 35, 250 ), module, PerfMixer::RETURN_1_R_INPUT)); addInput(createInput<PJ301MLPort>(Vec(right_column + 35, 285 ), module, PerfMixer::RETURN_2_L_INPUT)); addInput(createInput<PJ301MRPort>(Vec(right_column + 35, 310 ), module, PerfMixer::RETURN_2_R_INPUT)); } }; Model *modelPerfMixer = createModel<PerfMixer, PerfMixerWidget>("PerfMixer");
47.935897
191
0.65744
wrongPaul
2968c7b9cebca93636f5d4de0b328865a9f93a5c
383
cpp
C++
cpp/stringstream.cpp
cozek/code-practice
bf3098dbeb502cab2e22ce7ea73c2aa05a3caf80
[ "MIT" ]
null
null
null
cpp/stringstream.cpp
cozek/code-practice
bf3098dbeb502cab2e22ce7ea73c2aa05a3caf80
[ "MIT" ]
null
null
null
cpp/stringstream.cpp
cozek/code-practice
bf3098dbeb502cab2e22ce7ea73c2aa05a3caf80
[ "MIT" ]
null
null
null
#include <iostream> #include <sstream> #include <string> #include <vector> int main() { std::string numString = "1,2,3,4,5"; std::stringstream ss(numString); std::vector<int> intVec; for (int i; ss>>i;) { intVec.push_back(i); if(ss.peek() == ','){ ss.ignore(); } } for (int i = 0; i<intVec.size(); i++){ std::cout << intVec[i] <<std::endl; } }
17.409091
40
0.553525
cozek
296a3bd0b6c17a6c14578d3ff5e106ba8e4cfbec
3,275
cc
C++
source/test/http/URLBuilder_test.cc
ciscoruiz/wepa
e6d922157543c91b6804f11073424a0a9c6e8f51
[ "MIT" ]
2
2018-02-03T06:56:29.000Z
2021-04-20T10:28:32.000Z
source/test/http/URLBuilder_test.cc
ciscoruiz/wepa
e6d922157543c91b6804f11073424a0a9c6e8f51
[ "MIT" ]
8
2018-02-18T21:00:07.000Z
2018-02-20T15:31:24.000Z
source/test/http/URLBuilder_test.cc
ciscoruiz/wepa
e6d922157543c91b6804f11073424a0a9c6e8f51
[ "MIT" ]
1
2018-02-09T07:09:26.000Z
2018-02-09T07:09:26.000Z
// MIT License // // Copyright (c) 2018 Francisco Ruiz ([email protected]) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // #include <gtest/gtest.h> #include <coffee/http/url/URLBuilder.hpp> #include <coffee/http/url/URL.hpp> using namespace coffee; using coffee::http::url::URL; using http::url::ComponentName; TEST(HttpUrlBuilder, set_all_components) { http::url::URLBuilder builder; const char* values[] = { "http", "user", "password", "host.com.zzz", "1234", "/path/resource", "fragment"}; for (int ii = 0; ii < ComponentName::Fragment; ++ ii) { builder.setCompoment((ComponentName::_v) ii, values[ii]); } builder.addKeyValue("key1", "value1").addKeyValue("key2", "value2"); auto url = builder.build(); for (int ii = 0; ii < ComponentName::Fragment; ++ ii) { ASSERT_TRUE(url->hasComponent((ComponentName::_v) ii)); ASSERT_EQ(values[ii], url->getComponent((ComponentName::_v) ii)); } http::url::KeyValue kv = URL::keyValue(url->query_begin()); ASSERT_TRUE(kv.first == "key1"); ASSERT_TRUE(kv.second == "value1"); } TEST(HttpUrlBuilder, no_component_defined) { http::url::URLBuilder builder; builder.setCompoment(ComponentName::Scheme, "tcp"); builder.setCompoment(ComponentName::Host, "localhost"); auto url = builder.build(); ASSERT_TRUE(url->hasComponent(ComponentName::Scheme)); ASSERT_TRUE(url->hasComponent(ComponentName::Host)); ASSERT_TRUE(!url->hasComponent(ComponentName::User)); ASSERT_TRUE(!url->hasComponent(ComponentName::Password)); ASSERT_THROW(url->getComponent(ComponentName::Path), basis::RuntimeException); } TEST(HttpUrlBuilder, without_mandatories) { { http::url::URLBuilder builder; builder.setCompoment(ComponentName::Scheme, "tcp"); ASSERT_THROW(builder.build(), basis::RuntimeException); } { http::url::URLBuilder builder; builder.setCompoment(ComponentName::Host, "localhost"); ASSERT_THROW(builder.build(), basis::RuntimeException); } } TEST(HttpUrlBuilder, repeat_component) { http::url::URLBuilder builder; builder.setCompoment(ComponentName::Port, "123"); ASSERT_THROW(builder.setCompoment(ComponentName::Port, "444"), basis::RuntimeException); }
34.114583
110
0.719695
ciscoruiz
296b2856e4b35e845293eca485f340d0b2de7bf8
1,184
cpp
C++
fuzz/Fuzz.cpp
NearTox/Skia
8b7e0616161fff86ecbd8938b90600d72b8d5c1d
[ "BSD-3-Clause" ]
null
null
null
fuzz/Fuzz.cpp
NearTox/Skia
8b7e0616161fff86ecbd8938b90600d72b8d5c1d
[ "BSD-3-Clause" ]
null
null
null
fuzz/Fuzz.cpp
NearTox/Skia
8b7e0616161fff86ecbd8938b90600d72b8d5c1d
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "fuzz/Fuzz.h" #include "fuzz/FuzzCommon.h" // UBSAN reminds us that bool can only legally hold 0 or 1. void Fuzz::next(bool* b) { uint8_t n; this->next(&n); *b = (n & 1) == 1; } void Fuzz::next(SkImageFilter::CropRect* cropRect) { SkRect rect; uint8_t flags; this->next(&rect); this->nextRange(&flags, 0, 0xF); *cropRect = SkImageFilter::CropRect(rect, flags); } void Fuzz::nextBytes(void* n, size_t size) { if ((fNextByte + size) > fBytes->size()) { sk_bzero(n, size); memcpy(n, fBytes->bytes() + fNextByte, fBytes->size() - fNextByte); fNextByte = fBytes->size(); return; } memcpy(n, fBytes->bytes() + fNextByte, size); fNextByte += size; } void Fuzz::next(SkRegion* region) { // See FuzzCommon.h FuzzNiceRegion(this, region, 10); } void Fuzz::nextRange(float* f, float min, float max) { this->next(f); if (!std::isnormal(*f) && *f != 0.0f) { // Don't deal with infinity or other strange floats. *f = max; } *f = min + std::fmod(std::abs(*f), (max - min + 1)); }
23.68
73
0.625
NearTox
296b58f8de1e6562f8822dc84be62c3d62ee4ef1
1,159
hpp
C++
cpp/src/g2p.hpp
oddvoices/oddvoices
824592478f4b805afff4d6da2728de5aa93d0575
[ "Apache-2.0" ]
25
2021-03-11T17:31:31.000Z
2022-03-23T07:24:34.000Z
cpp/src/g2p.hpp
oddvoices/oddvoices
824592478f4b805afff4d6da2728de5aa93d0575
[ "Apache-2.0" ]
60
2021-03-04T03:16:05.000Z
2022-01-21T05:36:46.000Z
cpp/src/g2p.hpp
oddvoices/oddvoices
824592478f4b805afff4d6da2728de5aa93d0575
[ "Apache-2.0" ]
null
null
null
#pragma once #include <map> #include <vector> #include <set> #include <string> #include <sstream> namespace oddvoices { namespace g2p { extern std::set<unsigned char> k_punctuation; extern std::vector<std::string> k_allPhonemes; extern std::map<std::string, std::vector<std::string>> k_phonemeAliases; extern std::map<std::string, std::string> k_arpabetToXSAMPA; extern std::map<std::string, std::vector<std::string>> k_guessPronunciations; extern std::map<std::string, std::vector<std::string>> k_cmudictExceptions; std::vector<std::string> parsePronunciation(std::string); /// G2P stands for Grapheme to Phoneme, the portion of the singing synthesizer /// system that decides the pronunciations of words. /// /// Creating and using a G2P is not real-time safe, and should never be done /// on the audio thread. class G2P { public: G2P(std::string cmudictFile); std::vector<std::string> pronounce(std::string); std::vector<std::string> pronounceWord(std::string); private: void loadCmudict(std::string fileName); std::map<std::string, std::vector<std::string>> m_pronunciationDict; }; } // namespace g2p } // namespace oddvoices
27.595238
78
0.732528
oddvoices
296e49dbf5f668096e0b083c7f5330d7850ee39b
1,230
hpp
C++
Vision/ObjectRecognition/include/object_pipeline.hpp
cxdcxd/sepanta3
a65a3415f046631ac4d6b91f9342966b0c030226
[ "MIT" ]
null
null
null
Vision/ObjectRecognition/include/object_pipeline.hpp
cxdcxd/sepanta3
a65a3415f046631ac4d6b91f9342966b0c030226
[ "MIT" ]
null
null
null
Vision/ObjectRecognition/include/object_pipeline.hpp
cxdcxd/sepanta3
a65a3415f046631ac4d6b91f9342966b0c030226
[ "MIT" ]
null
null
null
#ifndef _OBJECT_PIPELINE #define _OBJECT_PIPELINE #include <pcl/point_types.h> #include <object.hpp> class ObjectPipeline { public: ObjectPipeline(); ObjectPipeline(boost::shared_ptr<std::vector<Object>> trained_objects); pcl::PointCloud<pcl::PointXYZRGB>::Ptr passthroughPointCloud(pcl::PointCloud<pcl::PointXYZRGB>::Ptr input_cloud); pcl::PointCloud<pcl::PointXYZRGB>::Ptr findTableHull(pcl::PointCloud<pcl::PointXYZRGB>::Ptr input_cloud); pcl::PointCloud<pcl::PointXYZRGB>::Ptr createObjectCloud(pcl::PointCloud<pcl::PointXYZRGB>::Ptr input_cloud, pcl::PointCloud<pcl::PointXYZRGB>::Ptr table_hull); boost::shared_ptr<std::vector<Object>> createObjectClusters(pcl::PointCloud<pcl::PointXYZRGB>::Ptr objects); void keyPointExtraction(boost::shared_ptr<std::vector<Object>> objects); void createObjectDescriptors(boost::shared_ptr<std::vector<Object>> objects); void objectMatching(boost::shared_ptr<std::vector<Object>> objects); void correspondanceGrouping(); void absoluteOrientation(); void icpRefinement(); void hypothesisVerification(); private: void computeCloudResolution (Object* object); boost::shared_ptr<std::vector<Object>> trained_objects; }; #endif
41
164
0.760976
cxdcxd
2971dd2d4b30f543a6132a1a9559a8878d3c1d83
13,191
cpp
C++
GraphLayoutLibrary/CircularLayout/CircularLayoutGenerator.cpp
persistentsystems/LayoutLibrary
e299ac0073225c88f488dd9c2615ec786f8e2897
[ "MIT" ]
26
2016-09-13T08:50:09.000Z
2022-02-14T15:14:54.000Z
GraphLayoutLibrary/CircularLayout/CircularLayoutGenerator.cpp
hotpeperoncino/GraphLayoutLibrary
2dec062f6cdbbaa4b791bdd9c7cc54fe90adbc13
[ "MIT" ]
3
2017-06-21T04:18:58.000Z
2018-01-17T13:27:42.000Z
GraphLayoutLibrary/CircularLayout/CircularLayoutGenerator.cpp
hotpeperoncino/GraphLayoutLibrary
2dec062f6cdbbaa4b791bdd9c7cc54fe90adbc13
[ "MIT" ]
4
2017-12-08T09:08:34.000Z
2021-07-22T06:42:31.000Z
#include "CircularLayoutGenerator.h" #include "Common/LayoutEnum.h" CircularLayoutGenerator::CircularLayoutGenerator() { m_iCenterX = 0; m_iCenterY = 0; } void CircularLayoutGenerator::applyCircularLayout(SubGraph& gInputGraph, LayoutEnum::VertexOrderCriteria enVertexOrder) { // enVertexOrder = LayoutEnum::VertexOrderCriteria::DefaultOrder; // qDebug("Circular layout applied"); bool isSubgraph = true; // root will always be a subgraph LAYOUT_ASSERT(&gInputGraph != NULL, LayoutMemoryException(__FUNCTION__, LayoutExceptionEnum::NULL_POINTER_EXCEPTION, NULL_GRAPH_FOUND)); LAYOUT_ASSERT((LayoutEnum::isValidVertexOrderingCriteria(enVertexOrder)) == true, LayoutException(__FUNCTION__, LayoutExceptionEnum::INVALID_TYPE, TYPE_ENUM_VERTEXORDER_TYPE, ORDERING_CRITERIA)); // construct container of subgraph lists in the vector m_vecSubgraphContainer.push_back(&gInputGraph); try { // iterate the subgraph hierarchy and get the list of subgraphs in the container m_vecBFSOrderedSubgraphs.push_back(&gInputGraph); iterateChildrenGraphs(m_vecBFSOrderedSubgraphs); } catch(LayoutException& eException) { LayoutException(__FUNCTION__, LayoutExceptionEnum::EMPTY_CONTAINER, eException.getEntityValue()); } catch(boost::exception& eBoostException) { throw *boost::get_error_info<errmsg_info>(eBoostException); } // There should be atleast one subgraph, if there is none, throw an exception so that caller functions can take appropriate decision. LAYOUT_ASSERT(!(m_vecSubgraphContainer.empty()), LayoutMemoryException(__FUNCTION__, LayoutExceptionEnum::NULL_POINTER_EXCEPTION, NULL_SUBGRAPH_CONTAINER_FOUND)); // preprocessing for the circular layout for(vector<SubGraph*>::iterator itrSubgraph = m_vecSubgraphContainer.begin(); itrSubgraph != m_vecSubgraphContainer.end(); ++itrSubgraph) { // for empty graph add dummy node to that graph int iNumVertices = num_vertices(**itrSubgraph); if(iNumVertices == 0) { VertexDescriptor vVertex = m_boostGraphWrapper.addVertex(**itrSubgraph, LayoutEnum::InvisibleNode); // This dummy node will set the size of cluster // set height = 80 nd width = 80; int iDummyNodeHeight = 80; int iDummyNodeWidth = 80; m_boostGraphWrapper.setVertexHeight(vVertex,**itrSubgraph, iDummyNodeHeight); m_boostGraphWrapper.setVertexWidth(vVertex, **itrSubgraph, iDummyNodeWidth); } } // iterate the list of subgraphs from the container and apply circle layout for(vector<SubGraph*>::iterator itrSubgraph = m_vecSubgraphContainer.begin(); itrSubgraph != m_vecSubgraphContainer.end(); ++itrSubgraph) { // find center VertexIterPair vIterVerticesPair = vertices(**itrSubgraph); if(!isSubgraph) { // calculating middle vertex index for subgraph VertexDescriptor vMidVertexIndex; if((vIterVerticesPair.second - vIterVerticesPair.first) == 1) { // if single vertex is present in the subgraph then median should be that vertex only. vMidVertexIndex = vIterVerticesPair.first[0]; } else { // for more than 1 vertex in the subgraph then median should be (diff + 1)/2. vMidVertexIndex = (vIterVerticesPair.second - vIterVerticesPair.first +1)/2; } // get the middle vertex's global index VertexDescriptor vGlobalMidVertex = (**itrSubgraph).local_to_global(vMidVertexIndex); // get the x and y coordinates of middle vertex as the center cooordinates of the graph m_iCenterX = m_boostGraphWrapper.getVertexCenterCoordX(vGlobalMidVertex ,gInputGraph); m_iCenterY = m_boostGraphWrapper.getVertexCenterCoordY(vGlobalMidVertex, gInputGraph); } else { isSubgraph = false; } // calculating radius for cluster using radius share factor // get total vertex present in the graph int iTotalVertex = num_vertices(**itrSubgraph); // get number of dummy vertices present in the graph int iDummyVertices = (**itrSubgraph).num_children(); // calculate real vertices present in the graph int iVertexCount = iTotalVertex - iDummyVertices; // calculate the radius for real vertices considering the radius share factor double dRadiusUsingShare = ((iVertexCount) * RADIUS_SHARE); // calculate size considered radius from diagonal double dRadiusFromNodeDetails; dRadiusFromNodeDetails = calculateRadius(**itrSubgraph); // add size considered radius and radius with radius share m_dRadius = dRadiusUsingShare + dRadiusFromNodeDetails; // Check the order specified by caller function MapOrderVertex mapOrderVertex; bool bIsValidVertexOrder = LayoutEnum::isValidVertexOrderingCriteria(enVertexOrder); if(bIsValidVertexOrder == true) { if(enVertexOrder == LayoutEnum::TopologicalOrder) { // topological Ordering Criteria VectorEdgeDescriptor vectBackEdges; GraphCycleHandler graphCycleHandler; graphCycleHandler.detectBackEdges(**itrSubgraph,vectBackEdges); graphCycleHandler.reverseEdges(**itrSubgraph,vectBackEdges); // Apply vertex ordering methods and get ordered map m_boostGraphWrapper.applyTopologicalVertexOrdering(**itrSubgraph,mapOrderVertex); } else if(enVertexOrder == LayoutEnum::ConnectedComponentOrder) { // connected Component ordering criteria m_boostGraphWrapper.applyConnectedComponent(**itrSubgraph,mapOrderVertex); } else { // default Ordering PGL_MAP_VERTEX_ORDER(mapVertexOrder,**itrSubgraph); mapOrderVertex = m_boostGraphWrapper.getMapOrderedVertices(**itrSubgraph ,mapVertexOrder); } } else { // if order is not valid then we are keeping it as the default vertex ordering PGL_MAP_VERTEX_ORDER(mapVertexOrder,**itrSubgraph); mapOrderVertex = m_boostGraphWrapper.getMapOrderedVertices(**itrSubgraph , mapVertexOrder); } // apply circle layout to this graph CircleLayouter circleLayouter; try { circleLayouter.applyCircleGraphLayout(**itrSubgraph, get(vertex_position,**itrSubgraph), m_dRadius, m_iCenterX, m_iCenterY, mapOrderVertex); } catch(boost::exception& eBoostException) { throw *boost::get_error_info<errmsg_info>(eBoostException); } // set the radius for this graph in its GraphProperty m_boostGraphWrapper.setGraphRadius(m_dRadius, (**itrSubgraph)); // set center coordinates in the GraphProperty of this graph m_boostGraphWrapper.setGraphCenterCoordX(m_iCenterX, (**itrSubgraph)); m_boostGraphWrapper.setGraphCenterCoordY(m_iCenterY, (**itrSubgraph)); } // size Manager Functionality // calculate the subgraph size and set respective parameters in its properties m_sizeManager.processSizeManager(gInputGraph); // space utilizer functionality m_spaceUtilizer.addSubgraphDummyVerticesAndMap(gInputGraph, VERTEX_START_INDEX); // apply second pass of circle layout on the graph which will provide uniform space on the circumference of circle m_spaceUtilizer.processSecondPassCircularLayout(gInputGraph, CENTERCOORDINATEX_START, CENTERCOORDINATEY_START); // apply size manager functinality to update propertis with respect to second pass circle layout m_sizeManager.processSizeManager(gInputGraph); } void CircularLayoutGenerator::iterateChildrenGraphs(vector<SubGraph *> &subgraphQueue) { /* we have used queue because it will contain reference of subgraphs. Adding all the subgraphs in queue to iterate one by one in circular way. */ LAYOUT_ASSERT(!subgraphQueue.empty(), LayoutException(__FUNCTION__,LayoutExceptionEnum::EMPTY_CONTAINER,VECTOR_CONTENTS)); // define local queue which will contain the childrens of main graph vector<SubGraph*> subgraphSequence; try { // To iterate input queue which will contain graph reference for( vector<SubGraph*>::iterator itrSubgraphQueue = subgraphQueue.begin(); itrSubgraphQueue != subgraphQueue.end(); itrSubgraphQueue++) { // Finding the children upto deep level SubGraph::children_iterator itrSubgraph, itrSubgraphEnd; for (boost::tie(itrSubgraph, itrSubgraphEnd) = (**itrSubgraphQueue).children(); itrSubgraph != itrSubgraphEnd; ++itrSubgraph) { // Add children in the global queue container m_vecSubgraphContainer.push_back(&(*itrSubgraph)); // Add children in the local queue conatainer subgraphSequence.push_back(&(*itrSubgraph)); } } } catch(boost::exception& eBoostException) { throw *boost::get_error_info<errmsg_info>(eBoostException); } catch(...) { throw; } // To iterarte the local queue again if ant children is present if(!subgraphSequence.empty()) { // Recursive call to iterate children iterateChildrenGraphs(subgraphSequence); } } double CircularLayoutGenerator::calculateRadius(SubGraph &gSubgraph) { LAYOUT_ASSERT(&gSubgraph != NULL, LayoutMemoryException(__FUNCTION__, LayoutExceptionEnum::NULL_POINTER_EXCEPTION, GRAPH)); CircleLayouter circleLayouter; double dCircumference; try { dCircumference = circleLayouter.calculateCircumference(gSubgraph); } catch(LayoutMemoryException& eException) { throw LayoutMemoryException(__FUNCTION__, LayoutExceptionEnum::NULL_POINTER_EXCEPTION, eException.getObjectName()); } catch(LayoutException& eException) { throw LayoutException(__FUNCTION__, LayoutExceptionEnum::INVALID_PARAMETER, eException.getEntityValue(),eException.getEntityType()); } catch(boost::exception& eBoostException) { throw *boost::get_error_info<errmsg_info>(eBoostException); } LAYOUT_ASSERT(dCircumference > 0, LayoutException(__FUNCTION__, LayoutExceptionEnum::INVALID_PARAMETER, INVALID_CIRCUMFERENCE_VALUE)); double dRadius = (dCircumference / (2 * PI)); m_boostGraphWrapper.setGraphRadius(dRadius, gSubgraph); return dRadius; } void CircularLayoutGenerator::addDummyEdgesForTopologicalOrder(SubGraph &gSubgraph) { /* This fumction adds the edges which will be treated as a dummy edges in the graph for getting the nodes for topological ordering in the consecutive mannar. Hence we will add edges between dummy subgraph nodes and nodes of that subgraph. */ LAYOUT_ASSERT(&gSubgraph != NULL, LayoutMemoryException(__FUNCTION__, LayoutExceptionEnum::NULL_POINTER_EXCEPTION, GRAPH)); ChildrenIterator itrSubgraph, itrSubgraphEnd; for(boost::tie(itrSubgraph, itrSubgraphEnd) = gSubgraph.children(); itrSubgraph != itrSubgraphEnd; itrSubgraph++) { size_t iDummyNodeIndex; iDummyNodeIndex = m_boostGraphWrapper.getGraphDummyNodeIndex(*itrSubgraph); m_boostGraphWrapper.printGraph(*itrSubgraph); BGL_FORALL_VERTICES(vVertex, gSubgraph, SubGraph) { int iVertexIndex = m_boostGraphWrapper.getVertexIndex(vVertex); if((iVertexIndex == iDummyNodeIndex)) { VertexDescriptor vGlobalDummyVertex = (*itrSubgraph).local_to_global(vVertex); BGL_FORALL_VERTICES(vSubVertex, *itrSubgraph, SubGraph) { VertexDescriptor vGlobalSubVertex = (*itrSubgraph).local_to_global(vSubVertex); if(vGlobalDummyVertex != vGlobalSubVertex) { m_boostGraphWrapper.addEdge(vGlobalDummyVertex, vGlobalSubVertex,gSubgraph); } } } } } }
41.481132
140
0.64453
persistentsystems