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
108
| 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
67k
⌀ | 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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
742dc7a0f45ad6bba4074f989c338edb98e5d9ad | 1,540 | cpp | C++ | bazaar/Cypher/RC4.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | bazaar/Cypher/RC4.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | bazaar/Cypher/RC4.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "RC4.h"
NAMESPACE_UPP
RC4::RC4() : Cypher(1 /* stream cypher */)
{
memset(sbox, 0, 256);
si = sj = 0;
}
RC4::RC4(String const &key, String const &nonce) : Cypher(1 /* stream cypher */)
{
SetKey(key, nonce);
}
RC4::RC4(byte const *keyBuf, size_t keyLen, byte const *nonce, size_t nonceLen) : Cypher(1 /* stream cypher */)
{
SetKey(keyBuf, keyLen, nonce, nonceLen);
}
bool RC4::CypherKey(byte const *kBuf, size_t keyLen, byte const *nonce, size_t nonceLen)
{
int i, j;
unsigned char keyarr[256], swap;
// appends NONCE at key -- avoids repeated encoding of same soruce stream
Buffer<byte>keyBuf(keyLen + nonceLen);
memcpy(keyBuf, kBuf, keyLen);
memcpy(keyBuf + keyLen, nonce, nonceLen);
keyLen += nonceLen;
si = sj = 0;
for (i = j = 0; i < 256; i++, j = (j + 1) % keyLen)
{
sbox[i] = i;
keyarr[i] = keyBuf[j];
}
for (i = j = 0; i < 256; i++)
{
j += sbox[i] + keyarr[i];
j %= 256;
swap = sbox[i];
sbox[i] = sbox[j];
sbox[j] = swap;
}
// discards first 256 stream values -- see wikipedia for details
for(i = 0; i < 256; i++)
{
sj += sbox[++si];
swap = sbox[si];
sbox[si] = sbox[sj];
sbox[sj] = swap;
swap = sbox[si] + sbox[sj];
}
return true;
}
// encode/decode buffer, dest on different buffer
void RC4::CypherCypher(const byte *src, byte *dst, size_t len)
{
unsigned char swap;
while (len--)
{
sj += sbox[++si];
swap = sbox[si];
sbox[si] = sbox[sj];
sbox[sj] = swap;
swap = sbox[si] + sbox[sj];
*dst++ = *src++ ^ sbox[swap];
}
}
END_UPP_NAMESPACE;
| 20 | 111 | 0.600649 | dreamsxin |
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 |
74347c9601053dff9e6685af4e785ea4d53d49f2 | 2,789 | hpp | C++ | src/mlpack/bindings/cli/default_param.hpp | MJ10/mlpack | 3f87ab1d419493dead8ef59250c02cc7aacc0adb | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-05-02T21:10:55.000Z | 2021-05-02T21:10:55.000Z | src/mlpack/bindings/cli/default_param.hpp | MJ10/mlpack | 3f87ab1d419493dead8ef59250c02cc7aacc0adb | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/bindings/cli/default_param.hpp | MJ10/mlpack | 3f87ab1d419493dead8ef59250c02cc7aacc0adb | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file default_param.hpp
* @author Ryan Curtin
*
* Return the default value of a parameter, depending on its type.
*/
#ifndef MLPACK_BINDINGS_CLI_DEFAULT_PARAM_HPP
#define MLPACK_BINDINGS_CLI_DEFAULT_PARAM_HPP
#include <mlpack/prereqs.hpp>
#include <mlpack/core/util/param_data.hpp>
#include <mlpack/core/util/is_std_vector.hpp>
namespace mlpack {
namespace bindings {
namespace cli {
/**
* Return the default value of an option. This is for regular types.
*/
template<typename T>
std::string DefaultParamImpl(
const util::ParamData& data,
const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
const typename boost::disable_if<util::IsStdVector<T>>::type* = 0,
const typename boost::disable_if<data::HasSerialize<T>>::type* = 0,
const typename boost::disable_if<std::is_same<T, std::string>>::type* = 0,
const typename boost::disable_if<std::is_same<T,
std::tuple<mlpack::data::DatasetInfo, arma::mat>>>::type* = 0);
/**
* Return the default value of a vector option.
*/
template<typename T>
std::string DefaultParamImpl(
const util::ParamData& data,
const typename boost::enable_if<util::IsStdVector<T>>::type* = 0);
/**
* Return the default value of a string option.
*/
template<typename T>
std::string DefaultParamImpl(
const util::ParamData& data,
const typename boost::enable_if<std::is_same<T, std::string>>::type* = 0);
/**
* Return the default value of a matrix option, a tuple option, a
* serializable option, or a string option (this returns the default filename,
* or '' if the default is no file).
*/
template<typename T>
std::string DefaultParamImpl(
const util::ParamData& data,
const typename boost::enable_if_c<
arma::is_arma_type<T>::value ||
std::is_same<T, std::tuple<mlpack::data::DatasetInfo,
arma::mat>>::value>::type* /* junk */ = 0);
/**
* Return the default value of a model option (this returns the default
* filename, or '' if the default is no file).
*/
template<typename T>
std::string DefaultParamImpl(
const util::ParamData& data,
const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
const typename boost::enable_if<data::HasSerialize<T>>::type* = 0);
/**
* Return the default value of an option. This is the function that will be
* placed into the CLI functionMap.
*/
template<typename T>
void DefaultParam(const util::ParamData& data,
const void* /* input */,
void* output)
{
std::string* outstr = (std::string*) output;
*outstr = DefaultParamImpl<typename std::remove_pointer<T>::type>(data);
}
} // namespace cli
} // namespace bindings
} // namespace mlpack
// Include implementation.
#include "default_param_impl.hpp"
#endif
| 30.648352 | 78 | 0.686626 | MJ10 |
7435018c15f75bf20c2fd7a8270eed0b03c6e390 | 6,221 | cpp | C++ | src/DeviceLog.cpp | orrinjelo/InertialSenseSDK | ddc8b3b2a3fa4f0bddde9d80d63b76bb0e2695c0 | [
"MIT"
] | null | null | null | src/DeviceLog.cpp | orrinjelo/InertialSenseSDK | ddc8b3b2a3fa4f0bddde9d80d63b76bb0e2695c0 | [
"MIT"
] | null | null | null | src/DeviceLog.cpp | orrinjelo/InertialSenseSDK | ddc8b3b2a3fa4f0bddde9d80d63b76bb0e2695c0 | [
"MIT"
] | null | null | null | /*
MIT LICENSE
Copyright 2014-2018 Inertial Sense, Inc. - http://inertialsense.com
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 <ctime>
#include <string>
#include <sstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include "DeviceLog.h"
#include "ISLogger.h"
#include "ISConstants.h"
#include "ISDataMappings.h"
using namespace std;
cDeviceLog::cDeviceLog()
{
m_pFile = NULL;
m_pHandle = 0;
m_fileSize = 0;
m_logSize = 0;
m_fileCount = 0;
memset(&m_devInfo, 0, sizeof(dev_info_t));
m_logStats = new cLogStats;
m_altClampToGround = true;
m_showTracks = true;
m_showPointTimestamps = true;
m_pointUpdatePeriodSec = 1.0f;
}
cDeviceLog::~cDeviceLog()
{
// Close open files
if (m_pFile)
{
fclose(m_pFile);
m_pFile = NULL;
}
CloseAllFiles();
delete m_logStats;
}
void cDeviceLog::InitDeviceForWriting(int pHandle, std::string timestamp, std::string directory, uint64_t maxDiskSpace, uint32_t maxFileSize, uint32_t chunkSize)
{
m_pHandle = pHandle;
m_timeStamp = timestamp;
m_directory = directory;
m_fileCount = 0;
m_maxDiskSpace = maxDiskSpace;
m_maxFileSize = maxFileSize;
m_maxChunkSize = chunkSize;
m_logSize = 0;
}
void cDeviceLog::InitDeviceForReading()
{
m_fileSize = 0;
m_logSize = 0;
m_fileCount = 0;
}
bool cDeviceLog::CloseAllFiles()
{
ostringstream serialNumString;
serialNumString << m_devInfo.serialNumber;
m_logStats->WriteToFile(m_directory + "/stats_SN" + serialNumString.str() + ".txt");
m_logStats->Clear();
return true;
}
bool cDeviceLog::OpenWithSystemApp()
{
#if PLATFORM_IS_WINDOWS
std::wstring stemp = std::wstring(m_fileName.begin(), m_fileName.end());
LPCWSTR filename = stemp.c_str();
ShellExecuteW(0, 0, filename, 0, 0, SW_SHOW);
#endif
return true;
}
bool cDeviceLog::SaveData(p_data_hdr_t *dataHdr, const uint8_t* dataBuf)
{
if (dataHdr != NULL)
{
double timestamp = cISDataMappings::GetTimestamp(dataHdr, dataBuf);
m_logStats->LogDataAndTimestamp(dataHdr->id, timestamp);
}
return true;
}
bool cDeviceLog::SetupReadInfo(const string& directory, const string& serialNum, const string& timeStamp)
{
m_directory = directory;
m_fileCount = 0;
m_timeStamp = timeStamp;
m_fileNames.clear();
vector<file_info_t> fileInfos;
SetSerialNumber((uint32_t)strtoul(serialNum.c_str(), NULL, 10));
cISLogger::GetDirectorySpaceUsed(directory, string("[\\/\\\\]" IS_LOG_FILE_PREFIX) + serialNum + "_", fileInfos, false, false);
if (fileInfos.size() != 0)
{
m_fileName = fileInfos[0].name;
for (size_t i = 0; i < fileInfos.size(); i++)
{
m_fileNames.push_back(fileInfos[i].name);
}
}
return true;
}
bool cDeviceLog::OpenNewSaveFile()
{
// Close existing file
if (m_pFile)
{
fclose(m_pFile);
}
// Ensure directory exists
if (m_directory.empty())
{
return false;
}
// create directory
_MKDIR(m_directory.c_str());
// clear out space if we need to
if (m_maxDiskSpace != 0)
{
vector<file_info_t> files;
uint64_t spaceUsed = cISLogger::GetDirectorySpaceUsed(m_directory.c_str(), files, true, false);
unsigned int index = 0;
// clear out old files until we have space
while (spaceUsed > m_maxDiskSpace && index < files.size())
{
spaceUsed -= files[index].size;
remove(files[index++].name.c_str());
}
}
// Open new file
m_fileCount++;
uint32_t serNum = m_devInfo.serialNumber;
if (!serNum)
{
serNum = m_pHandle;
}
string fileName = GetNewFileName(serNum, m_fileCount, NULL);
m_pFile = fopen(fileName.c_str(), "wb");
m_fileSize = 0;
if (m_pFile)
{
#if LOG_DEBUG_WRITE
printf("Opened save file: %s\n", filename.str().c_str());
#endif
return true;
}
else
{
#if LOG_DEBUG_WRITE
printf("FAILED to open save file: %s\n", filename.str().c_str());
#endif
return false;
}
}
bool cDeviceLog::OpenNextReadFile()
{
// Close file if open
if (m_pFile)
{
fclose(m_pFile);
m_pFile = NULL;
}
if (m_fileCount == m_fileNames.size())
{
return false;
}
m_fileName = m_fileNames[m_fileCount++];
m_pFile = fopen(m_fileName.c_str(), "rb");
if (m_pFile)
{
#if LOG_DEBUG_READ
printf("File opened: %s\n", m_fileName.c_str());
#endif
return true;
}
else
{
#if LOG_DEBUG_READ
printf("FAILED to open file: %s\n", m_fileName.c_str());
#endif
return false;
}
}
string cDeviceLog::GetNewFileName(uint32_t serialNumber, uint32_t fileCount, const char* suffix)
{
// file name
ostringstream filename;
filename << m_directory << "/" << IS_LOG_FILE_PREFIX <<
serialNumber << "_" <<
m_timeStamp << "_" <<
setfill('0') << setw(4) << (fileCount % 10000) <<
(suffix == NULL || *suffix == 0 ? "" : string("_") + suffix) <<
LogFileExtention();
return filename.str();
}
void cDeviceLog::SetDeviceInfo(const dev_info_t *info)
{
if (info == NULL)
{
return;
}
m_devInfo = *info;
SetSerialNumber(info->serialNumber);
}
void cDeviceLog::OnReadData(p_data_t* data)
{
if (data != NULL)
{
double timestamp = cISDataMappings::GetTimestamp(&data->hdr, data->buf);
m_logStats->LogDataAndTimestamp(data->hdr.id, timestamp);
}
}
| 23.564394 | 459 | 0.703585 | orrinjelo |
29358d8bd2280a35ef071228ba92c8d5e357af3d | 1,067 | cpp | C++ | llvm-2.9/tools/clang/test/SemaCXX/trivial-destructor.cpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | llvm-2.9/tools/clang/test/SemaCXX/trivial-destructor.cpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-2.9/tools/clang/test/SemaCXX/trivial-destructor.cpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
struct T1 {
};
static_assert(__has_trivial_destructor(T1), "T1 has trivial destructor!");
struct T2 {
~T2();
};
static_assert(!__has_trivial_destructor(T2), "T2 has a user-declared destructor!");
struct T3 {
virtual void f();
};
static_assert(__has_trivial_destructor(T3), "T3 has a virtual function (but still a trivial destructor)!");
struct T4 : virtual T3 {
};
static_assert(__has_trivial_destructor(T4), "T4 has a virtual base class! (but still a trivial destructor)!");
struct T5 : T1 {
};
static_assert(__has_trivial_destructor(T5), "All the direct base classes of T5 have trivial destructors!");
struct T6 {
T5 t5;
T1 t1[2][2];
static T2 t2;
};
static_assert(__has_trivial_destructor(T6), "All nonstatic data members of T6 have trivial destructors!");
struct T7 {
T2 t2;
};
static_assert(!__has_trivial_destructor(T7), "t2 does not have a trivial destructor!");
struct T8 : T2 {
};
static_assert(!__has_trivial_destructor(T8), "The base class T2 does not have a trivial destructor!");
| 27.358974 | 110 | 0.731022 | vidkidz |
2935d9062a671fd25beb5f380d403631389d4290 | 21,914 | cpp | C++ | src/AColor.cpp | lstolcman/audacity | 1efebb7cdcb3fd4939a564e3775eeb2ed054ab54 | [
"CC-BY-3.0"
] | 17 | 2017-06-26T18:30:03.000Z | 2021-07-03T21:59:53.000Z | src/AColor.cpp | ibizzn/audacity | a415c3fe3898d917a8d55366f8e6ea6a36ec8e53 | [
"CC-BY-3.0"
] | 5 | 2016-05-22T17:44:06.000Z | 2021-07-07T08:25:04.000Z | src/AColor.cpp | ibizzn/audacity | a415c3fe3898d917a8d55366f8e6ea6a36ec8e53 | [
"CC-BY-3.0"
] | 3 | 2016-05-20T16:24:24.000Z | 2020-12-19T21:52:43.000Z |
/**********************************************************************
Audacity: A Digital Audio Editor
AColor.cpp
Dominic Mazzoni
********************************************************************//**
\class AColor
\brief AColor Manages color brushes and pens
It is also a place to document colour usage policy in Audacity
*//********************************************************************/
#include "Audacity.h"
#include "AColor.h"
#include "Experimental.h"
#include <wx/window.h>
#include <wx/colour.h>
#include <wx/dc.h>
#include <wx/dcmemory.h>
#include <wx/graphics.h>
#include <wx/settings.h>
#include <wx/utils.h>
#include "AllThemeResources.h"
#include "Theme.h"
bool AColor::inited = false;
wxBrush AColor::lightBrush[2];
wxBrush AColor::mediumBrush[2];
wxBrush AColor::darkBrush[2];
wxPen AColor::lightPen[2];
wxPen AColor::mediumPen[2];
wxPen AColor::darkPen[2];
wxPen AColor::cursorPen;
wxBrush AColor::indicatorBrush[2];
wxPen AColor::indicatorPen[2];
wxPen AColor::playRegionPen[2];
wxBrush AColor::playRegionBrush[2];
wxBrush AColor::muteBrush[2];
wxBrush AColor::soloBrush;
wxPen AColor::clippingPen;
wxBrush AColor::envelopeBrush;
wxPen AColor::envelopePen;
wxPen AColor::WideEnvelopePen;
wxBrush AColor::labelTextNormalBrush;
wxBrush AColor::labelTextEditBrush;
wxBrush AColor::labelUnselectedBrush;
wxBrush AColor::labelSelectedBrush;
wxBrush AColor::labelSyncLockSelBrush;
wxPen AColor::labelUnselectedPen;
wxPen AColor::labelSelectedPen;
wxPen AColor::labelSyncLockSelPen;
wxPen AColor::labelSurroundPen;
wxPen AColor::trackFocusPens[3];
wxPen AColor::snapGuidePen;
wxPen AColor::tooltipPen;
wxBrush AColor::tooltipBrush;
// The spare pen and brush possibly help us cut down on the
// number of pens and brushes we need.
wxPen AColor::sparePen;
wxBrush AColor::spareBrush;
wxPen AColor::uglyPen;
wxBrush AColor::uglyBrush;
//
// Draw an upward or downward pointing arrow.
//
void AColor::Arrow(wxDC & dc, wxCoord x, wxCoord y, int width, bool down)
{
if (width & 0x01) {
width--;
}
wxPoint pt[3];
int half = width / 2;
if (down) {
pt[0].x = 0; pt[0].y = 0;
pt[1].x = width; pt[1].y = 0;
pt[2].x = half; pt[2].y = half;
}
else {
pt[0].x = 0; pt[0].y = half;
pt[1].x = half; pt[1].y = 0;
pt[2].x = width; pt[2].y = half;
}
dc.DrawPolygon(3, pt, x, y);
}
//
// Draw a line, inclusive of endpoints,
// compensating for differences in wxWidgets versions across platforms
//
void AColor::Line(wxDC & dc, wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
{
const wxPoint points[] { { x1, y1 }, { x2, y2 } };
Lines( dc, 2, points );
}
// Draw lines, INCLUSIVE of all endpoints
void AColor::Lines(wxDC &dc, size_t nPoints, const wxPoint points[])
{
if ( nPoints <= 1 ) {
if (nPoints == 1)
dc.DrawPoint( points[0] );
return;
}
for (size_t ii = 0; ii < nPoints - 1; ++ii) {
const auto &p1 = points[ii];
const auto &p2 = points[ii + 1];
// As of 2.8.9 (possibly earlier), wxDC::DrawLine() on the Mac draws the
// last point since it is now based on the NEW wxGraphicsContext system.
// Make the other platforms do the same thing since the other platforms
// "may" follow they get wxGraphicsContext going.
// PRL: as of 3.1.1, I still observe that on Mac, the last point is
// included, contrary to what documentation says. Also that on Windows,
// sometimes it is the first point that is excluded.
#if defined(__WXMAC__) || defined(__WXGTK3__)
dc.DrawLine(p1, p2);
#else
dc.DrawPoint(p1);
if ( p1 != p2 ) {
dc.DrawLine(p1, p2);
}
#endif
}
#if defined(__WXMAC__) || defined(__WXGTK3__)
;
#else
dc.DrawPoint( points[ nPoints - 1 ] );
#endif
}
//
// Draws a focus rectangle (Taken directly from wxWidgets source)
//
void AColor::DrawFocus(wxDC & dc, wxRect & rect)
{
// draw the pixels manually: note that to behave in the same manner as
// DrawRect(), we must exclude the bottom and right borders from the
// rectangle
wxCoord x1 = rect.GetLeft(),
y1 = rect.GetTop(),
x2 = rect.GetRight(),
y2 = rect.GetBottom();
// -1 for brush, so it just sets the pen colour, and does not change the brush.
UseThemeColour( &dc, -1, clrTrackPanelText );
wxCoord z;
for ( z = x1 + 1; z < x2; z += 2 )
dc.DrawPoint(z, y1);
wxCoord shift = z == x2 ? 0 : 1;
for ( z = y1 + shift; z < y2; z += 2 )
dc.DrawPoint(x2, z);
shift = z == y2 ? 0 : 1;
for ( z = x2 - shift; z > x1; z -= 2 )
dc.DrawPoint(z, y2);
shift = z == x1 ? 0 : 1;
for ( z = y2 - shift; z > y1; z -= 2 )
dc.DrawPoint(x1, z);
}
void AColor::Bevel(wxDC & dc, bool up, const wxRect & r)
{
if (up)
AColor::Light(&dc, false);
else
AColor::Dark(&dc, false);
AColor::Line(dc, r.x, r.y, r.x + r.width, r.y);
AColor::Line(dc, r.x, r.y, r.x, r.y + r.height);
if (!up)
AColor::Light(&dc, false);
else
AColor::Dark(&dc, false);
AColor::Line(dc, r.x + r.width, r.y, r.x + r.width, r.y + r.height);
AColor::Line(dc, r.x, r.y + r.height, r.x + r.width, r.y + r.height);
}
void AColor::Bevel2
(wxDC & dc, bool up, const wxRect & r, bool bSel, bool bHighlight)
{
int index = 0;
// There are eight button states in the TCP.
// A theme might not differentiate between them all. That's up to
// the theme designer.
// Button highlighted (i.e. hovered over) or not.
// Track selected or not
// Button up or down.
// Highlight in most themes is lighter than not highlighted.
if ( bHighlight && bSel)
index = up ? bmpHiliteUpButtonExpandSel : bmpHiliteButtonExpandSel;
else if ( bHighlight )
index = up ? bmpHiliteUpButtonExpand : bmpHiliteButtonExpand;
else if( bSel )
index = up ? bmpUpButtonExpandSel : bmpDownButtonExpandSel;
else
index = up ? bmpUpButtonExpand : bmpDownButtonExpand;
wxBitmap & Bmp = theTheme.Bitmap( index );
wxMemoryDC memDC;
memDC.SelectObject(Bmp);
int h = wxMin( r.height, Bmp.GetHeight() );
dc.Blit( r.x,r.y,r.width/2, h, &memDC, 0, 0, wxCOPY, true );
int r2 = r.width - r.width/2;
dc.Blit( r.x+r.width/2,r.y,r2, h, &memDC,
Bmp.GetWidth() - r2, 0, wxCOPY, true );
}
wxColour AColor::Blend( const wxColour & c1, const wxColour & c2 )
{
wxColour c3(
(c1.Red() + c2.Red())/2,
(c1.Green() + c2.Green())/2,
(c1.Blue() + c2.Blue())/2);
return c3;
}
void AColor::BevelTrackInfo(wxDC & dc, bool up, const wxRect & r, bool highlight)
{
#ifndef EXPERIMENTAL_THEMING
Bevel( dc, up, r );
#else
// Note that the actually drawn rectangle extends one pixel right of and
// below the given
wxColour col;
col = Blend( theTheme.Colour( clrTrackInfo ), up ? wxColour( 255,255,255):wxColour(0,0,0));
wxPen pen( highlight ? uglyPen : col );
dc.SetPen( pen );
dc.DrawLine(r.x, r.y, r.x + r.width, r.y);
dc.DrawLine(r.x, r.y, r.x, r.y + r.height);
col = Blend( theTheme.Colour( clrTrackInfo ), up ? wxColour(0,0,0): wxColour(255,255,255));
pen.SetColour( col );
dc.SetPen( highlight ? uglyPen : pen );
dc.DrawLine(r.x + r.width, r.y, r.x + r.width, r.y + r.height);
dc.DrawLine(r.x, r.y + r.height, r.x + r.width, r.y + r.height);
#endif
}
// Set colour of and select brush and pen.
// Use -1 to omit brush or pen.
// If pen omitted, then the same colour as the brush will be used.
// alpha for the brush is normally 255, but if set will make a difference
// on mac (only) currently.
void AColor::UseThemeColour( wxDC * dc, int iBrush, int iPen, int alpha )
{
if (!inited)
Init();
// do nothing if no colours set.
if( (iBrush == -1) && ( iPen ==-1))
return;
wxColour col = wxColour(0,0,0);
if( iBrush !=-1 ){
col = theTheme.Colour( iBrush );
col.Set( col.Red(), col.Green(), col.Blue(), alpha);
spareBrush.SetColour( col );
dc->SetBrush( spareBrush );
}
if( iPen != -1)
col = theTheme.Colour( iPen );
sparePen.SetColour( col );
dc->SetPen( sparePen );
}
void AColor::UseThemeColour( wxGraphicsContext * gc, int iBrush, int iPen, int alpha )
{
if (!inited)
Init();
// do nothing if no colours set.
if( (iBrush == -1) && ( iPen ==-1))
return;
wxColour col = wxColour(0,0,0);
if( iBrush !=-1 ){
col = theTheme.Colour( iBrush );
col.Set( col.Red(), col.Green(), col.Blue(), alpha);
spareBrush.SetColour( col );
gc->SetBrush( spareBrush );
}
if( iPen != -1)
col = theTheme.Colour( iPen );
sparePen.SetColour( col );
gc->SetPen( sparePen );
}
void AColor::Light(wxDC * dc, bool selected, bool highlight)
{
if (!inited)
Init();
int index = (int) selected;
auto &brush = highlight ? AColor::uglyBrush : lightBrush[index];
dc->SetBrush( brush );
auto &pen = highlight ? AColor::uglyPen : lightPen[index];
dc->SetPen( pen );
}
void AColor::Medium(wxDC * dc, bool selected)
{
if (!inited)
Init();
int index = (int) selected;
dc->SetBrush(mediumBrush[index]);
dc->SetPen(mediumPen[index]);
}
void AColor::MediumTrackInfo(wxDC * dc, bool selected)
{
#ifdef EXPERIMENTAL_THEMING
UseThemeColour( dc, selected ? clrTrackInfoSelected : clrTrackInfo );
#else
Medium( dc, selected );
#endif
}
void AColor::Dark(wxDC * dc, bool selected, bool highlight)
{
if (!inited)
Init();
int index = (int) selected;
auto &brush = highlight ? AColor::uglyBrush : darkBrush[index];
dc->SetBrush( brush );
auto &pen = highlight ? AColor::uglyPen : darkPen[index];
dc->SetPen( pen );
}
void AColor::TrackPanelBackground(wxDC * dc, bool selected)
{
#ifdef EXPERIMENTAL_THEMING
UseThemeColour( dc, selected ? clrMediumSelected : clrTrackBackground );
#else
Dark( dc, selected );
#endif
}
void AColor::CursorColor(wxDC * dc)
{
if (!inited)
Init();
dc->SetLogicalFunction(wxCOPY);
dc->SetPen(cursorPen);
}
void AColor::IndicatorColor(wxDC * dc, bool bIsNotRecording)
{
if (!inited)
Init();
int index = (int) bIsNotRecording;
dc->SetPen(indicatorPen[index]);
dc->SetBrush(indicatorBrush[index]);
}
void AColor::PlayRegionColor(wxDC * dc, bool locked)
{
if (!inited)
Init();
dc->SetPen(playRegionPen[(int)locked]);
dc->SetBrush(playRegionBrush[(int)locked]);
}
void AColor::TrackFocusPen(wxDC * dc, int level)
{
if (!inited)
Init();
dc->SetPen(trackFocusPens[level]);
}
void AColor::SnapGuidePen(wxDC * dc)
{
if (!inited)
Init();
dc->SetPen(snapGuidePen);
}
void AColor::Mute(wxDC * dc, bool on, bool selected, bool soloing)
{
if (!inited)
Init();
int index = (int) selected;
if (on) {
dc->SetPen(*wxBLACK_PEN);
dc->SetBrush(muteBrush[(int) soloing]);
}
else {
dc->SetPen(*wxTRANSPARENT_PEN);
dc->SetBrush(mediumBrush[index]);
}
}
void AColor::Solo(wxDC * dc, bool on, bool selected)
{
if (!inited)
Init();
int index = (int) selected;
if (on) {
dc->SetPen(*wxBLACK_PEN);
dc->SetBrush(soloBrush);
}
else {
dc->SetPen(*wxTRANSPARENT_PEN);
dc->SetBrush(mediumBrush[index]);
}
}
bool AColor::gradient_inited = 0;
void AColor::ReInit()
{
inited=false;
Init();
gradient_inited=0;
PreComputeGradient();
}
wxColour InvertOfColour( const wxColour & c )
{
return wxColour( 255-c.Red(), 255-c.Green(), 255-c.Blue() );
}
// Fix up the cursor colour, if it is 'unacceptable'.
// Unacceptable if it is too close to the background colour.
wxColour CursorColour( )
{
wxColour cCursor = theTheme.Colour( clrCursorPen );
wxColour cBack = theTheme.Colour( clrMedium );
int d = theTheme.ColourDistance( cCursor, cBack );
// Pen colour is fine, if there is plenty of contrast.
if( d > 200 )
return clrCursorPen;
// otherwise return same colour as a selection.
return theTheme.Colour( clrSelected );
}
void AColor::Init()
{
if (inited)
return;
wxColour light = theTheme.Colour( clrLight );
// wxSystemSettings::GetColour(wxSYS_COLOUR_3DHIGHLIGHT);
wxColour med = theTheme.Colour( clrMedium );
// wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
wxColour dark = theTheme.Colour( clrDark );
// wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW);
wxColour lightSelected = theTheme.Colour( clrLightSelected );
wxColour medSelected = theTheme.Colour( clrMediumSelected );
wxColour darkSelected = theTheme.Colour( clrDarkSelected );
clippingPen.SetColour(0xCC, 0x11, 0x00);
theTheme.SetPenColour( envelopePen, clrEnvelope );
theTheme.SetPenColour( WideEnvelopePen, clrEnvelope );
theTheme.SetBrushColour( envelopeBrush, clrEnvelope );
WideEnvelopePen.SetWidth( 3 );
theTheme.SetBrushColour( labelTextNormalBrush, clrLabelTextNormalBrush );
theTheme.SetBrushColour( labelTextEditBrush, clrLabelTextEditBrush );
theTheme.SetBrushColour( labelUnselectedBrush, clrLabelUnselectedBrush );
theTheme.SetBrushColour( labelSelectedBrush, clrLabelSelectedBrush );
theTheme.SetBrushColour( labelSyncLockSelBrush, clrSyncLockSel );
theTheme.SetPenColour( labelUnselectedPen, clrLabelUnselectedPen );
theTheme.SetPenColour( labelSelectedPen, clrLabelSelectedPen );
theTheme.SetPenColour( labelSyncLockSelPen, clrSyncLockSel );
theTheme.SetPenColour( labelSurroundPen, clrLabelSurroundPen );
// These colors were modified to avoid using reserved colors red and green
// for the buttons.
theTheme.SetBrushColour( muteBrush[0], clrMuteButtonActive);
theTheme.SetBrushColour( muteBrush[1], clrMuteButtonVetoed);
theTheme.SetBrushColour( soloBrush, clrMuteButtonActive);
cursorPen.SetColour( CursorColour() );
theTheme.SetPenColour( indicatorPen[0], clrRecordingPen);
theTheme.SetPenColour( indicatorPen[1], clrPlaybackPen);
theTheme.SetBrushColour( indicatorBrush[0], clrRecordingBrush);
theTheme.SetBrushColour( indicatorBrush[1], clrPlaybackBrush);
theTheme.SetBrushColour( playRegionBrush[0],clrRulerRecordingBrush);
theTheme.SetPenColour( playRegionPen[0], clrRulerRecordingPen);
theTheme.SetBrushColour( playRegionBrush[1],clrRulerPlaybackBrush);
theTheme.SetPenColour( playRegionPen[1], clrRulerPlaybackPen);
//Determine tooltip color
tooltipPen.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOTEXT) );
tooltipBrush.SetColour( wxSystemSettingsNative::GetColour(wxSYS_COLOUR_INFOBK) );
uglyPen.SetColour( wxColour{ 0, 255, 0 } ); // saturated green
uglyBrush.SetColour( wxColour{ 255, 0, 255 } ); // saturated magenta
// A tiny gradient of yellow surrounding the current focused track
theTheme.SetPenColour( trackFocusPens[0], clrTrackFocus0);
theTheme.SetPenColour( trackFocusPens[1], clrTrackFocus1);
theTheme.SetPenColour( trackFocusPens[2], clrTrackFocus2);
// A vertical line indicating that the selection or sliding has
// been snapped to the nearest boundary.
theTheme.SetPenColour( snapGuidePen, clrSnapGuide);
// unselected
lightBrush[0].SetColour(light);
mediumBrush[0].SetColour(med);
darkBrush[0].SetColour(dark);
lightPen[0].SetColour(light);
mediumPen[0].SetColour(med);
darkPen[0].SetColour(dark);
// selected
lightBrush[1].SetColour(lightSelected);
mediumBrush[1].SetColour(medSelected);
darkBrush[1].SetColour(darkSelected);
lightPen[1].SetColour(lightSelected);
mediumPen[1].SetColour(medSelected);
darkPen[1].SetColour(darkSelected);
inited = true;
}
// These colours are chosen so that black text shows up OK on them.
const int AColor_midicolors[16][3] = {
{255, 102, 102}, // 1=salmon
{204, 0, 0}, // 2=red
{255, 117, 23}, // 3=orange
{255, 255, 0}, // 4=yellow
{0, 204, 0}, // 5=green
{0, 204, 204}, // 6=turquoise
{125, 125, 255}, // 7=blue
{153, 0, 255}, // 8=blue-violet
{140, 97, 54}, // 9=brown
{120, 120, 120}, // 10=gray (drums)
{255, 175, 40}, // 11=lt orange
{102, 255, 102}, // 12=lt green
{153, 255, 255}, // 13=lt turquoise
{190, 190, 255}, // 14=lt blue
{204, 102, 255}, // 15=lt blue-violet
{255, 51, 204} // 16=lt red-violet
};
void AColor::MIDIChannel(wxDC * dc, int channel /* 1 - 16 */ )
{
if (channel >= 1 && channel <= 16) {
const int *colors = AColor_midicolors[channel - 1];
dc->SetPen(wxPen(wxColour(colors[0],
colors[1], colors[2]), 1, wxPENSTYLE_SOLID));
dc->SetBrush(wxBrush(wxColour(colors[0],
colors[1], colors[2]), wxBRUSHSTYLE_SOLID));
} else {
dc->SetPen(wxPen(wxColour(153, 153, 153), 1, wxPENSTYLE_SOLID));
dc->SetBrush(wxBrush(wxColour(153, 153, 153), wxBRUSHSTYLE_SOLID));
}
}
void AColor::LightMIDIChannel(wxDC * dc, int channel /* 1 - 16 */ )
{
if (channel >= 1 && channel <= 16) {
const int *colors = AColor_midicolors[channel - 1];
dc->SetPen(wxPen(wxColour(127 + colors[0] / 2,
127 + colors[1] / 2,
127 + colors[2] / 2), 1, wxPENSTYLE_SOLID));
dc->SetBrush(wxBrush(wxColour(127 + colors[0] / 2,
127 + colors[1] / 2,
127 + colors[2] / 2), wxBRUSHSTYLE_SOLID));
} else {
dc->SetPen(wxPen(wxColour(204, 204, 204), 1, wxPENSTYLE_SOLID));
dc->SetBrush(wxBrush(wxColour(204, 204, 204), wxBRUSHSTYLE_SOLID));
}
}
void AColor::DarkMIDIChannel(wxDC * dc, int channel /* 1 - 16 */ )
{
if (channel >= 1 && channel <= 16) {
const int *colors = AColor_midicolors[channel - 1];
dc->SetPen(wxPen(wxColour(colors[0] / 2,
colors[1] / 2,
colors[2] / 2), 1, wxPENSTYLE_SOLID));
dc->SetBrush(wxBrush(wxColour(colors[0] / 2,
colors[1] / 2,
colors[2] / 2), wxBRUSHSTYLE_SOLID));
} else {
dc->SetPen(wxPen(wxColour(102, 102, 102), 1, wxPENSTYLE_SOLID));
dc->SetBrush(wxBrush(wxColour(102, 102, 102), wxBRUSHSTYLE_SOLID));
}
}
unsigned char AColor::gradient_pre[ColorGradientTotal][2][gradientSteps][3];
void AColor::PreComputeGradient() {
{
if (!gradient_inited) {
gradient_inited = 1;
for (int selected = 0; selected < ColorGradientTotal; selected++)
for (int grayscale = 0; grayscale <= 1; grayscale++) {
float r, g, b;
int i;
for (i=0; i<gradientSteps; i++) {
float value = float(i)/gradientSteps;
if (grayscale) {
r = g = b = 0.84 - 0.84 * value;
} else {
const int gsteps = 4;
float gradient[gsteps + 1][3];
theTheme.Colour( clrSpectro1 ) = theTheme.Colour( clrUnselected );
theTheme.Colour( clrSpectro1Sel ) = theTheme.Colour( clrSelected );
int clrFirst = (selected == ColorGradientUnselected ) ? clrSpectro1 : clrSpectro1Sel;
for(int j=0;j<(gsteps+1);j++){
wxColour c = theTheme.Colour( clrFirst+j );
gradient[ j] [0] = c.Red()/255.0;
gradient[ j] [1] = c.Green()/255.0;
gradient[ j] [2] = c.Blue()/255.0;
}
int left = (int)(value * gsteps);
int right = (left == gsteps ? gsteps : left + 1);
float rweight = (value * gsteps) - left;
float lweight = 1.0 - rweight;
r = (gradient[left][0] * lweight) + (gradient[right][0] * rweight);
g = (gradient[left][1] * lweight) + (gradient[right][1] * rweight);
b = (gradient[left][2] * lweight) + (gradient[right][2] * rweight);
}
switch (selected) {
case ColorGradientUnselected:
// not dimmed
break;
case ColorGradientTimeAndFrequencySelected:
if( !grayscale )
{
float temp;
temp = r;
r = g;
g = b;
b = temp;
break;
}
// else fall through to SAME grayscale colour as normal selection.
// The white lines show it up clearly enough.
case ColorGradientTimeSelected:
// partly dimmed
r *= 0.75f;
g *= 0.75f;
b *= 0.75f;
break;
// For now edge colour is just black (or white if grey-scale)
// Later we might invert or something else funky.
case ColorGradientEdge:
// fully dimmed
r = 1.0f * grayscale;
g = 1.0f * grayscale;
b = 1.0f * grayscale;
break;
}
gradient_pre[selected][grayscale][i][0] = (unsigned char) (255 * r);
gradient_pre[selected][grayscale][i][1] = (unsigned char) (255 * g);
gradient_pre[selected][grayscale][i][2] = (unsigned char) (255 * b);
}
}
}
}
}
| 30.30982 | 106 | 0.593411 | lstolcman |
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 : hanzh.xu@gmail.com
// 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 |
293690d2744cf9328b63681bff1db267c020e226 | 9,825 | cpp | C++ | src/drivers/airspeed/airspeed.cpp | vooon/px4-firmware | d8e0a22cbc59ed435519ad66a44b14b05ef9bbf9 | [
"BSD-3-Clause"
] | 1 | 2017-03-03T06:06:48.000Z | 2017-03-03T06:06:48.000Z | src/drivers/airspeed/airspeed.cpp | vooon/px4-firmware | d8e0a22cbc59ed435519ad66a44b14b05ef9bbf9 | [
"BSD-3-Clause"
] | null | null | null | src/drivers/airspeed/airspeed.cpp | vooon/px4-firmware | d8e0a22cbc59ed435519ad66a44b14b05ef9bbf9 | [
"BSD-3-Clause"
] | 2 | 2015-10-05T12:52:54.000Z | 2016-03-02T07:00:28.000Z | /****************************************************************************
*
* Copyright (c) 2013, 2014 PX4 Development Team. All rights reserved.
*
* 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.
* 3. Neither the name PX4 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.
*
****************************************************************************/
/**
* @file ets_airspeed.cpp
* @author Simon Wilks
*
* Driver for the Eagle Tree Airspeed V3 connected via I2C.
*/
#include <nuttx/config.h>
#include <drivers/device/i2c.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <semaphore.h>
#include <string.h>
#include <fcntl.h>
#include <poll.h>
#include <errno.h>
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <nuttx/arch.h>
#include <nuttx/wqueue.h>
#include <nuttx/clock.h>
#include <arch/board/board.h>
#include <systemlib/airspeed.h>
#include <systemlib/err.h>
#include <systemlib/param/param.h>
#include <systemlib/perf_counter.h>
#include <drivers/drv_airspeed.h>
#include <drivers/drv_hrt.h>
#include <drivers/device/ringbuffer.h>
#include <uORB/uORB.h>
#include <uORB/topics/differential_pressure.h>
#include <uORB/topics/subsystem_info.h>
#include <drivers/airspeed/airspeed.h>
Airspeed::Airspeed(int bus, int address, unsigned conversion_interval, const char* path) :
I2C("Airspeed", path, bus, address, 100000),
_reports(nullptr),
_buffer_overflows(perf_alloc(PC_COUNT, "airspeed_buffer_overflows")),
_max_differential_pressure_pa(0),
_sensor_ok(false),
_last_published_sensor_ok(true), /* initialize differently to force publication */
_measure_ticks(0),
_collect_phase(false),
_diff_pres_offset(0.0f),
_airspeed_pub(-1),
_subsys_pub(-1),
_class_instance(-1),
_conversion_interval(conversion_interval),
_sample_perf(perf_alloc(PC_ELAPSED, "airspeed_read")),
_comms_errors(perf_alloc(PC_COUNT, "airspeed_comms_errors"))
{
// enable debug() calls
_debug_enabled = false;
// work_cancel in the dtor will explode if we don't do this...
memset(&_work, 0, sizeof(_work));
}
Airspeed::~Airspeed()
{
/* make sure we are truly inactive */
stop();
if (_class_instance != -1)
unregister_class_devname(AIRSPEED_DEVICE_PATH, _class_instance);
/* free any existing reports */
if (_reports != nullptr)
delete _reports;
// free perf counters
perf_free(_sample_perf);
perf_free(_comms_errors);
perf_free(_buffer_overflows);
}
int
Airspeed::init()
{
int ret = ERROR;
/* do I2C init (and probe) first */
if (I2C::init() != OK)
goto out;
/* allocate basic report buffers */
_reports = new RingBuffer(2, sizeof(differential_pressure_s));
if (_reports == nullptr)
goto out;
/* register alternate interfaces if we have to */
_class_instance = register_class_devname(AIRSPEED_DEVICE_PATH);
/* publication init */
if (_class_instance == CLASS_DEVICE_PRIMARY) {
/* advertise sensor topic, measure manually to initialize valid report */
struct differential_pressure_s arp;
measure();
_reports->get(&arp);
/* measurement will have generated a report, publish */
_airspeed_pub = orb_advertise(ORB_ID(differential_pressure), &arp);
if (_airspeed_pub < 0)
warnx("failed to create airspeed sensor object. uORB started?");
}
ret = OK;
out:
return ret;
}
int
Airspeed::probe()
{
/* on initial power up the device needs more than one retry
for detection. Once it is running then retries aren't
needed
*/
_retries = 4;
int ret = measure();
_retries = 0;
return ret;
}
int
Airspeed::ioctl(struct file *filp, int cmd, unsigned long arg)
{
switch (cmd) {
case SENSORIOCSPOLLRATE: {
switch (arg) {
/* switching to manual polling */
case SENSOR_POLLRATE_MANUAL:
stop();
_measure_ticks = 0;
return OK;
/* external signalling (DRDY) not supported */
case SENSOR_POLLRATE_EXTERNAL:
/* zero would be bad */
case 0:
return -EINVAL;
/* set default/max polling rate */
case SENSOR_POLLRATE_MAX:
case SENSOR_POLLRATE_DEFAULT: {
/* do we need to start internal polling? */
bool want_start = (_measure_ticks == 0);
/* set interval for next measurement to minimum legal value */
_measure_ticks = USEC2TICK(_conversion_interval);
/* if we need to start the poll state machine, do it */
if (want_start)
start();
return OK;
}
/* adjust to a legal polling interval in Hz */
default: {
/* do we need to start internal polling? */
bool want_start = (_measure_ticks == 0);
/* convert hz to tick interval via microseconds */
unsigned ticks = USEC2TICK(1000000 / arg);
/* check against maximum rate */
if (ticks < USEC2TICK(_conversion_interval))
return -EINVAL;
/* update interval for next measurement */
_measure_ticks = ticks;
/* if we need to start the poll state machine, do it */
if (want_start)
start();
return OK;
}
}
}
case SENSORIOCGPOLLRATE:
if (_measure_ticks == 0)
return SENSOR_POLLRATE_MANUAL;
return (1000 / _measure_ticks);
case SENSORIOCSQUEUEDEPTH: {
/* lower bound is mandatory, upper bound is a sanity check */
if ((arg < 1) || (arg > 100))
return -EINVAL;
irqstate_t flags = irqsave();
if (!_reports->resize(arg)) {
irqrestore(flags);
return -ENOMEM;
}
irqrestore(flags);
return OK;
}
case SENSORIOCGQUEUEDEPTH:
return _reports->size();
case SENSORIOCRESET:
/* XXX implement this */
return -EINVAL;
case AIRSPEEDIOCSSCALE: {
struct airspeed_scale *s = (struct airspeed_scale*)arg;
_diff_pres_offset = s->offset_pa;
return OK;
}
case AIRSPEEDIOCGSCALE: {
struct airspeed_scale *s = (struct airspeed_scale*)arg;
s->offset_pa = _diff_pres_offset;
s->scale = 1.0f;
return OK;
}
default:
/* give it to the superclass */
return I2C::ioctl(filp, cmd, arg);
}
}
ssize_t
Airspeed::read(struct file *filp, char *buffer, size_t buflen)
{
unsigned count = buflen / sizeof(differential_pressure_s);
differential_pressure_s *abuf = reinterpret_cast<differential_pressure_s *>(buffer);
int ret = 0;
/* buffer must be large enough */
if (count < 1)
return -ENOSPC;
/* if automatic measurement is enabled */
if (_measure_ticks > 0) {
/*
* While there is space in the caller's buffer, and reports, copy them.
* Note that we may be pre-empted by the workq thread while we are doing this;
* we are careful to avoid racing with them.
*/
while (count--) {
if (_reports->get(abuf)) {
ret += sizeof(*abuf);
abuf++;
}
}
/* if there was no data, warn the caller */
return ret ? ret : -EAGAIN;
}
/* manual measurement - run one conversion */
do {
_reports->flush();
/* trigger a measurement */
if (OK != measure()) {
ret = -EIO;
break;
}
/* wait for it to complete */
usleep(_conversion_interval);
/* run the collection phase */
if (OK != collect()) {
ret = -EIO;
break;
}
/* state machine will have generated a report, copy it out */
if (_reports->get(abuf)) {
ret = sizeof(*abuf);
}
} while (0);
return ret;
}
void
Airspeed::start()
{
/* reset the report ring and state machine */
_collect_phase = false;
_reports->flush();
/* schedule a cycle to start things */
work_queue(HPWORK, &_work, (worker_t)&Airspeed::cycle_trampoline, this, 1);
}
void
Airspeed::stop()
{
work_cancel(HPWORK, &_work);
}
void
Airspeed::update_status()
{
if (_sensor_ok != _last_published_sensor_ok) {
/* notify about state change */
struct subsystem_info_s info = {
true,
true,
_sensor_ok,
SUBSYSTEM_TYPE_DIFFPRESSURE
};
if (_subsys_pub > 0) {
orb_publish(ORB_ID(subsystem_info), _subsys_pub, &info);
} else {
_subsys_pub = orb_advertise(ORB_ID(subsystem_info), &info);
}
_last_published_sensor_ok = _sensor_ok;
}
}
void
Airspeed::cycle_trampoline(void *arg)
{
Airspeed *dev = (Airspeed *)arg;
dev->cycle();
// XXX we do not know if this is
// really helping - do not update the
// subsys state right now
//dev->update_status();
}
void
Airspeed::print_info()
{
perf_print_counter(_sample_perf);
perf_print_counter(_comms_errors);
perf_print_counter(_buffer_overflows);
warnx("poll interval: %u ticks", _measure_ticks);
_reports->print_info("report queue");
}
void
Airspeed::new_report(const differential_pressure_s &report)
{
if (!_reports->force(&report))
perf_count(_buffer_overflows);
}
| 24.199507 | 90 | 0.688041 | vooon |
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 |
2939f1204ebb4b39fcf7b5b215e893ad2d77dbaf | 4,172 | hpp | C++ | srcs/writer/writerdatatypesinternal.hpp | brooklet/heif | 87d0427d750d882acba5f31bae697fe9a433ab50 | [
"BSD-3-Clause"
] | 1 | 2019-12-27T00:55:05.000Z | 2019-12-27T00:55:05.000Z | srcs/writer/writerdatatypesinternal.hpp | brooklet/heif | 87d0427d750d882acba5f31bae697fe9a433ab50 | [
"BSD-3-Clause"
] | null | null | null | srcs/writer/writerdatatypesinternal.hpp | brooklet/heif | 87d0427d750d882acba5f31bae697fe9a433ab50 | [
"BSD-3-Clause"
] | null | null | null | /* This file is part of Nokia HEIF library
*
* Copyright (c) 2015-2019 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: heif@nokia.com
*
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries. All rights are reserved.
*
* Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior
* written consent of Nokia.
*/
#ifndef WRITERDATATYPESINTERNAL_HPP
#define WRITERDATATYPESINTERNAL_HPP
#include "customallocator.hpp"
#include "fourccint.hpp"
#include "heifwriterdatatypes.h"
namespace HEIF
{
IdType(std::uint32_t, TrackId);
IdType(std::uint16_t, AlternateGroupId);
/// Data of one image/sample/frame
struct MediaData
{
MediaDataId id;
MediaFormat mediaFormat;
DecoderConfigId decoderConfigId;
uint64_t offset; ///< Data offset. When mdat is after ftyp this is fileoffset. When mdat is lcoated after moov
///< this is offset from mdat start.
size_t size;
};
struct Dimensions
{
uint32_t width;
uint32_t height;
};
struct ImageSequence
{
SequenceId id;
TrackId trackId;
FourCCInt handlerType;
MediaFormat mediaFormat;
Rational timeBase;
Dimensions maxDimensions;
uint64_t duration;
uint32_t creationTime;
uint32_t modificationTime;
bool trackEnabled;
bool trackInMovie;
bool trackPreview;
bool containsHidden;
bool containsReferenceSamples;
bool containsEquivalenceGroupSamples;
bool containsCleanApertureBox;
AlternateGroupId alternateGroup;
Map<FourCCInt, Set<TrackId>> trackReferences;
String auxiliaryType;
struct Sample
{
uint32_t sampleIndex;
MediaDataId mediaDataId; // Reference to the sample data and decoder configurations.
SequenceImageId sequenceImageId;
uint64_t dts;
uint32_t sampleDuration;
int64_t compositionOffset;
uint32_t decoderConfigIndex;
bool isSyncSample;
bool isHidden;
Vector<std::uint32_t> referenceSamples;
Map<GroupId, EquivalenceTimeOffset> equivalenceGroups;
Set<MetadataItemId> metadataItemsIds;
};
Vector<Sample> samples;
Vector<DecoderConfigId> decoderConfigs;
bool anyNonSyncSample;
CodingConstraints codingConstraints; // for image sequences.
AudioParams audioParams; // for audio tracks.
CleanAperture clap;
EditList editList;
Vector<int32_t> matrix;
};
struct PropertyInformation
{
bool isTransformative;
};
struct ImageCollection
{
struct PropertyAssociation
{
PropertyId propertyId;
bool essential;
};
struct Image
{
ImageId imageId;
DecoderConfigId decoderConfigId;
bool isHidden = false;
Vector<PropertyAssociation> descriptiveProperties;
Vector<PropertyAssociation> transformativeProperties;
};
Map<ImageId, Image> images;
};
struct EntityGroup
{
FourCC type;
GroupId id;
struct Entity
{
uint32_t id;
enum class Type
{
ITEM,
SEQUENCE
};
Type type; /// < Id can be either an item or a track id. This type field is only for debugging purposes.
};
Vector<Entity> entities;
};
typedef uint16_t PropertyIndex; ///< Propery index in the ipco box.
/// Image size for handling 'ispe' properties.
struct ImageSize
{
uint32_t width;
uint32_t height;
bool operator<(const ImageSize& rhs) const
{
return std::tie(width, height) < std::tie(rhs.width, rhs.height);
}
};
} // namespace HEIF
#endif // WRITERDATATYPESINTERNAL_HPP
| 27.629139 | 119 | 0.617929 | brooklet |
293ba29cd787b766c71bce4a10aed13117a128b1 | 9,353 | cpp | C++ | src/gpu/text/GrStrikeCache.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-08-06T00:31:13.000Z | 2021-07-29T07:28:17.000Z | src/gpu/text/GrStrikeCache.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-04-26T17:03:31.000Z | 2020-04-28T14:55:33.000Z | src/gpu/text/GrStrikeCache.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 57 | 2016-12-29T02:00:25.000Z | 2021-11-16T01:22:50.000Z | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrStrikeCache.h"
#include "GrAtlasManager.h"
#include "GrCaps.h"
#include "GrColor.h"
#include "GrDistanceFieldGenFromVector.h"
#include "SkAutoMalloc.h"
#include "SkDistanceFieldGen.h"
GrStrikeCache::GrStrikeCache(const GrCaps* caps, size_t maxTextureBytes)
: fPreserveStrike(nullptr)
, f565Masks(SkMasks::CreateMasks({0xF800, 0x07E0, 0x001F, 0},
GrMaskFormatBytesPerPixel(kA565_GrMaskFormat))) { }
GrStrikeCache::~GrStrikeCache() {
StrikeHash::Iter iter(&fCache);
while (!iter.done()) {
(*iter).fIsAbandoned = true;
(*iter).unref();
++iter;
}
}
void GrStrikeCache::freeAll() {
StrikeHash::Iter iter(&fCache);
while (!iter.done()) {
(*iter).fIsAbandoned = true;
(*iter).unref();
++iter;
}
fCache.rewind();
}
void GrStrikeCache::HandleEviction(GrDrawOpAtlas::AtlasID id, void* ptr) {
GrStrikeCache* glyphCache = reinterpret_cast<GrStrikeCache*>(ptr);
StrikeHash::Iter iter(&glyphCache->fCache);
for (; !iter.done(); ++iter) {
GrTextStrike* strike = &*iter;
strike->removeID(id);
// clear out any empty strikes. We will preserve the strike whose call to addToAtlas
// triggered the eviction
if (strike != glyphCache->fPreserveStrike && 0 == strike->fAtlasedGlyphs) {
glyphCache->fCache.remove(GrTextStrike::GetKey(*strike));
strike->fIsAbandoned = true;
strike->unref();
}
}
}
// expands each bit in a bitmask to 0 or ~0 of type INT_TYPE. Used to expand a BW glyph mask to
// A8, RGB565, or RGBA8888.
template <typename INT_TYPE>
static void expand_bits(INT_TYPE* dst,
const uint8_t* src,
int width,
int height,
int dstRowBytes,
int srcRowBytes) {
for (int i = 0; i < height; ++i) {
int rowWritesLeft = width;
const uint8_t* s = src;
INT_TYPE* d = dst;
while (rowWritesLeft > 0) {
unsigned mask = *s++;
for (int i = 7; i >= 0 && rowWritesLeft; --i, --rowWritesLeft) {
*d++ = (mask & (1 << i)) ? (INT_TYPE)(~0UL) : 0;
}
}
dst = reinterpret_cast<INT_TYPE*>(reinterpret_cast<intptr_t>(dst) + dstRowBytes);
src += srcRowBytes;
}
}
static bool get_packed_glyph_image(SkStrike* cache, const SkGlyph& glyph, int width,
int height, int dstRB, GrMaskFormat expectedMaskFormat,
void* dst, const SkMasks& masks) {
SkASSERT(glyph.fWidth == width);
SkASSERT(glyph.fHeight == height);
const void* src = cache->findImage(glyph);
if (nullptr == src) {
return false;
}
// Convert if the glyph uses a 565 mask format since it is using LCD text rendering but the
// expected format is 8888 (will happen on macOS with Metal since that combination does not
// support 565).
if (kA565_GrMaskFormat == GrGlyph::FormatFromSkGlyph(glyph) &&
kARGB_GrMaskFormat == expectedMaskFormat) {
const int a565Bpp = GrMaskFormatBytesPerPixel(kA565_GrMaskFormat);
const int argbBpp = GrMaskFormatBytesPerPixel(kARGB_GrMaskFormat);
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
uint16_t color565 = 0;
memcpy(&color565, src, a565Bpp);
uint32_t colorRGBA = GrColorPackRGBA(masks.getRed(color565),
masks.getGreen(color565),
masks.getBlue(color565),
0xFF);
memcpy(dst, &colorRGBA, argbBpp);
src = (char*)src + a565Bpp;
dst = (char*)dst + argbBpp;
}
}
return true;
}
// crbug:510931
// Retrieving the image from the cache can actually change the mask format. This case is very
// uncommon so for now we just draw a clear box for these glyphs.
if (GrGlyph::FormatFromSkGlyph(glyph) != expectedMaskFormat) {
const int bpp = GrMaskFormatBytesPerPixel(expectedMaskFormat);
for (int y = 0; y < height; y++) {
sk_bzero(dst, width * bpp);
dst = (char*)dst + dstRB;
}
return true;
}
int srcRB = glyph.rowBytes();
// The windows font host sometimes has BW glyphs in a non-BW strike. So it is important here to
// check the glyph's format, not the strike's format, and to be able to convert to any of the
// GrMaskFormats.
if (SkMask::kBW_Format == glyph.fMaskFormat) {
// expand bits to our mask type
const uint8_t* bits = reinterpret_cast<const uint8_t*>(src);
switch (expectedMaskFormat) {
case kA8_GrMaskFormat:{
uint8_t* bytes = reinterpret_cast<uint8_t*>(dst);
expand_bits(bytes, bits, width, height, dstRB, srcRB);
break;
}
case kA565_GrMaskFormat: {
uint16_t* rgb565 = reinterpret_cast<uint16_t*>(dst);
expand_bits(rgb565, bits, width, height, dstRB, srcRB);
break;
}
default:
SK_ABORT("Invalid GrMaskFormat");
}
} else if (srcRB == dstRB) {
memcpy(dst, src, dstRB * height);
} else {
const int bbp = GrMaskFormatBytesPerPixel(expectedMaskFormat);
for (int y = 0; y < height; y++) {
memcpy(dst, src, width * bbp);
src = (const char*)src + srcRB;
dst = (char*)dst + dstRB;
}
}
return true;
}
///////////////////////////////////////////////////////////////////////////////
/*
The text strike is specific to a given font/style/matrix setup, which is
represented by the GrHostFontScaler object we are given in getGlyph().
We map a 32bit glyphID to a GrGlyph record, which in turn points to a
atlas and a position within that texture.
*/
GrTextStrike::GrTextStrike(const SkDescriptor& key)
: fFontScalerKey(key) {}
GrGlyph* GrTextStrike::generateGlyph(const SkGlyph& skGlyph) {
GrGlyph* grGlyph = fAlloc.make<GrGlyph>(skGlyph);
fCache.add(grGlyph);
return grGlyph;
}
void GrTextStrike::removeID(GrDrawOpAtlas::AtlasID id) {
SkTDynamicHash<GrGlyph, SkPackedGlyphID>::Iter iter(&fCache);
while (!iter.done()) {
if (id == (*iter).fID) {
(*iter).fID = GrDrawOpAtlas::kInvalidAtlasID;
fAtlasedGlyphs--;
SkASSERT(fAtlasedGlyphs >= 0);
}
++iter;
}
}
GrDrawOpAtlas::ErrorCode GrTextStrike::addGlyphToAtlas(
GrResourceProvider* resourceProvider,
GrDeferredUploadTarget* target,
GrStrikeCache* glyphCache,
GrAtlasManager* fullAtlasManager,
GrGlyph* glyph,
SkStrike* cache,
GrMaskFormat expectedMaskFormat,
bool isScaledGlyph) {
SkASSERT(glyph);
SkASSERT(cache);
SkASSERT(fCache.find(glyph->fPackedID));
expectedMaskFormat = fullAtlasManager->resolveMaskFormat(expectedMaskFormat);
int bytesPerPixel = GrMaskFormatBytesPerPixel(expectedMaskFormat);
int width = glyph->width();
int height = glyph->height();
int rowBytes = width * bytesPerPixel;
size_t size = glyph->fBounds.area() * bytesPerPixel;
bool isSDFGlyph = GrGlyph::kDistance_MaskStyle == glyph->maskStyle();
bool addPad = isScaledGlyph && !isSDFGlyph;
if (addPad) {
width += 2;
rowBytes += 2*bytesPerPixel;
size += 2 * rowBytes;
height += 2;
size += 2 * (height + 2) * bytesPerPixel;
}
SkAutoSMalloc<1024> storage(size);
const SkGlyph& skGlyph = GrToSkGlyph(cache, glyph->fPackedID);
void* dataPtr = storage.get();
if (addPad) {
sk_bzero(dataPtr, size);
dataPtr = (char*)(dataPtr) + rowBytes + bytesPerPixel;
}
if (!get_packed_glyph_image(cache, skGlyph, glyph->width(), glyph->height(),
rowBytes, expectedMaskFormat,
dataPtr, glyphCache->getMasks())) {
return GrDrawOpAtlas::ErrorCode::kError;
}
GrDrawOpAtlas::ErrorCode result = fullAtlasManager->addToAtlas(
resourceProvider, glyphCache, this,
&glyph->fID, target, expectedMaskFormat,
width, height,
storage.get(), &glyph->fAtlasLocation);
if (GrDrawOpAtlas::ErrorCode::kSucceeded == result) {
if (addPad) {
glyph->fAtlasLocation.fX += 1;
glyph->fAtlasLocation.fY += 1;
}
SkASSERT(GrDrawOpAtlas::kInvalidAtlasID != glyph->fID);
fAtlasedGlyphs++;
}
return result;
}
| 37.262948 | 99 | 0.56121 | pospx |
293de6c3fa6a3f57ec92982af4ab7d7fee6f9e68 | 31,198 | cpp | C++ | thrift/lib/cpp2/test/ThriftServerTest.cpp | jesboat/fbthrift | 7d8e1dcec59024e526e6768d3d4a66f6c4abe5ac | [
"Apache-2.0"
] | null | null | null | thrift/lib/cpp2/test/ThriftServerTest.cpp | jesboat/fbthrift | 7d8e1dcec59024e526e6768d3d4a66f6c4abe5ac | [
"Apache-2.0"
] | null | null | null | thrift/lib/cpp2/test/ThriftServerTest.cpp | jesboat/fbthrift | 7d8e1dcec59024e526e6768d3d4a66f6c4abe5ac | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2014 Facebook, Inc.
*
* 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 <gtest/gtest.h>
#include <thrift/lib/cpp2/test/gen-cpp/TestService.h>
#include <thrift/lib/cpp2/test/gen-cpp2/TestService.h>
#include <thrift/lib/cpp2/server/ThriftServer.h>
#include <thrift/lib/cpp2/async/HeaderClientChannel.h>
#include <thrift/lib/cpp2/async/RequestChannel.h>
#include <thrift/lib/cpp/util/ScopedServerThread.h>
#include <thrift/lib/cpp/async/TEventBase.h>
#include <thrift/lib/cpp/async/TAsyncSocket.h>
#include <thrift/lib/cpp/async/TAsyncServerSocket.h>
#include <thrift/lib/cpp2/async/StubSaslClient.h>
#include <thrift/lib/cpp2/async/StubSaslServer.h>
#include <boost/cast.hpp>
#include <boost/lexical_cast.hpp>
using namespace apache::thrift;
using namespace apache::thrift::test::cpp2;
using namespace apache::thrift::util;
using namespace apache::thrift::async;
using namespace apache::thrift::transport;
using apache::thrift::protocol::TBinaryProtocolT;
using apache::thrift::test::TestServiceClient;
class TestInterface : public TestServiceSvIf {
void sendResponse(std::string& _return, int64_t size) {
if (size >= 0) {
usleep(size);
}
EXPECT_NE("", getConnectionContext()->getPeerAddress()->describe());
_return = "test" + boost::lexical_cast<std::string>(size);
}
void noResponse(int64_t size) {
usleep(size);
}
void echoRequest(std::string& _return, std::unique_ptr<std::string> req) {
_return = *req + "ccccccccccccccccccccccccccccccccccccccccccccc";
}
typedef apache::thrift::HandlerCallback<std::unique_ptr<std::string>>
StringCob;
void async_tm_serializationTest(std::unique_ptr<StringCob> callback,
bool inEventBase) {
std::unique_ptr<std::string> sp(new std::string("hello world"));
auto st = inEventBase ? SerializationThread::EVENT_BASE :
SerializationThread::CURRENT;
callback->result(std::move(sp));
}
void async_eb_eventBaseAsync(std::unique_ptr<StringCob> callback) {
std::unique_ptr<std::string> hello(new std::string("hello world"));
callback->result(std::move(hello));
}
void async_tm_notCalledBack(std::unique_ptr<
apache::thrift::HandlerCallback<void>> cb) {
}
};
std::shared_ptr<ThriftServer> getServer() {
std::shared_ptr<ThriftServer> server(new ThriftServer);
std::shared_ptr<apache::thrift::concurrency::ThreadFactory> threadFactory(
new apache::thrift::concurrency::PosixThreadFactory);
std::shared_ptr<apache::thrift::concurrency::ThreadManager>
threadManager(
apache::thrift::concurrency::ThreadManager::newSimpleThreadManager(1,
5,
false,
2));
threadManager->threadFactory(threadFactory);
threadManager->start();
server->setThreadManager(threadManager);
server->setPort(0);
server->setSaslEnabled(true);
server->setSaslServerFactory(
[] (apache::thrift::async::TEventBase* evb) {
return std::unique_ptr<SaslServer>(new StubSaslServer(evb));
}
);
server->setInterface(std::unique_ptr<TestInterface>(new TestInterface));
return server;
}
std::shared_ptr<TestServiceClient> getThrift1Client(uint16_t port) {
// Create Thrift1 clients
folly::SocketAddress address("127.0.0.1", port);
std::shared_ptr<TSocket> socket = std::make_shared<TSocket>(address);
socket->open();
std::shared_ptr<TFramedTransport> transport =
std::make_shared<TFramedTransport>(socket);
std::shared_ptr<TBinaryProtocolT<TBufferBase>> protocol =
std::make_shared<TBinaryProtocolT<TBufferBase>>(transport);
return std::make_shared<TestServiceClient>(protocol);
}
void AsyncCpp2Test(bool enable_security) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
auto client_channel = HeaderClientChannel::newChannel(socket);
if (enable_security) {
client_channel->getHeader()->setSecurityPolicy(THRIFT_SECURITY_PERMITTED);
client_channel->setSaslClient(std::unique_ptr<SaslClient>(
new StubSaslClient(socket->getEventBase())
));
}
TestServiceAsyncClient client(std::move(client_channel));
boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->setTimeout(10000);
client.sendResponse([](ClientReceiveState&& state) {
std::string response;
try {
TestServiceAsyncClient::recv_sendResponse(
response, state);
} catch(const std::exception& ex) {
}
EXPECT_EQ(response, "test64");
},
64);
base.loop();
}
TEST(ThriftServer, InsecureAsyncCpp2Test) {
AsyncCpp2Test(false);
}
TEST(ThriftServer, SecureAsyncCpp2Test) {
AsyncCpp2Test(true);
}
TEST(ThriftServer, SyncClientTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->setTimeout(10000);
std::string response;
client.sync_sendResponse(response, 64);
EXPECT_EQ(response, "test64");
RpcOptions options;
options.setTimeout(std::chrono::milliseconds(1));
try {
// should timeout
client.sync_sendResponse(options, response, 10000);
} catch (const TTransportException& e) {
EXPECT_EQ(int(TTransportException::TIMED_OUT), int(e.getType()));
return;
}
ADD_FAILURE();
}
TEST(ThriftServer, GetLoadTest) {
auto serv = getServer();
ScopedServerThread sst(serv);
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
auto header_channel = boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel());
header_channel->getHeader()->setHeader("load", "thrift.active_requests");
std::string response;
client.sync_sendResponse(response, 64);
EXPECT_EQ(response, "test64");
auto headers = header_channel->getHeader()->getHeaders();
auto load = headers.find("load");
EXPECT_NE(load, headers.end());
EXPECT_EQ(load->second, "0");
serv->setGetLoad([&](std::string counter){
EXPECT_EQ(counter, "thrift.active_requests");
return 1;
});
header_channel->getHeader()->setHeader("load", "thrift.active_requests");
client.sync_sendResponse(response, 64);
EXPECT_EQ(response, "test64");
headers = header_channel->getHeader()->getHeaders();
load = headers.find("load");
EXPECT_NE(load, headers.end());
EXPECT_EQ(load->second, "1");
}
TEST(ThriftServer, SerializationInEventBaseTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
auto channel =
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket));
channel->setTimeout(10000);
TestServiceAsyncClient client(std::move(channel));
std::string response;
client.sync_serializationTest(response, true);
EXPECT_EQ("hello world", response);
}
TEST(ThriftServer, HandlerInEventBaseTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
auto channel =
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket));
channel->setTimeout(10000);
TestServiceAsyncClient client(std::move(channel));
std::string response;
client.sync_eventBaseAsync(response);
EXPECT_EQ("hello world", response);
}
TEST(ThriftServer, LargeSendTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
std::string response;
std::string request;
boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->setTimeout(5000);
request.reserve(0x3fffffff);
for (uint32_t i = 0; i < 0x3fffffd0 / 30; i++) {
request += "cccccccccccccccccccccccccccccc";
}
try {
// should timeout
client.sync_echoRequest(response, request);
} catch (const TTransportException& e) {
EXPECT_EQ(int(TTransportException::TIMED_OUT), int(e.getType()));
sleep(1); // Wait for server to timeout also - otherwise other tests fail
return;
}
ADD_FAILURE();
}
TEST(ThriftServer, OverloadTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
std::string response;
boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->setTimeout(500);
auto tval = 10000;
int too_full = 0;
int exception_headers = 0;
auto lambda = [&](ClientReceiveState&& state) {
std::string response;
auto header = boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->getHeader();
auto headers = header->getHeaders();
if (headers.size() > 0) {
EXPECT_EQ(headers["ex"], kQueueOverloadedErrorCode);
exception_headers++;
}
auto ew = TestServiceAsyncClient::recv_wrapped_sendResponse(response,
state);
if (ew) {
usleep(tval); // Wait for large task to finish
too_full++;
}
};
// Fill up the server's request buffer
client.sendResponse(lambda, tval);
client.sendResponse(lambda, 0);
client.sendResponse(lambda, 0);
client.sendResponse(lambda, 0);
base.loop();
// We expect one 'too full' exception (queue size is 2, one being worked on)
// And three timeouts
EXPECT_EQ(too_full, 1);
EXPECT_EQ(exception_headers, 1);
}
TEST(ThriftServer, OnewaySyncClientTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
client.sync_noResponse(0);
}
TEST(ThriftServer, OnewayClientConnectionCloseTest) {
static std::atomic<bool> done(false);
class OnewayTestInterface: public TestServiceSvIf {
void noResponse(int64_t size) {
usleep(size);
done = true;
}
};
std::shared_ptr<ThriftServer> cpp2Server = getServer();
cpp2Server->setInterface(std::unique_ptr<OnewayTestInterface>(
new OnewayTestInterface));
apache::thrift::util::ScopedServerThread st(cpp2Server);
{
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1",
st.getAddress()->getPort()));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
client.sync_noResponse(10000);
} // client out of scope
usleep(50000);
EXPECT_TRUE(done);
}
TEST(ThriftServer, CompactClientTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
// Set the client to compact
boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->getHeader()->setProtocolId(
::apache::thrift::protocol::T_COMPACT_PROTOCOL);
std::string response;
client.sync_sendResponse(response, 64);
EXPECT_EQ(response, "test64");
}
TEST(ThriftServer, CompressionClientTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
// Set the client to compact
auto header = boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->getHeader();
header->setTransform(
apache::thrift::transport::THeader::ZLIB_TRANSFORM);
header->setMinCompressBytes(1);
std::string response;
client.sync_sendResponse(response, 64);
EXPECT_EQ(response, "test64");
auto trans = boost::polymorphic_downcast<HeaderClientChannel*>(
client.getChannel())->getHeader()->getTransforms();
EXPECT_EQ(trans.size(), 1);
for (auto& tran : trans) {
EXPECT_EQ(tran, apache::thrift::transport::THeader::ZLIB_TRANSFORM);
}
}
TEST(ThriftServer, ClientTimeoutTest) {
auto server = getServer();
ScopedServerThread sst(server);
auto port = sst.getAddress()->getPort();
TEventBase base;
auto getClient = [&base, port] () {
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
return std::make_shared<TestServiceAsyncClient>(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
};
int cbCtor = 0;
int cbCall = 0;
auto callback = [&cbCall, &cbCtor] (
std::shared_ptr<TestServiceAsyncClient> client,
bool& timeout) {
cbCtor++;
return std::unique_ptr<RequestCallback>(
new FunctionReplyCallback(
[&cbCall, client, &timeout] (ClientReceiveState&& state) {
cbCall++;
if (state.exception()) {
timeout = true;
try {
std::rethrow_exception(state.exception());
} catch (const TTransportException& e) {
EXPECT_EQ(int(TTransportException::TIMED_OUT),
int(e.getType()));
}
return;
}
try {
std::string resp;
client->recv_sendResponse(resp, state);
} catch (const TApplicationException& e) {
timeout = true;
EXPECT_EQ(int(TApplicationException::TIMEOUT),
int(e.getType()));
return;
}
timeout = false;
}));
};
// Set the timeout to be 9 milliseconds, but the call will take 10 ms.
// The server should send a timeout after 9 milliseconds
RpcOptions options;
options.setTimeout(std::chrono::milliseconds(9));
auto client1 = getClient();
bool timeout1;
client1->sendResponse(options, callback(client1, timeout1), 10000);
base.loop();
EXPECT_TRUE(timeout1);
usleep(10000);
// This time we set the timeout to be 11 millseconds. The server
// should not time out
options.setTimeout(std::chrono::milliseconds(11));
client1->sendResponse(options, callback(client1, timeout1), 10000);
base.loop();
EXPECT_FALSE(timeout1);
usleep(10000);
// This time we set server timeout to be 1 millsecond. However, the
// task should start processing within that millisecond, so we should
// not see an exception because the client timeout should be used after
// processing is started
server->setTaskExpireTime(std::chrono::milliseconds(1));
client1->sendResponse(options, callback(client1, timeout1), 10000);
base.loop();
usleep(10000);
// The server timeout stays at 1 ms, but we put the client timeout at
// 9 ms. We should timeout even though the server starts processing within
// 1ms.
options.setTimeout(std::chrono::milliseconds(9));
client1->sendResponse(options, callback(client1, timeout1), 10000);
base.loop();
EXPECT_TRUE(timeout1);
usleep(50000);
// And finally, with the server timeout at 50 ms, we send 2 requests at
// once. Because the first request will take more than 50 ms to finish
// processing (the server only has 1 worker thread), the second request
// won't start processing until after 50ms, and will timeout, despite the
// very high client timeout.
// We don't know which one will timeout (race conditions) so we just check
// the xor
auto client2 = getClient();
bool timeout2;
server->setTaskExpireTime(std::chrono::milliseconds(50));
options.setTimeout(std::chrono::milliseconds(110));
client1->sendResponse(options, callback(client1, timeout1), 100000);
client2->sendResponse(options, callback(client2, timeout2), 100000);
base.loop();
EXPECT_TRUE(timeout1 || timeout2);
EXPECT_FALSE(timeout1 && timeout2);
EXPECT_EQ(cbCall, cbCtor);
}
TEST(ThriftServer, ConnectionIdleTimeoutTest) {
std::shared_ptr<ThriftServer> server = getServer();
server->setIdleTimeout(std::chrono::milliseconds(20));
apache::thrift::util::ScopedServerThread st(server);
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", st.getAddress()->getPort()));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
std::string response;
client.sync_sendResponse(response, 200);
EXPECT_EQ(response, "test200");
base.loop();
}
TEST(ThriftServer, Thrift1OnewayRequestTest) {
std::shared_ptr<ThriftServer> cpp2Server = getServer();
cpp2Server->setNWorkerThreads(1);
cpp2Server->setIsOverloaded([]() {
return true;
});
apache::thrift::util::ScopedServerThread st(cpp2Server);
std::shared_ptr<TestServiceClient> client = getThrift1Client(
st.getAddress()->getPort());
std::string response;
// Send a oneway request. Server doesn't send error back
client->noResponse(1);
// Send a twoway request. Server sends overloading error back
try {
client->sendResponse(response, 0);
} catch (apache::thrift::TApplicationException& ex) {
EXPECT_STREQ(ex.what(), "loadshedding request");
} catch (...) {
ADD_FAILURE();
}
cpp2Server->setIsOverloaded([]() {
return false;
});
// Send another twoway request. Client should receive a response
// with correct seqId
client->sendResponse(response, 0);
}
class Callback : public RequestCallback {
void requestSent() {
ADD_FAILURE();
}
void replyReceived(ClientReceiveState&& state) {
ADD_FAILURE();
}
void requestError(ClientReceiveState&& state) {
try {
std::rethrow_exception(state.exception());
} catch(const apache::thrift::transport::TTransportException& ex) {
// Verify we got a write and not a read error
// Comparing substring because the rest contains ips and ports
std::string expected = "write() called with socket in invalid state";
std::string actual = std::string(ex.what()).substr(0, expected.size());
EXPECT_EQ(expected, actual);
} catch (...) {
ADD_FAILURE();
}
}
};
TEST(ThriftServer, BadSendTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
client.sendResponse(
std::unique_ptr<RequestCallback>(new Callback), 64);
socket->shutdownWriteNow();
base.loop();
std::string response;
EXPECT_THROW(client.sync_sendResponse(response, 64), TTransportException);
}
TEST(ThriftServer, ResetStateTest) {
TEventBase base;
// Create a server socket and bind, don't listen. This gets us a
// port to test with which is guaranteed to fail.
auto ssock = std::unique_ptr<
TAsyncServerSocket,
apache::thrift::async::TDelayedDestruction::Destructor>(
new TAsyncServerSocket);
ssock->bind(0);
EXPECT_FALSE(ssock->getAddresses().empty());
auto port = ssock->getAddresses()[0].getPort();
// We do this loop a bunch of times, because the bug which caused
// the assertion failure was a lost race, which doesn't happen
// reliably.
for (int i = 0; i < 1000; ++i) {
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
// Create a client.
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
std::string response;
// This will fail, because there's no server.
EXPECT_THROW(client.sync_sendResponse(response, 64), TTransportException);
// On a failed client object, this should also throw an exception.
// In the past, this would generate an assertion failure and
// crash.
EXPECT_THROW(client.sync_sendResponse(response, 64), TTransportException);
}
}
TEST(ThriftServer, FailureInjection) {
enum ExpectedFailure {
NONE = 0,
ERROR,
TIMEOUT,
DISCONNECT,
END
};
std::atomic<ExpectedFailure> expected(NONE);
using apache::thrift::transport::TTransportException;
class Callback : public RequestCallback {
public:
explicit Callback(const std::atomic<ExpectedFailure>* expected)
: expected_(expected) { }
private:
void requestSent() {
}
void replyReceived(ClientReceiveState&& state) {
std::string response;
try {
TestServiceAsyncClient::recv_sendResponse(response, state);
EXPECT_EQ(NONE, *expected_);
} catch (const apache::thrift::TApplicationException& ex) {
EXPECT_EQ(ERROR, *expected_);
} catch (...) {
ADD_FAILURE() << "Unexpected exception thrown";
}
// Now do it again with exception_wrappers.
auto ew = TestServiceAsyncClient::recv_wrapped_sendResponse(response,
state);
if (ew) {
EXPECT_TRUE(
ew.is_compatible_with<apache::thrift::TApplicationException>());
EXPECT_EQ(ERROR, *expected_);
} else {
EXPECT_EQ(NONE, *expected_);
}
}
void requestError(ClientReceiveState&& state) {
try {
std::rethrow_exception(state.exception());
} catch (const TTransportException& ex) {
if (ex.getType() == TTransportException::TIMED_OUT) {
EXPECT_EQ(TIMEOUT, *expected_);
} else {
EXPECT_EQ(DISCONNECT, *expected_);
}
} catch (...) {
ADD_FAILURE() << "Unexpected exception thrown";
}
}
const std::atomic<ExpectedFailure>* expected_;
};
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
auto server = std::dynamic_pointer_cast<ThriftServer>(
sst.getServer().lock());
CHECK(server);
SCOPE_EXIT {
server->setFailureInjection(ThriftServer::FailureInjection());
};
RpcOptions rpcOptions;
rpcOptions.setTimeout(std::chrono::milliseconds(100));
for (int i = 0; i < END; ++i) {
auto exp = static_cast<ExpectedFailure>(i);
ThriftServer::FailureInjection fi;
switch (exp) {
case NONE:
break;
case ERROR:
fi.errorFraction = 1;
break;
case TIMEOUT:
fi.dropFraction = 1;
break;
case DISCONNECT:
fi.disconnectFraction = 1;
break;
case END:
LOG(FATAL) << "unreached";
break;
}
server->setFailureInjection(std::move(fi));
expected = exp;
auto callback = folly::make_unique<Callback>(&expected);
client.sendResponse(rpcOptions, std::move(callback), 1);
base.loop();
}
}
TEST(ThriftServer, useExistingSocketAndExit) {
auto server = getServer();
TAsyncServerSocket::UniquePtr serverSocket(new TAsyncServerSocket);
serverSocket->bind(0);
server->useExistingSocket(std::move(serverSocket));
// In the past, this would cause a SEGV
}
TEST(ThriftServer, useExistingSocketAndConnectionIdleTimeout) {
// This is ConnectionIdleTimeoutTest, but with an existing socket
auto server = getServer();
TAsyncServerSocket::UniquePtr serverSocket(new TAsyncServerSocket);
serverSocket->bind(0);
server->useExistingSocket(std::move(serverSocket));
server->setIdleTimeout(std::chrono::milliseconds(20));
apache::thrift::util::ScopedServerThread st(server);
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", st.getAddress()->getPort()));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
std::string response;
client.sync_sendResponse(response, 200);
EXPECT_EQ(response, "test200");
base.loop();
}
TEST(ThriftServer, FreeCallbackTest) {
ScopedServerThread sst(getServer());
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
RpcOptions options;
options.setTimeout(std::chrono::milliseconds(1));
try {
client.sync_notCalledBack(options);
} catch (...) {
// Expect timeout
return;
}
ADD_FAILURE();
}
class TestServerEventHandler
: public server::TServerEventHandler
, public TProcessorEventHandler
, public TProcessorEventHandlerFactory
, public std::enable_shared_from_this<TestServerEventHandler> {
public:
std::shared_ptr<TProcessorEventHandler> getEventHandler() {
return shared_from_this();
}
void check() {
EXPECT_EQ(8, count);
}
void preServe(const folly::SocketAddress* addr) {
EXPECT_EQ(0, count++);
}
void newConnection(TConnectionContext* ctx) {
EXPECT_EQ(1, count++);
}
void connectionDestroyed(TConnectionContext* ctx) {
EXPECT_EQ(7, count++);
}
void* getContext(const char* fn_name,
TConnectionContext* c) {
EXPECT_EQ(2, count++);
return nullptr;
}
void freeContext(void* ctx, const char* fn_name) {
EXPECT_EQ(6, count++);
}
void preRead(void* ctx, const char* fn_name) {
EXPECT_EQ(3, count++);
}
void onReadData(void* ctx, const char* fn_name,
const SerializedMessage& msg) {
EXPECT_EQ(4, count++);
}
void postRead(void* ctx, const char* fn_name, uint32_t bytes) {
EXPECT_EQ(5, count++);
}
private:
std::atomic<int> count{0};
};
TEST(ThriftServer, CallbackOrderingTest) {
auto server = getServer();
auto serverHandler = std::make_shared<TestServerEventHandler>();
TProcessorBase::addProcessorEventHandlerFactory(serverHandler);
server->setServerEventHandler(serverHandler);
ScopedServerThread sst(server);
auto port = sst.getAddress()->getPort();
TEventBase base;
std::shared_ptr<TAsyncSocket> socket(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
TestServiceAsyncClient client(
std::unique_ptr<HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor>(
new HeaderClientChannel(socket)));
client.noResponse([](ClientReceiveState&& state){}, 10000);
base.runAfterDelay([&](){
socket->closeNow();
}, 1);
base.runAfterDelay([&](){
base.terminateLoopSoon();
}, 20);
base.loopForever();
serverHandler->check();
TProcessorBase::removeProcessorEventHandlerFactory(serverHandler);
}
class ReadCallbackTest : public TAsyncTransport::ReadCallback {
public:
virtual void getReadBuffer(void** bufReturn, size_t* lenReturn) {
}
virtual void readDataAvailable(size_t len) noexcept {
}
virtual void readEOF() noexcept {
eof = true;
}
virtual void readError(const transport::TTransportException& ex) noexcept {
eof = true;
}
bool eof = false;
};
TEST(ThriftServer, ShutdownSocketSetTest) {
auto server = getServer();
ScopedServerThread sst(server);
auto port = sst.getAddress()->getPort();
TEventBase base;
ReadCallbackTest cb;
std::shared_ptr<TAsyncSocket> socket2(
TAsyncSocket::newSocket(&base, "127.0.0.1", port));
socket2->setReadCallback(&cb);
base.runAfterDelay([&](){
server->immediateShutdown(true);
}, 10);
base.runAfterDelay([&](){
base.terminateLoopSoon();
}, 30);
base.loopForever();
EXPECT_EQ(cb.eof, true);
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
google::InitGoogleLogging(argv[0]);
google::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
| 30.466797 | 78 | 0.676999 | jesboat |
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 |
293faec001b1bfb577a37ef226e3c4c34df8d184 | 1,270 | cc | C++ | src/lib_ext/webrtc/webrtc/base/copyonwritebuffer.cc | saurabhshri/CCAligner | 12bd2f214d5e2a6f562262f4f1e45aa1b7038b58 | [
"MIT"
] | 139 | 2017-06-10T17:23:54.000Z | 2022-03-23T21:08:17.000Z | third_party/webrtc/base/copyonwritebuffer.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 72 | 2017-09-30T17:58:56.000Z | 2021-08-16T08:13:01.000Z | third_party/webrtc/base/copyonwritebuffer.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 67 | 2017-11-28T17:59:19.000Z | 2022-02-22T04:09:38.000Z | /*
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "webrtc/base/copyonwritebuffer.h"
namespace rtc {
CopyOnWriteBuffer::CopyOnWriteBuffer() {
RTC_DCHECK(IsConsistent());
}
CopyOnWriteBuffer::CopyOnWriteBuffer(const CopyOnWriteBuffer& buf)
: buffer_(buf.buffer_) {
}
CopyOnWriteBuffer::CopyOnWriteBuffer(CopyOnWriteBuffer&& buf) {
// TODO(jbauch): use std::move once scoped_refptr supports it (issue 5556)
std::swap(buffer_, buf.buffer_);
}
CopyOnWriteBuffer::CopyOnWriteBuffer(size_t size)
: buffer_(size > 0 ? new RefCountedObject<Buffer>(size) : nullptr) {
RTC_DCHECK(IsConsistent());
}
CopyOnWriteBuffer::CopyOnWriteBuffer(size_t size, size_t capacity)
: buffer_(size > 0 || capacity > 0
? new RefCountedObject<Buffer>(size, capacity)
: nullptr) {
RTC_DCHECK(IsConsistent());
}
CopyOnWriteBuffer::~CopyOnWriteBuffer() = default;
} // namespace rtc
| 29.534884 | 76 | 0.729921 | saurabhshri |
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 |
2941ee0c98ed9c1b972611b54637c80c9ed0a647 | 36,107 | cpp | C++ | vbox/src/VBox/Runtime/common/net/netaddrstr.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/Runtime/common/net/netaddrstr.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/Runtime/common/net/netaddrstr.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | /* $Id: netaddrstr.cpp 69111 2017-10-17 14:26:02Z vboxsync $ */
/** @file
* IPRT - Network Address String Handling.
*
* @remarks Don't add new functionality to this file, it goes into netaddrstr2.cpp
* or some other suitable file (legal reasons + code not up to oracle
* quality standards and requires rewrite from scratch).
*/
/*
* Contributed by Oliver Loch.
*
* Copyright (C) 2012-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
/*********************************************************************************************************************************
* Header Files *
*********************************************************************************************************************************/
#include "internal/iprt.h"
#include <iprt/net.h>
#include <iprt/mem.h>
#include <iprt/string.h>
#include <iprt/stream.h>
#include "internal/string.h"
/** @page pg_rtnetipv6_addr IPv6 Address Format
*
* IPv6 Addresses, their representation in text and other problems.
*
* The following is based on:
*
* - http://tools.ietf.org/html/rfc4291
* - http://tools.ietf.org/html/rfc5952
* - http://tools.ietf.org/html/rfc6052
*
*
* Before you start using those functions, you should have an idea of
* what you're dealing with, before you come and blame the functions...
*
* First of all, the address itself:
*
* An address is written like this: (READ THIS FINE MANUAL!)
*
* - 2001:db8:abc:def::1
*
* The characters between two colons are called a "hextet".
* Each hextet consists of four characters and each IPv6 address
* consists of a maximum of eight hextets. So a full blown address
* would look like this:
*
* - 1111:2222:3333:4444:5555:6666:7777:8888
*
* The allowed characters are "0123456789abcdef". They have to be
* lower case. Upper case is not allowed.
*
* *** Gaps and adress shortening
*
* If an address contains hextets that contain only "0"s, they
* can be shortened, like this:
*
* - 1111:2222:0000:0000:0000:0000:7777:8888 -> 1111:2222::7777:8888
*
* The double colon represents the hextets that have been shortened "::".
* The "::" will be called "gap" from now on.
*
* When shortening an address, there are some special rules that need to be applied:
*
* - Shorten always the longest group of hextets.
*
* Let's say, you have this address: 2001:db8:0:0:0:1:0:0 then it has to be
* shortened to "2001:db8::1:0:0". Shortening to "2001:db8:0:0:0:1::" would
* return an error.
*
* - Two or more gaps the same size.
*
* Let's say you have this address: 2001:db8:0:0:1:0:0:1. As you can see, there
* are two gaps, both the size of two hextets. If you shorten the last two hextets,
* you end up in pain, as the RFC forbids this, so the correct address is:
* "2001:db8::1:0:0:1"
*
* It's important to note that an address can only be shortened ONE TIME!
* This is invalid: "2001:db8::1::1"
*
* *** The scope.
*
* Each address has a so called "scope" it is added to the end of the address,
* separated by a percent sign "%". If there is no scope at the end, it defaults
* to "0".
*
* So "2001:db8::1" is the same as "2001:db8::1%0".
*
* As in IPv6 all network interfaces can/should have the same address, the scope
* gives you the ability to choose on which interface the system should listen.
*
* AFAIK, the scope can be used with unicast as well as link local addresses, but
* it is mandatory with link local addresses (starting with fe80::).
*
* On Linux the default scope is the interface's name. On Windows it's just the index
* of the interface. Run "route print -6" in the shell, to see the interface's index
* on Winodows.
*
* All functions can deal with the scope, and DO NOT warn if you put garbage there.
*
* *** Port added to the IPv6 address
*
* There is only one way to add a port to an IPv6 address is to embed it in brackets:
*
* [2001:db8::1]:12345
*
* This gives you the address "2001:db8::1" and the port "12345".
*
* What also works, but is not recommended by rfc is to separate the port
* by a dot:
*
* 2001:db8::1.12345
*
* It even works with embedded IPv4 addresses.
*
* *** Special addresses and how they are written
*
* The following are notations to represent "special addresses".
*
* "::" IN6ADDR_ANY
* ":::123" IN6ADDR_ANY with port "123"
* "[::]:123" IN6ADDR_ANY with port "123"
* "[:::123]" -> NO. Not allowed and makes no sense
* "::1" -> address of the loopback device (127.0.0.1 in v4)
*
* On systems with dual sockets, one can use so called embedded IPv4 addresses:
*
* "::ffff:192.168.1.1" results in the IPv6 address "::ffff:c0a8:0101" as two octets
* of the IPv4 address will be converted to one hextet in the IPv6 address.
*
* The prefix of such addresses MUST BE "::ffff:", 10 bytes as zero and two bytes as 255.
*
* The so called IPv4-compatible IPv6 addresses are deprecated and no longer in use.
*
* *** Valid addresses and string
*
* If you use any of the IPv6 address functions, keep in mind, that those addresses
* are all returning "valid" even if the underlying system (e.g. VNC) doesn't like
* such strings.
*
* [2001:db8::1]
* [2001:db8::1]:12345
*
* and so on. So to make sure you only pass the underlying software a pure IPv6 address
* without any garbage, you should use the "outAddress" parameters to get a RFC compliant
* address returned.
*
* So after reading the above, you'll start using the functions and see a bool called
* "followRfc" which is true by default. This is what this bool does:
*
* The following addresses all represent the exact same address:
*
* 1 - 2001:db8::1
* 2 - 2001:db8:0::1
* 3 - 2001:0db8:0000:0000:0000:0000:0000:0001
* 4 - 2001:DB8::1
* 5 - [2001:db8::1]
* 6 - [2001:db8:0::1]
*
* According to RFC 5952, number two, three, four and six are invalid.
*
* #2 - because there is a single hextet that hasn't been shortened
*
* #3 - because there has nothing been shortened (hextets 3 to 7) and
* there are leading zeros in at least one hextet ("0db8")
*
* #4 - all characters in an IPv6 address have to be lower case
*
* #6 - same as two but included in brackets
*
* If you follow RFC, the above addresses are not converted and an
* error is returned. If you turn RFC off, you will get the expected
* representation of the address.
*
* It's a nice way to convert "weird" addresses to rfc compliant addresses
*
*/
/**
* Parses any string and tests if it is an IPv6 Address
*
* This function should NOT be used directly. If you do, note
* that no security checks are done at the moment. This can change.
*
* @returns iprt sstatus code, yeah, right... This function most certainly DOES
* NOT RETURN ANY IPRT STATUS CODES. It's also a unreadable mess.
* @param pszAddress The strin that holds the IPv6 address
* @param addressLength The length of pszAddress
* @param pszAddressOut Returns a plain, full blown IPv6 address
* as a char array
* @param addressOutSize The size of pszAddressOut (length)
* @param pPortOut 32 bit unsigned integer, holding the port
* If pszAddress doesn't contain a port, it's 0
* @param pszScopeOut Returns the scope of the address, if none it's 0
* @param scopeOutSize sizeof(pszScopeOut)
* @param pBrackets returns true if the address was enclosed in brackets
* @param pEmbeddedV4 returns true if the address is an embedded IPv4 address
* @param followRfc if set to true, the function follows RFC (default)
*/
static int rtStrParseAddrStr6(const char *pszAddress, size_t addressLength, char *pszAddressOut, size_t addressOutSize, uint32_t *pPortOut, char *pszIfIdOut, size_t ifIdOutSize, bool *pBrackets, bool *pEmbeddedV4, bool followRfc)
{
/************************\
* Pointer Hell Ahead *
\************************/
const char szIpV6AddressChars[] = "ABCDEF01234567890abcdef.:[]%"; // order IMPORTANT
const char szIpV4AddressChars[] = "01234567890.:[]"; // order IMPORTANT
const char szLinkLocalPrefix[] = "FfEe8800"; //
const char *pszIpV6AddressChars = NULL, *pszIpV4AddressChars = NULL, *pszLinkLocalPrefix = NULL;
char *pszSourceAddress = NULL, *pszSourceAddressStart = NULL;
char *pszResultAddress = NULL, *pszResultAddressStart = NULL;
char *pszResultAddress4 = NULL, *pszResultAddress4Start = NULL;
char *pszResultPort = NULL, *pszResultPortStart = NULL;
char *pszInternalAddress = NULL, *pszInternalAddressStart = NULL;
char *pszInternalPort = NULL, *pszInternalPortStart = NULL;
char *pStart = NULL, *pNow = NULL, *pNext = NULL, *pNowChar = NULL, *pIfId = NULL, *pIfIdEnd = NULL;
char *pNowDigit = NULL, *pFrom = NULL, *pTo = NULL, *pLast = NULL;
char *pGap = NULL, *pMisc = NULL, *pDotStart = NULL, *pFieldStart = NULL, *pFieldEnd = NULL;
char *pFieldStartLongest = NULL, *pBracketOpen = NULL, *pBracketClose = NULL;
char *pszRc = NULL;
bool isLinkLocal = false;
char szDummy[4];
uint8_t *pByte = NULL;
uint32_t byteOut = 0;
uint16_t returnValue = 0;
uint32_t colons = 0;
uint32_t colonsOverAll = 0;
uint32_t fieldLength = 0;
uint32_t dots = 0;
size_t gapSize = 0;
uint32_t intPortOut = 0;
pszIpV4AddressChars = &szIpV4AddressChars[0];
pszIpV6AddressChars = &szIpV6AddressChars[6];
pszLinkLocalPrefix = &szLinkLocalPrefix[6];
if (!followRfc)
pszIpV6AddressChars = &szIpV6AddressChars[0];
if (addressLength<2)
returnValue = 711;
pszResultAddressStart = (char *)RTMemTmpAlloc(34);
pszInternalAddressStart = (char *)RTMemTmpAlloc(34);
pszInternalPortStart = (char * )RTMemTmpAlloc(10);
if (! (pszResultAddressStart && pszInternalAddressStart && pszInternalPortStart))
{
if (pszResultAddressStart)
RTMemTmpFree(pszResultAddressStart);
if (pszInternalAddressStart)
RTMemTmpFree(pszInternalAddressStart);
if (pszInternalPortStart)
RTMemTmpFree(pszInternalPortStart);
return -701;
}
memset(szDummy, '\0', 4);
pszResultAddress = pszResultAddressStart;
memset(pszResultAddressStart, '\0', 34);
pszInternalAddress = pszInternalAddressStart;
memset(pszInternalAddressStart, '\0' , 34);
pszInternalPort = pszInternalPortStart;
memset(pszInternalPortStart, '\0', 10);
pszSourceAddress = pszSourceAddressStart = (char *)pszAddress;
pFrom = pTo = pStart = pLast = pszSourceAddressStart;
while (*pszSourceAddress != '\0' && !returnValue)
{
pNow = NULL;
pNext = NULL;
pNowChar = NULL;
pNowDigit = NULL;
pNow = pszSourceAddress;
pNext = pszSourceAddress + 1;
if (!pFrom)
pFrom = pTo = pNow;
pNowChar = (char *)memchr(pszIpV6AddressChars, *pNow, strlen(pszIpV6AddressChars));
pNowDigit = (char *)memchr(pszIpV6AddressChars, *pNow, strlen(pszIpV6AddressChars) - 5);
if (pszResultPort)
{
if (pLast && (pszResultPort == pszSourceAddressStart))
{
if (*pLast == '\0')
returnValue = 721;
pszResultPortStart = (char *)RTMemTmpAlloc(10);
if (!pszResultPortStart)
returnValue = 702;
memset(pszResultPortStart, '\0', 10);
pszResultPort = pszResultPortStart;
pszSourceAddress = pLast;
pMisc = pLast;
pLast = NULL;
continue;
}
pNowDigit = NULL;
pNowDigit = (char *)memchr(pszIpV4AddressChars, *pNow, strlen(pszIpV4AddressChars) - 4);
if (strlen(pszResultPortStart) == 5)
returnValue = 11;
if (*pNow == '0' && pszResultPort == pszResultPortStart && *pNext != '\0' && (pNow - pMisc) < 5 )
{
pszSourceAddress++;
continue;
}
if (pNowDigit)
{
*pszResultPort = *pNowDigit;
pszResultPort++;
pszSourceAddress++;
continue;
}
else
returnValue = 12;
}
if (pszResultAddress4)
{
if (pszResultAddress4 == pszSourceAddressStart && pLast)
{
dots = 0;
pszResultAddress4 = NULL;
pszResultAddress4Start = NULL;
pszResultAddress4Start = (char *)RTMemTmpAlloc(20);
if (!pszResultAddress4Start)
{
returnValue = 401;
break;
}
memset(pszResultAddress4Start, '\0', 20);
pszResultAddress4 = pszResultAddress4Start;
pszSourceAddress = pLast;
pFrom = pLast;
pTo = pLast;
pLast = NULL;
continue;
}
pTo = pNow;
pNowDigit = NULL;
pNowDigit = (char *)memchr(pszIpV4AddressChars, *pNow, strlen(pszIpV4AddressChars) - 4);
if (!pNowDigit && *pNow != '.' && *pNow != ']' && *pNow != ':' && *pNow != '%')
returnValue = 412;
if ((pNow - pFrom) > 3)
{
returnValue = 402;
break;
}
if (pNowDigit && *pNext != '\0')
{
pszSourceAddress++;
continue;
}
if (!pNowDigit && !pBracketOpen && (*pNext == '.' || *pNext == ']' || *pNext == ':'))
returnValue = 411;
memset(pszResultAddress4, '0', 3);
pMisc = pszResultAddress4 + 2;
pszResultAddress4 = pszResultAddress4 + 3;
if (*pNow != '.' && !pNowDigit && strlen(pszResultAddress4Start) < 9)
returnValue = 403;
if ((pTo - pFrom) > 0)
pTo--;
dots++;
while (pTo >= pFrom)
{
*pMisc = *pTo;
pMisc--;
pTo--;
}
if (dots == 4 && *pNow == '.')
{
if (!pBracketOpen)
{
pszResultPort = pszSourceAddressStart;
pLast = pNext;
}
else
{
returnValue = 409;
}
}
dots = 0;
pFrom = pNext;
pTo = pNext;
if (strlen(pszResultAddress4Start) > 11)
pszResultAddress4 = NULL;
if ((*pNow == ':' || *pNow == '.') && strlen(pszResultAddress4Start) == 12)
{
pLast = pNext;
pszResultPort = pszSourceAddressStart;
}
if (*pNow == '%')
{
pIfId = pNow;
pLast = pNow;
continue;
}
pszSourceAddress = pNext;
if (*pNow != ']')
continue;
pFrom = pNow;
pTo = pNow;
}
if (pIfId && (!pIfIdEnd))
{
if (*pIfId == '%' && pIfId == pLast && *pNext != '\0')
{
pFrom = pNext;
pIfId = pNext;
pLast = NULL;
pszSourceAddress++;
continue;
}
if (*pNow == '%' && pIfId <= pNow)
{
returnValue = 442;
break;
}
if (*pNow != ']' && *pNext != '\0')
{
pTo = pNow;
pszSourceAddress++;
continue;
}
if (*pNow == ']')
{
pIfIdEnd = pNow - 1;
pFrom = pNow;
pTo = pNow;
continue;
}
else
{
pIfIdEnd = pNow;
pFrom = NULL;
pTo = NULL;
pszSourceAddress++;
continue;
}
}
if (!pNowChar)
{
returnValue = 254;
if (followRfc)
{
pMisc = (char *)memchr(&szIpV6AddressChars[0], *pNow, strlen(&szIpV6AddressChars[0]));
if (pMisc)
returnValue = 253;
}
}
if (strlen(pszResultAddressStart) > 32 && !pszResultAddress4Start)
returnValue = 255;
if (pNowDigit && *pNext != '\0' && colons == 0)
{
pTo = pNow;
pszSourceAddress++;
continue;
}
if (*pNow == ':' && *pNext != '\0')
{
colonsOverAll++;
colons++;
pszSourceAddress++;
continue;
}
if (*pNow == ':' )
{
colons++;
colonsOverAll++;
}
if (*pNow == '.')
{
pMisc = pNow;
while (*pMisc != '\0' && *pMisc != ']')
{
if (*pMisc == '.')
dots++;
pMisc++;
}
}
if (*pNow == ']')
{
if (pBracketClose)
returnValue = 77;
if (!pBracketOpen)
returnValue = 22;
if (*pNext == ':' || *pNext == '.')
{
pszResultPort = pszSourceAddressStart;
pLast = pNext + 1;
}
if (pFrom == pNow)
pFrom = NULL;
pBracketClose = pNow;
}
if (*pNow == '[')
{
if (pBracketOpen)
returnValue = 23;
if (pStart != pNow)
returnValue = 24;
pBracketOpen = pNow;
pStart++;
pFrom++;
pszSourceAddress++;
continue;
}
if (*pNow == '%')
{
if (pIfId)
returnValue = 441;
pLast = pNext;
pIfId = pNext;
}
if (colons > 0)
{
if (colons == 1)
{
if (pStart + 1 == pNow )
returnValue = 31;
if (*pNext == '\0' && !pNowDigit)
returnValue = 32;
pLast = pNow;
}
if (colons == 2)
{
if (pGap)
returnValue = 33;
pGap = pszResultAddress + 4;
if (pStart + 1 == pNow || pStart + 2 == pNow)
{
pGap = pszResultAddressStart;
pFrom = pNow;
}
if (*pNext == '\0' && !pNowDigit)
pszSourceAddress++;
if (*pNext != ':' && *pNext != '.')
pLast = pNow;
}
if (colons == 3)
{
pFrom = pLast;
pLast = pNow;
if (*pNext == '\0' && !pNowDigit)
returnValue = 34;
if (pBracketOpen)
returnValue = 35;
if (pGap && followRfc)
returnValue = 36;
if (!pGap)
pGap = pszResultAddress + 4;
if (pStart + 3 == pNow)
{
pszResultPort = pszSourceAddressStart;
pGap = pszResultAddress;
pFrom = NULL;
}
if (pNowDigit)
{
pszResultPort = pszSourceAddressStart;
}
}
}
if (*pNext == '\0' && colons == 0 && !pIfIdEnd)
{
pFrom = pLast;
if (pNowDigit)
pTo = pNow;
pLast = NULL;
}
if (dots > 0)
{
if (dots == 1)
{
pszResultPort = pszSourceAddressStart;
pLast = pNext;
}
if (dots == 4 && pBracketOpen)
returnValue = 601;
if (dots == 3 || dots == 4)
{
pszResultAddress4 = pszSourceAddressStart;
pLast = pFrom;
pFrom = NULL;
}
if (dots > 4)
returnValue = 603;
dots = 0;
}
if (pFrom && pTo)
{
if (pTo - pFrom > 3)
{
returnValue = 51;
break;
}
if (followRfc)
{
if ((pTo - pFrom > 0) && *pFrom == '0')
returnValue = 101;
if ((pTo - pFrom) == 0 && *pFrom == '0' && colons == 2)
returnValue = 102;
if ((pTo - pFrom) == 0 && *pFrom == '0' && pszResultAddress == pGap)
returnValue = 103;
if ((pTo - pFrom) == 0 && *pFrom == '0')
{
if (!pFieldStart)
{
pFieldStart = pszResultAddress;
pFieldEnd = pszResultAddress + 4;
}
else
{
pFieldEnd = pFieldEnd + 4;
}
}
else
{
if ((size_t)(pFieldEnd - pFieldStart) > fieldLength)
{
fieldLength = pFieldEnd - pFieldStart;
pFieldStartLongest = pFieldStart;
}
pFieldStart = NULL;
pFieldEnd = NULL;
}
}
if (!(pGap == pszResultAddressStart && (size_t)(pNow - pStart) == colons))
{
memset(pszResultAddress, '0', 4);
pMisc = pszResultAddress + 3;
pszResultAddress = pszResultAddress + 4;
if (pFrom == pStart && (pTo - pFrom) == 3)
{
isLinkLocal = true;
while (pTo >= pFrom)
{
*pMisc = *pTo;
if (*pTo != *pszLinkLocalPrefix && *pTo != *(pszLinkLocalPrefix + 1))
isLinkLocal = false;
pTo--;
pMisc--;
pszLinkLocalPrefix = pszLinkLocalPrefix - 2;
}
}
else
{
while (pTo >= pFrom)
{
*pMisc = *pTo;
pMisc--;
pTo--;
}
}
}
pFrom = pNow;
pTo = pNow;
}
if (*pNext == '\0' && colons == 0)
pszSourceAddress++;
if (*pNext == '\0' && !pBracketClose && !pszResultPort)
pTo = pNext;
colons = 0;
} // end of loop
if (!returnValue && colonsOverAll < 2)
returnValue = 252;
if (!returnValue && (pBracketOpen && !pBracketClose))
returnValue = 25;
if (!returnValue && pGap)
{
gapSize = 32 - strlen(pszResultAddressStart);
if (followRfc)
{
if (gapSize < 5)
returnValue = 104;
if (fieldLength > gapSize)
returnValue = 105;
if (fieldLength == gapSize && pFieldStartLongest < pGap)
returnValue = 106;
}
pszResultAddress = pszResultAddressStart;
pszInternalAddress = pszInternalAddressStart;
if (!returnValue && pszResultAddress4Start)
{
if (strlen(pszResultAddressStart) > 4)
returnValue = 405;
pszResultAddress = pszResultAddressStart;
if (pGap != pszResultAddressStart)
returnValue = 407;
memset(pszInternalAddressStart, '0', 20);
pszInternalAddress = pszInternalAddressStart + 20;
for (int i = 0; i < 4; i++)
{
if (*pszResultAddress != 'f' && *pszResultAddress != 'F')
{
returnValue = 406;
break;
}
*pszInternalAddress = *pszResultAddress;
pszResultAddress++;
pszInternalAddress++;
}
pszResultAddress4 = pszResultAddress4Start;
for (int i = 0; i<4; i++)
{
memcpy(szDummy, pszResultAddress4, 3);
int rc = RTStrToUInt32Ex((const char *)&szDummy[0], NULL, 16, &byteOut);
if (rc == 0 && byteOut < 256)
{
RTStrPrintf(szDummy, 3, "%02x", byteOut);
memcpy(pszInternalAddress, szDummy, 2);
pszInternalAddress = pszInternalAddress + 2;
pszResultAddress4 = pszResultAddress4 + 3;
memset(szDummy, '\0', 4);
}
else
{
returnValue = 499;
}
}
}
else
{
while (!returnValue && pszResultAddress != pGap)
{
*pszInternalAddress = *pszResultAddress;
pszResultAddress++;
pszInternalAddress++;
}
memset(pszInternalAddress, '0', gapSize);
pszInternalAddress = pszInternalAddress + gapSize;
while (!returnValue && *pszResultAddress != '\0')
{
*pszInternalAddress = *pszResultAddress;
pszResultAddress++;
pszInternalAddress++;
}
}
}
else
{
if (!returnValue)
{
if (strlen(pszResultAddressStart) != 32)
returnValue = 111;
if (followRfc)
{
if (fieldLength > 4)
returnValue = 112;
}
memcpy(pszInternalAddressStart, pszResultAddressStart, strlen(pszResultAddressStart));
}
}
if (pszResultPortStart)
{
if (strlen(pszResultPortStart) > 0 && strlen(pszResultPortStart) < 6)
{
memcpy(pszInternalPortStart, pszResultPortStart, strlen(pszResultPortStart));
intPortOut = 0;
int rc = RTStrToUInt32Ex(pszInternalPortStart, NULL, 10, &intPortOut);
if (rc == 0)
{
if (!(intPortOut > 0 && intPortOut < 65536))
intPortOut = 0;
}
else
{
returnValue = 888;
}
}
else
{
returnValue = 889;
}
}
/*
full blown address 32 bytes, no colons -> pszInternalAddressStart
port as string -> pszResultPortStart
port as binary integer -> intPortOut
interface id in pIfId and pIfIdEnd
Now fill the out parameters.
*/
if (!returnValue && pszAddressOut)
{
if (strlen(pszInternalAddressStart) < addressOutSize)
{
pszRc = NULL;
pszRc = (char *)memset(pszAddressOut, '\0', addressOutSize);
if (!pszRc)
returnValue = 910;
pszRc = NULL;
pszRc = (char *)memcpy(pszAddressOut, pszInternalAddressStart, strlen(pszInternalAddressStart));
if (!pszRc)
returnValue = 911;
}
else
{
returnValue = 912;
}
}
if (!returnValue && pPortOut)
{
*pPortOut = intPortOut;
}
if (!returnValue && pszIfIdOut)
{
if (pIfIdEnd && pIfId)
{
if ((size_t)(pIfIdEnd - pIfId) + 1 < ifIdOutSize)
{
pszRc = NULL;
pszRc = (char *)memset(pszIfIdOut, '\0', ifIdOutSize);
if (!pszRc)
returnValue = 913;
pszRc = NULL;
pszRc = (char *)memcpy(pszIfIdOut, pIfId, (pIfIdEnd - pIfId) + 1);
if (!pszRc)
returnValue = 914;
}
else
{
returnValue = 915;
}
}
else
{
pszRc = NULL;
pszRc = (char *)memset(pszIfIdOut, '\0', ifIdOutSize);
if (!pszRc)
returnValue = 916;
}
// temporary hack
if (isLinkLocal && (strlen(pszIfIdOut) < 1))
{
memset(pszIfIdOut, '\0', ifIdOutSize);
*pszIfIdOut = '%';
pszIfIdOut++;
*pszIfIdOut = '0';
pszIfIdOut++;
}
}
if (pBracketOpen && pBracketClose && pBrackets)
*pBrackets = true;
if (pEmbeddedV4 && pszResultAddress4Start)
*pEmbeddedV4 = true;
if (pszResultAddressStart)
RTMemTmpFree(pszResultAddressStart);
if (pszResultPortStart)
RTMemTmpFree(pszResultPortStart);
if (pszResultAddress4Start)
RTMemTmpFree(pszResultAddress4Start);
if (pszInternalAddressStart)
RTMemTmpFree(pszInternalAddressStart);
if (pszInternalPortStart)
RTMemTmpFree(pszInternalPortStart);
return (uint32_t)(returnValue - (returnValue * 2)); // make it negative...
}
/**
* Takes a string and returns a RFC compliant string of the address
* This function SHOULD NOT be used directly. It expects a 33 byte
* char array with a full blown IPv6 address without separators.
*
* @returns iprt status code.
* @param psz The string to convert
* @param pszAddrOut The char[] that will hold the result
* @param addOutSize The size of the char[] from above.
* @param pszPortOut char[] for the text representation of the port
* @param portOutSize sizeof(pszPortOut);
*/
DECLHIDDEN(int) rtStrToIpAddr6Str(const char *psz, char *pszAddrOut, size_t addrOutSize, char *pszPortOut, size_t portOutSize, bool followRfc)
{
char *pStart = NULL;
char *pGapStart = NULL;
char *pGapEnd = NULL;
char *pGapTStart = NULL;
char *pGapTEnd = NULL;
char *pCurrent = NULL;
char *pOut = NULL;
if (!psz || !pszAddrOut)
return VERR_NOT_SUPPORTED;
if (addrOutSize < 40)
return VERR_NOT_SUPPORTED;
pStart = (char *)psz;
pCurrent = (char *)psz;
pGapStart = (char *)psz;
pGapEnd = (char *)psz;
while (*pCurrent != '\0')
{
if (*pCurrent != '0')
pGapTStart = NULL;
if ((pCurrent - pStart) % 4 == 0) // ok, start of a hextet
{
if (*pCurrent == '0' && !pGapTStart)
pGapTStart = pCurrent;
}
if ((pCurrent - pStart) % 4 == 3)
{
if (*pCurrent == '0' && pGapTStart)
pGapTEnd = pCurrent;
if (pGapTStart && pGapTEnd)
{
pGapTEnd = pCurrent;
if ((pGapTEnd - pGapTStart) > (pGapEnd - pGapStart))
{
pGapEnd = pGapTEnd;
pGapStart = pGapTStart;
}
}
}
pCurrent++;
}
pCurrent = (char *)psz;
pStart = (char *)psz;
pOut = (char *)pszAddrOut;
while (*pCurrent != '\0')
{
if (*pCurrent != '0')
pGapTStart = NULL;
if (!pGapTStart)
{
*pOut = *pCurrent;
pOut++;
}
if ((pCurrent - pStart) % 4 == 3)
{
if (pGapTStart && *pCurrent == '0')
{
*pOut = *pCurrent;
pOut++;
}
if (*(pCurrent + 1) != '\0')
{
*pOut = ':';
pOut++;
}
pGapTStart = pCurrent + 1;
}
if ((pCurrent + 1) == pGapStart && (pGapEnd - pGapStart) > 3)
{
*pOut = ':';
pOut++;
pCurrent = pGapEnd;
}
pCurrent++;
}
return VINF_SUCCESS;
}
/**
* Tests if the given string is a valid IPv6 address.
*
* @returns 0 if valid, some random number if not. THIS IS NOT AN IPRT STATUS!
* @param psz The string to test
* @param pszResultAddress plain address, optional read "valid addresses
* and strings" above.
* @param resultAddressSize size of pszResultAddress
* @param addressOnly return only the plain address (no scope)
* Ignored, and will always return the if id
*/
static int rtNetIpv6CheckAddrStr(const char *psz, char *pszResultAddress, size_t resultAddressSize, bool addressOnly, bool followRfc)
{
int rc;
int rc2;
int returnValue = VERR_NOT_SUPPORTED; /* gcc want's this initialized, I understand its confusion. */
char *p = NULL, *pl = NULL;
size_t memAllocMaxSize = RT_MAX(strlen(psz), resultAddressSize) + 40;
char *pszAddressOutLocal = (char *)RTMemTmpAlloc(memAllocMaxSize);
char *pszIfIdOutLocal = (char *)RTMemTmpAlloc(memAllocMaxSize);
char *pszAddressRfcOutLocal = (char *)RTMemTmpAlloc(memAllocMaxSize);
if (!pszAddressOutLocal || !pszIfIdOutLocal || !pszAddressRfcOutLocal)
return VERR_NO_TMP_MEMORY;
memset(pszAddressOutLocal, '\0', memAllocMaxSize);
memset(pszIfIdOutLocal, '\0', memAllocMaxSize);
memset(pszAddressRfcOutLocal, '\0', memAllocMaxSize);
rc = rtStrParseAddrStr6(psz, strlen(psz), pszAddressOutLocal, memAllocMaxSize, NULL, pszIfIdOutLocal, memAllocMaxSize, NULL, NULL, followRfc);
if (rc == 0)
returnValue = VINF_SUCCESS;
if (rc == 0 && pszResultAddress)
{
// convert the 32 characters to a valid, shortened ipv6 address
rc2 = rtStrToIpAddr6Str((const char *)pszAddressOutLocal, pszAddressRfcOutLocal, memAllocMaxSize, NULL, 0, followRfc);
if (rc2 != 0)
returnValue = 951;
// this is a temporary solution
if (!returnValue && strlen(pszIfIdOutLocal) > 0) // the if identifier is copied over _ALWAYS_ && !addressOnly)
{
p = pszAddressRfcOutLocal + strlen(pszAddressRfcOutLocal);
*p = '%';
p++;
pl = (char *)memcpy(p, pszIfIdOutLocal, strlen(pszIfIdOutLocal));
if (!pl)
returnValue = VERR_NOT_SUPPORTED;
}
pl = NULL;
pl = (char *)memcpy(pszResultAddress, pszAddressRfcOutLocal, strlen(pszAddressRfcOutLocal));
if (!pl)
returnValue = VERR_NOT_SUPPORTED;
}
if (rc != 0)
returnValue = VERR_NOT_SUPPORTED;
if (pszAddressOutLocal)
RTMemTmpFree(pszAddressOutLocal);
if (pszAddressRfcOutLocal)
RTMemTmpFree(pszAddressRfcOutLocal);
if (pszIfIdOutLocal)
RTMemTmpFree(pszIfIdOutLocal);
return returnValue;
}
| 29.499183 | 229 | 0.509624 | Nurzamal |
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 |
294575263013d52d791389b4897d9d53b2c95219 | 974 | hpp | C++ | src/include/duckdb/function/function_set.hpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | 9 | 2021-09-08T13:13:03.000Z | 2022-03-11T21:18:05.000Z | src/include/duckdb/function/function_set.hpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | 1 | 2021-12-10T18:06:11.000Z | 2021-12-13T17:20:41.000Z | src/include/duckdb/function/function_set.hpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | 1 | 2022-01-18T09:38:19.000Z | 2022-01-18T09:38:19.000Z | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/function/function_set.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/function/aggregate_function.hpp"
#include "duckdb/function/scalar_function.hpp"
namespace duckdb {
template <class T> class FunctionSet {
public:
FunctionSet(string name) : name(name) {
}
//! The name of the function set
string name;
//! The set of functions
vector<T> functions;
public:
void AddFunction(T function) {
function.name = name;
functions.push_back(function);
}
};
class ScalarFunctionSet : public FunctionSet<ScalarFunction> {
public:
ScalarFunctionSet(string name) : FunctionSet(move(name)) {
}
};
class AggregateFunctionSet : public FunctionSet<AggregateFunction> {
public:
AggregateFunctionSet(string name) : FunctionSet(move(name)) {
}
};
} // namespace duckdb
| 21.173913 | 80 | 0.593429 | rainmaple |
2945e7efff2879103dcf15d7ac8244bce580af52 | 4,954 | cpp | C++ | Net/samples/SNMP/src/SNMP.cpp | RangelReale/poco | b5d9177abebac49da74722b5f193958dbef1ce94 | [
"BSL-1.0"
] | null | null | null | Net/samples/SNMP/src/SNMP.cpp | RangelReale/poco | b5d9177abebac49da74722b5f193958dbef1ce94 | [
"BSL-1.0"
] | null | null | null | Net/samples/SNMP/src/SNMP.cpp | RangelReale/poco | b5d9177abebac49da74722b5f193958dbef1ce94 | [
"BSL-1.0"
] | 1 | 2021-07-16T12:16:40.000Z | 2021-07-16T12:16:40.000Z | //
// SNMP.cpp
//
// $Id: //poco/1.4/Net/samples/SNMP/src/SNMP.cpp#1 $
//
// This sample demonstrates the Application class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/Application.h"
#include "Poco/Util/Option.h"
#include "Poco/Util/OptionSet.h"
#include "Poco/Util/HelpFormatter.h"
#include "Poco/Util/AbstractConfiguration.h"
#include "Poco/Net/SNMPClient.h"
#include "Poco/AutoPtr.h"
#include "Poco/Delegate.h"
#include <iostream>
#include <sstream>
using Poco::Util::Application;
using Poco::Util::Option;
using Poco::Util::OptionSet;
using Poco::Util::HelpFormatter;
using Poco::Util::AbstractConfiguration;
using Poco::Net::SNMPClient;
using Poco::Net::IPAddress;
using Poco::Net::SNMPEventArgs;
using Poco::AutoPtr;
using Poco::Delegate;
class SNMP: public Application
/// This sample demonstrates the Poco::Net::SNMPClient in conjunction with
/// Poco Foundation C#-like events functionality.
///
/// Try SNMP --help (on Unix platforms) or SNMP /help (elsewhere) for
/// more information.
{
public:
SNMP():
_helpRequested(false),
_snmpClient(),
_oid("1.3.6.1.2.1.1.1.0"),
_target("localhost")
{
}
protected:
void initialize(Application& self)
{
loadConfiguration(); // load default configuration files, if present
Application::initialize(self);
_snmpClient.snmpBegin += delegate(this, &SNMP::onBegin);
_snmpClient.snmpReply += delegate(this, &SNMP::onReply);
_snmpClient.snmpError += delegate(this, &SNMP::onError);
_snmpClient.snmpEnd += delegate(this, &SNMP::onEnd);
}
void uninitialize()
{
_snmpClient.snmpBegin -= delegate(this, &SNMP::onBegin);
_snmpClient.snmpReply -= delegate(this, &SNMP::onReply);
_snmpClient.snmpError -= delegate(this, &SNMP::onError);
_snmpClient.snmpEnd -= delegate(this, &SNMP::onEnd);
Application::uninitialize();
}
void defineOptions(OptionSet& options)
{
Application::defineOptions(options);
options.addOption(
Option("help", "h", "display help information on command line arguments")
.required(false)
.repeatable(false));
options.addOption(
Option("oid", "o", "define the target SNMP OID")
.required(false)
.repeatable(false)
.argument("repetitions"));
options.addOption(
Option("target", "t", "define the target address")
.required(false)
.repeatable(false)
.argument("target"));
}
void handleOption(const std::string& name, const std::string& value)
{
Application::handleOption(name, value);
if (name == "help")
_helpRequested = true;
else if (name == "oid")
_oid = value;
else if (name == "target")
_target = value;
}
void displayHelp()
{
HelpFormatter helpFormatter(options());
helpFormatter.setCommand(commandName());
helpFormatter.setUsage("OPTIONS");
helpFormatter.setHeader(
"A sample application that demonstrates the functionality of the "
"Poco::Net::SNMPClient class in conjunction with Poco::Events package functionality.");
helpFormatter.format(std::cout);
}
int main(const std::vector<std::string>& args)
{
if (_helpRequested)
displayHelp();
else
{
_snmpClient.get(_target, _oid, 920);
}
return Application::EXIT_OK;
}
void onBegin(const void* pSender, SNMPEventArgs& args)
{
std::ostringstream os;
os << "Querying " << args.hostName() << " [" << args.hostAddress() << "] with " << _oid << " OID:"
<< std::endl << "---------------------------------------------" << std::endl;
logger().information(os.str());
}
void onReply(const void* pSender, SNMPEventArgs& args)
{
std::ostringstream os;
os << "Reply from " << args.hostAddress() << std::endl;
for (int i=0; i < args.message()->pdu().varBindList().list().size(); i++)
{
std::string curoid(args.message()->pdu().varBindList().list().at(i)->oid());
os << "-- " << curoid << " :: " <<
args.message()->pdu().varBindList().list().at(i)->value()->typeName() << " == " <<
args.message()->pdu().varBindList().list().at(i)->value()->toString() << std::endl;
}
logger().information(os.str());
}
void onError(const void* pSender, SNMPEventArgs& args)
{
std::ostringstream os;
os << args.error();
logger().information(os.str());
}
void onEnd(const void* pSender, SNMPEventArgs& args)
{
std::ostringstream os;
os << "Query finished for " << args.hostName() << " [" << args.hostAddress() << "] with " << _oid << " OID:"
<< std::endl << "---------------------------------------------" << std::endl;
logger().information(os.str());
}
private:
bool _helpRequested;
SNMPClient _snmpClient;
std::string _oid;
std::string _target;
};
int main(int argc, char** argv)
{
AutoPtr<SNMP> pApp = new SNMP;
try
{
pApp->init(argc, argv);
}
catch (Poco::Exception& exc)
{
pApp->logger().log(exc);
return Application::EXIT_CONFIG;
}
return pApp->run();
}
| 25.147208 | 111 | 0.650989 | RangelReale |
29465c2e066ca72691b720423f6dd2ea06a8ed57 | 2,002 | hpp | C++ | mars/boost/thread/win32/recursive_mutex.hpp | jonetomtom/mars | 3f11714e0aee826eb12bfd52496b59675125204a | [
"BSD-2-Clause",
"Apache-2.0"
] | 17,104 | 2016-12-28T07:45:54.000Z | 2022-03-31T07:02:52.000Z | 3rdparty/boost/thread/win32/recursive_mutex.hpp | qingkouwei/mediaones | cec475e1bfd5807b5351cc7e38d244ac5298ca16 | [
"MIT"
] | 964 | 2016-12-28T08:13:33.000Z | 2022-03-31T13:36:40.000Z | mars/boost/thread/win32/recursive_mutex.hpp | pengjinning/mars | 227aff64a5b819555091a7d6eae6727701e9fff0 | [
"Apache-2.0",
"BSD-2-Clause"
] | 3,568 | 2016-12-28T07:47:46.000Z | 2022-03-31T02:13:19.000Z | #ifndef BOOST_RECURSIVE_MUTEX_WIN32_HPP
#define BOOST_RECURSIVE_MUTEX_WIN32_HPP
// recursive_mutex.hpp
//
// (C) Copyright 2006-7 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/thread/win32/basic_recursive_mutex.hpp>
#include <boost/thread/exceptions.hpp>
#include <boost/thread/detail/delete.hpp>
#if defined BOOST_THREAD_PROVIDES_NESTED_LOCKS
#include <boost/thread/lock_types.hpp>
#endif
#include <boost/config/abi_prefix.hpp>
namespace mars_boost {} namespace boost = mars_boost; namespace mars_boost
{
class recursive_mutex:
public ::boost::detail::basic_recursive_mutex
{
public:
BOOST_THREAD_NO_COPYABLE(recursive_mutex)
recursive_mutex()
{
::boost::detail::basic_recursive_mutex::initialize();
}
~recursive_mutex()
{
::boost::detail::basic_recursive_mutex::destroy();
}
#if defined BOOST_THREAD_PROVIDES_NESTED_LOCKS
typedef unique_lock<recursive_mutex> scoped_lock;
typedef detail::try_lock_wrapper<recursive_mutex> scoped_try_lock;
#endif
};
typedef recursive_mutex recursive_try_mutex;
class recursive_timed_mutex:
public ::boost::detail::basic_recursive_timed_mutex
{
public:
BOOST_THREAD_NO_COPYABLE(recursive_timed_mutex)
recursive_timed_mutex()
{
::boost::detail::basic_recursive_timed_mutex::initialize();
}
~recursive_timed_mutex()
{
::boost::detail::basic_recursive_timed_mutex::destroy();
}
#if defined BOOST_THREAD_PROVIDES_NESTED_LOCKS
typedef unique_lock<recursive_timed_mutex> scoped_timed_lock;
typedef detail::try_lock_wrapper<recursive_timed_mutex> scoped_try_lock;
typedef scoped_timed_lock scoped_lock;
#endif
};
}
#include <boost/config/abi_suffix.hpp>
#endif
| 28.197183 | 80 | 0.711788 | jonetomtom |
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 |
294e0662852b73ea3a855d2cf310d19ce020fb1c | 1,681 | cpp | C++ | hw3-Constructing Abstract Syntax Trees/src/lib/AST/function.cpp | banne2266/compiler-NCTU-2020 | d8a642479bc0d62611773591af844b7daebcc99a | [
"MIT"
] | 1 | 2021-08-03T13:45:31.000Z | 2021-08-03T13:45:31.000Z | hw3-Constructing Abstract Syntax Trees/src/lib/AST/function.cpp | banne2266/compiler-NCTU-2020 | d8a642479bc0d62611773591af844b7daebcc99a | [
"MIT"
] | null | null | null | hw3-Constructing Abstract Syntax Trees/src/lib/AST/function.cpp | banne2266/compiler-NCTU-2020 | d8a642479bc0d62611773591af844b7daebcc99a | [
"MIT"
] | 1 | 2021-06-17T07:13:52.000Z | 2021-06-17T07:13:52.000Z | #include "AST/function.hpp"
#include "visitor/AstNodeVisitor.hpp"
// TODO
FunctionNode::FunctionNode(const uint32_t line, const uint32_t col, char *name_n,
std::vector<DeclNode *> * declarations_n,
enum p_type *type , AstNode *compound_n)
: AstNode{line, col} {
name = name_n;
declarations = declarations_n;
return_type = *type;
compound = compound_n;
}
// TODO: You may use code snippets in AstDumper.cpp
void FunctionNode::print() {}
const char *FunctionNode::getNameCString() const { return name.c_str(); }
const char *FunctionNode::getPrototypeCString() const {
char * temp = new char [512];
if(return_type == int_)
strcat(temp, "integer ");
else if(return_type == real_)
strcat(temp, "real ");
else if(return_type == char_)
strcat(temp, "string ");
else if(return_type == boolean_)
strcat(temp, "boolean ");
else
strcat(temp, "void ");
strcat(temp, "(");
if(declarations != NULL){
for(int i = 0; i < declarations->size(); i++){
if(i != 0){
strcat(temp, ", ");
}
strcat(temp, declarations->at(i)->getPrototypeCString());
}
}
//temp += ")";
strcat(temp, ")");
return temp;
}
void FunctionNode::visitChildNodes(AstNodeVisitor &p_visitor) {
// TODO
if(declarations != NULL){
for (auto &decl : *declarations){
decl->accept(p_visitor);
}
}
if(compound != NULL)
compound->accept(p_visitor);
}
void FunctionNode::accept(AstNodeVisitor &p_visitor) {
p_visitor.visit(*this);
// TODO
}
| 25.861538 | 81 | 0.578227 | banne2266 |
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 |
295119d52d19762a13f50d8cec13f49007250822 | 7,911 | cpp | C++ | src/bindings/javascript/units.cpp | nickerso/libcellml | 9fe5ecabc3e63c49d5ee8539ed2c8ce572a9712a | [
"Apache-2.0"
] | 1 | 2021-02-15T01:09:04.000Z | 2021-02-15T01:09:04.000Z | src/bindings/javascript/units.cpp | nickerso/libcellml | 9fe5ecabc3e63c49d5ee8539ed2c8ce572a9712a | [
"Apache-2.0"
] | 8 | 2019-09-01T23:37:50.000Z | 2021-05-27T21:20:34.000Z | src/bindings/javascript/units.cpp | nickerso/libcellml | 9fe5ecabc3e63c49d5ee8539ed2c8ce572a9712a | [
"Apache-2.0"
] | 1 | 2022-02-04T06:11:40.000Z | 2022-02-04T06:11:40.000Z | /*
Copyright libCellML Contributors
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 <emscripten/bind.h>
// To work around multiple inheritance we have to create a combined Units
// and ImportedEntity class that we can bind with Emscripten.
#define JAVASCRIPT_BINDINGS
#include "libcellml/units.h"
using namespace emscripten;
EMSCRIPTEN_BINDINGS(libcellml_units) {
enum_<libcellml::Units::Prefix>("Prefix")
.value("YOTTA", libcellml::Units::Prefix::YOTTA)
.value("ZETTA", libcellml::Units::Prefix::ZETTA)
.value("EXA", libcellml::Units::Prefix::EXA)
.value("PETA", libcellml::Units::Prefix::PETA)
.value("TERA", libcellml::Units::Prefix::TERA)
.value("GIGA", libcellml::Units::Prefix::GIGA)
.value("MEGA", libcellml::Units::Prefix::MEGA)
.value("KILO", libcellml::Units::Prefix::KILO)
.value("HECTO", libcellml::Units::Prefix::HECTO)
.value("DECA", libcellml::Units::Prefix::DECA)
.value("DECI", libcellml::Units::Prefix::DECI)
.value("CENTI", libcellml::Units::Prefix::CENTI)
.value("MILLI", libcellml::Units::Prefix::MILLI)
.value("MICRO", libcellml::Units::Prefix::MICRO)
.value("NANO", libcellml::Units::Prefix::NANO)
.value("PICO", libcellml::Units::Prefix::PICO)
.value("FEMTO", libcellml::Units::Prefix::FEMTO)
.value("ATTO", libcellml::Units::Prefix::ATTO)
.value("ZEPTO", libcellml::Units::Prefix::ZEPTO)
.value("YOCTO", libcellml::Units::Prefix::YOCTO)
;
enum_<libcellml::Units::StandardUnit>("StandardUnit")
.value("AMPERE", libcellml::Units::StandardUnit::AMPERE)
.value("BECQUEREL", libcellml::Units::StandardUnit::BECQUEREL)
.value("CANDELA", libcellml::Units::StandardUnit::CANDELA)
.value("COULOMB", libcellml::Units::StandardUnit::COULOMB)
.value("DIMENSIONLESS", libcellml::Units::StandardUnit::DIMENSIONLESS)
.value("FARAD", libcellml::Units::StandardUnit::FARAD)
.value("GRAM", libcellml::Units::StandardUnit::GRAM)
.value("GRAY", libcellml::Units::StandardUnit::GRAY)
.value("HENRY", libcellml::Units::StandardUnit::HENRY)
.value("HERTZ", libcellml::Units::StandardUnit::HERTZ)
.value("JOULE", libcellml::Units::StandardUnit::JOULE)
.value("KATAL", libcellml::Units::StandardUnit::KATAL)
.value("KELVIN", libcellml::Units::StandardUnit::KELVIN)
.value("KILOGRAM", libcellml::Units::StandardUnit::KILOGRAM)
.value("LITRE", libcellml::Units::StandardUnit::LITRE)
.value("LUMEN", libcellml::Units::StandardUnit::LUMEN)
.value("LUX", libcellml::Units::StandardUnit::LUX)
.value("METRE", libcellml::Units::StandardUnit::METRE)
.value("MOLE", libcellml::Units::StandardUnit::MOLE)
.value("NEWTON", libcellml::Units::StandardUnit::NEWTON)
.value("OHM", libcellml::Units::StandardUnit::OHM)
.value("PASCAL", libcellml::Units::StandardUnit::PASCAL)
.value("RADIAN", libcellml::Units::StandardUnit::RADIAN)
.value("SECOND", libcellml::Units::StandardUnit::SECOND)
.value("SIEMENS", libcellml::Units::StandardUnit::SIEMENS)
.value("SIEVERT", libcellml::Units::StandardUnit::SIEVERT)
.value("STERADIAN", libcellml::Units::StandardUnit::STERADIAN)
.value("TESLA", libcellml::Units::StandardUnit::TESLA)
.value("VOLT", libcellml::Units::StandardUnit::VOLT)
.value("WATT", libcellml::Units::StandardUnit::WATT)
.value("WEBER", libcellml::Units::StandardUnit::WEBER)
;
class_<libcellml::Units, base<libcellml::NamedEntity>>("Units")
.smart_ptr<std::shared_ptr<libcellml::Units>>("UnitsPtr")
.constructor(select_overload<libcellml::UnitsPtr()>(&libcellml::Units::create))
.constructor(select_overload<libcellml::UnitsPtr(const std::string &)>(&libcellml::Units::create))
.function("isBaseUnit", &libcellml::Units::isBaseUnit)
.function("addUnitByReferenceStringPrefix", select_overload<void(const std::string &, const std::string &, double, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByReferenceEnumPrefix", select_overload<void(const std::string &, libcellml::Units::Prefix, double, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByReferenceIntPrefix", select_overload<void(const std::string &, int, double, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByReferenceExponent", select_overload<void(const std::string &, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByReference", select_overload<void(const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByStandardUnitStringPrefix", select_overload<void(libcellml::Units::StandardUnit, const std::string &, double, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByStandardUnitEnumPrefix", select_overload<void(libcellml::Units::StandardUnit, libcellml::Units::Prefix, double, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByStandardUnitIntPrefix", select_overload<void(libcellml::Units::StandardUnit, int, double, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByStandardUnitExponent", select_overload<void(libcellml::Units::StandardUnit, double, const std::string &)>(&libcellml::Units::addUnit))
.function("addUnitByStandardUnit", select_overload<void(libcellml::Units::StandardUnit)>(&libcellml::Units::addUnit))
.function("unitAttributeReference", &libcellml::Units::unitAttributeReference)
.function("unitAttributePrefix", &libcellml::Units::unitAttributePrefix)
.function("unitAttributeExponent", &libcellml::Units::unitAttributeExponent)
.function("unitAttributeMultiplier", &libcellml::Units::unitAttributeMultiplier)
.function("removeUnitByIndex", select_overload<bool(size_t)>(&libcellml::Units::removeUnit))
.function("removeUnitByReference", select_overload<bool(const std::string &)>(&libcellml::Units::removeUnit))
.function("removeUnitByStandardUnit", select_overload<bool(libcellml::Units::StandardUnit)>(&libcellml::Units::removeUnit))
.function("removeAllUnits", &libcellml::Units::removeAllUnits)
.function("setSourceUnits", &libcellml::Units::setSourceUnits)
.function("unitCount", &libcellml::Units::unitCount)
.function("requiresImports", &libcellml::Units::requiresImports)
.function("clone", &libcellml::Units::clone)
.function("setUnitId", &libcellml::Units::setUnitId)
.function("unitId", &libcellml::Units::unitId)
.function("isImport", &libcellml::Units::isImport)
.function("importSource", &libcellml::Units::importSource)
.function("setImportSource", &libcellml::Units::setImportSource)
.function("importReference", &libcellml::Units::importReference)
.function("setImportReference", &libcellml::Units::setImportReference)
.function("isResolved", &libcellml::Units::isResolved)
.class_function("scalingFactor", &libcellml::Units::scalingFactor)
.class_function("compatible", &libcellml::Units::compatible)
.class_function("equivalent", &libcellml::Units::equivalent)
;
}
| 62.785714 | 198 | 0.695614 | nickerso |
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 |
29560a65c7dfa8da575e0d728b9fae1a0990303b | 1,370 | cpp | C++ | Common/Code/VertexBuffer.cpp | steamclock/internetmap | 13bf01e8e1fde8db64ce8fd417a1c907783100ee | [
"MIT"
] | 22 | 2017-07-11T20:31:16.000Z | 2021-04-04T16:00:10.000Z | Common/Code/VertexBuffer.cpp | steamclock/internetmap | 13bf01e8e1fde8db64ce8fd417a1c907783100ee | [
"MIT"
] | 197 | 2017-07-06T16:53:59.000Z | 2019-05-31T17:57:51.000Z | Common/Code/VertexBuffer.cpp | steamclock/internetmap | 13bf01e8e1fde8db64ce8fd417a1c907783100ee | [
"MIT"
] | 10 | 2017-12-08T21:58:58.000Z | 2021-03-20T07:16:47.000Z | //
// VertexBuffer.cpp
// InternetMap
//
#include "VertexBuffer.hpp"
#include "OpenGL.hpp"
#include "Types.hpp"
#include <stdlib.h>
VertexBuffer::VertexBuffer(int size) :
_size(size),
_vertexBuffer(0),
_lockedVertices(0)
{
// set up vertex buffer state
glGenBuffers(1, &_vertexBuffer);
glBindBuffer(GL_ARRAY_BUFFER, _vertexBuffer);
glBufferData(GL_ARRAY_BUFFER, size, NULL, GL_DYNAMIC_DRAW);
glBindBuffer(GL_ARRAY_BUFFER, 0);
}
VertexBuffer::VertexBuffer() {
if(!gHasMapBuffer && _lockedVertices) {
delete _lockedVertices;
}
glDeleteBuffers(1, &_vertexBuffer);
}
void VertexBuffer::beginUpdate() {
if(gHasMapBuffer ) {
if(!_lockedVertices) {
glBindBuffer(GL_ARRAY_BUFFER, _vertexBuffer);
_lockedVertices = (unsigned char*)glMapBufferOES(GL_ARRAY_BUFFER, GL_WRITE_ONLY_OES);
}
}
else {
if(!_lockedVertices) {
_lockedVertices = new unsigned char[_size];
}
}
}
void VertexBuffer::endUpdate() {
if(gHasMapBuffer ) {
_lockedVertices = NULL;
glUnmapBufferOES(GL_ARRAY_BUFFER);
glBindBuffer(GL_ARRAY_BUFFER, 0);
}
else {
glBindBuffer(GL_ARRAY_BUFFER, _vertexBuffer);
glBufferData(GL_ARRAY_BUFFER, _size, _lockedVertices, GL_DYNAMIC_DRAW);
glBindBuffer(GL_ARRAY_BUFFER, 0);
}
}
| 24.035088 | 97 | 0.666423 | steamclock |
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 <joel.yliluoma@iki.fi>
* 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 |
295d9be57462f01799239e3dc8c54f75020d7a91 | 4,440 | cpp | C++ | src/SamWriter.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 21 | 2016-04-26T20:46:41.000Z | 2022-03-01T01:55:55.000Z | src/SamWriter.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 25 | 2015-09-03T22:18:01.000Z | 2019-08-27T14:47:39.000Z | src/SamWriter.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 20 | 2015-11-24T15:54:26.000Z | 2022-03-14T03:49:18.000Z | #include "PbbamInternalConfig.h"
#include <pbbam/SamWriter.h>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <htslib/hfile.h>
#include <htslib/sam.h>
#include <pbbam/Deleters.h>
#include <pbbam/Validator.h>
#include "Autovalidate.h"
#include "ErrnoReason.h"
#include "FileProducer.h"
#include "MemoryUtils.h"
namespace PacBio {
namespace BAM {
class SamWriter::SamWriterPrivate : public FileProducer
{
public:
SamWriterPrivate(std::string filename, const std::shared_ptr<bam_hdr_t> rawHeader)
: FileProducer{std::move(filename)}, header_{rawHeader}
{
if (!header_) {
std::ostringstream msg;
msg << "[pbbam] SAM writer ERROR: null header provided:\n"
<< " file: " << filename;
throw std::runtime_error{msg.str()};
}
// open file
const auto& usingFilename = TempFilename();
const std::string mode(1, 'w');
file_.reset(sam_open(usingFilename.c_str(), mode.c_str()));
if (!file_) {
std::ostringstream msg;
msg << "[pbbam] SAM writer ERROR: could not open file for writing:\n"
<< " file: " << usingFilename;
MaybePrintErrnoReason(msg);
throw std::runtime_error{msg.str()};
}
// write header
const auto ret = sam_hdr_write(file_.get(), header_.get());
if (ret != 0) {
std::ostringstream msg;
msg << "[pbbam] SAM writer ERROR: could not write header:\n"
<< " file: " << usingFilename;
MaybePrintErrnoReason(msg);
throw std::runtime_error{msg.str()};
}
}
void Write(BamRecord record)
{
#if PBBAM_AUTOVALIDATE
Validator::Validate(record);
#endif
const auto& rawRecord = BamRecordMemory::GetRawData(record);
// store bin number
// min_shift=14 & n_lvls=5 are SAM/BAM "magic numbers"
rawRecord->core.bin = hts_reg2bin(rawRecord->core.pos, bam_endpos(rawRecord.get()), 14, 5);
// Maybe adjust location of long CIGAR (>65535 ops) data, depending on the
// runtime htslib version.
//
// SAM formatting in htslib verions previous to 1.7 are unaware of the new
// long CIGAR implementation ("CG") tag. So we need to move that back to the
// "standard" field so that SAM output is correct. Versions >=1.7 properly
// display long CIGARs.
//
// This transform will become unecessary when we drop support for htslib pre-v1.7.
//
static const bool has_native_long_cigar_support = DoesHtslibSupportLongCigar();
const auto cigar = record.CigarData();
if (!has_native_long_cigar_support && cigar.size() > 65535) {
if (record.Impl().HasTag("CG")) {
record.Impl().RemoveTag("CG");
}
record.Impl().SetCigarData(cigar);
}
// write record to file
const int ret = sam_write1(file_.get(), header_.get(), rawRecord.get());
if (ret <= 0) {
std::ostringstream msg;
msg << "[pbbam] SAM writer ERROR: could not write record:\n"
<< " record: " << record.FullName() << '\n'
<< " file: " << TempFilename();
MaybePrintErrnoReason(msg);
throw std::runtime_error{msg.str()};
}
}
std::unique_ptr<samFile, HtslibFileDeleter> file_;
std::shared_ptr<bam_hdr_t> header_;
};
SamWriter::SamWriter(std::string filename, const BamHeader& header)
: IRecordWriter()
, d_{std::make_unique<SamWriterPrivate>(std::move(filename),
BamHeaderMemory::MakeRawHeader(header))}
{
#if PBBAM_AUTOVALIDATE
Validator::Validate(header);
#endif
}
SamWriter::SamWriter(SamWriter&&) noexcept = default;
SamWriter& SamWriter::operator=(SamWriter&&) noexcept = default;
SamWriter::~SamWriter() = default;
void SamWriter::TryFlush()
{
const auto ret = d_->file_.get()->fp.hfile;
if (ret != nullptr) {
throw std::runtime_error{
"[pbbam] SAM writer ERROR: could not flush output buffer contents"};
}
}
void SamWriter::Write(const BamRecord& record) { d_->Write(record); }
void SamWriter::Write(const BamRecordImpl& recordImpl) { Write(BamRecord{recordImpl}); }
} // namespace BAM
} // namespace PacBio
| 31.942446 | 99 | 0.606081 | PacificBiosciences |
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 |
2962c6d4afcd11115d7c5e830c229c3b0329e62c | 6,369 | cc | C++ | 3rdParty/s2geometry/dfefe0c/src/s2/s2earth_test.cc | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | 3rdParty/s2geometry/dfefe0c/src/s2/s2earth_test.cc | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | 3rdParty/s2geometry/dfefe0c/src/s2/s2earth_test.cc | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | // Copyright 2005 Google Inc. All Rights Reserved.
//
// 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.
//
// Author: ericv@google.com (Eric Veach)
#include "s2/s2earth.h"
#include <cmath>
#include <gtest/gtest.h>
#include "s2/util/units/physical-units.h"
TEST(S2EarthTest, TestAngleConversion) {
ASSERT_DOUBLE_EQ(S2Earth::ToAngle(S2Earth::Radius()).radians(), 1);
ASSERT_DOUBLE_EQ(S2Earth::ToChordAngle(S2Earth::Radius()).radians(), 1);
ASSERT_FLOAT_EQ(
util::units::Meters(S2Earth::ToDistance(S1Angle::Radians(2))).value(),
2 * S2Earth::RadiusMeters());
ASSERT_FLOAT_EQ(
util::units::Meters(S2Earth::ToDistance(S1ChordAngle::Radians(2)))
.value(),
2 * S2Earth::RadiusMeters());
ASSERT_DOUBLE_EQ(
S2Earth::ToRadians(util::units::Meters(S2Earth::RadiusMeters())), 1);
ASSERT_DOUBLE_EQ(S2Earth::ToMeters(S1Angle::Degrees(180)),
S2Earth::RadiusMeters() * M_PI);
ASSERT_DOUBLE_EQ(S2Earth::ToMeters(S1ChordAngle::Degrees(180)),
S2Earth::RadiusMeters() * M_PI);
ASSERT_DOUBLE_EQ(S2Earth::ToKm(S1Angle::Radians(0.5)),
0.5 * S2Earth::RadiusKm());
ASSERT_DOUBLE_EQ(S2Earth::ToKm(S1ChordAngle::Radians(0.5)),
0.5 * S2Earth::RadiusKm());
ASSERT_DOUBLE_EQ(S2Earth::KmToRadians(S2Earth::RadiusMeters() / 1000), 1);
ASSERT_DOUBLE_EQ(S2Earth::RadiansToKm(0.5), 0.5 * S2Earth::RadiusKm());
ASSERT_DOUBLE_EQ(S2Earth::MetersToRadians(S2Earth::RadiansToKm(0.3) * 1000),
0.3);
ASSERT_DOUBLE_EQ(S2Earth::RadiansToMeters(S2Earth::KmToRadians(2.5)), 2500);
}
TEST(S2EarthTest, TestSolidAngleConversion) {
ASSERT_DOUBLE_EQ(1,
S2Earth::SquareKmToSteradians(
std::pow(S2Earth::RadiusMeters() / 1000, 2)));
ASSERT_DOUBLE_EQ(std::pow(0.5 * S2Earth::RadiusKm(), 2),
S2Earth::SteradiansToSquareKm(std::pow(0.5, 2)));
ASSERT_DOUBLE_EQ(std::pow(0.3, 2),
S2Earth::SquareMetersToSteradians(
std::pow(S2Earth::RadiansToKm(0.3) * 1000, 2)));
ASSERT_DOUBLE_EQ(std::pow(2500, 2),
S2Earth::SteradiansToSquareMeters(
std::pow(S2Earth::KmToRadians(2.5), 2)));
}
TEST(S2EarthTest, TestToLongitudeRadians) {
const util::units::Meters earth_radius =
util::units::Meters(S2Earth::RadiusMeters());
// At the equator, ToLongitudeRadians behaves exactly like ToRadians.
ASSERT_DOUBLE_EQ(S2Earth::ToLongitudeRadians(earth_radius, 0), 1);
// The closer we get to the poles, the more radians we need to go the same
// distance.
ASSERT_GT(S2Earth::ToLongitudeRadians(earth_radius, 0.5),
S2Earth::ToLongitudeRadians(earth_radius, 0.4));
// At the poles, we should return 2PI radians instead of dividing by 0.
ASSERT_DOUBLE_EQ(S2Earth::ToLongitudeRadians(earth_radius, M_PI_2), M_PI * 2);
// Within epsilon of the poles, we should still return 2PI radians instead
// of directing the caller to take thousands of radians around.
ASSERT_DOUBLE_EQ(S2Earth::ToLongitudeRadians(earth_radius, M_PI_2 - 1e-4),
M_PI * 2);
}
TEST(S2EarthTest, TestGetInitialBearing) {
struct TestConfig {
string description;
S2LatLng a;
S2LatLng b;
S1Angle bearing;
} test_configs[] = {
{"Westward on equator", S2LatLng::FromDegrees(0, 50),
S2LatLng::FromDegrees(0, 100), S1Angle::Degrees(90)},
{"Eastward on equator", S2LatLng::FromDegrees(0, 50),
S2LatLng::FromDegrees(0, 0), S1Angle::Degrees(-90)},
{"Northward on meridian", S2LatLng::FromDegrees(16, 28),
S2LatLng::FromDegrees(81, 28), S1Angle::Degrees(0)},
{"Southward on meridian", S2LatLng::FromDegrees(24, 64),
S2LatLng::FromDegrees(-27, 64), S1Angle::Degrees(180)},
{"Towards north pole", S2LatLng::FromDegrees(12, 76),
S2LatLng::FromDegrees(90, 50), S1Angle::Degrees(0)},
{"Towards south pole", S2LatLng::FromDegrees(-35, 105),
S2LatLng::FromDegrees(-90, -120), S1Angle::Degrees(180)},
{"Spain to Japan", S2LatLng::FromDegrees(40.4379332, -3.749576),
S2LatLng::FromDegrees(35.6733227, 139.6403486), S1Angle::Degrees(29.2)},
{"Japan to Spain", S2LatLng::FromDegrees(35.6733227, 139.6403486),
S2LatLng::FromDegrees(40.4379332, -3.749576), S1Angle::Degrees(-27.2)},
};
for (const TestConfig& config : test_configs) {
const S1Angle bearing = S2Earth::GetInitialBearing(config.a, config.b);
const S1Angle angle_diff = (bearing - config.bearing).Normalized().abs();
EXPECT_LE(angle_diff.degrees(), 1e-2)
<< "GetInitialBearing() test failed on: " << config.description
<< ". Expected " << config.bearing << ", got " << bearing;
}
}
TEST(S2EarthTest, TestGetDistance) {
S2Point north(0, 0, 1);
S2Point south(0, 0, -1);
S2Point west(0, -1, 0);
ASSERT_FLOAT_EQ(
util::units::Miles(S2Earth::GetDistance(north, south)).value(),
util::units::Miles(M_PI * S2Earth::Radius()).value());
ASSERT_DOUBLE_EQ(S2Earth::GetDistanceKm(west, west), 0);
ASSERT_DOUBLE_EQ(S2Earth::GetDistanceMeters(north, west),
M_PI_2 * S2Earth::RadiusMeters());
ASSERT_FLOAT_EQ(
util::units::Feet(S2Earth::GetDistance(S2LatLng::FromDegrees(0, -90),
S2LatLng::FromDegrees(-90, -38)))
.value(),
util::units::Feet(S2Earth::GetDistance(west, south)).value());
ASSERT_DOUBLE_EQ(S2Earth::GetDistanceKm(S2LatLng::FromRadians(0, 0.6),
S2LatLng::FromRadians(0, -0.4)),
S2Earth::RadiusKm());
ASSERT_DOUBLE_EQ(S2Earth::GetDistanceMeters(S2LatLng::FromDegrees(80, 27),
S2LatLng::FromDegrees(55, -153)),
1000 * S2Earth::RadiusKm() * M_PI / 4);
}
| 43.326531 | 80 | 0.653478 | rajeev02101987 |
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 |
296729d8456aa2cf9c17bbf8860bf2e0ce6a8ed2 | 10,198 | cc | C++ | ash/system/ime/tray_ime.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | null | null | null | ash/system/ime/tray_ime.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | null | null | null | ash/system/ime/tray_ime.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | 1 | 2020-11-04T07:27:33.000Z | 2020-11-04T07:27:33.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/ime/tray_ime.h"
#include <vector>
#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_delegate.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_details_view.h"
#include "ash/system/tray/tray_item_more.h"
#include "ash/system/tray/tray_item_view.h"
#include "ash/system/tray/tray_notification_view.h"
#include "ash/system/tray/tray_views.h"
#include "ash/wm/shelf_layout_manager.h"
#include "base/logging.h"
#include "base/timer.h"
#include "base/utf_string_conversions.h"
#include "grit/ash_resources.h"
#include "grit/ash_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/font.h"
#include "ui/gfx/image/image.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/widget/widget.h"
namespace ash {
namespace internal {
namespace tray {
class IMEDefaultView : public TrayItemMore {
public:
explicit IMEDefaultView(SystemTrayItem* owner)
: TrayItemMore(owner) {
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
SetImage(bundle.GetImageNamed(
IDR_AURA_UBER_TRAY_IME).ToImageSkia());
IMEInfo info;
Shell::GetInstance()->tray_delegate()->GetCurrentIME(&info);
UpdateLabel(info);
}
virtual ~IMEDefaultView() {}
void UpdateLabel(const IMEInfo& info) {
SetLabel(info.name);
SetAccessibleName(info.name);
}
private:
DISALLOW_COPY_AND_ASSIGN(IMEDefaultView);
};
class IMEDetailedView : public TrayDetailsView,
public ViewClickListener {
public:
IMEDetailedView(SystemTrayItem* owner, user::LoginStatus login)
: login_(login) {
SystemTrayDelegate* delegate = Shell::GetInstance()->tray_delegate();
IMEInfoList list;
delegate->GetAvailableIMEList(&list);
IMEPropertyInfoList property_list;
delegate->GetCurrentIMEProperties(&property_list);
Update(list, property_list);
}
virtual ~IMEDetailedView() {}
void Update(const IMEInfoList& list,
const IMEPropertyInfoList& property_list) {
Reset();
AppendIMEList(list);
if (!property_list.empty())
AppendIMEProperties(property_list);
if (login_ != user::LOGGED_IN_NONE && login_ != user::LOGGED_IN_LOCKED)
AppendSettings();
AppendHeaderEntry();
Layout();
SchedulePaint();
}
private:
void AppendHeaderEntry() {
CreateSpecialRow(IDS_ASH_STATUS_TRAY_IME, this);
}
void AppendIMEList(const IMEInfoList& list) {
ime_map_.clear();
CreateScrollableList();
for (size_t i = 0; i < list.size(); i++) {
HoverHighlightView* container = new HoverHighlightView(this);
container->set_fixed_height(kTrayPopupItemHeight);
container->AddLabel(list[i].name,
list[i].selected ? gfx::Font::BOLD : gfx::Font::NORMAL);
scroll_content()->AddChildView(container);
ime_map_[container] = list[i].id;
}
}
void AppendIMEProperties(const IMEPropertyInfoList& property_list) {
property_map_.clear();
for (size_t i = 0; i < property_list.size(); i++) {
HoverHighlightView* container = new HoverHighlightView(this);
container->set_fixed_height(kTrayPopupItemHeight);
container->AddLabel(
property_list[i].name,
property_list[i].selected ? gfx::Font::BOLD : gfx::Font::NORMAL);
if (i == 0)
container->set_border(views::Border::CreateSolidSidedBorder(1, 0, 0, 0,
kBorderLightColor));
scroll_content()->AddChildView(container);
property_map_[container] = property_list[i].key;
}
}
void AppendSettings() {
HoverHighlightView* container = new HoverHighlightView(this);
container->set_fixed_height(kTrayPopupItemHeight);
container->AddLabel(ui::ResourceBundle::GetSharedInstance().
GetLocalizedString(IDS_ASH_STATUS_TRAY_IME_SETTINGS),
gfx::Font::NORMAL);
AddChildView(container);
settings_ = container;
}
// Overridden from ViewClickListener.
virtual void ClickedOn(views::View* sender) OVERRIDE {
SystemTrayDelegate* delegate = Shell::GetInstance()->tray_delegate();
if (sender == footer()->content()) {
Shell::GetInstance()->system_tray()->ShowDefaultView(BUBBLE_USE_EXISTING);
} else if (sender == settings_) {
delegate->ShowIMESettings();
} else {
std::map<views::View*, std::string>::const_iterator ime_find;
ime_find = ime_map_.find(sender);
if (ime_find != ime_map_.end()) {
std::string ime_id = ime_find->second;
delegate->SwitchIME(ime_id);
GetWidget()->Close();
} else {
std::map<views::View*, std::string>::const_iterator prop_find;
prop_find = property_map_.find(sender);
if (prop_find != property_map_.end()) {
const std::string key = prop_find->second;
delegate->ActivateIMEProperty(key);
GetWidget()->Close();
}
}
}
}
user::LoginStatus login_;
std::map<views::View*, std::string> ime_map_;
std::map<views::View*, std::string> property_map_;
views::View* settings_;
DISALLOW_COPY_AND_ASSIGN(IMEDetailedView);
};
class IMENotificationView : public TrayNotificationView {
public:
explicit IMENotificationView(TrayIME* tray)
: TrayNotificationView(tray, IDR_AURA_UBER_TRAY_IME) {
InitView(GetLabel());
}
void UpdateLabel() {
RestartAutoCloseTimer();
UpdateView(GetLabel());
}
void StartAutoCloseTimer(int seconds) {
autoclose_.Stop();
autoclose_delay_ = seconds;
if (autoclose_delay_) {
autoclose_.Start(FROM_HERE,
base::TimeDelta::FromSeconds(autoclose_delay_),
this, &IMENotificationView::Close);
}
}
void StopAutoCloseTimer() {
autoclose_.Stop();
}
void RestartAutoCloseTimer() {
if (autoclose_delay_)
StartAutoCloseTimer(autoclose_delay_);
}
// Overridden from TrayNotificationView.
virtual void OnClickAction() OVERRIDE {
tray()->PopupDetailedView(0, true);
}
private:
void Close() {
tray()->HideNotificationView();
}
views::Label* GetLabel() {
SystemTrayDelegate* delegate = Shell::GetInstance()->tray_delegate();
IMEInfo current;
delegate->GetCurrentIME(¤t);
// TODO(zork): Use IDS_ASH_STATUS_TRAY_THIRD_PARTY_IME_TURNED_ON_BUBBLE for
// third party IMEs
views::Label* label = new views::Label(
l10n_util::GetStringFUTF16(
IDS_ASH_STATUS_TRAY_IME_TURNED_ON_BUBBLE,
current.medium_name));
label->SetMultiLine(true);
label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
return label;
}
int autoclose_delay_;
base::OneShotTimer<IMENotificationView> autoclose_;
DISALLOW_COPY_AND_ASSIGN(IMENotificationView);
};
} // namespace tray
TrayIME::TrayIME()
: tray_label_(NULL),
default_(NULL),
detailed_(NULL),
notification_(NULL),
message_shown_(false) {
}
TrayIME::~TrayIME() {
}
void TrayIME::UpdateTrayLabel(const IMEInfo& current, size_t count) {
if (tray_label_) {
if (current.third_party) {
tray_label_->label()->SetText(current.short_name + UTF8ToUTF16("*"));
} else {
tray_label_->label()->SetText(current.short_name);
}
tray_label_->SetVisible(count > 1);
SetTrayLabelItemBorder(tray_label_,
ash::Shell::GetInstance()->system_tray()->shelf_alignment());
tray_label_->Layout();
}
}
views::View* TrayIME::CreateTrayView(user::LoginStatus status) {
CHECK(tray_label_ == NULL);
tray_label_ = new TrayItemView;
tray_label_->CreateLabel();
SetupLabelForTray(tray_label_->label());
return tray_label_;
}
views::View* TrayIME::CreateDefaultView(user::LoginStatus status) {
SystemTrayDelegate* delegate = Shell::GetInstance()->tray_delegate();
IMEInfoList list;
IMEPropertyInfoList property_list;
delegate->GetAvailableIMEList(&list);
delegate->GetCurrentIMEProperties(&property_list);
if (list.size() <= 1 && property_list.size() <= 1)
return NULL;
CHECK(default_ == NULL);
default_ = new tray::IMEDefaultView(this);
return default_;
}
views::View* TrayIME::CreateDetailedView(user::LoginStatus status) {
CHECK(detailed_ == NULL);
detailed_ = new tray::IMEDetailedView(this, status);
return detailed_;
}
views::View* TrayIME::CreateNotificationView(user::LoginStatus status) {
DCHECK(notification_ == NULL);
notification_ = new tray::IMENotificationView(this);
notification_->StartAutoCloseTimer(kTrayPopupAutoCloseDelayForTextInSeconds);
return notification_;
}
void TrayIME::DestroyTrayView() {
tray_label_ = NULL;
}
void TrayIME::DestroyDefaultView() {
default_ = NULL;
}
void TrayIME::DestroyDetailedView() {
detailed_ = NULL;
}
void TrayIME::DestroyNotificationView() {
notification_ = NULL;
}
void TrayIME::UpdateAfterLoginStatusChange(user::LoginStatus status) {
}
void TrayIME::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
SetTrayLabelItemBorder(tray_label_, alignment);
}
void TrayIME::OnIMERefresh(bool show_message) {
SystemTrayDelegate* delegate = Shell::GetInstance()->tray_delegate();
IMEInfoList list;
IMEInfo current;
IMEPropertyInfoList property_list;
delegate->GetCurrentIME(¤t);
delegate->GetAvailableIMEList(&list);
delegate->GetCurrentIMEProperties(&property_list);
UpdateTrayLabel(current, list.size());
if (default_)
default_->UpdateLabel(current);
if (detailed_)
detailed_->Update(list, property_list);
if (list.size() > 1 && show_message) {
// If the notification is still visible, hide it and clear the flag so it is
// refreshed.
if (notification_) {
notification_->UpdateLabel();
} else if (!Shell::GetPrimaryRootWindowController()->shelf()->IsVisible() ||
!message_shown_) {
ShowNotificationView();
message_shown_ = true;
}
}
}
} // namespace internal
} // namespace ash
| 28.971591 | 80 | 0.698568 | junmin-zhu |
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 |
296944b759642b94e20c8bae04ec73438f6b1ae3 | 6,135 | hpp | C++ | ReactAndroid/build/third-party-ndk/boost/boost_1_57_0/boost/geometry/geometries/concepts/check.hpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 85 | 2015-02-08T20:36:17.000Z | 2021-11-14T20:38:31.000Z | ReactAndroid/build/third-party-ndk/boost/boost_1_57_0/boost/geometry/geometries/concepts/check.hpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | ReactAndroid/build/third-party-ndk/boost/boost_1_57_0/boost/geometry/geometries/concepts/check.hpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 27 | 2015-01-28T16:33:30.000Z | 2021-08-12T05:04:39.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to 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_GEOMETRY_GEOMETRIES_CONCEPTS_CHECK_HPP
#define BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_CHECK_HPP
#include <boost/concept_check.hpp>
#include <boost/concept/requires.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/variant/variant_fwd.hpp>
#include <boost/geometry/core/tag.hpp>
#include <boost/geometry/core/tags.hpp>
#include <boost/geometry/geometries/concepts/box_concept.hpp>
#include <boost/geometry/geometries/concepts/linestring_concept.hpp>
#include <boost/geometry/geometries/concepts/multi_point_concept.hpp>
#include <boost/geometry/geometries/concepts/multi_linestring_concept.hpp>
#include <boost/geometry/geometries/concepts/multi_polygon_concept.hpp>
#include <boost/geometry/geometries/concepts/point_concept.hpp>
#include <boost/geometry/geometries/concepts/polygon_concept.hpp>
#include <boost/geometry/geometries/concepts/ring_concept.hpp>
#include <boost/geometry/geometries/concepts/segment_concept.hpp>
#include <boost/geometry/algorithms/not_implemented.hpp>
namespace boost { namespace geometry
{
#ifndef DOXYGEN_NO_DETAIL
namespace detail { namespace concept_check
{
template <typename Concept>
class check
{
BOOST_CONCEPT_ASSERT((Concept ));
};
}} // namespace detail::concept_check
#endif // DOXYGEN_NO_DETAIL
#ifndef DOXYGEN_NO_DISPATCH
namespace dispatch
{
template
<
typename Geometry,
typename GeometryTag = typename geometry::tag<Geometry>::type,
bool IsConst = boost::is_const<Geometry>::type::value
>
struct check : not_implemented<GeometryTag>
{};
template <typename Geometry>
struct check<Geometry, point_tag, true>
: detail::concept_check::check<concept::ConstPoint<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, point_tag, false>
: detail::concept_check::check<concept::Point<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, linestring_tag, true>
: detail::concept_check::check<concept::ConstLinestring<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, linestring_tag, false>
: detail::concept_check::check<concept::Linestring<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, ring_tag, true>
: detail::concept_check::check<concept::ConstRing<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, ring_tag, false>
: detail::concept_check::check<concept::Ring<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, polygon_tag, true>
: detail::concept_check::check<concept::ConstPolygon<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, polygon_tag, false>
: detail::concept_check::check<concept::Polygon<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, box_tag, true>
: detail::concept_check::check<concept::ConstBox<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, box_tag, false>
: detail::concept_check::check<concept::Box<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, segment_tag, true>
: detail::concept_check::check<concept::ConstSegment<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, segment_tag, false>
: detail::concept_check::check<concept::Segment<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, multi_point_tag, true>
: detail::concept_check::check<concept::ConstMultiPoint<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, multi_point_tag, false>
: detail::concept_check::check<concept::MultiPoint<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, multi_linestring_tag, true>
: detail::concept_check::check<concept::ConstMultiLinestring<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, multi_linestring_tag, false>
: detail::concept_check::check<concept::MultiLinestring<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, multi_polygon_tag, true>
: detail::concept_check::check<concept::ConstMultiPolygon<Geometry> >
{};
template <typename Geometry>
struct check<Geometry, multi_polygon_tag, false>
: detail::concept_check::check<concept::MultiPolygon<Geometry> >
{};
} // namespace dispatch
#endif
namespace concept
{
#ifndef DOXYGEN_NO_DETAIL
namespace detail
{
template <typename Geometry>
struct checker : dispatch::check<Geometry>
{};
template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
struct checker<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> >
{};
template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
struct checker<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> const>
{};
}
#endif // DOXYGEN_NO_DETAIL
/*!
\brief Checks, in compile-time, the concept of any geometry
\ingroup concepts
*/
template <typename Geometry>
inline void check()
{
detail::checker<Geometry> c;
boost::ignore_unused_variable_warning(c);
}
/*!
\brief Checks, in compile-time, the concept of two geometries, and if they
have equal dimensions
\ingroup concepts
*/
template <typename Geometry1, typename Geometry2>
inline void check_concepts_and_equal_dimensions()
{
check<Geometry1>();
check<Geometry2>();
assert_dimension_equal<Geometry1, Geometry2>();
}
} // namespace concept
}} // namespace boost::geometry
#endif // BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_CHECK_HPP
| 25.143443 | 80 | 0.732355 | kimwoongkyu |
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 (francisco.ruiz.rayo@gmail.com)
//
// 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 |
296b62ad339dc3a56669a5e00102e780195116ca | 29,716 | cpp | C++ | Client/test/TestServer.cpp | ecmwf/ecflow | 2498d0401d3d1133613d600d5c0e0a8a30b7b8eb | [
"Apache-2.0"
] | 11 | 2020-08-07T14:42:45.000Z | 2021-10-21T01:59:59.000Z | Client/test/TestServer.cpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 10 | 2020-08-07T14:36:27.000Z | 2022-02-22T06:51:24.000Z | Client/test/TestServer.cpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 6 | 2020-08-07T14:34:38.000Z | 2022-01-10T12:06:27.000Z | //============================================================================
// Name :
// Author : Avi
// Revision : $Revision: #45 $
//
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privileges and immunities
// granted to it by virtue of its status as an intergovernmental organisation
// nor does it submit to any jurisdiction.
//
// Description :
//============================================================================
#include <boost/test/unit_test.hpp>
#include <boost/timer/timer.hpp>
#include <boost/date_time/posix_time/time_formatters.hpp> // requires boost date and time lib, for to_simple_string
#include "ClientInvoker.hpp"
#include "ClientEnvironment.hpp"
#include "File.hpp"
#include "InvokeServer.hpp"
#include "SCPort.hpp"
#include "Str.hpp"
#include "DurationTimer.hpp"
#include "Version.hpp"
#include "perf_timer.hpp"
using namespace std;
using namespace ecf;
BOOST_AUTO_TEST_SUITE( ClientTestSuite )
// ************************************************************************************
// Note: If you make edits to node tree, they will have no effect until the server is rebuilt
//
// Note: To test HPUX->Linux, invoke serve on (Linux/HPUX) and the client cmds on other system
// On the client side set ECF_HOST to machine name. To allow further testing if ECF_HOST
// is specified then *don't* shutdown the server
// ************************************************************************************
BOOST_AUTO_TEST_CASE( test_server_version )
{
/// This will remove checkpt and backup , to avoid server from loading it. (i.e from previous test)
InvokeServer invokeServer("Client:: ...test_server_version:",SCPort::next());
BOOST_REQUIRE_MESSAGE( invokeServer.server_started(), "Server failed to start on " << invokeServer.host() << ":" << invokeServer.port() );
ClientInvoker theClient(invokeServer.host(), invokeServer.port());
BOOST_REQUIRE_MESSAGE(theClient.server_version() == 0,"server version\n" << theClient.errorMsg());
if (ClientEnvironment::hostSpecified().empty()) {
// This check only valid if server was invoked locally. Ignore for remote servers
BOOST_REQUIRE_MESSAGE(theClient.get_string() == Version::raw(),"Expected client version(" << Version::raw() << ") to match server version(" << theClient.get_string() << ")");
}
else {
// remote server, version may be different
BOOST_WARN_MESSAGE(theClient.get_string() == Version::raw(),"Client version(" << Version::raw() << ") does not match server version(" << theClient.get_string() << ")");
}
}
BOOST_AUTO_TEST_CASE( test_server_state_changes )
{
/// This will remove checkpt and backup , to avoid server from loading it. (i.e from previous test)
InvokeServer invokeServer("Client:: ...test_server_state_changes:",SCPort::next());
BOOST_REQUIRE_MESSAGE( invokeServer.server_started(), "Server failed to start on " << invokeServer.host() << ":" << invokeServer.port() );
std::string path = File::test_data("Client/test/data/lifecycle.txt","Client");
ClientInvoker theClient(invokeServer.host(), invokeServer.port());
BOOST_REQUIRE_MESSAGE(theClient.loadDefs(path) == 0,"load defs failed \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.getDefs() == 0,CtsApi::get() << " failed should return 0\n" << theClient.errorMsg());
if (ClientEnvironment::hostSpecified().empty()) {
// server started locally
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::HALTED,"Expected INITIAL server state HALTED but found " << SState::to_string(theClient.defs()->server().get_state()));
}
BOOST_REQUIRE_MESSAGE(theClient.shutdownServer() == 0,CtsApi::shutdownServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.getDefs() == 0,CtsApi::get() << " failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::SHUTDOWN,"Expected server state SHUTDOWN but found " << SState::to_string(theClient.defs()->server().get_state()));
BOOST_REQUIRE_MESSAGE(theClient.haltServer() == 0,CtsApi::haltServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.getDefs() == 0,CtsApi::get() << " failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::HALTED,"Expected server state HALTED but found " << SState::to_string(theClient.defs()->server().get_state()));
BOOST_REQUIRE_MESSAGE(theClient.restartServer() == 0,CtsApi::restartServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.getDefs() == 0,CtsApi::get() << " failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::RUNNING,"Expected server state RUNNING but found " << SState::to_string(theClient.defs()->server().get_state()));
/// Repeat test using sync_local() to test incremental changes of server
BOOST_REQUIRE_MESSAGE(theClient.shutdownServer() == 0,CtsApi::shutdownServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0," failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::SHUTDOWN,"Expected server state SHUTDOWN but found " << SState::to_string(theClient.defs()->server().get_state()));
BOOST_REQUIRE_MESSAGE(theClient.haltServer() == 0,CtsApi::haltServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0," failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::HALTED,"Expected server state HALTED but found " << SState::to_string(theClient.defs()->server().get_state()));
BOOST_REQUIRE_MESSAGE(theClient.restartServer() == 0,CtsApi::restartServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0," failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::RUNNING,"Expected server state RUNNING but found " << SState::to_string(theClient.defs()->server().get_state()));
if (ClientEnvironment::hostSpecified().empty()) {
// This check only valid if server was invoked locally. Ignore for remote servers
// make sure edit history updated
BOOST_REQUIRE_MESSAGE(theClient.edit_history(Str::ROOT_PATH()) == 0,CtsApi::to_string(CtsApi::edit_history(Str::ROOT_PATH())) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.server_reply().get_string_vec().size() == 7,"Expected edit history of size 7, but found " << theClient.server_reply().get_string_vec().size());
// make sure edit history was *NOT* serialized, It is only serialized when check pointing
BOOST_REQUIRE_MESSAGE(theClient.getDefs() == 0,CtsApi::get() << " failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->get_edit_history(Str::ROOT_PATH()).size() == 0,"Expected edit history of size 0, but found " << theClient.defs()->get_edit_history(Str::ROOT_PATH()).size());
// clear edit history
BOOST_REQUIRE_MESSAGE(theClient.edit_history("clear") == 0,CtsApi::to_string(CtsApi::edit_history("clear")) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.edit_history(Str::ROOT_PATH()) == 0,CtsApi::to_string(CtsApi::edit_history(Str::ROOT_PATH())) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.server_reply().get_string_vec().size() == 0,"Expected no edit history " << theClient.server_reply().get_string_vec().size());
}
}
BOOST_AUTO_TEST_CASE( test_server_state_changes_with_auto_sync )
{
/// This will remove checkpt and backup , to avoid server from loading it. (i.e from previous test)
InvokeServer invokeServer("Client:: ...test_server_state_changes_with_auto_sync:",SCPort::next());
BOOST_REQUIRE_MESSAGE( invokeServer.server_started(), "Server failed to start on " << invokeServer.host() << ":" << invokeServer.port() );
std::string path = File::test_data("Client/test/data/lifecycle.txt","Client");
ClientInvoker theClient(invokeServer.host(), invokeServer.port());
theClient.set_auto_sync(true);
BOOST_REQUIRE_MESSAGE(theClient.loadDefs(path) == 0,"load defs failed \n" << theClient.errorMsg());
if (ClientEnvironment::hostSpecified().empty()) {
// server started locally
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::HALTED,"Expected INITIAL server state HALTED but found " << SState::to_string(theClient.defs()->server().get_state()));
}
BOOST_REQUIRE_MESSAGE(theClient.shutdownServer() == 0,CtsApi::shutdownServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::SHUTDOWN,"Expected server state SHUTDOWN but found " << SState::to_string(theClient.defs()->server().get_state()));
BOOST_REQUIRE_MESSAGE(theClient.haltServer() == 0,CtsApi::haltServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::HALTED,"Expected server state HALTED but found " << SState::to_string(theClient.defs()->server().get_state()));
BOOST_REQUIRE_MESSAGE(theClient.restartServer() == 0,CtsApi::restartServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->server().get_state() == SState::RUNNING,"Expected server state RUNNING but found " << SState::to_string(theClient.defs()->server().get_state()));
if (ClientEnvironment::hostSpecified().empty()) {
// This check only valid if server was invoked locally. Ignore for remote servers
// make sure edit history updated
BOOST_REQUIRE_MESSAGE(theClient.edit_history(Str::ROOT_PATH()) == 0,CtsApi::to_string(CtsApi::edit_history(Str::ROOT_PATH())) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.server_reply().get_string_vec().size() == 8 && theClient.server_reply().get_string_vec().size() <= Defs::max_edit_history_size_per_node(),
"Expected edit history of size 8, but found " << theClient.server_reply().get_string_vec().size()
<< "\n" << Str::dump_string_vec(theClient.server_reply().get_string_vec()));
// make sure edit history was *NOT* serialized, It is only serialized when check pointing
BOOST_REQUIRE_MESSAGE(theClient.getDefs() == 0,CtsApi::get() << " failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs()->get_edit_history(Str::ROOT_PATH()).size() == 0,"Expected edit history of size 0, but found " << theClient.defs()->get_edit_history(Str::ROOT_PATH()).size());
}
}
BOOST_AUTO_TEST_CASE( test_server_stress_test )
{
/// This will remove checkpt and backup , to avoid server from loading it. (i.e from previous test)
InvokeServer invokeServer("Client:: ...test_server_stress_test:",SCPort::next());
BOOST_REQUIRE_MESSAGE( invokeServer.server_started(), "Server failed to start on " << invokeServer.host() << ":" << invokeServer.port() );
std::string path = File::test_data("Client/test/data/lifecycle.txt","Client");
ClientInvoker theClient(invokeServer.host(), invokeServer.port());
int load = 125;
#ifdef ECF_OPENSSL
if (getenv("ECF_SSL")) load = 30;
#endif
{
boost::timer::cpu_timer boost_timer;
DurationTimer duration_timer;
Timer<std::chrono::milliseconds> chrono_timer;
for(int i = 0; i < load; i++) {
BOOST_REQUIRE_MESSAGE(theClient.delete_all() == 0,CtsApi::to_string(CtsApi::delete_node()) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.loadDefs(path) == 0,"load defs failed \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.suspend("/suite1") == 0,"should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.resume("/suite1") == 0,"should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.shutdownServer() == 0,CtsApi::shutdownServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.haltServer() == 0,CtsApi::haltServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.restartServer() == 0,CtsApi::restartServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.force("/suite1","unknown",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs().get(),"Server returned a NULL defs");
BOOST_REQUIRE_MESSAGE(theClient.defs()->suiteVec().size() >= 1," no suite ?");
}
cout << " Server handled " << load * 16
<< " requests in boost_timer(" << boost_timer.format(3,Str::cpu_timer_format()) << ")"
<< " DurationTimer(" << to_simple_string(duration_timer.elapsed()) << ")"
<< " Chrono_timer(" << std::chrono::duration<double,std::milli>(chrono_timer.elapsed()).count() << " milli)"
<< endl;
}
{
theClient.set_auto_sync(true);
boost::timer::cpu_timer boost_timer; // measures CPU, replace with cpu_timer with boost > 1.51, measures cpu & elapsed
DurationTimer duration_timer;
Timer<std::chrono::milliseconds> chrono_timer;
for(int i = 0; i < load; i++) {
BOOST_REQUIRE_MESSAGE(theClient.delete_all() == 0,CtsApi::to_string(CtsApi::delete_node()) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.loadDefs(path) == 0,"load defs failed \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.suspend("/suite1") == 0,"should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.resume("/suite1") == 0,"should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.shutdownServer() == 0,CtsApi::shutdownServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.haltServer() == 0,CtsApi::haltServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.restartServer() == 0,CtsApi::restartServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.force("/suite1","unknown",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE(theClient.defs().get(),"Server returned a NULL defs");
BOOST_REQUIRE_MESSAGE(theClient.defs()->suiteVec().size() >= 1," no suite ?");
}
cout << " Server handled " << load * 8
<< " requests in boost_timer(" << boost_timer.format(3,Str::cpu_timer_format()) << ")"
<< " DurationTimer(" << to_simple_string(duration_timer.elapsed()) << ")"
<< " Chrono_timer(" << std::chrono::duration<double,std::milli>(chrono_timer.elapsed()).count() << " milli)"
<< " *with* AUTO SYNC" << endl;
}
}
BOOST_AUTO_TEST_CASE( test_server_group_stress_test )
{
/// This is exactly the same test as above, but uses the group command
/// This should be faster as the network traffic should be a lot less
InvokeServer invokeServer("Client:: ...test_server_group_stress_test:",SCPort::next());
BOOST_REQUIRE_MESSAGE( invokeServer.server_started(), "Server failed to start on " << invokeServer.host() << ":" << invokeServer.port() );
std::string path = File::test_data("Client/test/data/lifecycle.txt","Client");
boost::timer::cpu_timer boost_timer; // measures CPU, replace with cpu_timer with boost > 1.51, measures cpu & elapsed
DurationTimer duration_timer;
ClientInvoker theClient(invokeServer.host(), invokeServer.port());
std::string groupRequest = CtsApi::to_string(CtsApi::delete_node());
groupRequest += ";";
groupRequest += CtsApi::to_string(CtsApi::loadDefs(path,true/*force*/,false/*check_only*/,false/*print*/));
groupRequest += ";";
groupRequest += CtsApi::shutdownServer();
groupRequest += ";";
groupRequest += CtsApi::haltServer();
groupRequest += ";";
groupRequest += CtsApi::restartServer();
groupRequest += ";";
groupRequest += CtsApi::restartServer();
groupRequest += ";";
groupRequest += CtsApi::checkPtDefs();
groupRequest += ";";
groupRequest += CtsApi::get();
//cout << "groupRequest = " << groupRequest << "\n";
int load = 125;
#ifdef ECF_OPENSSL
if (getenv("ECF_SSL")) load = 30;
#endif
for(int i = 0; i < load; i++) {
BOOST_REQUIRE_MESSAGE( theClient.group(groupRequest) == 0,"Group request " << CtsApi::group(groupRequest) << " failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.defs().get(),"Server returned a NULL defs");
BOOST_REQUIRE_MESSAGE( theClient.defs()->suiteVec().size() >= 1," no suite ?");
}
cout << " Server handled " << load * 8
<< " commands using " << load << " group requests in boost_timer(" << boost_timer.format(3,Str::cpu_timer_format())
<< ") DurationTimer(" << to_simple_string(duration_timer.elapsed())
<< ")" << endl;
}
BOOST_AUTO_TEST_CASE( test_server_stress_test_2 )
{
/// More extensive stress test, using as many user based command as possible.
///
/// This will remove checkpt and backup , to avoid server from loading it. (i.e from previous test)
InvokeServer invokeServer("Client:: ...test_server_stress_test_2:",SCPort::next());
BOOST_REQUIRE_MESSAGE( invokeServer.server_started(), "Server failed to start on " << invokeServer.host() << ":" << invokeServer.port() );
std::string path = File::test_data("Client/test/data/lifecycle.txt","Client");
Zombie z(Child::USER,ecf::Child::INIT,ZombieAttr::get_default_attr(Child::USER),"path_to_task","DUMMY_JOBS_PASSWORD", "DUMMY_PROCESS_OR_REMOTE_ID",1,"host");
std::vector<std::string> suites; suites.emplace_back("suite1"); suites.emplace_back("made_up_suite");
std::vector<std::string> nodes_to_delete;
nodes_to_delete.emplace_back("/suite1/family2/aa"); // these should exist in lifecycle.txt
nodes_to_delete.emplace_back("/suite1/family2/bb");
#if defined(HPUX)
int load = 10; // On non linux systems use different load otherwise it takes to long
#elif defined(_AIX)
int load = 65; // On non linux systems use different load otherwise it takes to long
#else
int load = 130;
#endif
#ifdef ECF_OPENSSL
if (getenv("ECF_SSL")) load = 10;
#endif
boost::timer::cpu_timer boost_timer; // measures CPU, replace with cpu_timer with boost > 1.51, measures cpu & elapsed
DurationTimer duration_timer;
ClientInvoker theClient(invokeServer.host(), invokeServer.port());
theClient.set_throw_on_error(false);
for(int i = 0; i < load; i++) {
BOOST_REQUIRE_MESSAGE( theClient.pingServer() == 0, " ping should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.delete_all() == 0,CtsApi::to_string(CtsApi::delete_node()) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.loadDefs(path) == 0,"load defs failed \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.shutdownServer() == 0,CtsApi::shutdownServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.haltServer() == 0,CtsApi::haltServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.restartServer() == 0,CtsApi::restartServer() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.news_local() == 0, " new local failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.sync_local() == 0, "failed should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.stats() == 0,CtsApi::stats() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.stats_server() == 0,CtsApi::stats_server() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.suites() == 0,CtsApi::suites() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.server_version() == 0,CtsApi::server_version() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.debug_server_off() == 0,CtsApi::debug_server_off() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.check("/suite1") == 0,"check should return 0\n" << theClient.errorMsg()); //13
BOOST_REQUIRE_MESSAGE( theClient.logMsg("start") == 0,"log msg should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.get_log_path() == 0,"get_log_path should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.getLog(1) == 0,"get_log last line should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.flushLog() == 0,"flushLog should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1","unknown",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1","complete",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1","submitted",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1","active",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1","aborted",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1","queued",true) == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1/family1/a:myEvent","set") == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.force("/suite1/family1/a:myEvent","clear") == 0,"check should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.zombieGet() == 0,CtsApi::zombieGet() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.zombieFob(z) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.zombieFail(z) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.zombieAdopt(z) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.zombieBlock(z) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.zombieRemove(z) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.zombieKill(z) == 0, " should return 0\n" << theClient.errorMsg()); //19
BOOST_REQUIRE_MESSAGE( theClient.suspend("/suite1") == 0,CtsApi::to_string(CtsApi::suspend("/suite1"))<< " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.resume("/suite1") == 0,CtsApi::to_string(CtsApi::resume("/suite1")) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.edit_history("/suite1") == 0,CtsApi::to_string(CtsApi::edit_history("/suite1")) << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.replace("/suite1",path) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.replace("/suite1",path,true) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.replace("/suite1",path,true, true) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.replace("/suite1",path,false, true) == 0, " should return 0\n" << theClient.errorMsg()); //26
BOOST_REQUIRE_MESSAGE( theClient.checkPtDefs() == 0,CtsApi::checkPtDefs() << " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.checkPtDefs(ecf::CheckPt::NEVER) == 0," should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.checkPtDefs(ecf::CheckPt::ALWAYS) == 0," should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.checkPtDefs(ecf::CheckPt::ON_TIME,180) == 0," should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.checkPtDefs(ecf::CheckPt::ON_TIME) == 0," should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.checkPtDefs(ecf::CheckPt::UNDEFINED) == 0," should return 0\n" << theClient.errorMsg()); //32
BOOST_REQUIRE_MESSAGE( theClient.checkPtDefs(ecf::CheckPt::ON_TIME,CheckPt::default_interval()) == 0," should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.freeDep("/suite1") == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.freeDep("/suite1",true,true,true,true) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.freeDep("/suite1",true) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.freeDep("/suite1",false,true) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.freeDep("/suite1",false,false,true) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.freeDep("/suite1",false,false,false,true) == 0, " should return 0\n" << theClient.errorMsg()); //38
BOOST_REQUIRE_MESSAGE( theClient.ch_register(true,suites) == 0,"--ch_register \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch_suites() == 0,"--ch_suites should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch_add(1,suites) == 0,"--ch_add \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch_remove(1,suites) == 0,"--ch_remove \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch_auto_add(1,true) == 0,"--ch_auto_add \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch_auto_add(1,false) == 0,"--ch_auto_add \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch_drop(1) == 0,"--ch_drop should return 0\n" << theClient.errorMsg()); //45
BOOST_REQUIRE_MESSAGE( theClient.ch_register(true,suites) == 0,"--ch_register \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch1_add(suites) == 0,"--ch1_add \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch1_auto_add(true) == 0,"--ch1_auto_add \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch1_auto_add(false) == 0,"--ch1_auto_add \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch1_remove(suites) == 0,"--ch1_remove \n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.ch1_drop() == 0,"--ch1_drop \n" << theClient.errorMsg()); //51
BOOST_REQUIRE_MESSAGE( theClient.order("/suite1","top") == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.order("/suite1","bottom") == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.order("/suite1","alpha") == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.order("/suite1",NOrder::ORDER) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.order("/suite1",NOrder::UP) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.order("/suite1",NOrder::DOWN) == 0, " should return 0\n" << theClient.errorMsg()); //57
BOOST_REQUIRE_MESSAGE( theClient.delete_node("/suite1/family1/a") == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.delete_nodes(nodes_to_delete) == 0, " should return 0\n" << theClient.errorMsg());
BOOST_REQUIRE_MESSAGE( theClient.getDefs() == 0,CtsApi::get() << " failed should return 0\n" << theClient.errorMsg()); //60
BOOST_REQUIRE_MESSAGE( theClient.defs().get(),"Server returned a NULL defs");
BOOST_REQUIRE_MESSAGE( theClient.defs()->suiteVec().size() >= 1," no suite ?");
}
int no_of_client_calls = 74;
cout << " Server handled " << load * no_of_client_calls
<< " requests in boost_timer(" << boost_timer.format(3,Str::cpu_timer_format())
<< ") DurationTimer(" << to_simple_string(duration_timer.elapsed())
<< ")" << endl;
}
BOOST_AUTO_TEST_SUITE_END()
| 71.090909 | 205 | 0.689427 | ecmwf |
296d29c557d2af33cc5fdbd246a8c071e25c3405 | 24,686 | cpp | C++ | IGC/Compiler/CISACodeGen/URBPartialWrites.cpp | mateuszchudyk/intel-graphics-compiler | d0e75bad9778a428a7a43768084852e3b4414e0e | [
"Intel",
"MIT"
] | 1 | 2022-02-10T11:09:49.000Z | 2022-02-10T11:09:49.000Z | IGC/Compiler/CISACodeGen/URBPartialWrites.cpp | mateuszchudyk/intel-graphics-compiler | d0e75bad9778a428a7a43768084852e3b4414e0e | [
"Intel",
"MIT"
] | null | null | null | IGC/Compiler/CISACodeGen/URBPartialWrites.cpp | mateuszchudyk/intel-graphics-compiler | d0e75bad9778a428a7a43768084852e3b4414e0e | [
"Intel",
"MIT"
] | null | null | null | /*========================== begin_copyright_notice ============================
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "common/LLVMWarningsPush.hpp"
#include <llvm/Analysis/CFG.h>
#include <llvm/Analysis/PostDominators.h>
#include <llvm/IR/Dominators.h>
#include <llvm/IR/IntrinsicInst.h>
#include "common/LLVMWarningsPop.hpp"
#include "common/IGCIRBuilder.h"
#include "Compiler/CodeGenPublic.h"
#include "Compiler/MetaDataUtilsWrapper.h"
#include "GenISAIntrinsics/GenIntrinsics.h"
#include "GenISAIntrinsics/GenIntrinsicInst.h"
#include "Probe/Assertion.h"
#include "IGCPassSupport.h"
#include "URBPartialWrites.hpp"
using namespace llvm;
namespace IGC
{
// This pass converts URB partial writes into full writes. Depending on platform
// type the minimum URB full-write access granularity (referred as `full-write
// granularity` for the rest of this file) is 32 or 16 bytes.
// A URB partial write is a URB write that writes chunks of data smaller than
// `full-write granularity` or writes data at address not aligned to `full-write
// granularity`.
//
// A URB partial write instruction can be changed to a full-mask write if it can
// be proved that writing additional URB channels does not overwrite data that
// is observable by URBReadOutput instruction in current shader stage or read
// in the next shader stage (i.e. written by other URBWrite instructions in
// current stage).
//
// High-level algorithm:
// For every partial write instruction (A):
// - check if there exists a different URB write instruction (B) that
// potentially writes to the same chunk of URB and that B is not strictly
// dominated by A and does not strictly post-dominates A
// The dominance/post-dominance condition is not valid in mesh and task
// shaders. In mesh and task shaders a single URB location may be (partially)
// written from multiple HW threads.
// - check if there exists a URB read instruction (C) that potentially reads
// the same chunk of URB accessed by A and is reachable from A
// If both conditions above are `false` the full mask can be set.
class URBPartialWrites : public FunctionPass
{
public:
static char ID;
URBPartialWrites() :
m_SafeToExtend(std::make_pair(true, true)),
m_SharedURB(false),
FunctionPass(ID)
{
initializeURBPartialWritesPass(*PassRegistry::getPassRegistry());
}
virtual bool runOnFunction(Function& F);
virtual void getAnalysisUsage(AnalysisUsage& AU) const
{
AU.setPreservesCFG();
AU.addRequired<CodeGenContextWrapper>();
AU.addRequired<MetaDataUtilsWrapper>();
AU.addRequired<DominatorTreeWrapperPass>();
AU.addRequired<PostDominatorTreeWrapperPass>();
AU.addRequired<LoopInfoWrapperPass>();
AU.addPreserved<DominatorTreeWrapperPass>();
AU.addPreserved<PostDominatorTreeWrapperPass>();
AU.addPreserved<LoopInfoWrapperPass>();
}
virtual llvm::StringRef getPassName() const { return "URBPartialWrites"; }
private:
// URB access descriptor
// member 0 - runtime URB offset
// member 1 - constant URB offset
// member 2 - URBReadOutput or URBWrite intrinsic
// member 3 - intrinsic instruction number within its basic block
typedef std::tuple<Value*, uint, GenIntrinsicInst*, uint> URBAccess;
void GetURBWritesAndReads(Function& F);
bool ResolvePartialWrites16B();
bool ResolvePartialWrites32B();
bool Dominates(
const URBAccess& access0,
const URBAccess& access1) const;
bool PostDominates(
const URBAccess& access0,
const URBAccess& access1) const;
std::pair<bool, bool> IsSafeToExtendChannelMask(
const URBAccess& write0,
const URBAccess& access1) const;
std::pair<bool, bool> CheckURBWrites(
const URBAccess& write0) const;
std::pair<bool, bool> CheckURBReads(
const URBAccess& write0) const;
private:
const std::pair<bool, bool> m_SafeToExtend;
bool m_SharedURB; // multiple HW threads may write the same URB location
std::vector<URBAccess> m_UrbWrites;
std::vector<URBAccess> m_UrbReads;
};
char URBPartialWrites::ID = 0;
static inline uint GetZExtValue(Value* v)
{
IGC_ASSERT(isa<ConstantInt>(v));
return int_cast<uint>(cast<ConstantInt>(v)->getZExtValue());
}
// Returns true if `v` is a llvm::Constant* and is equal to `a`.
static inline bool IsConstAndEqualTo(Value* v, uint a)
{
if (isa<ConstantInt>(v) && a == GetZExtValue(v))
{
return true;
}
return false;
}
// Returns `v` casted to llvm::Instruction* if `v` is an llvm::Instruction* with
// opcode equal to the template argument.
template <uint Opcode>
Instruction* dyn_cast(Value* v)
{
if (isa<Instruction>(v) &&
Operator::getOpcode(v) == Opcode)
{
return cast<Instruction>(v);
}
return nullptr;
}
// Returns the channel mask for a URBReadOutput or URBWrite instruction. For
// URBWrite, if channel mask operand is not a constant the function returns the
// mask of channels that are potentially written by the instruction.
// For URBReadOutput, if all usages are not ExtractElement instruction with
// constant indices the function returns the mask of channels that are
// potentially required.
static inline uint GetChannelMask(GenIntrinsicInst* inst)
{
if (inst->getIntrinsicID() == llvm::GenISAIntrinsic::GenISA_URBReadOutput)
{
uint mask = 0;
for (auto iit = inst->user_begin(), eit = inst->user_end();
iit != eit;
++iit)
{
ExtractElementInst* ee = dyn_cast<ExtractElementInst>(*iit);
if (ee && isa<ConstantInt>(ee->getIndexOperand()))
{
mask |= 1 << GetZExtValue(ee->getIndexOperand());
}
else
{
mask = 0xFF;
break;
}
}
return mask;
}
IGC_ASSERT(inst->getIntrinsicID() == llvm::GenISAIntrinsic::GenISA_URBWrite);
Value* channelMask = inst->getOperand(1);
uint mask = 0xFF;
if (isa<ConstantInt>(channelMask))
{
mask = GetZExtValue(channelMask);
}
else
{
// Non-constant mask:
// Pattern 1:
// %155 = and i32 %153, 3
// %156 = shl i32 1, %155
// Pattern 2:
// %155 = and i32 %153, 3
// %156 = shl i32 8, %155
Instruction* shlInst = dyn_cast<Instruction::Shl>(channelMask);
Instruction* andInst = shlInst ?
dyn_cast<Instruction::And>(shlInst->getOperand(1)) : nullptr;
if (andInst && IsConstAndEqualTo(andInst->getOperand(1), 3))
{
if (IsConstAndEqualTo(shlInst->getOperand(0), 1))
{
mask = 0x0F;
}
if (IsConstAndEqualTo(shlInst->getOperand(0), 8))
{
mask = 0xF0;
}
}
}
// disable channels corresponding to the undef operands
for (uint i = 0; i < 8; ++i)
{
if (isa<UndefValue>(inst->getOperand(2 + i)))
{
mask &= ~(1 << i);
}
}
return mask;
}
// Returns true if the `val` is even. If the function returns `false`
// `val` can be even or odd.
static inline bool IsEven(Value* val)
{
if (val == nullptr)
{
return true;
}
Instruction* inst = dyn_cast<Instruction>(val);
if (inst &&
inst->getNumOperands() == 2 &&
isa<ConstantInt>(inst->getOperand(1)))
{
const uint src1 = GetZExtValue(inst->getOperand(1));
if (Operator::getOpcode(inst) == Instruction::Shl &&
src1 > 0)
{
return true;
}
if (Operator::getOpcode(inst) == Instruction::Mul &&
(src1 % 2) == 0)
{
return true;
}
}
return false;
}
// Collects all URBWrite and URBReadOutput instructions in a function.
void URBPartialWrites::GetURBWritesAndReads(Function& F)
{
for (auto& BB : F)
{
uint instCounter = 0;
for (auto II = BB.begin(), IE = BB.end();
II != IE;
++II, ++instCounter)
{
GenIntrinsicInst* intr = dyn_cast<GenIntrinsicInst>(&(*II));
if (intr &&
intr->getIntrinsicID() == llvm::GenISAIntrinsic::GenISA_URBWrite)
{
std::pair<Value*, uint> baseAndOffset =
GetURBBaseAndOffset(intr->getOperand(0));
m_UrbWrites.push_back(std::make_tuple(
baseAndOffset.first,
baseAndOffset.second,
intr,
instCounter));
}
else if (intr &&
intr->getIntrinsicID() == llvm::GenISAIntrinsic::GenISA_URBReadOutput)
{
std::pair<Value*, uint> baseAndOffset =
GetURBBaseAndOffset(intr->getOperand(0));
m_UrbReads.push_back(std::make_tuple(
baseAndOffset.first,
baseAndOffset.second,
intr,
instCounter));
}
}
}
}
// Checks if extending the channel mask of the `write0` may potentially
// overwrite data accessed by `access1`. The returned value is a pair of `bool`
// values, the first member corresponds to the lower 16-byte chunk and the
// second member corresponds to the higher 16-byte chunk. If true is returned it
// means that the channel mask of corresponding 16-byte chunk can be extended
// to full mask.
std::pair<bool, bool> URBPartialWrites::IsSafeToExtendChannelMask(
const URBAccess& write0,
const URBAccess& access1) const
{
Value* const offset0 = std::get<0>(write0);
const uint constOffset0 = std::get<1>(write0);
GenIntrinsicInst* const intr0 = std::get<2>(write0);
IGC_ASSERT(intr0->getIntrinsicID() == llvm::GenISAIntrinsic::GenISA_URBWrite);
const bool immMask0 = isa<ConstantInt>(intr0->getOperand(1));
const uint mask0 = GetChannelMask(intr0);
Value* const offset1 = std::get<0>(access1);
const uint constOffset1 = std::get<1>(access1);
GenIntrinsicInst* const intr1 = std::get<2>(access1);
const uint mask1 = GetChannelMask(intr1);
// Get lower 4 bits of channel mask
auto Lo = [](uint mask)->uint
{
return mask & 0xF;
};
// Get higher 4 bits of channel mask
auto Hi = [](uint mask)->uint
{
return (mask >> 4) & 0xF;
};
// Returns true if full mask can be set.
auto SafeToSetFullMask = [this, immMask0](
uint mask0,
uint mask1)->bool
{
if (mask1 == 0)
{
// not overlapping accesses
return true;
}
if (immMask0 &&
!m_SharedURB &&
(mask0 | mask1) == mask0)
{
// The second URB access is for a subset of channels accessed by the
// first access.
return true;
}
return false;
};
bool overlapLo = false;
bool overlapHi = false;
if ((offset0 == nullptr && offset1 == nullptr) ||
offset0 == offset1)
{
if (constOffset0 == constOffset1)
{
// e.g.:
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 1, ...)
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 18, ...)
if (!SafeToSetFullMask(Lo(mask0), Lo(mask1)))
{
overlapLo = true;
}
// e.g.:
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 1, ...)
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 18, ...)
if (!SafeToSetFullMask(Hi(mask0), Hi(mask1)))
{
overlapHi = true;
}
}
// e.g.:
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 16, ...)
// call void @llvm.genx.GenISA.URBWrite(i32 2, i32 2, ...)
else if (constOffset0 + 1 == constOffset1 &&
!SafeToSetFullMask(Hi(mask0), Lo(mask1)))
{
overlapHi = true;
}
// e.g.:
// call void @llvm.genx.GenISA.URBWrite(i32 2, i32 2, ...)
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 16, ...)
else if (constOffset1 + 1 == constOffset0 &&
!SafeToSetFullMask(Lo(mask0), Hi(mask1)))
{
overlapLo = true;
}
}
// e.g.:
// %offset0 = and i32 %153, 2
// call void @llvm.genx.GenISA.URBWrite(i32 offset0, i32 2, ...)
// call void @llvm.genx.GenISA.URBWrite(i32 0, i32 16, ...)
else if ((offset0 != nullptr && offset1 == nullptr) &&
(constOffset1 < constOffset0 && constOffset1 + 2 <= constOffset0))
{
// no ovelap
}
// e.g.:
// call void @llvm.genx.GenISA.URBWrite(i32 0, i32 2, ...)
// %offset1 = and i32 %153, 2
// call void @llvm.genx.GenISA.URBWrite(i32 offset1, i32 16, ...)
else if ((offset0 == nullptr && offset1 != nullptr) &&
(constOffset0 < constOffset1 && constOffset0 + 2 <= constOffset1))
{
// no ovelap
}
// e.g.:
// %offset0 = and i32 %153, 2
// call void @llvm.genx.GenISA.URBWrite(i32 offset0, i32 2, ...)
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 16, ...)
else if ((offset0 != nullptr && offset1 == nullptr) &&
constOffset1 + 1 == constOffset0 &&
!SafeToSetFullMask(Lo(mask0), Hi(mask1)))
{
overlapLo = true;
}
// e.g.:
// call void @llvm.genx.GenISA.URBWrite(i32 1, i32 32, ...)
// %offset1 = and i32 %153, 2
// call void @llvm.genx.GenISA.URBWrite(i32 offset1, i32 2, ...)
else if ((offset0 == nullptr && offset1 != nullptr) &&
constOffset0 + 1 == constOffset1 &&
!SafeToSetFullMask(Hi(mask0), Lo(mask1)))
{
overlapHi = true;
}
else
{
overlapLo = true;
overlapHi = true;
}
return std::make_pair(!overlapLo, !overlapHi);
}
// Checks if there exists a URBWrite instruction (different than `write0`) such
// that:
// - it is not strictly dominated by `write0` and does not strictly
// post-dominates `write0`
// - writes to URB channels that are not written by `write0` but belong to the
// 32-byte chunk accessed by `write0`
// The returned value is a pair of `bool` values, the first member corresponds
// to the lower 16-byte chunk and the second member corresponds to the higher
// 16-byte chunk. If true is returned it means that the channel mask of
// corresponding 16-byte chunk can be extended to full mask.
std::pair<bool, bool> URBPartialWrites::CheckURBWrites(
const URBAccess& write0) const
{
std::pair<bool, bool> safeToExtend = m_SafeToExtend;
for (uint k = 0; k < m_UrbWrites.size(); ++k)
{
const URBAccess& write1 = m_UrbWrites[k];
std::pair<bool, bool> extendMask = IsSafeToExtendChannelMask(write0, write1);
if (extendMask == m_SafeToExtend)
{
continue;
}
if (write0 != write1 &&
!Dominates(write0, write1) &&
!PostDominates(write1, write0))
{
safeToExtend.first &= extendMask.first;
safeToExtend.second &= extendMask.second;
}
// In Mesh and Task shaders URB may be written from multiple HW threads.
else if (write0 != write1 && m_SharedURB)
{
safeToExtend.first &= extendMask.first;
safeToExtend.second &= extendMask.second;
};
if (!safeToExtend.first && !safeToExtend.second)
{
break;
}
}
return safeToExtend;
}
// Checks if there exists a URBReadOutput instruction such that:
// - URBReadOutput is reachable from `write0`
// - reads URB channels that are not written by `write0` but belong to the
// 32-byte chunk accessed by `write0`
// The returned value is a pair of `bool` values, the first member corresponds
// to the lower 16-byte chunk and the second member corresponds to the higher
// 16-byte chunk. If true is returned it means that the channel mask of
// corresponding 16-byte chunk can be extended to full mask.
std::pair<bool, bool> URBPartialWrites::CheckURBReads(
const URBAccess& write) const
{
DominatorTree* DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
GenIntrinsicInst* const writeIntr = std::get<2>(write);
const bool immMask = isa<ConstantInt>(writeIntr->getOperand(1));
const uint writeMask = GetChannelMask(writeIntr);
std::pair<bool, bool> safeToExtend = m_SafeToExtend;
for (uint i = 0; i < m_UrbReads.size(); ++i)
{
const URBAccess& read = m_UrbReads[i];
GenIntrinsicInst* const readIntr = std::get<2>(read);
const uint readMask1 = GetChannelMask(readIntr);
std::pair<bool, bool> extendMask = IsSafeToExtendChannelMask(write, read);
if (extendMask == m_SafeToExtend)
{
continue;
}
// Note: this method can potentially be refined by checking if between
// the `write` and the `read` exists a different URBWrite that
// overwrites the URB chunk written by `write`.
if (isPotentiallyReachable(writeIntr, readIntr, nullptr, DT))
{
safeToExtend.first &= extendMask.first;
safeToExtend.second &= extendMask.second;
if (!safeToExtend.first && !safeToExtend.second)
{
break;
}
}
}
return safeToExtend;
}
// Returns true if `access0` strictly dominates `access1`
bool URBPartialWrites::Dominates(
const URBAccess& access0,
const URBAccess& access1) const
{
GenIntrinsicInst* const intr0 = std::get<2>(access0);
GenIntrinsicInst* const intr1 = std::get<2>(access1);
if (intr0 == intr1)
{
return false;
}
if (intr0->getParent() == intr1->getParent())
{
return std::get<3>(access0) < std::get<3>(access1);
}
DominatorTree* DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
return DT->dominates(intr0->getParent(), intr1->getParent());
}
// Returns true if `access0` strictly post-dominates `access1`
bool URBPartialWrites::PostDominates(
const URBAccess& access0,
const URBAccess& access1) const
{
GenIntrinsicInst* const intr0 = std::get<2>(access0);
GenIntrinsicInst* const intr1 = std::get<2>(access1);
if (intr0 == intr1)
{
return false;
}
if (intr0->getParent() == intr1->getParent())
{
return std::get<3>(access0) > std::get<3>(access1);
}
PostDominatorTree* PDT = &getAnalysis<PostDominatorTreeWrapperPass>().getPostDomTree();
return PDT->properlyDominates(intr0->getParent(), intr1->getParent());
}
// Converts URB partial writes into full writes on platforms with `full-write
// granularity` of 32 bytes.
bool URBPartialWrites::ResolvePartialWrites32B()
{
bool modified = false;
LoopInfo* LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
for (uint i = 0; i < m_UrbWrites.size(); ++i)
{
const URBAccess& write0 = m_UrbWrites[i];
Value* const offset0 = std::get<0>(write0);
const uint constOffset0 = std::get<1>(write0);
GenIntrinsicInst* const intr0 = std::get<2>(write0);
const bool immMask0 = isa<ConstantInt>(intr0->getOperand(1));
const uint mask0 = GetChannelMask(intr0);
if (immMask0 && mask0 == 0xFF)
{
// not a partial write
continue;
}
if (!immMask0 && LI->getLoopFor(intr0->getParent()))
{
// not immediate mask and in a loop
continue;
}
if (!IsEven(offset0) || (constOffset0 % 2) == 1)
{
// unaligned URB write
continue;
}
if (m_SafeToExtend == CheckURBWrites(write0) &&
m_SafeToExtend == CheckURBReads(write0))
{
Value* fullMask = ConstantInt::get(
intr0->getOperand(1)->getType(),
0xFF);
intr0->setOperand(1, fullMask);
modified = true;
}
}
return modified;
}
// Converts URB partial writes into full writes on platforms with `full-write
// granularity` of 16 bytes.
bool URBPartialWrites::ResolvePartialWrites16B()
{
bool modified = false;
LoopInfo* LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
for (uint i = 0; i < m_UrbWrites.size(); ++i)
{
const URBAccess& write0 = m_UrbWrites[i];
GenIntrinsicInst* const intr0 = std::get<2>(write0);
const bool immMask0 = isa<ConstantInt>(intr0->getOperand(1));
const uint mask0 = GetChannelMask(intr0);
if (immMask0 &&
(mask0 == 0xFF || mask0 == 0x0F || mask0 == 0xF0))
{
// not a partial write
continue;
}
if (!immMask0 && LI->getLoopFor(intr0->getParent()))
{
// not immediate mask and in a loop
continue;
}
std::pair<bool, bool> extendMask = CheckURBWrites(write0);
std::pair<bool, bool> extendMask1 = CheckURBReads(write0);
bool extendLo = extendMask.first && extendMask1.first;
bool extendHi = extendMask.second && extendMask1.second;
if (extendLo || extendHi)
{
uint newMask0 = mask0;
if (extendLo && (mask0 & 0x0F) != 0)
{
newMask0 |= 0x0F;
}
if (extendHi && (mask0 & 0xF0) != 0)
{
newMask0 |= 0xF0;
}
Type* maskType = intr0->getOperand(1)->getType();
Value* newMask = ConstantInt::get(maskType, newMask0);
if ((!immMask0 && extendLo && extendHi) ||
(!immMask0 && extendLo && (mask0 & 0xF0) == 0) ||
(!immMask0 && extendHi && (mask0 & 0x0F) == 0) ||
(immMask0 && newMask0 != mask0))
{
intr0->setOperand(1, newMask);
modified = true;
}
else if (!immMask0)
{
IGCIRBuilder<> builder(intr0);
uint orMask = extendHi ? 0xF0 : 0x0F;
if ((orMask & mask0) == orMask)
{
newMask = builder.CreateOr(
intr0->getOperand(1),
ConstantInt::get(maskType, orMask));
intr0->setOperand(1, newMask);
modified = true;
}
}
}
}
return modified;
}
bool URBPartialWrites::runOnFunction(Function& F)
{
bool modified = false;
m_UrbWrites.clear();
m_UrbReads.clear();
GetURBWritesAndReads(F);
const CodeGenContext* const ctx = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
if (ctx->type == ShaderType::MESH_SHADER ||
ctx->type == ShaderType::TASK_SHADER)
{
// In Mesh and Task shaders a single URB location may be written from
// multiple HW threads.
const IGC::ModuleMetaData* md =
getAnalysis<MetaDataUtilsWrapper>().getModuleMetaData();
const uint workGroupSize = ctx->type == ShaderType::MESH_SHADER ?
md->msInfo.WorkGroupSize : md->taskInfo.WorkGroupSize;
uint minSimd = ctx->platform.getMinDispatchMode() == SIMDMode::SIMD8 ? 8 : 16;
if (workGroupSize > minSimd)
{
m_SharedURB = true;
}
}
const uint fullWriteGranularity = ctx->platform.getURBFullWriteMinGranularity();
if (fullWriteGranularity == 16)
{
modified = ResolvePartialWrites16B();
}
else
{
IGC_ASSERT(fullWriteGranularity == 32);
modified = ResolvePartialWrites32B();
}
return modified;
}
llvm::FunctionPass* createURBPartialWritesPass()
{
return new URBPartialWrites();
}
#define PASS_FLAG "igc-urb-partial-writes"
#define PASS_DESCRIPTION "Convert URB partial writes to full-mask writes."
#define PASS_CFG_ONLY false
#define PASS_ANALYSIS false
IGC_INITIALIZE_PASS_BEGIN(URBPartialWrites, PASS_FLAG, PASS_DESCRIPTION, PASS_CFG_ONLY, PASS_ANALYSIS)
IGC_INITIALIZE_PASS_DEPENDENCY(CodeGenContextWrapper)
IGC_INITIALIZE_PASS_DEPENDENCY(MetaDataUtilsWrapper)
IGC_INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
IGC_INITIALIZE_PASS_DEPENDENCY(PostDominatorTreeWrapperPass)
IGC_INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass)
IGC_INITIALIZE_PASS_END(URBPartialWrites, PASS_FLAG, PASS_DESCRIPTION, PASS_CFG_ONLY, PASS_ANALYSIS)
} // namespace IGC
| 35.165242 | 102 | 0.604108 | mateuszchudyk |
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 |
2972e23f812deffb1c24b4b95ce84b839f8c37be | 286 | hpp | C++ | worker/include/RTC/RemoteBitrateEstimator/BandwidthUsage.hpp | kicyao/mediasoup | ca8e2d5b57aa2b0d1e5812bb28782d858cd669c6 | [
"0BSD"
] | null | null | null | worker/include/RTC/RemoteBitrateEstimator/BandwidthUsage.hpp | kicyao/mediasoup | ca8e2d5b57aa2b0d1e5812bb28782d858cd669c6 | [
"0BSD"
] | null | null | null | worker/include/RTC/RemoteBitrateEstimator/BandwidthUsage.hpp | kicyao/mediasoup | ca8e2d5b57aa2b0d1e5812bb28782d858cd669c6 | [
"0BSD"
] | null | null | null | #ifndef MS_RTC_REMOTE_BITRATE_ESTIMATOR_BANDWIDTH_USAGE_HPP
#define MS_RTC_REMOTE_BITRATE_ESTIMATOR_BANDWIDTH_USAGE_HPP
// webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h
namespace RTC
{
enum BandwidthUsage
{
kBwNormal,
kBwUnderusing,
kBwOverusing
};
}
#endif
| 16.823529 | 64 | 0.835664 | kicyao |
2973abec041a836ec48096ee61f42e4ffeeebc83 | 11,983 | cpp | C++ | ndn-cxx/mgmt/dispatcher.cpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 106 | 2015-01-06T10:08:29.000Z | 2022-02-27T13:40:16.000Z | ndn-cxx/mgmt/dispatcher.cpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 6 | 2015-10-15T23:21:06.000Z | 2016-12-20T19:03:10.000Z | ndn-cxx/mgmt/dispatcher.cpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 147 | 2015-01-15T15:07:29.000Z | 2022-02-03T13:08:43.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2021 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library 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 3 of the License, or (at your option) any later version.
*
* ndn-cxx library 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 copies of the GNU General Public License and GNU Lesser
* General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
* <http://www.gnu.org/licenses/>.
*
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
*/
#include "ndn-cxx/mgmt/dispatcher.hpp"
#include "ndn-cxx/lp/tags.hpp"
#include "ndn-cxx/util/logger.hpp"
NDN_LOG_INIT(ndn.mgmt.Dispatcher);
namespace ndn {
namespace mgmt {
Authorization
makeAcceptAllAuthorization()
{
return [] (const Name& prefix,
const Interest& interest,
const ControlParameters* params,
const AcceptContinuation& accept,
const RejectContinuation& reject) {
accept("");
};
}
Dispatcher::Dispatcher(Face& face, KeyChain& keyChain,
const security::SigningInfo& signingInfo,
size_t imsCapacity)
: m_face(face)
, m_keyChain(keyChain)
, m_signingInfo(signingInfo)
, m_storage(m_face.getIoService(), imsCapacity)
{
}
Dispatcher::~Dispatcher() = default;
void
Dispatcher::addTopPrefix(const Name& prefix, bool wantRegister,
const security::SigningInfo& signingInfo)
{
bool hasOverlap = std::any_of(m_topLevelPrefixes.begin(), m_topLevelPrefixes.end(),
[&prefix] (const auto& x) {
return x.first.isPrefixOf(prefix) || prefix.isPrefixOf(x.first);
});
if (hasOverlap) {
NDN_THROW(std::out_of_range("top-level prefix overlaps"));
}
TopPrefixEntry& topPrefixEntry = m_topLevelPrefixes[prefix];
if (wantRegister) {
topPrefixEntry.registeredPrefix = m_face.registerPrefix(prefix,
nullptr,
[] (const Name&, const std::string& reason) {
NDN_THROW(std::runtime_error("prefix registration failed: " + reason));
},
signingInfo);
}
for (const auto& entry : m_handlers) {
Name fullPrefix = Name(prefix).append(entry.first);
auto filterHdl = m_face.setInterestFilter(fullPrefix,
[=, cb = entry.second] (const auto&, const auto& interest) {
cb(prefix, interest);
});
topPrefixEntry.interestFilters.emplace_back(std::move(filterHdl));
}
}
void
Dispatcher::removeTopPrefix(const Name& prefix)
{
m_topLevelPrefixes.erase(prefix);
}
bool
Dispatcher::isOverlappedWithOthers(const PartialName& relPrefix) const
{
bool hasOverlapWithHandlers =
std::any_of(m_handlers.begin(), m_handlers.end(),
[&] (const auto& entry) {
return entry.first.isPrefixOf(relPrefix) || relPrefix.isPrefixOf(entry.first);
});
bool hasOverlapWithStreams =
std::any_of(m_streams.begin(), m_streams.end(),
[&] (const auto& entry) {
return entry.first.isPrefixOf(relPrefix) || relPrefix.isPrefixOf(entry.first);
});
return hasOverlapWithHandlers || hasOverlapWithStreams;
}
void
Dispatcher::afterAuthorizationRejected(RejectReply act, const Interest& interest)
{
if (act == RejectReply::STATUS403) {
sendControlResponse(ControlResponse(403, "authorization rejected"), interest);
}
}
void
Dispatcher::queryStorage(const Name& prefix, const Interest& interest,
const InterestHandler& missContinuation)
{
auto data = m_storage.find(interest);
if (data == nullptr) {
// invoke missContinuation to process this Interest if the query fails.
if (missContinuation)
missContinuation(prefix, interest);
}
else {
// send the fetched data through face if query succeeds.
sendOnFace(*data);
}
}
void
Dispatcher::sendData(const Name& dataName, const Block& content, const MetaInfo& metaInfo,
SendDestination option)
{
auto data = make_shared<Data>(dataName);
data->setContent(content).setMetaInfo(metaInfo).setFreshnessPeriod(1_s);
m_keyChain.sign(*data, m_signingInfo);
if (option == SendDestination::IMS || option == SendDestination::FACE_AND_IMS) {
lp::CachePolicy policy;
policy.setPolicy(lp::CachePolicyType::NO_CACHE);
data->setTag(make_shared<lp::CachePolicyTag>(policy));
m_storage.insert(*data, 1_s);
}
if (option == SendDestination::FACE || option == SendDestination::FACE_AND_IMS) {
sendOnFace(*data);
}
}
void
Dispatcher::sendOnFace(const Data& data)
{
try {
m_face.put(data);
}
catch (const Face::Error& e) {
NDN_LOG_ERROR("sendOnFace(" << data.getName() << "): " << e.what());
}
}
void
Dispatcher::processControlCommandInterest(const Name& prefix,
const Name& relPrefix,
const Interest& interest,
const ControlParametersParser& parser,
const Authorization& authorization,
const AuthorizationAcceptedCallback& accepted,
const AuthorizationRejectedCallback& rejected)
{
// /<prefix>/<relPrefix>/<parameters>
size_t parametersLoc = prefix.size() + relPrefix.size();
const name::Component& pc = interest.getName().get(parametersLoc);
shared_ptr<ControlParameters> parameters;
try {
parameters = parser(pc);
}
catch (const tlv::Error&) {
return;
}
AcceptContinuation accept = [=] (const auto& req) { accepted(req, prefix, interest, parameters); };
RejectContinuation reject = [=] (RejectReply reply) { rejected(reply, interest); };
authorization(prefix, interest, parameters.get(), accept, reject);
}
void
Dispatcher::processAuthorizedControlCommandInterest(const std::string& requester,
const Name& prefix,
const Interest& interest,
const shared_ptr<ControlParameters>& parameters,
const ValidateParameters& validateParams,
const ControlCommandHandler& handler)
{
if (validateParams(*parameters)) {
handler(prefix, interest, *parameters,
[=] (const auto& resp) { this->sendControlResponse(resp, interest); });
}
else {
sendControlResponse(ControlResponse(400, "failed in validating parameters"), interest);
}
}
void
Dispatcher::sendControlResponse(const ControlResponse& resp, const Interest& interest, bool isNack)
{
MetaInfo metaInfo;
if (isNack) {
metaInfo.setType(tlv::ContentType_Nack);
}
// control response is always sent out through the face
sendData(interest.getName(), resp.wireEncode(), metaInfo, SendDestination::FACE);
}
void
Dispatcher::addStatusDataset(const PartialName& relPrefix,
Authorization authorize,
StatusDatasetHandler handle)
{
if (!m_topLevelPrefixes.empty()) {
NDN_THROW(std::domain_error("one or more top-level prefix has been added"));
}
if (isOverlappedWithOthers(relPrefix)) {
NDN_THROW(std::out_of_range("status dataset name overlaps"));
}
AuthorizationAcceptedCallback accepted =
std::bind(&Dispatcher::processAuthorizedStatusDatasetInterest, this, _2, _3, std::move(handle));
AuthorizationRejectedCallback rejected = [this] (auto&&... args) {
afterAuthorizationRejected(std::forward<decltype(args)>(args)...);
};
// follow the general path if storage is a miss
InterestHandler missContinuation = std::bind(&Dispatcher::processStatusDatasetInterest, this, _1, _2,
std::move(authorize), std::move(accepted), std::move(rejected));
m_handlers[relPrefix] = [this, miss = std::move(missContinuation)] (auto&&... args) {
this->queryStorage(std::forward<decltype(args)>(args)..., miss);
};
}
void
Dispatcher::processStatusDatasetInterest(const Name& prefix,
const Interest& interest,
const Authorization& authorization,
const AuthorizationAcceptedCallback& accepted,
const AuthorizationRejectedCallback& rejected)
{
const Name& interestName = interest.getName();
bool endsWithVersionOrSegment = interestName.size() >= 1 &&
(interestName[-1].isVersion() || interestName[-1].isSegment());
if (endsWithVersionOrSegment) {
return;
}
AcceptContinuation accept = [=] (const auto& req) { accepted(req, prefix, interest, nullptr); };
RejectContinuation reject = [=] (RejectReply reply) { rejected(reply, interest); };
authorization(prefix, interest, nullptr, accept, reject);
}
void
Dispatcher::processAuthorizedStatusDatasetInterest(const Name& prefix,
const Interest& interest,
const StatusDatasetHandler& handler)
{
StatusDatasetContext context(interest,
[this] (auto&&... args) {
sendStatusDatasetSegment(std::forward<decltype(args)>(args)...);
},
[this, interest] (auto&&... args) {
sendControlResponse(std::forward<decltype(args)>(args)..., interest, true);
});
handler(prefix, interest, context);
}
void
Dispatcher::sendStatusDatasetSegment(const Name& dataName, const Block& content, bool isFinalBlock)
{
// the first segment will be sent to both places (the face and the in-memory storage)
// other segments will be inserted to the in-memory storage only
auto destination = SendDestination::IMS;
if (dataName[-1].toSegment() == 0) {
destination = SendDestination::FACE_AND_IMS;
}
MetaInfo metaInfo;
if (isFinalBlock) {
metaInfo.setFinalBlock(dataName[-1]);
}
sendData(dataName, content, metaInfo, destination);
}
PostNotification
Dispatcher::addNotificationStream(const PartialName& relPrefix)
{
if (!m_topLevelPrefixes.empty()) {
NDN_THROW(std::domain_error("one or more top-level prefix has been added"));
}
if (isOverlappedWithOthers(relPrefix)) {
NDN_THROW(std::out_of_range("notification stream name overlaps"));
}
// register a handler for the subscriber of this notification stream
// keep silent if Interest does not match a stored notification
m_handlers[relPrefix] = [this] (auto&&... args) {
this->queryStorage(std::forward<decltype(args)>(args)..., nullptr);
};
m_streams[relPrefix] = 0;
return [=] (const Block& b) { postNotification(b, relPrefix); };
}
void
Dispatcher::postNotification(const Block& notification, const PartialName& relPrefix)
{
if (m_topLevelPrefixes.size() != 1) {
NDN_LOG_WARN("postNotification: no top-level prefix or too many top-level prefixes");
return;
}
Name streamName(m_topLevelPrefixes.begin()->first);
streamName.append(relPrefix);
streamName.appendSequenceNumber(m_streams[streamName]++);
// notification is sent out via the face after inserting into the in-memory storage,
// because a request may be pending in the PIT
sendData(streamName, notification, {}, SendDestination::FACE_AND_IMS);
}
} // namespace mgmt
} // namespace ndn
| 35.038012 | 111 | 0.650505 | Pesa |
2976df73404b8968457f536ada57c1d80954d318 | 432 | cc | C++ | function_ref/snippets/snippet-function_ref-private-spec.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | 1 | 2022-01-21T20:10:46.000Z | 2022-01-21T20:10:46.000Z | function_ref/snippets/snippet-function_ref-private-spec.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | function_ref/snippets/snippet-function_ref-private-spec.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0792r5.html
namespace std
{
template <typename Signature>
class function_ref
{
void* erased_object; // exposition only
R(*erased_function)(Args...); // exposition only
// `R`, and `Args...` are the return type, and the parameter-type-list,
// of the function type `Signature`, respectively.
// ...
};
// ...
} | 25.411765 | 79 | 0.597222 | descender76 |
29791ba3fca8189692e6356aa096de29d121ca99 | 22,025 | hpp | C++ | boost/boost/move/detail/fwd_macros.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 24 | 2015-08-25T05:35:37.000Z | 2020-10-24T14:21:59.000Z | boost/boost/move/detail/fwd_macros.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 97 | 2015-08-25T16:11:16.000Z | 2019-03-17T00:54:32.000Z | boost/boost/move/detail/fwd_macros.hpp | tonystone/geofeatures | 25aca530a9140b3f259e9ee0833c93522e83a697 | [
"BSL-1.0",
"Apache-2.0"
] | 9 | 2015-08-26T03:11:38.000Z | 2018-03-21T07:16:29.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2014-2014. 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)
//
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_MOVE_DETAIL_FWD_MACROS_HPP
#define BOOST_MOVE_DETAIL_FWD_MACROS_HPP
#ifndef BOOST_CONFIG_HPP
# include <boost/config.hpp>
#endif
#
#if defined(BOOST_HAS_PRAGMA_ONCE)
# pragma once
#endif
#include <boost/move/detail/workaround.hpp>
namespace geofeatures_boost {} namespace boost = geofeatures_boost; namespace geofeatures_boost {
namespace move_detail {
template <typename T> struct unvoid { typedef T type; };
template <> struct unvoid<void> { struct type { }; };
template <> struct unvoid<const void> { struct type { }; };
} //namespace move_detail {
} //namespace geofeatures_boost {} namespace boost = geofeatures_boost; namespace geofeatures_boost {
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#if defined(BOOST_MOVE_MSVC_10_MEMBER_RVALUE_REF_BUG)
namespace geofeatures_boost {} namespace boost = geofeatures_boost; namespace geofeatures_boost {
namespace move_detail {
template<class T>
struct mref;
template<class T>
struct mref<T &>
{
explicit mref(T &t) : t_(t){}
T &t_;
T & get() { return t_; }
};
template<class T>
struct mref
{
explicit mref(T &&t) : t_(t) {}
T &t_;
T &&get() { return ::geofeatures_boost::move(t_); }
};
} //namespace move_detail {
} //namespace geofeatures_boost {} namespace boost = geofeatures_boost; namespace geofeatures_boost {
#endif //BOOST_MOVE_MSVC_10_MEMBER_RVALUE_REF_BUG
#endif //!defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
//BOOST_MOVE_REPEATN(MACRO)
#define BOOST_MOVE_REPEAT0(MACRO)
#define BOOST_MOVE_REPEAT1(MACRO) MACRO
#define BOOST_MOVE_REPEAT2(MACRO) BOOST_MOVE_REPEAT1(MACRO), MACRO
#define BOOST_MOVE_REPEAT3(MACRO) BOOST_MOVE_REPEAT2(MACRO), MACRO
#define BOOST_MOVE_REPEAT4(MACRO) BOOST_MOVE_REPEAT3(MACRO), MACRO
#define BOOST_MOVE_REPEAT5(MACRO) BOOST_MOVE_REPEAT4(MACRO), MACRO
#define BOOST_MOVE_REPEAT6(MACRO) BOOST_MOVE_REPEAT5(MACRO), MACRO
#define BOOST_MOVE_REPEAT7(MACRO) BOOST_MOVE_REPEAT6(MACRO), MACRO
#define BOOST_MOVE_REPEAT8(MACRO) BOOST_MOVE_REPEAT7(MACRO), MACRO
#define BOOST_MOVE_REPEAT9(MACRO) BOOST_MOVE_REPEAT8(MACRO), MACRO
//BOOST_MOVE_FWDN
#define BOOST_MOVE_FWD0
#define BOOST_MOVE_FWD1 ::geofeatures_boost::forward<P0>(p0)
#define BOOST_MOVE_FWD2 BOOST_MOVE_FWD1, ::geofeatures_boost::forward<P1>(p1)
#define BOOST_MOVE_FWD3 BOOST_MOVE_FWD2, ::geofeatures_boost::forward<P2>(p2)
#define BOOST_MOVE_FWD4 BOOST_MOVE_FWD3, ::geofeatures_boost::forward<P3>(p3)
#define BOOST_MOVE_FWD5 BOOST_MOVE_FWD4, ::geofeatures_boost::forward<P4>(p4)
#define BOOST_MOVE_FWD6 BOOST_MOVE_FWD5, ::geofeatures_boost::forward<P5>(p5)
#define BOOST_MOVE_FWD7 BOOST_MOVE_FWD6, ::geofeatures_boost::forward<P6>(p6)
#define BOOST_MOVE_FWD8 BOOST_MOVE_FWD7, ::geofeatures_boost::forward<P7>(p7)
#define BOOST_MOVE_FWD9 BOOST_MOVE_FWD8, ::geofeatures_boost::forward<P8>(p8)
//BOOST_MOVE_FWDQN
#define BOOST_MOVE_FWDQ0
#define BOOST_MOVE_FWDQ1 ::geofeatures_boost::forward<Q0>(q0)
#define BOOST_MOVE_FWDQ2 BOOST_MOVE_FWDQ1, ::geofeatures_boost::forward<Q1>(q1)
#define BOOST_MOVE_FWDQ3 BOOST_MOVE_FWDQ2, ::geofeatures_boost::forward<Q2>(q2)
#define BOOST_MOVE_FWDQ4 BOOST_MOVE_FWDQ3, ::geofeatures_boost::forward<Q3>(q3)
#define BOOST_MOVE_FWDQ5 BOOST_MOVE_FWDQ4, ::geofeatures_boost::forward<Q4>(q4)
#define BOOST_MOVE_FWDQ6 BOOST_MOVE_FWDQ5, ::geofeatures_boost::forward<Q5>(q5)
#define BOOST_MOVE_FWDQ7 BOOST_MOVE_FWDQ6, ::geofeatures_boost::forward<Q6>(q6)
#define BOOST_MOVE_FWDQ8 BOOST_MOVE_FWDQ7, ::geofeatures_boost::forward<Q7>(q7)
#define BOOST_MOVE_FWDQ9 BOOST_MOVE_FWDQ8, ::geofeatures_boost::forward<Q8>(q8)
//BOOST_MOVE_ARGN
#define BOOST_MOVE_ARG0
#define BOOST_MOVE_ARG1 p0
#define BOOST_MOVE_ARG2 BOOST_MOVE_ARG1, p1
#define BOOST_MOVE_ARG3 BOOST_MOVE_ARG2, p2
#define BOOST_MOVE_ARG4 BOOST_MOVE_ARG3, p3
#define BOOST_MOVE_ARG5 BOOST_MOVE_ARG4, p4
#define BOOST_MOVE_ARG6 BOOST_MOVE_ARG5, p5
#define BOOST_MOVE_ARG7 BOOST_MOVE_ARG6, p6
#define BOOST_MOVE_ARG8 BOOST_MOVE_ARG7, p7
#define BOOST_MOVE_ARG9 BOOST_MOVE_ARG8, p8
//BOOST_MOVE_DECLVALN
#define BOOST_MOVE_DECLVAL0
#define BOOST_MOVE_DECLVAL1 ::geofeatures_boost::move_detail::declval<P0>()
#define BOOST_MOVE_DECLVAL2 BOOST_MOVE_DECLVAL1, ::geofeatures_boost::move_detail::declval<P1>()
#define BOOST_MOVE_DECLVAL3 BOOST_MOVE_DECLVAL2, ::geofeatures_boost::move_detail::declval<P2>()
#define BOOST_MOVE_DECLVAL4 BOOST_MOVE_DECLVAL3, ::geofeatures_boost::move_detail::declval<P3>()
#define BOOST_MOVE_DECLVAL5 BOOST_MOVE_DECLVAL4, ::geofeatures_boost::move_detail::declval<P4>()
#define BOOST_MOVE_DECLVAL6 BOOST_MOVE_DECLVAL5, ::geofeatures_boost::move_detail::declval<P5>()
#define BOOST_MOVE_DECLVAL7 BOOST_MOVE_DECLVAL6, ::geofeatures_boost::move_detail::declval<P6>()
#define BOOST_MOVE_DECLVAL8 BOOST_MOVE_DECLVAL7, ::geofeatures_boost::move_detail::declval<P7>()
#define BOOST_MOVE_DECLVAL9 BOOST_MOVE_DECLVAL8, ::geofeatures_boost::move_detail::declval<P8>()
#ifdef BOOST_MOVE_MSVC_10_MEMBER_RVALUE_REF_BUG
#define BOOST_MOVE_MREF(T) ::geofeatures_boost::move_detail::mref<T>
#define BOOST_MOVE_MFWD(N) ::geofeatures_boost::forward<P##N>(this->m_p##N.get())
#else
#define BOOST_MOVE_MREF(T) BOOST_FWD_REF(T)
#define BOOST_MOVE_MFWD(N) ::geofeatures_boost::forward<P##N>(this->m_p##N)
#endif
#define BOOST_MOVE_MITFWD(N) *this->m_p##N
#define BOOST_MOVE_MINC(N) ++this->m_p##N
//BOOST_MOVE_MFWDN
#define BOOST_MOVE_MFWD0
#define BOOST_MOVE_MFWD1 BOOST_MOVE_MFWD(0)
#define BOOST_MOVE_MFWD2 BOOST_MOVE_MFWD1, BOOST_MOVE_MFWD(1)
#define BOOST_MOVE_MFWD3 BOOST_MOVE_MFWD2, BOOST_MOVE_MFWD(2)
#define BOOST_MOVE_MFWD4 BOOST_MOVE_MFWD3, BOOST_MOVE_MFWD(3)
#define BOOST_MOVE_MFWD5 BOOST_MOVE_MFWD4, BOOST_MOVE_MFWD(4)
#define BOOST_MOVE_MFWD6 BOOST_MOVE_MFWD5, BOOST_MOVE_MFWD(5)
#define BOOST_MOVE_MFWD7 BOOST_MOVE_MFWD6, BOOST_MOVE_MFWD(6)
#define BOOST_MOVE_MFWD8 BOOST_MOVE_MFWD7, BOOST_MOVE_MFWD(7)
#define BOOST_MOVE_MFWD9 BOOST_MOVE_MFWD8, BOOST_MOVE_MFWD(8)
//BOOST_MOVE_MINCN
#define BOOST_MOVE_MINC0
#define BOOST_MOVE_MINC1 BOOST_MOVE_MINC(0)
#define BOOST_MOVE_MINC2 BOOST_MOVE_MINC1, BOOST_MOVE_MINC(1)
#define BOOST_MOVE_MINC3 BOOST_MOVE_MINC2, BOOST_MOVE_MINC(2)
#define BOOST_MOVE_MINC4 BOOST_MOVE_MINC3, BOOST_MOVE_MINC(3)
#define BOOST_MOVE_MINC5 BOOST_MOVE_MINC4, BOOST_MOVE_MINC(4)
#define BOOST_MOVE_MINC6 BOOST_MOVE_MINC5, BOOST_MOVE_MINC(5)
#define BOOST_MOVE_MINC7 BOOST_MOVE_MINC6, BOOST_MOVE_MINC(6)
#define BOOST_MOVE_MINC8 BOOST_MOVE_MINC7, BOOST_MOVE_MINC(7)
#define BOOST_MOVE_MINC9 BOOST_MOVE_MINC8, BOOST_MOVE_MINC(8)
//BOOST_MOVE_MITFWDN
#define BOOST_MOVE_MITFWD0
#define BOOST_MOVE_MITFWD1 BOOST_MOVE_MITFWD(0)
#define BOOST_MOVE_MITFWD2 BOOST_MOVE_MITFWD1, BOOST_MOVE_MITFWD(1)
#define BOOST_MOVE_MITFWD3 BOOST_MOVE_MITFWD2, BOOST_MOVE_MITFWD(2)
#define BOOST_MOVE_MITFWD4 BOOST_MOVE_MITFWD3, BOOST_MOVE_MITFWD(3)
#define BOOST_MOVE_MITFWD5 BOOST_MOVE_MITFWD4, BOOST_MOVE_MITFWD(4)
#define BOOST_MOVE_MITFWD6 BOOST_MOVE_MITFWD5, BOOST_MOVE_MITFWD(5)
#define BOOST_MOVE_MITFWD7 BOOST_MOVE_MITFWD6, BOOST_MOVE_MITFWD(6)
#define BOOST_MOVE_MITFWD8 BOOST_MOVE_MITFWD7, BOOST_MOVE_MITFWD(7)
#define BOOST_MOVE_MITFWD9 BOOST_MOVE_MITFWD8, BOOST_MOVE_MITFWD(8)
//BOOST_MOVE_FWD_INITN
#define BOOST_MOVE_FWD_INIT0
#define BOOST_MOVE_FWD_INIT1 m_p0(::geofeatures_boost::forward<P0>(p0))
#define BOOST_MOVE_FWD_INIT2 BOOST_MOVE_FWD_INIT1, m_p1(::geofeatures_boost::forward<P1>(p1))
#define BOOST_MOVE_FWD_INIT3 BOOST_MOVE_FWD_INIT2, m_p2(::geofeatures_boost::forward<P2>(p2))
#define BOOST_MOVE_FWD_INIT4 BOOST_MOVE_FWD_INIT3, m_p3(::geofeatures_boost::forward<P3>(p3))
#define BOOST_MOVE_FWD_INIT5 BOOST_MOVE_FWD_INIT4, m_p4(::geofeatures_boost::forward<P4>(p4))
#define BOOST_MOVE_FWD_INIT6 BOOST_MOVE_FWD_INIT5, m_p5(::geofeatures_boost::forward<P5>(p5))
#define BOOST_MOVE_FWD_INIT7 BOOST_MOVE_FWD_INIT6, m_p6(::geofeatures_boost::forward<P6>(p6))
#define BOOST_MOVE_FWD_INIT8 BOOST_MOVE_FWD_INIT7, m_p7(::geofeatures_boost::forward<P7>(p7))
#define BOOST_MOVE_FWD_INIT9 BOOST_MOVE_FWD_INIT8, m_p8(::geofeatures_boost::forward<P8>(p8))
//BOOST_MOVE_VAL_INITN
#define BOOST_MOVE_VAL_INIT0
#define BOOST_MOVE_VAL_INIT1 m_p0(p0)
#define BOOST_MOVE_VAL_INIT2 BOOST_MOVE_VAL_INIT1, m_p1(p1)
#define BOOST_MOVE_VAL_INIT3 BOOST_MOVE_VAL_INIT2, m_p2(p2)
#define BOOST_MOVE_VAL_INIT4 BOOST_MOVE_VAL_INIT3, m_p3(p3)
#define BOOST_MOVE_VAL_INIT5 BOOST_MOVE_VAL_INIT4, m_p4(p4)
#define BOOST_MOVE_VAL_INIT6 BOOST_MOVE_VAL_INIT5, m_p5(p5)
#define BOOST_MOVE_VAL_INIT7 BOOST_MOVE_VAL_INIT6, m_p6(p6)
#define BOOST_MOVE_VAL_INIT8 BOOST_MOVE_VAL_INIT7, m_p7(p7)
#define BOOST_MOVE_VAL_INIT9 BOOST_MOVE_VAL_INIT8, m_p8(p8)
//BOOST_MOVE_UREFN
#define BOOST_MOVE_UREF0
#define BOOST_MOVE_UREF1 BOOST_FWD_REF(P0) p0
#define BOOST_MOVE_UREF2 BOOST_MOVE_UREF1, BOOST_FWD_REF(P1) p1
#define BOOST_MOVE_UREF3 BOOST_MOVE_UREF2, BOOST_FWD_REF(P2) p2
#define BOOST_MOVE_UREF4 BOOST_MOVE_UREF3, BOOST_FWD_REF(P3) p3
#define BOOST_MOVE_UREF5 BOOST_MOVE_UREF4, BOOST_FWD_REF(P4) p4
#define BOOST_MOVE_UREF6 BOOST_MOVE_UREF5, BOOST_FWD_REF(P5) p5
#define BOOST_MOVE_UREF7 BOOST_MOVE_UREF6, BOOST_FWD_REF(P6) p6
#define BOOST_MOVE_UREF8 BOOST_MOVE_UREF7, BOOST_FWD_REF(P7) p7
#define BOOST_MOVE_UREF9 BOOST_MOVE_UREF8, BOOST_FWD_REF(P8) p8
//BOOST_MOVE_VALN
#define BOOST_MOVE_VAL0
#define BOOST_MOVE_VAL1 P0 p0
#define BOOST_MOVE_VAL2 BOOST_MOVE_VAL1, BOOST_FWD_REF(P1) p1
#define BOOST_MOVE_VAL3 BOOST_MOVE_VAL2, BOOST_FWD_REF(P2) p2
#define BOOST_MOVE_VAL4 BOOST_MOVE_VAL3, BOOST_FWD_REF(P3) p3
#define BOOST_MOVE_VAL5 BOOST_MOVE_VAL4, BOOST_FWD_REF(P4) p4
#define BOOST_MOVE_VAL6 BOOST_MOVE_VAL5, BOOST_FWD_REF(P5) p5
#define BOOST_MOVE_VAL7 BOOST_MOVE_VAL6, BOOST_FWD_REF(P6) p6
#define BOOST_MOVE_VAL8 BOOST_MOVE_VAL7, BOOST_FWD_REF(P7) p7
#define BOOST_MOVE_VAL9 BOOST_MOVE_VAL8, BOOST_FWD_REF(P8) p8
//BOOST_MOVE_UREFQN
#define BOOST_MOVE_UREFQ0
#define BOOST_MOVE_UREFQ1 BOOST_FWD_REF(Q0) q0
#define BOOST_MOVE_UREFQ2 BOOST_MOVE_UREFQ1, BOOST_FWD_REF(Q1) q1
#define BOOST_MOVE_UREFQ3 BOOST_MOVE_UREFQ2, BOOST_FWD_REF(Q2) q2
#define BOOST_MOVE_UREFQ4 BOOST_MOVE_UREFQ3, BOOST_FWD_REF(Q3) q3
#define BOOST_MOVE_UREFQ5 BOOST_MOVE_UREFQ4, BOOST_FWD_REF(Q4) q4
#define BOOST_MOVE_UREFQ6 BOOST_MOVE_UREFQ5, BOOST_FWD_REF(Q5) q5
#define BOOST_MOVE_UREFQ7 BOOST_MOVE_UREFQ6, BOOST_FWD_REF(Q6) q6
#define BOOST_MOVE_UREFQ8 BOOST_MOVE_UREFQ7, BOOST_FWD_REF(Q7) q7
#define BOOST_MOVE_UREFQ9 BOOST_MOVE_UREFQ8, BOOST_FWD_REF(Q8) q8
//BOOST_MOVE_CREFN
#define BOOST_MOVE_UNVOIDCREF(T) const typename geofeatures_boost::move_detail::unvoid<T>::type&
#define BOOST_MOVE_CREF0
#define BOOST_MOVE_CREF1 BOOST_MOVE_UNVOIDCREF(P0) p0
#define BOOST_MOVE_CREF2 BOOST_MOVE_CREF1, BOOST_MOVE_UNVOIDCREF(P1) p1
#define BOOST_MOVE_CREF3 BOOST_MOVE_CREF2, BOOST_MOVE_UNVOIDCREF(P2) p2
#define BOOST_MOVE_CREF4 BOOST_MOVE_CREF3, BOOST_MOVE_UNVOIDCREF(P3) p3
#define BOOST_MOVE_CREF5 BOOST_MOVE_CREF4, BOOST_MOVE_UNVOIDCREF(P4) p4
#define BOOST_MOVE_CREF6 BOOST_MOVE_CREF5, BOOST_MOVE_UNVOIDCREF(P5) p5
#define BOOST_MOVE_CREF7 BOOST_MOVE_CREF6, BOOST_MOVE_UNVOIDCREF(P6) p6
#define BOOST_MOVE_CREF8 BOOST_MOVE_CREF7, BOOST_MOVE_UNVOIDCREF(P7) p7
#define BOOST_MOVE_CREF9 BOOST_MOVE_CREF8, BOOST_MOVE_UNVOIDCREF(P8) p8
//BOOST_MOVE_CLASSN
#define BOOST_MOVE_CLASS0
#define BOOST_MOVE_CLASS1 class P0
#define BOOST_MOVE_CLASS2 BOOST_MOVE_CLASS1, class P1
#define BOOST_MOVE_CLASS3 BOOST_MOVE_CLASS2, class P2
#define BOOST_MOVE_CLASS4 BOOST_MOVE_CLASS3, class P3
#define BOOST_MOVE_CLASS5 BOOST_MOVE_CLASS4, class P4
#define BOOST_MOVE_CLASS6 BOOST_MOVE_CLASS5, class P5
#define BOOST_MOVE_CLASS7 BOOST_MOVE_CLASS6, class P6
#define BOOST_MOVE_CLASS8 BOOST_MOVE_CLASS7, class P7
#define BOOST_MOVE_CLASS9 BOOST_MOVE_CLASS8, class P8
//BOOST_MOVE_CLASSQN
#define BOOST_MOVE_CLASSQ0
#define BOOST_MOVE_CLASSQ1 class Q0
#define BOOST_MOVE_CLASSQ2 BOOST_MOVE_CLASSQ1, class Q1
#define BOOST_MOVE_CLASSQ3 BOOST_MOVE_CLASSQ2, class Q2
#define BOOST_MOVE_CLASSQ4 BOOST_MOVE_CLASSQ3, class Q3
#define BOOST_MOVE_CLASSQ5 BOOST_MOVE_CLASSQ4, class Q4
#define BOOST_MOVE_CLASSQ6 BOOST_MOVE_CLASSQ5, class Q5
#define BOOST_MOVE_CLASSQ7 BOOST_MOVE_CLASSQ6, class Q6
#define BOOST_MOVE_CLASSQ8 BOOST_MOVE_CLASSQ7, class Q7
#define BOOST_MOVE_CLASSQ9 BOOST_MOVE_CLASSQ8, class Q8
//BOOST_MOVE_CLASSDFLTN
#define BOOST_MOVE_CLASSDFLT0
#define BOOST_MOVE_CLASSDFLT1 class P0 = void
#define BOOST_MOVE_CLASSDFLT2 BOOST_MOVE_CLASSDFLT1, class P1 = void
#define BOOST_MOVE_CLASSDFLT3 BOOST_MOVE_CLASSDFLT2, class P2 = void
#define BOOST_MOVE_CLASSDFLT4 BOOST_MOVE_CLASSDFLT3, class P3 = void
#define BOOST_MOVE_CLASSDFLT5 BOOST_MOVE_CLASSDFLT4, class P4 = void
#define BOOST_MOVE_CLASSDFLT6 BOOST_MOVE_CLASSDFLT5, class P5 = void
#define BOOST_MOVE_CLASSDFLT7 BOOST_MOVE_CLASSDFLT6, class P6 = void
#define BOOST_MOVE_CLASSDFLT8 BOOST_MOVE_CLASSDFLT7, class P7 = void
#define BOOST_MOVE_CLASSDFLT9 BOOST_MOVE_CLASSDFLT8, class P8 = void
//BOOST_MOVE_TARGN
#define BOOST_MOVE_TARG0
#define BOOST_MOVE_TARG1 P0
#define BOOST_MOVE_TARG2 BOOST_MOVE_TARG1, P1
#define BOOST_MOVE_TARG3 BOOST_MOVE_TARG2, P2
#define BOOST_MOVE_TARG4 BOOST_MOVE_TARG3, P3
#define BOOST_MOVE_TARG5 BOOST_MOVE_TARG4, P4
#define BOOST_MOVE_TARG6 BOOST_MOVE_TARG5, P5
#define BOOST_MOVE_TARG7 BOOST_MOVE_TARG6, P6
#define BOOST_MOVE_TARG8 BOOST_MOVE_TARG7, P7
#define BOOST_MOVE_TARG9 BOOST_MOVE_TARG8, P8
//BOOST_MOVE_FWD_TN
#define BOOST_MOVE_FWD_T0
#define BOOST_MOVE_FWD_T1 typename ::geofeatures_boost::move_detail::forward_type<P0>::type
#define BOOST_MOVE_FWD_T2 BOOST_MOVE_FWD_T1, typename ::geofeatures_boost::move_detail::forward_type<P1>::type
#define BOOST_MOVE_FWD_T3 BOOST_MOVE_FWD_T2, typename ::geofeatures_boost::move_detail::forward_type<P2>::type
#define BOOST_MOVE_FWD_T4 BOOST_MOVE_FWD_T3, typename ::geofeatures_boost::move_detail::forward_type<P3>::type
#define BOOST_MOVE_FWD_T5 BOOST_MOVE_FWD_T4, typename ::geofeatures_boost::move_detail::forward_type<P4>::type
#define BOOST_MOVE_FWD_T6 BOOST_MOVE_FWD_T5, typename ::geofeatures_boost::move_detail::forward_type<P5>::type
#define BOOST_MOVE_FWD_T7 BOOST_MOVE_FWD_T6, typename ::geofeatures_boost::move_detail::forward_type<P6>::type
#define BOOST_MOVE_FWD_T8 BOOST_MOVE_FWD_T7, typename ::geofeatures_boost::move_detail::forward_type<P7>::type
#define BOOST_MOVE_FWD_T9 BOOST_MOVE_FWD_T8, typename ::geofeatures_boost::move_detail::forward_type<P8>::type
//BOOST_MOVE_MREFX
#define BOOST_MOVE_MREF0
#define BOOST_MOVE_MREF1 BOOST_MOVE_MREF(P0) m_p0;
#define BOOST_MOVE_MREF2 BOOST_MOVE_MREF1 BOOST_MOVE_MREF(P1) m_p1;
#define BOOST_MOVE_MREF3 BOOST_MOVE_MREF2 BOOST_MOVE_MREF(P2) m_p2;
#define BOOST_MOVE_MREF4 BOOST_MOVE_MREF3 BOOST_MOVE_MREF(P3) m_p3;
#define BOOST_MOVE_MREF5 BOOST_MOVE_MREF4 BOOST_MOVE_MREF(P4) m_p4;
#define BOOST_MOVE_MREF6 BOOST_MOVE_MREF5 BOOST_MOVE_MREF(P5) m_p5;
#define BOOST_MOVE_MREF7 BOOST_MOVE_MREF6 BOOST_MOVE_MREF(P6) m_p6;
#define BOOST_MOVE_MREF8 BOOST_MOVE_MREF7 BOOST_MOVE_MREF(P7) m_p7;
#define BOOST_MOVE_MREF9 BOOST_MOVE_MREF8 BOOST_MOVE_MREF(P8) m_p8;
//BOOST_MOVE_MEMBX
#define BOOST_MOVE_MEMB0
#define BOOST_MOVE_MEMB1 P0 m_p0;
#define BOOST_MOVE_MEMB2 BOOST_MOVE_MEMB1 P1 m_p1;
#define BOOST_MOVE_MEMB3 BOOST_MOVE_MEMB2 P2 m_p2;
#define BOOST_MOVE_MEMB4 BOOST_MOVE_MEMB3 P3 m_p3;
#define BOOST_MOVE_MEMB5 BOOST_MOVE_MEMB4 P4 m_p4;
#define BOOST_MOVE_MEMB6 BOOST_MOVE_MEMB5 P5 m_p5;
#define BOOST_MOVE_MEMB7 BOOST_MOVE_MEMB6 P6 m_p6;
#define BOOST_MOVE_MEMB8 BOOST_MOVE_MEMB7 P7 m_p7;
#define BOOST_MOVE_MEMB9 BOOST_MOVE_MEMB8 P8 m_p8;
//BOOST_MOVE_TMPL_LTN
#define BOOST_MOVE_TMPL_LT0
#define BOOST_MOVE_TMPL_LT1 template<
#define BOOST_MOVE_TMPL_LT2 BOOST_MOVE_TMPL_LT1
#define BOOST_MOVE_TMPL_LT3 BOOST_MOVE_TMPL_LT1
#define BOOST_MOVE_TMPL_LT4 BOOST_MOVE_TMPL_LT1
#define BOOST_MOVE_TMPL_LT5 BOOST_MOVE_TMPL_LT1
#define BOOST_MOVE_TMPL_LT6 BOOST_MOVE_TMPL_LT1
#define BOOST_MOVE_TMPL_LT7 BOOST_MOVE_TMPL_LT1
#define BOOST_MOVE_TMPL_LT8 BOOST_MOVE_TMPL_LT1
#define BOOST_MOVE_TMPL_LT9 BOOST_MOVE_TMPL_LT1
//BOOST_MOVE_LTN
#define BOOST_MOVE_LT0
#define BOOST_MOVE_LT1 <
#define BOOST_MOVE_LT2 BOOST_MOVE_LT1
#define BOOST_MOVE_LT3 BOOST_MOVE_LT1
#define BOOST_MOVE_LT4 BOOST_MOVE_LT1
#define BOOST_MOVE_LT5 BOOST_MOVE_LT1
#define BOOST_MOVE_LT6 BOOST_MOVE_LT1
#define BOOST_MOVE_LT7 BOOST_MOVE_LT1
#define BOOST_MOVE_LT8 BOOST_MOVE_LT1
#define BOOST_MOVE_LT9 BOOST_MOVE_LT1
//BOOST_MOVE_GTN
#define BOOST_MOVE_GT0
#define BOOST_MOVE_GT1 >
#define BOOST_MOVE_GT2 BOOST_MOVE_GT1
#define BOOST_MOVE_GT3 BOOST_MOVE_GT1
#define BOOST_MOVE_GT4 BOOST_MOVE_GT1
#define BOOST_MOVE_GT5 BOOST_MOVE_GT1
#define BOOST_MOVE_GT6 BOOST_MOVE_GT1
#define BOOST_MOVE_GT7 BOOST_MOVE_GT1
#define BOOST_MOVE_GT8 BOOST_MOVE_GT1
#define BOOST_MOVE_GT9 BOOST_MOVE_GT1
//BOOST_MOVE_LPN
#define BOOST_MOVE_LP0
#define BOOST_MOVE_LP1 (
#define BOOST_MOVE_LP2 BOOST_MOVE_LP1
#define BOOST_MOVE_LP3 BOOST_MOVE_LP1
#define BOOST_MOVE_LP4 BOOST_MOVE_LP1
#define BOOST_MOVE_LP5 BOOST_MOVE_LP1
#define BOOST_MOVE_LP6 BOOST_MOVE_LP1
#define BOOST_MOVE_LP7 BOOST_MOVE_LP1
#define BOOST_MOVE_LP8 BOOST_MOVE_LP1
#define BOOST_MOVE_LP9 BOOST_MOVE_LP1
//BOOST_MOVE_RPN
#define BOOST_MOVE_RP0
#define BOOST_MOVE_RP1 )
#define BOOST_MOVE_RP2 BOOST_MOVE_RP1
#define BOOST_MOVE_RP3 BOOST_MOVE_RP1
#define BOOST_MOVE_RP4 BOOST_MOVE_RP1
#define BOOST_MOVE_RP5 BOOST_MOVE_RP1
#define BOOST_MOVE_RP6 BOOST_MOVE_RP1
#define BOOST_MOVE_RP7 BOOST_MOVE_RP1
#define BOOST_MOVE_RP8 BOOST_MOVE_RP1
#define BOOST_MOVE_RP9 BOOST_MOVE_RP1
//BOOST_MOVE_IN
#define BOOST_MOVE_I0
#define BOOST_MOVE_I1 ,
#define BOOST_MOVE_I2 BOOST_MOVE_I1
#define BOOST_MOVE_I3 BOOST_MOVE_I1
#define BOOST_MOVE_I4 BOOST_MOVE_I1
#define BOOST_MOVE_I5 BOOST_MOVE_I1
#define BOOST_MOVE_I6 BOOST_MOVE_I1
#define BOOST_MOVE_I7 BOOST_MOVE_I1
#define BOOST_MOVE_I8 BOOST_MOVE_I1
#define BOOST_MOVE_I9 BOOST_MOVE_I1
//BOOST_MOVE_COLON
#define BOOST_MOVE_COLON0
#define BOOST_MOVE_COLON1 :
#define BOOST_MOVE_COLON2 BOOST_MOVE_COLON1
#define BOOST_MOVE_COLON3 BOOST_MOVE_COLON1
#define BOOST_MOVE_COLON4 BOOST_MOVE_COLON1
#define BOOST_MOVE_COLON5 BOOST_MOVE_COLON1
#define BOOST_MOVE_COLON6 BOOST_MOVE_COLON1
#define BOOST_MOVE_COLON7 BOOST_MOVE_COLON1
#define BOOST_MOVE_COLON8 BOOST_MOVE_COLON1
#define BOOST_MOVE_COLON9 BOOST_MOVE_COLON1
//BOOST_MOVE_ITERATE_2TON
#define BOOST_MOVE_ITERATE_2TO2(MACROFUNC) MACROFUNC(2)
#define BOOST_MOVE_ITERATE_2TO3(MACROFUNC) BOOST_MOVE_ITERATE_2TO2(MACROFUNC) MACROFUNC(3)
#define BOOST_MOVE_ITERATE_2TO4(MACROFUNC) BOOST_MOVE_ITERATE_2TO3(MACROFUNC) MACROFUNC(4)
#define BOOST_MOVE_ITERATE_2TO5(MACROFUNC) BOOST_MOVE_ITERATE_2TO4(MACROFUNC) MACROFUNC(5)
#define BOOST_MOVE_ITERATE_2TO6(MACROFUNC) BOOST_MOVE_ITERATE_2TO5(MACROFUNC) MACROFUNC(6)
#define BOOST_MOVE_ITERATE_2TO7(MACROFUNC) BOOST_MOVE_ITERATE_2TO6(MACROFUNC) MACROFUNC(7)
#define BOOST_MOVE_ITERATE_2TO8(MACROFUNC) BOOST_MOVE_ITERATE_2TO7(MACROFUNC) MACROFUNC(8)
#define BOOST_MOVE_ITERATE_2TO9(MACROFUNC) BOOST_MOVE_ITERATE_2TO8(MACROFUNC) MACROFUNC(9)
//BOOST_MOVE_ITERATE_1TON
#define BOOST_MOVE_ITERATE_1TO1(MACROFUNC) MACROFUNC(1)
#define BOOST_MOVE_ITERATE_1TO2(MACROFUNC) BOOST_MOVE_ITERATE_1TO1(MACROFUNC) MACROFUNC(2)
#define BOOST_MOVE_ITERATE_1TO3(MACROFUNC) BOOST_MOVE_ITERATE_1TO2(MACROFUNC) MACROFUNC(3)
#define BOOST_MOVE_ITERATE_1TO4(MACROFUNC) BOOST_MOVE_ITERATE_1TO3(MACROFUNC) MACROFUNC(4)
#define BOOST_MOVE_ITERATE_1TO5(MACROFUNC) BOOST_MOVE_ITERATE_1TO4(MACROFUNC) MACROFUNC(5)
#define BOOST_MOVE_ITERATE_1TO6(MACROFUNC) BOOST_MOVE_ITERATE_1TO5(MACROFUNC) MACROFUNC(6)
#define BOOST_MOVE_ITERATE_1TO7(MACROFUNC) BOOST_MOVE_ITERATE_1TO6(MACROFUNC) MACROFUNC(7)
#define BOOST_MOVE_ITERATE_1TO8(MACROFUNC) BOOST_MOVE_ITERATE_1TO7(MACROFUNC) MACROFUNC(8)
#define BOOST_MOVE_ITERATE_1TO9(MACROFUNC) BOOST_MOVE_ITERATE_1TO8(MACROFUNC) MACROFUNC(9)
//BOOST_MOVE_ITERATE_0TON
#define BOOST_MOVE_ITERATE_0TO0(MACROFUNC) MACROFUNC(0)
#define BOOST_MOVE_ITERATE_0TO1(MACROFUNC) BOOST_MOVE_ITERATE_0TO0(MACROFUNC) MACROFUNC(1)
#define BOOST_MOVE_ITERATE_0TO2(MACROFUNC) BOOST_MOVE_ITERATE_0TO1(MACROFUNC) MACROFUNC(2)
#define BOOST_MOVE_ITERATE_0TO3(MACROFUNC) BOOST_MOVE_ITERATE_0TO2(MACROFUNC) MACROFUNC(3)
#define BOOST_MOVE_ITERATE_0TO4(MACROFUNC) BOOST_MOVE_ITERATE_0TO3(MACROFUNC) MACROFUNC(4)
#define BOOST_MOVE_ITERATE_0TO5(MACROFUNC) BOOST_MOVE_ITERATE_0TO4(MACROFUNC) MACROFUNC(5)
#define BOOST_MOVE_ITERATE_0TO6(MACROFUNC) BOOST_MOVE_ITERATE_0TO5(MACROFUNC) MACROFUNC(6)
#define BOOST_MOVE_ITERATE_0TO7(MACROFUNC) BOOST_MOVE_ITERATE_0TO6(MACROFUNC) MACROFUNC(7)
#define BOOST_MOVE_ITERATE_0TO8(MACROFUNC) BOOST_MOVE_ITERATE_0TO7(MACROFUNC) MACROFUNC(8)
#define BOOST_MOVE_ITERATE_0TO9(MACROFUNC) BOOST_MOVE_ITERATE_0TO8(MACROFUNC) MACROFUNC(9)
//BOOST_MOVE_ITERATE_NTON
#define BOOST_MOVE_ITERATE_0TO0(MACROFUNC) MACROFUNC(0)
#define BOOST_MOVE_ITERATE_1TO1(MACROFUNC) MACROFUNC(1)
#define BOOST_MOVE_ITERATE_2TO2(MACROFUNC) MACROFUNC(2)
#define BOOST_MOVE_ITERATE_3TO3(MACROFUNC) MACROFUNC(3)
#define BOOST_MOVE_ITERATE_4TO4(MACROFUNC) MACROFUNC(4)
#define BOOST_MOVE_ITERATE_5TO5(MACROFUNC) MACROFUNC(5)
#define BOOST_MOVE_ITERATE_6TO6(MACROFUNC) MACROFUNC(6)
#define BOOST_MOVE_ITERATE_7TO7(MACROFUNC) MACROFUNC(7)
#define BOOST_MOVE_ITERATE_8TO8(MACROFUNC) MACROFUNC(8)
#define BOOST_MOVE_ITERATE_9TO9(MACROFUNC) MACROFUNC(9)
//BOOST_MOVE_CAT
#define BOOST_MOVE_CAT(a, b) BOOST_MOVE_CAT_I(a, b)
#define BOOST_MOVE_CAT_I(a, b) a ## b
//# define BOOST_MOVE_CAT_I(a, b) BOOST_MOVE_CAT_II(~, a ## b)
//# define BOOST_MOVE_CAT_II(p, res) res
#endif //#ifndef BOOST_MOVE_DETAIL_FWD_MACROS_HPP
| 47.263948 | 110 | 0.835868 | tonystone |
297aba696f17f03a57641ec46460184af9a8c119 | 10,008 | cpp | C++ | engine/audio/allegro.cpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | null | null | null | engine/audio/allegro.cpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | 8 | 2020-03-29T21:03:23.000Z | 2020-04-11T23:28:14.000Z | engine/audio/allegro.cpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | 1 | 2020-06-11T16:54:37.000Z | 2020-06-11T16:54:37.000Z | //
// Sound engine wrappers for Allegro
//
#ifdef USE_ALSOUND
#include <stdlib.h> // atexit(), random
#include <string.h> // String splicing routines
#include <allegro.h>
#include "../ithelib.h"
#include "../console.hpp"
#include "../media.hpp"
#include "../loadfile.hpp"
#include "../sound.h"
#include "../types.h"
#ifdef USE_ALOGG
#include <alogg/alogg.h>
#include <alogg/aloggpth.h>
#include <vorbis/vorbisfile.h>
#endif
// defines
// variables
extern char mus_chan; // Number of music channels
extern char sfx_chan; // Number of effects channels
extern int driftlevel; // Amount of frequency variation
VMINT sf_volume = 63;
VMINT mu_volume = 90;
int Songs=0;
int Waves=0;
static int SoundOn=0;
static char *IsPlaying=NULL;
struct SMTab *wavtab; // Tables of data for each sound and song.
struct SMTab *mustab; // Filled by script.cc
#ifdef USE_ALOGG
static struct alogg_stream *stream=NULL;
static struct alogg_thread *thread=NULL;
static ov_callbacks ogg_vfs;
#endif
// functions
void S_Load(); // Load the sound and music
void S_SoundVolume(); // Set the Sound volume
void S_MusicVolume(); // Set the Music volume
void S_PlaySample(char *s,int v); // Play a sound sample
void S_PlayMusic(char *s); // Play a song
void S_StopMusic(); // Stop the music
static void LoadMusic();
static void LoadWavs();
static void SetSoundVol(int vol);
static void SetMusicVol(int vol);
static int StreamSong_GetVoice();
#ifdef USE_ALOGG
static int ov_iFileClose(void *datasource);
static size_t ov_iFileRead(void *ptr, size_t size, size_t num, void *datasource);
static int ov_iFileSeek(void *datasource, ogg_int64_t pos, int whence);
static long ov_iFileTell(void *datasource);
#endif
// Public code
int S_Init()
{
if(SoundOn) {
return 0;
}
if(install_sound(DIGI_AUTODETECT,MIDI_NONE,NULL)) {
return 0; // Zero success for install_sound
}
#ifdef USE_ALOGG
alogg_init();
memset(&ogg_vfs,0,sizeof(ogg_vfs));
ogg_vfs.read_func = ov_iFileRead;
ogg_vfs.close_func = ov_iFileClose;
ogg_vfs.seek_func = ov_iFileSeek;
ogg_vfs.tell_func = ov_iFileTell;
#endif
SoundOn=1;
// Okay
return 1;
}
void S_Term()
{
if(!SoundOn) {
return;
}
StreamSong_stop();
#ifdef USE_ALOGG
alogg_exit();
#endif
SoundOn=0;
}
/*
* S_Load - Load in the music and samples.
*/
void S_Load()
{
if(!SoundOn) {
return;
}
LoadMusic();
LoadWavs();
}
/*
* S_MusicVolume - Set the music level
*/
void S_MusicVolume(int vol)
{
if(vol < 0) {
vol=0;
}
if(vol > 100) {
vol=100;
}
mu_volume = vol;
SetMusicVol(mu_volume);
return;
}
/*
* S_SoundVolume - Set the effects level
*/
void S_SoundVolume(int vol)
{
if(vol < 0) {
vol=0;
}
if(vol > 100) {
vol=100;
}
sf_volume = vol;
SetSoundVol(sf_volume);
return;
}
/*
* S_PlayMusic - play an ogg stream
*/
void S_PlayMusic(char *name)
{
char filename[1024];
long ctr;
if(!SoundOn) {
return;
}
// Is the music playing? If not, this will clear IsPlaying
S_IsPlaying();
for(ctr=0;ctr<Songs;ctr++) {
if(!istricmp(mustab[ctr].name,name)) {
// If the music is marked Not Present, ignore it (music is optional)
if(mustab[ctr].fname[0] == 0) {
return;
}
// Is it already playing?
if(IsPlaying == mustab[ctr].name) {
return;
}
// Is something else playing?
if(IsPlaying) {
StreamSong_stop();
}
// Otherwise, no excuses
IsPlaying = mustab[ctr].name; // This is playing now
if(!loadfile(mustab[ctr].fname,filename)) {
Bug("S_PlayMusic - could play song %s, could not find file '%s'\n",name,mustab[ctr].fname);
return;
}
if(!StreamSong_start(filename)) {
Bug("S_PlayMusic - could not play song '%s'\n",name);
}
return;
}
}
Bug("S_PlayMusic - could not find song '%s'\n",name);
}
/*
* S_StopMusic - Stop the current song (if any)
*/
void S_StopMusic()
{
StreamSong_stop();
}
/*
* S_PlaySample - play a sound sample.
*/
void S_PlaySample(char *name, int volume)
{
int freq,num,ctr;
if(!SoundOn) {
return;
}
for(ctr=0;ctr<Waves;ctr++) {
if(!istricmp(wavtab[ctr].name,name)) {
freq=1000;
if(!wavtab[ctr].nodrift) {
num = 10 - (rand()%20);
freq+=(num*driftlevel)/10;
}
play_sample(wavtab[ctr].sample,volume,128,freq,0); // vol,pan,freq,loop
return;
}
}
Bug("S_PlaySample- could not find sound '%s'\n",name);
}
//
// Private code hereon
//
/*
* LoadMusic - Make sure the music files are there, else mark as Not Present
*/
void LoadMusic()
{
char filename[1024];
int ctr;
if(!SoundOn) {
return;
}
ilog_printf(" Checking music.. "); // This line is not terminated!
for(ctr=0;ctr<Songs;ctr++) {
if(!loadfile(mustab[ctr].fname,filename)) {
ilog_quiet("Warning: Could not load music file '%s'\n",mustab[ctr].fname);
mustab[ctr].fname[0]=0; // Erase the filename to mark N/A
}
}
ilog_printf("done.\n"); // This terminates the line above
}
/*
* LoadWavs - Load in the sounds
*/
void LoadWavs()
{
char filename[1024];
int ctr;
if(!SoundOn) {
return;
}
// load in each sound
ilog_printf(" Loading sounds"); // This line is not terminated, for the dots
Plot(Waves); // Work out how many dots to print
for(ctr=0;ctr<Waves;ctr++) {
if(!loadfile(wavtab[ctr].fname,filename)) {
ithe_panic("LoadWavs: Cannot open WAV file",wavtab[ctr].fname);
}
wavtab[ctr].sample=iload_wav(filename);
if(!wavtab[ctr].sample) {
ithe_panic("LoadWavs: Invalid WAV file",filename);
}
Plot(0); // Print a dot
}
ilog_printf("\n"); // End the line of dots
}
void SetSoundVol(int vol)
{
int ctr,musvoice;
vol = (vol*255)/100;
// Get channel used by streamer because we don't want to touch that one
musvoice = StreamSong_GetVoice();
for(ctr=0;ctr<256;ctr++) {
if(ctr != musvoice) {
voice_set_volume(ctr,vol);
}
}
}
void SetMusicVol(int vol)
{
int musvoice;
vol = (vol*255)/100;
// Get channel used by streamer
musvoice = StreamSong_GetVoice();
if(musvoice>=0) {
voice_set_volume(musvoice,vol);
}
}
// Stubs for the music engine
int S_IsPlaying()
{
#ifdef USE_ALOGG
if(!stream || !thread || !alogg_is_thread_alive(thread)) {
IsPlaying = NULL;
return 0;
}
#endif
return 1;
}
int StreamSong_start(char *filename)
{
IFILE *ifile;
if(!SoundOn) {
return 0;
}
#ifdef USE_ALOGG
ifile = iopen(filename);
stream = alogg_start_streaming_callbacks((void *)ifile,(struct ov_callbacks *)&ogg_vfs,40960,NULL);
if(!stream) {
return 0;
}
thread = alogg_create_thread(stream);
SetMusicVol(mu_volume);
#endif
return 1;
}
void StreamSong_stop()
{
if(!SoundOn) {
return;
}
IsPlaying = NULL;
#ifdef USE_ALOGG
if(!stream) {
return;
}
if(thread) {
alogg_stop_thread(thread);
while(alogg_is_thread_alive(thread));
alogg_destroy_thread(thread);
thread=NULL;
}
stream=NULL;
#endif
return;
}
int StreamSong_GetVoice()
{
int i,voice=-1;
#ifdef USE_ALOGG
AUDIOSTREAM *audiostream=NULL;
#endif
if(!SoundOn) {
return -1;
}
#ifdef USE_ALOGG
if(!stream) {
return -1;
}
if(!thread) {
return -1;
}
if(!alogg_is_thread_alive(thread)) {
return -1;
}
// Tranquilise the thread while we mess around with it
i=alogg_lock_thread(thread);
if(!i) {
// Get the underlying audio stream structure
audiostream=alogg_get_audio_stream(stream);
if(audiostream) {
// Set the volume level
voice = audiostream->voice;
free_audio_stream_buffer(audiostream);
}
// Leave the thread to wake up
alogg_unlock_thread(thread);
} else {
printf("Alogg thread lock error %d\n",i);
}
#endif
return voice;
}
/*
* Filesystem callbacks for ALOGG/Vorbisfile to use
*/
#ifdef USE_ALOGG
int ov_iFileClose(void *datasource)
{
iclose((IFILE *)datasource);
return 1;
}
size_t ov_iFileRead(void *ptr, size_t size, size_t num, void *datasource)
{
return (size_t)iread((char *)ptr,size*num,(IFILE *)datasource);
}
int ov_iFileSeek(void *datasource, ogg_int64_t pos, int whence)
{
iseek((IFILE *)datasource,(unsigned int)pos,whence);
return 1;
}
long ov_iFileTell(void *datasource)
{
return (long)itell((IFILE *)datasource);
}
#endif
/* load_wav: Taken from Allegro, made to use my filesystem API
* Reads a RIFF WAV format sample file, returning a SAMPLE structure,
* or NULL on error.
*/
SAMPLE *iload_wav(char *filename)
{
IFILE *f;
char buffer[25];
int i;
int length, len;
int freq = 22050;
int bits = 8;
int channels = 1;
signed short s;
SAMPLE *spl = NULL;
*allegro_errno=0;
f = iopen(filename);
if (!f) {
return NULL;
}
iread((unsigned char *)buffer, 12, f); /* check RIFF header */
if (memcmp(buffer, "RIFF", 4) || memcmp(buffer+8, "WAVE", 4)) {
goto getout;
}
while (!ieof(f)) {
if (iread((unsigned char *)buffer, 4, f) != 4) {
break;
}
length = igetl_i(f); /* read chunk length */
if (memcmp(buffer, "fmt ", 4) == 0) {
i = igetsh_i(f); /* should be 1 for PCM data */
length -= 2;
if (i != 1) {
goto getout;
}
channels = igetsh_i(f); /* mono or stereo data */
length -= 2;
if ((channels != 1) && (channels != 2)) {
goto getout;
}
freq = igetl_i(f); /* sample frequency */
length -= 4;
igetl_i(f); /* skip six bytes */
igetsh_i(f);
length -= 6;
bits = igetsh_i(f); /* 8 or 16 bit data? */
length -= 2;
if ((bits != 8) && (bits != 16)) {
goto getout;
}
} else {
if (memcmp(buffer, "data", 4) == 0) {
len = length / channels;
if (bits == 16) {
len /= 2;
}
spl = create_sample(bits, ((channels == 2) ? TRUE : FALSE), freq, len);
if (spl) {
if (bits == 8) {
iread((unsigned char *)spl->data, length, f);
} else {
for (i=0; i<len*channels; i++) {
s = igetsh_i(f);
((signed short *)spl->data)[i] = s^0x8000;
}
}
length = 0;
}
}
}
while (length > 0) { /* skip the remainder of the chunk */
if (igetc(f) == (unsigned char)EOF) {
break;
}
length--;
}
}
getout:
iclose(f);
return spl;
}
#endif
| 16.905405 | 100 | 0.643086 | jpmorris33 |
297b86fd96f873aa7d487aad32e5d6749ab0f63c | 67,207 | cc | C++ | networkio.cc | Luthaf/zeopp | d3fed24fb157583323ece4966f98df293d3fa9a4 | [
"BSD-3-Clause-LBNL"
] | 3 | 2018-05-24T00:42:45.000Z | 2018-05-24T12:34:05.000Z | networkio.cc | Luthaf/zeopp | d3fed24fb157583323ece4966f98df293d3fa9a4 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-04-23T12:21:33.000Z | 2021-04-23T12:41:03.000Z | networkio.cc | Luthaf/zeopp | d3fed24fb157583323ece4966f98df293d3fa9a4 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <cstdlib>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <ctime>
#include <fstream>
#include <string>
#include <sstream>
#include "networkio.h"
#include "string_additions.h"
#include "networkinfo.h"
#include "geometry.h"
#include "symbcalc.h"
#include "zeo_consts.h"
#include "network.h" // Try to eliminate cyclic dependency in future
using namespace std;
/** Identifies the extension and the prefix present in the provided
filename and stores them using the two provided character
pointers. */
void parseFilename(const char * fileName, char *name, char *extension){
string s(fileName);
size_t index = s.find_last_of(".");
if(index == string::npos){
cerr << "Improper input filename " << fileName << "\n";
cerr << "No . extension found. Exiting ..." << "\n";
exit(1);
}
else{
string prefix = s.substr(0, index);
string suffix = s.substr(index + 1);
strncpy(name, prefix.data(), prefix.size()); name[prefix.size()] = '\0';
strncpy(extension, suffix.data(), suffix.size()); extension[suffix.size()] = '\0';
}
}
/** Ensures that the provided file is of type .arc, .car, .cuc, .cssr or .v1 or .cif.
* Otherwise, an error message is displayed and the program is
* aborted. */
bool checkInputFile(char * filename){
string file(filename);
string fileTypes [] = {".cuc", ".arc", ".cssr", ".obcssr", ".v1",".cif",".car",".dlp",".pdb"};
int numTypes = 8;
for(int i = 0; i < numTypes; i++){
if(file.find(fileTypes[i]) != string::npos)
return true;
}
cerr << "Invalid input filename " << filename << "\n" << "Exiting ..." << "\n";
// exit(1);
return false;
}
/** Read the information from the .cif file referred to by filename
and store it within the provided ATOM_NETWORK. */
//void readCIFFile(char *filename, ATOM_NETWORK *cell, bool radial){
bool readCIFFile(char *filename, ATOM_NETWORK *cell, bool radial){
string line;
// Known markers in CIF File if you change the order it will affect the code
string descriptor[] = {"data_",
"_cell_length_a", //case 1
"_cell_length_b", //2
"_cell_length_c", //3
"_cell_angle_alpha", //4
"_cell_angle_beta", //5
"_cell_angle_gamma", //6
"loop_", //7
"_symmetry_equiv_pos_as_xyz", //8
"_space_group_symop_operation_xyz", //9
"_atom_site_label", //10
"_atom_site_type_symbol", //11
"_atom_site_fract_x", //12
"_atom_site_fract_y", //13
"_atom_site_fract_z", //14
"_atom_site_charge", //15
"_symmetry_Int_Tables_number", //16
"_atom_site_Cartn_x", //17
"_atom_site_Cartn_y", //18
"_atom_site_Cartn_z", //19
"_symmetry_equiv_pos_site_id", // 20
"NULL"};
int ndx;
vector<string> list = strAry2StrVec(descriptor);
vector<string> token;
vector<string> sym_x;
vector<string> sym_y;
vector<string> sym_z;
vector<string> atom_label;
vector<string> atom_type;
vector<double> atom_x;
vector<double> atom_y;
vector<double> atom_z;
vector<double> atom_charge;
int symmetry_Int_Table_number = -1; //set to dummy value so we can check if anything was read
bool symmetry_equiv_pos_site_id_Flag = false; // this is to read symmetry lines from lines that have sym. id.
// Try opening the file if it opens proceed with processing
ifstream ciffile;
cout << "Opening File: " << filename << endl;
ciffile.open(filename);
bool read_a = false, read_b = false, read_c = false, read_alpha = false, read_beta = false, read_gamma = false, initialized_cell = false; //keep track of when all cell params are parsed, so the cell can be created
if(ciffile.is_open()) {
while(!ciffile.eof()) {
if(read_a && read_b && read_c && read_alpha && read_beta && read_gamma && !initialized_cell) {cell->initialize(); initialized_cell=true;}
getline(ciffile,line);
//printf("DEBUG: read line %s\n", line.c_str());
token = split(line," ()\r\t");
exception: //I needed an easy way to jump out of the _loop command if an unknown command was found
if (token.size() > 0) {
//Where all non-loop commands should be added
if(token[0].substr(0,5).compare(list[0]) == 0){ //name of unit cell
cell->name=token[0].substr(5);
}
else if (token[0].compare(list[1]) == 0){ //length a
cell->a=convertToDouble(token[1]);
read_a = true;
}
else if (token[0].compare(list[2]) == 0){ //length b
cell->b=convertToDouble(token[1]);
read_b = true;
}
else if (token[0].compare(list[3]) == 0){ //length c
cell->c=convertToDouble(token[1]);
read_c = true;
}
else if (token[0].compare(list[4]) == 0){ //alpha
cell->alpha=convertToDouble(token[1]);
read_alpha = true;
}
else if (token[0].compare(list[5]) == 0){ //beta
cell->beta=convertToDouble(token[1]);
read_beta = true;
}
else if (token[0].compare(list[6]) == 0){ //gamma
cell->gamma=convertToDouble(token[1]);
read_gamma = true;
}
else if (token[0].compare(list[16]) == 0){ //_symmetry_Int_Tables_number
symmetry_Int_Table_number = convertToInt(token[1]);
}
else if (token[0].compare(list[7]) == 0){ //loop_
//printf("DEBUG: inside a \"loop_\" section\n");
vector<string> column_labels;
getline(ciffile,line);
token = split(line," \r\t");
bool tokenized = false, in_loop = true;
if(token.size()>0) tokenized=true;
// while (token[0].at(0)=='_') { //collect all of the collumn labels
while (tokenized && in_loop) { //collect all of the collumn labels
if(token[0].at(0)=='_') {
column_labels.push_back(token[0]);
//printf("DEBUG: within loop, parsed a column header \"%s\"\n", token[0].c_str());
getline(ciffile,line);
//printf("DEBUG: read line \"%s\" - tokenizing ...\n", line.c_str());
token = split(line," \r\t");
if(token.size()<=0) tokenized=false;
} else in_loop = false;
}
if(!tokenized) {
printf("\n#####\n##### WARNING: parsed a loop in cif file, but data was not present\n#####\n\n");
} else {
//printf("DEBUG: exited loop successfully, having read data line \"%s\"\n", line.c_str());
//collecting the data associated with each column and put
// in correct place
token = split(line," ,'\r\t"); //This is needed to split data
bool need_to_convert_to_fractional = false;
while(token.size()>0){
if (token[0].at(0) =='_' || token[0].compare("loop_")==0 || token[0].at(0) == '#'){
goto exception; // unexpected input
}
if (token.size()!=column_labels.size() && column_labels[0].compare(list[8]) != 0 && column_labels[0].compare(list[9]) != 0 && column_labels[0].compare(list[20]) != 0){
goto exception; //unexpected input
}
for (unsigned int i=0; i<column_labels.size(); i++){
switch (strCmpList(list,column_labels[i])){
//printf("SYM DEBUG: checking for symmetry section ...\n");
//Where all loop commands should be added
case 8: //_symmetry_equiv_pos_as_xyz and
case 9: //_space_group_symop_operation_xyz have the same meaning
//printf("SYM DEBUG: symmetry section found!\n");
if (!((token.size()==3&&symmetry_equiv_pos_site_id_Flag==false)||(token.size()==4&&symmetry_equiv_pos_site_id_Flag==true))){
cerr << "Error: Expected 3 strings for _symmetry_equiv_pos_as_xyz (or 4 if _symmetry_equiv_pos_site_id is present)" << endl;
// abort();
ciffile.close();
return false;
}
if(token.size()==3) {
sym_x.push_back(token[0]);
sym_y.push_back(token[1]);
sym_z.push_back(token[2]);}
else {
sym_x.push_back(token[1]);
sym_y.push_back(token[2]);
sym_z.push_back(token[3]);
};
//printf("SYM DEBUG: pushing back %s %s %s\n", token[0].c_str(), token[1].c_str(), token[2].c_str());
break;
case 10:
atom_label.push_back(token[i]);
break;
case 11:
atom_type.push_back(token[i]);
break;
case 12:
atom_x.push_back(trans_to_origuc(convertToDouble(token[i])));
break;
case 13:
atom_y.push_back(trans_to_origuc(convertToDouble(token[i])));
break;
case 14:
atom_z.push_back(trans_to_origuc(convertToDouble(token[i])));
break;
case 15:
atom_charge.push_back(convertToDouble(token[i]));
break;
case 17:
atom_x.push_back(convertToDouble(token[i]));
need_to_convert_to_fractional = true;
break;
case 18:
atom_y.push_back(convertToDouble(token[i]));
need_to_convert_to_fractional = true;
break;
case 19:
atom_z.push_back(convertToDouble(token[i]));
need_to_convert_to_fractional = true;
break;
case 20:
symmetry_equiv_pos_site_id_Flag = true;
break;
}
}
//now we've finished parsing this line, we might need to convert Cartesian to fractional coords
if(need_to_convert_to_fractional) {
Point tempcoor;
int this_ID = atom_x.size()-1;
tempcoor = cell->xyz_to_abc(atom_x.at(this_ID),atom_y.at(this_ID),atom_z.at(this_ID));
//printf("DEBUG: atom at Cartesian %.3f %.3f %.3f written to fractional %.3f %.3f %.3f\n", atom_x.at(this_ID),atom_y.at(this_ID),atom_z.at(this_ID), tempcoor[0], tempcoor[1], tempcoor[2]);
atom_x.at(this_ID) = tempcoor[0];
atom_y.at(this_ID) = tempcoor[1];
atom_z.at(this_ID) = tempcoor[2];
}
getline(ciffile,line);
token = split(line," ',\r\t");
}
column_labels.clear();
}
}
token.clear();
}
}
ciffile.close();
//If no symmetry info was provided, we can assume that none is required (i.e., structure has 'P 1' symmetry), ONLY IF we did not read a symmetry_Int_Tables_Number!=1
if (sym_x.size()==0 || sym_y.size()==0 || sym_z.size()==0){
//no symmetry provided
if (symmetry_Int_Table_number>=0 && symmetry_Int_Table_number!=1) {
//read a symmetry table number, but it was not 1
printf("ERROR:\n\tcif file provided no symmetry operations; however, a symmetry_Int_Tables_Number of %d was provided,\n\tindicating symmetry which is not 'P 1' (no symmetry operations);\n\tcannot proceed with insufficient symmetry information\nExiting ...\n", symmetry_Int_Table_number);
// exit(EXIT_FAILURE);
return false;
} else {
sym_x.push_back("x");
sym_y.push_back("y");
sym_z.push_back("z");
}
}
//Now determine whether it is correct to use atom_label or atom_type (atom_label used only if atom_type has no data)
bool CIF_USE_LABEL = atom_type.size()==0;
//Now determine whether charges are used - only if they were provided
bool CIF_CHARGES = atom_charge.size()>0;
//Parse out the numbers from atom labels and types, if specified (defined in network.h)
if (CIF_RMV_NUMS_FROM_ATOM_TYPE){
if (!CIF_USE_LABEL){
for (unsigned int i=0; i<atom_type.size(); i++){
atom_type[i] = split(atom_type[i],"0123456789").at(0);
}
}
else{
for (unsigned int i=0; i<atom_label.size(); i++){
atom_label[i] = split(atom_label[i],"0123456789").at(0);
}
}
}
//Error checking
if (sym_x.size()==0 || sym_y.size()==0 || sym_z.size()==0 ){
cerr << "Error: No .cif symmetry information given" << endl;
cerr << "DEBUG SHOULDN'T HAPPEN" << endl;
return false;
// abort();
}
if (atom_label.size()==0 && CIF_USE_LABEL == true){
cerr << "Error: No ''_atom_site_label'' or ''_atom_site_type_symbol'' information " << endl;
cerr << "This structure appears to be invalid: there are no atom identifying element types or labels - if this is not the case, then this is a bug; please contact the developers." << endl;
return false;
}
if (atom_type.size()==0 && CIF_USE_LABEL == false){
cerr << "Error: No ''_atom_site_type_symbol'' information" << endl;
cerr << "DEBUG SHOULDN'T HAPPEN" << endl;
return false;
// abort();
}
if (atom_x.size()!=atom_y.size() || atom_y.size()!=atom_z.size() || atom_x.size()==0){
cerr << "Error: Atom coordinates not read properly (" << atom_x.size() << " x coords, " << atom_y.size() << " y coords, " << atom_z.size() << " z coords)" << endl;
// abort();
return false;
}
//If no name for the unit cell is given the filename becomes its name
if (cell->name.size() == 0){
cell->name = *filename;
}
//Now to fully assemble the ATOM_NETWORK initialize constructor
// cell->initialize(); //this should now happen much earlier, during parsing
ATOM tempatom;
Point tempcoor;
for (unsigned int i=0; i<atom_x.size(); i++){ //atoms
if (CIF_USE_LABEL){
tempatom.type = atom_label[i];
}
else {
tempatom.type = atom_type[i];
}
tempatom.radius = lookupRadius(tempatom.type, radial);
if(CIF_CHARGES) {
tempatom.charge = atom_charge[i];
} else tempatom.charge = 0;
for (unsigned int j=0;j<sym_x.size(); j++){ //symmetries
tempatom.a_coord = trans_to_origuc(symbCalc(sym_x[j],atom_x[i],atom_y[i],atom_z[i]));
tempatom.b_coord = trans_to_origuc(symbCalc(sym_y[j],atom_x[i],atom_y[i],atom_z[i]));
tempatom.c_coord = trans_to_origuc(symbCalc(sym_z[j],atom_x[i],atom_y[i],atom_z[i]));
tempcoor = cell->abc_to_xyz (tempatom.a_coord,tempatom.b_coord,tempatom.c_coord);
tempatom.x = tempcoor[0];
tempatom.y = tempcoor[1];
tempatom.z = tempcoor[2];
tempatom.specialID = (i*sym_x.size())+j;
//make sure that no duplicate atoms are writen
int match=1;
for (unsigned int k=0;k<cell->atoms.size(); k++){
if(cell->calcDistance(cell->atoms[k],tempatom)<thresholdLarge) { match=0;
/*
if (tempatom.a_coord-thresholdLarge < cell->atoms[k].a_coord && cell->atoms[k].a_coord < tempatom.a_coord+thresholdLarge)
if (tempatom.b_coord-thresholdLarge < cell->atoms[k].b_coord && cell->atoms[k].b_coord < tempatom.b_coord+thresholdLarge )
if (tempatom.c_coord-thresholdLarge < cell->atoms[k].c_coord && cell->atoms[k].c_coord < tempatom.c_coord+thresholdLarge ){
match=0;
*/
}
}
if (match == 1){
cell->atoms.push_back(tempatom);
}
}
}
cell->numAtoms = cell->atoms.size();
}
else{
cout << "Failed to open: " << filename << endl;
ciffile.close();
// exit(1);
return false;
}
return true;
}
/** Read the .arc file refererred to by filename and store its
information within the provided ATOM_NETWORK. */
//void readARCFile(char *filename, ATOM_NETWORK *cell, bool radial){
bool readARCFile(char *filename, ATOM_NETWORK *cell, bool radial){
FILE * input;
input = fopen(filename, "r");
int numAtoms=0;
if(input==NULL){
cout << "\n" << "Failed to open .arc input file " << filename << "\n";
cout << "Exiting ..." << "\n";
// exit(1);
return false;
}
else{
cout << "Reading input file " << filename << "\n";
// Parse down to the FINAL GEOMETRY OBTAINED line
char this_line[500];
char found_final = 0;
while(found_final == 0) {
if(fgets(this_line, 500, input)!=NULL) {
char str1[100], str2[100], str3[100];
int status = sscanf(this_line, "%s %s %s", str1, str2, str3);
if(status!=-1) {
if(strcmp(str1,"FINAL")==0 && strcmp(str2,"GEOMETRY")==0 && strcmp(str3,"OBTAINED")==0) {
found_final = 1;
}
}
} else {
printf("ERROR: finished parsing ARC file before finding geometry section\n");
// exit(EXIT_FAILURE);
fclose(input);
return false;
}
}
// Now parse following lines, trying to extract atom info
int found_atoms = 0;
double x, y, z, charge;
char element[100], str1[100], str2[100], str3[100];
while(found_atoms==0) {
if(fgets(this_line, 500, input)!=NULL) {
int status = sscanf(this_line, "%s %lf %s %lf %s %lf %s %lf", element, &x, str1, &y, str2, &z, str3, &charge);
if(status==8) { //i.e. exactly 8 fields are required to be read
found_atoms = 1;
}
} else {
printf("ERROR: finished parsing ARC file before finding individual atom information\n");
// exit(EXIT_FAILURE);
fclose(input);
return false;
}
}
// At this point, we have the first atom info in memory
ATOM newAtom;
while(found_atoms==1) {
//save previously discovered atom data - just xyz data for now
newAtom.x = x;
newAtom.y = y;
newAtom.z = z;
newAtom.type = string(element);
newAtom.radius = lookupRadius(newAtom.type, radial);
newAtom.charge = charge;
cell->atoms.push_back(newAtom);
numAtoms++;
//try to find next atom data
if(fgets(this_line, 500, input)!=NULL) {
int status = sscanf(this_line, "%s %lf %s %lf %s %lf %s %lf", element, &x, str1, &y, str2, &z, str3, &charge);
if(status!=8) found_atoms = 0; //if we can't read all 8 fields, we have, presumably, reached the unit cell params
} else {
printf("ERROR: finished parsing ARC file before finding unit cell info\n");
// exit(EXIT_FAILURE);
fclose(input);
return false;
}
}
// Now we have read all the atoms, we read the unit cell vectors
XYZ v_a, v_b, v_c;
for(int i=0; i<3; i++) {
if(i==0) {
v_a.x = x; v_a.y = y; v_a.z = z;
} else if(i==1) {
v_b.x = x; v_b.y = y; v_b.z = z;
} else if(i==2) {
v_c.x = x; v_c.y = y; v_c.z = z;
}
if(i!=2) {
if(fgets(this_line, 500, input)!=NULL) {
int status = sscanf(this_line, "%s %lf %s %lf %s %lf %s", element, &x, str1, &y, str2, &z, str3);
if(status!=7) { //didn't read exactly 7 fields
printf("ERROR: could not read exactly three unit cell vectors\n");
// exit(EXIT_FAILURE);
fclose(input);
return false;
}
}
}
}
cell->numAtoms = numAtoms;
fclose(input);
// Set up cell
cell->v_a = v_a;
cell->v_b = v_b;
cell->v_c = v_c;
double alpha = v_b.angle_between(v_c);
double beta = v_a.angle_between(v_c);
double gamma = v_a.angle_between(v_b);
cell->alpha = alpha*360.0/(2.0*PI);
cell->beta = beta*360.0/(2.0*PI);
cell->gamma = gamma*360.0/(2.0*PI); //required since it expects to store degrees
cell->a = v_a.magnitude();
cell->b = v_b.magnitude();
cell->c = v_c.magnitude();
cell->initMatrices();
cell->name = filename;
cell->name.erase(cell->name.end()-4, cell->name.end());
// cout << "number of atoms read " << numAtoms << "\n";
// Convert atom coords to abc and update the xyz values to be within the UC
for(int i=0; i<numAtoms; i++) {
Point newCoords = cell->xyz_to_abc(cell->atoms.at(i).x,cell->atoms.at(i).y,cell->atoms.at(i).z);
cell->atoms.at(i).a_coord = trans_to_origuc(newCoords[0]); cell->atoms.at(i).b_coord = trans_to_origuc(newCoords[1]); cell->atoms.at(i).c_coord = trans_to_origuc(newCoords[2]);
newCoords = cell->abc_to_xyz(cell->atoms.at(i).a_coord,cell->atoms.at(i).b_coord,cell->atoms.at(i).c_coord);
cell->atoms.at(i).x = newCoords[0]; cell->atoms.at(i).y = newCoords[1]; cell->atoms.at(i).z = newCoords[2];
//cout << i << " " << cell->atoms.at(i).type << " " << newCoords[0] << " " << newCoords[1] << " " << newCoords[2] <<"\n";
}
}
return true;
}
/** Read the .cuc file refererred to by filename and store its
information within the provided ATOM_NETWORK. */
//void readCUCFile(char *filename, ATOM_NETWORK *cell, bool radial){
bool readCUCFile(char *filename, ATOM_NETWORK *cell, bool radial){
fstream input;
input.open(filename);
char garbage[256];
int numAtoms;
if(!input.is_open()){
cout << "\n" << "Failed to open .cuc input file " << filename << "\n";
cout << "Exiting ..." << "\n";
// exit(1);
return false;
}
else{
cout << "Reading input file " << filename << "\n";
// Read and store information about the unit cell
cell->name = filename;
cell->name.erase(cell->name.end()-4, cell->name.end());
input.getline(garbage, 256);
input >> garbage;
input >> cell->a >> cell->b >> cell->c;
input >> cell->alpha >> cell->beta >> cell->gamma;
cell->initialize(); // Initializes the unit cell vectors using the
// angles and side lengths
// Read and store information about each atom
numAtoms = 0;
while(!input.eof()){
ATOM newAtom;
input >> newAtom.type;
if(newAtom.type.empty())
break;
changeAtomType(&newAtom); // Converts to atom type
input >> newAtom.a_coord >> newAtom.b_coord >> newAtom.c_coord;
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
Point newCoords = cell->abc_to_xyz (newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x = newCoords[0]; newAtom.y = newCoords[1]; newAtom.z = newCoords[2];
newAtom.radius = lookupRadius(newAtom.type, radial);
newAtom.label=newAtom.type;
cell->atoms.push_back(newAtom);
numAtoms++;
}
cell->numAtoms= numAtoms;
input.close();
}
return true;
}
/** Read the information from the .cssr file referred to by filename
and store it within the provided ATOM_NETWORK. */
//void readCSSRFile(char *filename, ATOM_NETWORK *cell, bool radial){
bool readCSSRFile(char *filename, ATOM_NETWORK *cell, bool radial){
string garbage; //this is a garbage string to read line
int i,j;
fstream input;
input.open(filename);
if(input.is_open()==true){
// Read the header information
cout << "Reading input file: " << filename << endl;
input.ignore(38);
input >> cell->a >> cell->b >> cell->c;
getline(input,garbage);
input.ignore(21);
input >> cell->alpha >> cell->beta >> cell->gamma;
getline(input,garbage);
string numStr;
bool longCSSR=false; // this flag wiill enable switching to a different read routine
// to handle files with number of atoms larger than 10000
bool CartCoords=false; // this flag enables reading Cartesian coordinates
input >> numStr >> CartCoords;
getline(input,garbage);
// input >> cell->numAtoms;
if(numStr.compare("****") == 0) longCSSR=true;
// input >> i >> cell->name; // some files have '0' preceeding name
// getline(input,garbage);
getline(input,cell->name);
cell->initialize();
if(longCSSR == false){
cell->numAtoms = atoi(numStr.c_str());
// Read and store information about each atom
for(j=0;j<cell->numAtoms;j++) {
ATOM newAtom;
if(CartCoords==false) {
input >> newAtom.specialID >> newAtom.type >> newAtom.a_coord >> newAtom.b_coord >>newAtom.c_coord;
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
Point newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];}
else{ // read-in cartesian
input >> newAtom.specialID >> newAtom.type >> newAtom.x >> newAtom.y >> newAtom.z;
Point newCoords=cell->xyz_to_abc(newAtom.x,newAtom.y,newAtom.z);
newAtom.a_coord=newCoords[0]; newAtom.b_coord=newCoords[1]; newAtom.c_coord=newCoords[2];
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];
};
newAtom.radius=lookupRadius(newAtom.type, radial);
cell->atoms.push_back(newAtom);
// getline(input,garbage);
//read these numbers after the coords, since the final field contains charge information
int empty_int = 0;
for(int k=0; k<8; k++) input >> empty_int;
input >> newAtom.charge;
}
}
else{ // start longCSSR=true
cout << "Long CSSR file. Switching to another reading routine.\n" ;
int na=1;
while(!input.eof())
{
ATOM newAtom;
newAtom.specialID = na;
input >> garbage;
if(input.eof())
{
na--;
break;
};
if(CartCoords==false) {
input >> newAtom.type >> newAtom.a_coord >> newAtom.b_coord >>newAtom.c_coord;
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
Point newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];}
else{ // input in cartesian
input >> newAtom.type >> newAtom.x >> newAtom.y >> newAtom.z;
Point newCoords=cell->xyz_to_abc(newAtom.x,newAtom.y,newAtom.z);
newAtom.a_coord=newCoords[0]; newAtom.b_coord=newCoords[1]; newAtom.c_coord=newCoords[2];
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];
};
newAtom.radius=lookupRadius(newAtom.type, radial);
//read these numbers after the coords, since the final field contains charge information
int empty_int = 0;
for(int k=0; k<8; k++) input >> empty_int;
input >> newAtom.charge;
cell->atoms.push_back(newAtom);
// cout << na << " " << newAtom.type << " " << newAtom.a_coord << " " << newAtom.b_coord << " " << newAtom.c_coord << endl;
na++;
};
cell->numAtoms = na;
cout << na << " atoms read." << endl;
};// end longCSSR=true
input.close();
}
else{
cerr << "Error: CSSR failed to open " << filename << endl;
// abort();
return false;
}
return true;
}
/** Read the information from the .obcssr file referred to by filename
and store it within the provided ATOM_NETWORK.
obcssr are Open Babel generated cssr files */
bool readOBCSSRFile(char *filename, ATOM_NETWORK *cell, bool radial){
string garbage; //this is a garbage string to read line
int i,j;
fstream input;
input.open(filename);
if(input.is_open()==true){
// Read the header information
cout << "Reading input file: " << filename << endl;;
for(int i=0; i<6; i++) input >> garbage;
input >> cell->a >> cell->b >> cell->c;
getline(input,garbage);
input >> garbage >> garbage;
input >> cell->alpha >> cell->beta >> cell->gamma;
getline(input,garbage);
string numStr;
bool longCSSR=false; // this flag wiill enable switching to a different read routine
// to handle files with number of atoms larger than 10000
bool CartCoords=false; // this flag enables reading Cartesian coordinates
cout << "Attempt to read OpenBabel CSSR file. Atom connectivity and charge columns will be omitted" << endl;
input >> numStr >> CartCoords;
getline(input,garbage);
// input >> cell->numAtoms;
if(numStr.compare("****") == 0) longCSSR=true;
// input >> i >> cell->name; // some files have '0' preceeding name
// getline(input,garbage);
getline(input,cell->name);
cell->initialize();
if(longCSSR == false){
cell->numAtoms = atoi(numStr.c_str());
// Read and store information about each atom
for(j=0;j<cell->numAtoms;j++) {
ATOM newAtom;
if(CartCoords==false) {
input >> newAtom.specialID >> newAtom.type >> newAtom.a_coord >> newAtom.b_coord >>newAtom.c_coord;
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
Point newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];}
else{ // read-in cartesian
input >> newAtom.specialID >> newAtom.type >> newAtom.x >> newAtom.y >> newAtom.z;
Point newCoords=cell->xyz_to_abc(newAtom.x,newAtom.y,newAtom.z);
newAtom.a_coord=newCoords[0]; newAtom.b_coord=newCoords[1]; newAtom.c_coord=newCoords[2];
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];
};
newAtom.radius=lookupRadius(newAtom.type, radial);
cell->atoms.push_back(newAtom);
//uncommented the following line to reads Marcos files
getline(input,garbage);
//read these numbers after the coords, since the final field contains charge information
// int empty_int = 0;
// for(int k=0; k<8; k++) input >> empty_int;
// input >> newAtom.charge;
// TEMP addition to read Marco's cssrs
// input >> empty_int;
}
}
else{ // start longCSSR=true
cout << "Long CSSR file. Switching to another reading routine.\n" ;
int na=1;
while(!input.eof())
{
ATOM newAtom;
newAtom.specialID = na;
input >> garbage;
if(input.eof())
{
na--;
break;
};
if(CartCoords==false) {
input >> newAtom.type >> newAtom.a_coord >> newAtom.b_coord >>newAtom.c_coord;
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
Point newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];}
else{ // input in cartesian
input >> newAtom.type >> newAtom.x >> newAtom.y >> newAtom.z;
Point newCoords=cell->xyz_to_abc(newAtom.x,newAtom.y,newAtom.z);
newAtom.a_coord=newCoords[0]; newAtom.b_coord=newCoords[1]; newAtom.c_coord=newCoords[2];
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
newCoords=cell->abc_to_xyz(newAtom.a_coord,newAtom.b_coord,newAtom.c_coord);
newAtom.x=newCoords[0]; newAtom.y=newCoords[1]; newAtom.z=newCoords[2];
};
newAtom.radius=lookupRadius(newAtom.type, radial);
//read these numbers after the coords, since the final field contains charge information
int empty_int = 0;
for(int k=0; k<8; k++) input >> empty_int;
input >> newAtom.charge;
cell->atoms.push_back(newAtom);
// TEMP addition to read Marco's cssrs
input >> empty_int;
// cout << na << " " << newAtom.type << " " << newAtom.a_coord << " " << newAtom.b_coord << " " << newAtom.c_coord << endl;
na++;
};
cell->numAtoms = na;
cout << na << " atoms read." << endl;
};// end longCSSR=true
input.close();
}
else{
cerr << "Error: CSSR failed to open " << filename << endl;
// abort();
return false;
}
return true;
}
/** Read the information from the .car file referred to by filename
and store it within the provided ATOM_NETWORK. */
bool readCARFile(char *filename, ATOM_NETWORK *cell, bool radial){
string garbage; //this is a garbage string to read line
int i,j;
fstream input;
input.open(filename);
if(input.is_open()==true){
// Read the header information
cout << "Reading input file: " << filename << endl;
getline(input, garbage); // skip the first comment line
string PBCline;
input >> PBCline; getline(input, garbage);
if(PBCline.compare("PBC=ON") != 0)
{
cerr << "This .car file does not have a periodic structure. Exiting...\n";
return false;
};
getline(input, garbage); // skipping two next lines
getline(input, garbage);
input >> garbage;
input >> cell->a >> cell->b >> cell->c;
input >> cell->alpha >> cell->beta >> cell->gamma;
string SYMMline;
input >> SYMMline;
getline(input,garbage);
if(SYMMline.compare("(P1)") !=0)
{
cerr << "The current .car reader does only work for (P1) symmetry.\n";
return false;
};
cell->name = filename;
cell->initialize();
bool end=false;
int na=0;
while(!end)
{
string str1, str2, str3, str4;
input >> str1;
if(str1.compare("end") == 0 || str1.compare("END") == 0)
{
end = true;
} else
{
ATOM newAtom;
input >> newAtom.x >> newAtom.y >> newAtom.z;
input >> str2 >> str3 >> str4;
input >> newAtom.type >> newAtom.charge;
if(!CAR_USE_ATOM_TYPE_OVER_NAME) newAtom.type = str1;
Point newCoords = cell->xyz_to_abc(newAtom.x, newAtom.y, newAtom.z);
newAtom.a_coord = newCoords[0]; newAtom.b_coord = newCoords[1]; newAtom.c_coord = newCoords[2];
newAtom.radius = lookupRadius(newAtom.type, radial);
cell->atoms.push_back(newAtom);
na++;
};
};
cell->numAtoms = na;
cout << na << " atoms read." << endl;
input.close();
}
else{
cerr << "Error: CAR failed to open " << filename << endl;
// abort();
return false;
}
return true;
}
/** Read the information from the .pdb file referred to by filename
and store it within the provided ATOM_NETWORK.
This function is written to handle example .pdb files from RASPA
*/
bool readPDBFile(char *filename, ATOM_NETWORK *cell, bool radial){
string garbage; //this is a garbage string to read line
int i,j;
fstream input;
input.open(filename);
if(input.is_open()==true){
// Read the header information
cout << "Reading input file: " << filename << endl;
getline(input, garbage); // skip the first comment line
string PBCline;
input >> PBCline;
if(PBCline.compare("CRYST1") != 0)
{
cerr << "This .pdb files does not contain CRYST1 in the second line. File format not compatible. Exiting...\n";
return false;
};
input >> cell->a >> cell->b >> cell->c;
input >> cell->alpha >> cell->beta >> cell->gamma;
getline(input,garbage); // reading rest of line
cell->name = filename;
cell->initialize();
bool end=false;
int na=0;
while(!end)
{
string str1, str2, str3, str4;
input >> str1; // reads ATOM or ENDMDL keyword
if(str1.compare("ENDMDL") == 0)
{
end = true;
} else
{
ATOM newAtom;
input >> str2 ; // reading ID#
input >> newAtom.type;
input >> str4; // reading MDL
input >> newAtom.x >> newAtom.y >> newAtom.z;
input >> str2 >> str3 >> str4; // ignore 2 numbers and a string with label
// if(!CAR_USE_ATOM_TYPE_OVER_NAME) newAtom.type = str1;
Point newCoords = cell->xyz_to_abc(newAtom.x, newAtom.y, newAtom.z);
newAtom.a_coord = newCoords[0]; newAtom.b_coord = newCoords[1]; newAtom.c_coord = newCoords[2];
newAtom.radius = lookupRadius(newAtom.type, radial);
cell->atoms.push_back(newAtom);
na++;
};
};
cell->numAtoms = na;
cout << na << " atoms read." << endl;
input.close();
}
else{
cerr << "Error: PDB failed to open " << filename << endl;
// abort();
return false;
}
return true;
}
/** Read the information from the .v1 file referrred to by filename
and store it within the provided ATOM_NETWORK. */
//void readV1File(char *filename, ATOM_NETWORK *cell, bool radial){
bool readV1File(char *filename, ATOM_NETWORK *cell, bool radial){
fstream input;
char garbage[256];
int i;
input.open(filename);
if(!input.is_open()){
cout<< "Failed to open .v1 file " << filename << "\n";
cout<<"Exiting ..." << "\n";
// exit(1);
return false;
}
else{
cout << "Reading input file " << filename << "\n";
input.getline(garbage, 256);
// Read and store information about the unit cell. While the
// vector components are known, the side lengths and angles remain unknown
input >> garbage >> cell->v_a.x >> cell->v_a.y >> cell->v_a.z;
input >> garbage >> cell->v_b.x >> cell->v_b.y >> cell->v_b.z;
input >> garbage >> cell->v_c.x >> cell->v_c.y >> cell->v_c.z;
input >> cell->numAtoms;
cell->initMatrices();
//Recover information about unit cell angles and side lengths from
//vector components. Essentially reverses the steps performed in
//the initialize() method for ATOM_NETWORK instances as contained
//in the file networkstorage.cc
cell->a = cell->v_a.x;
cell->b = sqrt(cell->v_b.x*cell->v_b.x+cell->v_b.y*cell->v_b.y);
cell->c = sqrt(cell->v_c.x*cell->v_c.x+cell->v_c.y*cell->v_c.y+cell->v_c.z*cell->v_c.z);
cell->beta = acos(cell->v_c.x/cell->c)*360.0/(2.0*PI);
cell->gamma = acos(cell->v_b.x/cell->b)*360.0/(2.0*PI);
cell->alpha = 360.0/(2*PI)*acos((cell->v_c.y/cell->c*sin(2.0*PI*cell->gamma/360.0))
+cos(2.0*PI/360.0*cell->gamma)*cos(2.0*PI/360.0*cell->beta));
// Read and store information about each atom. The coordinates
// relative to the unit cell vectors remain unknown
for(i=0; i<cell->numAtoms; i++){
ATOM newAtom;
input >> newAtom.type >> newAtom.x >> newAtom.y >> newAtom.z;
Point abcCoords = cell->xyz_to_abc(newAtom.x, newAtom.y, newAtom.z);
newAtom.a_coord = trans_to_origuc(abcCoords[0]); newAtom.b_coord = trans_to_origuc(abcCoords[1]); newAtom.c_coord = trans_to_origuc(abcCoords[2]);
newAtom.radius = lookupRadius(newAtom.type, radial);
cell->atoms.push_back(newAtom);
}
input.close();
}
return true;
}
/** Read the information from the .pld file referrred to by filename
and store it within the provided ATOM_NETWORK.
.dlp is a frame from DL_poly HISTORY file */
bool readDLPFile(char *filename, ATOM_NETWORK *cell, bool radial){
fstream input;
char garbage[256];
int i;
input.open(filename);
if(!input.is_open()){
cout<< "Failed to open .dlp file " << filename << "\n";
cout<<"Exiting ..." << "\n";
// exit(1);
return false;
}
else{
cout << "Reading input file " << filename << "\n";
input.getline(garbage, 256);
// Read and store information about the unit cell. While the
// vector components are known, the side lengths and angles remain unknown
input >> cell->v_a.x >> cell->v_a.y >> cell->v_a.z;
input >> cell->v_b.x >> cell->v_b.y >> cell->v_b.z;
input >> cell->v_c.x >> cell->v_c.y >> cell->v_c.z;
// input >> cell->numAtoms;
cell->initMatrices();
//Recover information about unit cell angles and side lengths from
//vector components. Essentially reverses the steps performed in
//the initialize() method for ATOM_NETWORK instances as contained
//in the file networkstorage.cc
cell->a = cell->v_a.x;
cell->b = sqrt(cell->v_b.x*cell->v_b.x+cell->v_b.y*cell->v_b.y);
cell->c = sqrt(cell->v_c.x*cell->v_c.x+cell->v_c.y*cell->v_c.y+cell->v_c.z*cell->v_c.z);
cell->beta = acos(cell->v_c.x/cell->c)*360.0/(2.0*PI);
cell->gamma = acos(cell->v_b.x/cell->b)*360.0/(2.0*PI);
cell->alpha = 360.0/(2*PI)*acos((cell->v_c.y/cell->c*sin(2.0*PI*cell->gamma/360.0))
+cos(2.0*PI/360.0*cell->gamma)*cos(2.0*PI/360.0*cell->beta));
// Read and store information about each atom
int numAtoms = 0;
while(!input.eof()){
ATOM newAtom;
input >> newAtom.type;
if(newAtom.type.empty())
break;
input.getline(garbage,256); // reading remaining data from a line
input >> newAtom.x >> newAtom.y >> newAtom.z;
input.getline(garbage,256); // read end of line
Point newCoords = cell->xyz_to_abc (newAtom.x,newAtom.y,newAtom.z);
newAtom.a_coord = newCoords[0]; newAtom.b_coord = newCoords[1]; newAtom.c_coord = newCoords[2];
newAtom.a_coord = trans_to_origuc(newAtom.a_coord);
newAtom.b_coord = trans_to_origuc(newAtom.b_coord);
newAtom.c_coord = trans_to_origuc(newAtom.c_coord);
newAtom.radius = lookupRadius(newAtom.type, radial);
cell->atoms.push_back(newAtom);
numAtoms++;
}
cell->numAtoms= numAtoms;
input.close();
}
return true;
}
/** Read the VORONOI_NETWORK information located in the provided input stream and
* store it using the provided VORONOI_NETWORK pointer. The input stream must have a file format
* corresponding to a .net or .nt2 format. */
void readNet(istream *input, VORONOI_NETWORK *vornet){
char buff [256];
input->getline(buff,256); // Read line "Vertex table:"
VOR_NODE node;
string garbage;
// Read information about each Voronoi node
int i = 0;
while(true){
(*input) >> garbage;
if(strcmp(garbage.data(), "Edge") == 0)
break;
(*input) >> node.x >> node.y >> node.z >> node.rad_stat_sphere;
// Read node connectivity information
char *connectBuff = new char [256];
char *origBuff = connectBuff;
input->getline(connectBuff,256);
connectBuff+= 1; //Skip space character
char *currentChar = connectBuff;
vector<int> nearestAtoms;
while(true){
if(*currentChar == ' ' || *currentChar == '\0'){
char nextID[256];
strncpy(nextID,connectBuff,currentChar-connectBuff);
nextID[currentChar-connectBuff] = '\0';
nearestAtoms.push_back(atoi(nextID));
connectBuff = currentChar + 1;
}
if(*currentChar == '\0')
break;
currentChar++;
}
delete [] origBuff;
node.atomIDs = nearestAtoms;
vornet->nodes.push_back(node);
i++;
}
input->getline(buff,256); // Reads remainder of line "Edge table:"
//Read information about each Voronoi edge
VOR_EDGE edge;
while(!input->eof()){
(*input) >> edge.from >> garbage >> edge.to >> edge.rad_moving_sphere
>> edge.delta_uc_x >> edge.delta_uc_y >> edge.delta_uc_z >> edge.length;
vornet->edges.push_back(edge);
}
vornet->edges.pop_back();
}
/* Read the VORONOI_NETWORK located in the provided file and store
* it using the provided network pointer. The file must be in the .net/.nt2
* file format. */
//void readNetFile(char * filename, VORONOI_NETWORK *vornet){
bool readNetFile(char * filename, VORONOI_NETWORK *vornet){
fstream input;
input.open(filename);
if(!input.is_open()){
cout<< "Failed to open .nt2 file " << filename << "\n";
cout<<"Exiting ..." << "\n";
// exit(1);
return false;
}
else{
readNet(&input, vornet);
}
return true;
}
/** Write the information within the provided ATOM_NETWORK in a .cssr
file format to the provided filename. */
bool writeToCSSR(char *filename, ATOM_NETWORK *cell){
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .cssr output file " << filename << endl;
//cerr << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing atom network information to " << filename << "\n";
// Write information about the unit cell
output << "\t\t\t\t" << cell->a << " " << cell->b << " " << cell->c << "\n";
output << "\t\t" << cell->alpha<<" "<< cell->beta <<" " << cell->gamma <<" SPGR = 1 P 1\t\t OPT = 1" << "\n";
output << cell->numAtoms << " 0 " << "\n";
output << "0 " << cell->name << "\t" << ": " << cell->name << "\n";
output.setf(ios::fixed, ios::floatfield);
int i;
ATOM atm;
// Write information about each atom
for(i = 0; i<cell->numAtoms; i++){
atm = cell->atoms.at(i);
output << " " << i+1 << " " << cell->atoms.at(i).type << " " << atm.a_coord << " "
<< atm.b_coord << " " << atm.c_coord << " 0 0 0 0 0 0 0 0 " << atm.charge << "\n";
}
output.close();
return true;
}
}
/** Write the information within the provided ATOM_NETWORK in a .cssr
file format to the provided filename, using labels instead of element types. */
bool writeToCSSRLabeled(char *filename, ATOM_NETWORK *cell){
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .cssr output file " << filename << endl;
//cerr << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing atom network information to " << filename << "\n";
// Write information about the unit cell
output << "\t\t\t\t" << cell->a << " " << cell->b << " " << cell->c << "\n";
output << "\t\t" << cell->alpha<<" "<< cell->beta <<" " << cell->gamma <<" SPGR = 1 P 1\t\t OPT = 1" << "\n";
output << cell->numAtoms << " 0 " << "\n";
output << "0 " << cell->name << "\t" << ": " << cell->name << "\n";
output.setf(ios::fixed, ios::floatfield);
int i;
ATOM atm;
// Write information about each atom
for(i = 0; i<cell->numAtoms; i++){
atm = cell->atoms.at(i);
output << " " << i+1 << " " << cell->atoms.at(i).label << " " << atm.a_coord << " "
<< atm.b_coord << " " << atm.c_coord << " 0 0 0 0 0 0 0 0 " << atm.charge << "\n";
}
output.close();
return true;
}
}
/* Computes the formula of the input ATOM_NETWORK and returns it as a c++ string */
string get_formula(ATOM_NETWORK const *const cell)
{
vector<string> atomtypes;
map<string,int> typecount;
for (vector<ATOM>::const_iterator it=cell->atoms.begin(); it!=cell->atoms.end(); ++it){
if (find(atomtypes.begin(), atomtypes.end(), it->type) != atomtypes.end()){
++(typecount[it->type]);
}
else{
atomtypes.push_back(it->type);
typecount[it->type] = 1;
}
}
string formula;
for (map<string,int>::iterator it=typecount.begin(); it!=typecount.end(); ++it){
formula.append(it->first);
stringstream ss;
ss << it->second;
formula.append(ss.str());
}
return formula;
}
/* Generates time stamp */
string get_timestamp()
{
char buff[80];
time_t rawtime;
struct tm* timeinfo;
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(buff, 80, "%F_%T", timeinfo);
return string(buff);
}
/** Write the infomation within the provided ATOM_NETWORK in a .cif
file format to the provided filename. **/
bool writeToCIF(char *filename, ATOM_NETWORK *cell){
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .cif output file " << filename << endl;
//cerr << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing atom network information to " << filename << "\n";
//output << "data_" << origname << endl; //we need this data_(name) line otherwise the cif file will not be considered valid in some software packages
//Instead of supplying argument to write data_..., using timestamp with number of atoms in the structure
string formula = get_formula(cell);
string time_stamp = get_timestamp();
output << "data_" << formula << "_" << time_stamp << endl;
output << "#******************************************" << endl;
output << "#" << endl;
output << "# CIF file created by Zeo++" << endl;
output << "# Zeo++ is an open source package to" << endl;
output << "# analyze microporous materials" << endl;
output << "#" << endl;
output << "#*******************************************" << "\n\n";
output << "_cell_length_a\t\t" << cell->a << " " << endl; // removed (0)
output << "_cell_length_b\t\t" << cell->b << " " << endl;
output << "_cell_length_c\t\t" << cell->c << " " << endl;
output << "_cell_angle_alpha\t\t" << cell->alpha << " " << endl;
output << "_cell_angle_beta\t\t" << cell->beta << " " << endl;
output << "_cell_angle_gamma\t\t" << cell->gamma << " \n\n";
output << "_symmetry_space_group_name_H-M\t\t" << "'P1'" << endl;
output << "_symmetry_Int_Tables_number\t\t" << "1" << endl;
output << "_symmetry_cell_setting\t\t";
//Determine the Crystal System
if (cell->alpha == 90 && cell->beta == 90 && cell->gamma == 90){
if (cell->a == cell->b || cell->b == cell->c || cell->a == cell->c){
if (cell->a == cell->b && cell->b == cell->c){
output << "Isometric\n" << endl;
}
else {
output << "Tetragonal\n" << endl;
}
}
else{
output << "Orthorhombic\n" << endl;
}
}
else if(cell->alpha == cell->beta || cell->beta == cell->gamma || cell->alpha == cell->gamma){
output << "Monoclinic\n" << endl;
}
else{
output << "Triclinic\n" << endl;
}
output << "loop_" << endl;
output << "_symmetry_equiv_pos_as_xyz" << endl;
output << "'+x,+y,+z'\n" << endl;
output << "loop_" << endl;
output << "_atom_site_label" << endl;
output << "_atom_site_type_symbol" << endl;
output << "_atom_site_fract_x" << endl;
output << "_atom_site_fract_y" << endl;
output << "_atom_site_fract_z" << endl;
for (unsigned int i=0; i<cell->atoms.size(); i++){
ATOM *temp=&(cell->atoms.at(i));
output << temp->specialID << "\t" << temp->type << "\t" << trans_to_origuc(temp->a_coord) << "\t" << trans_to_origuc(temp->b_coord) << "\t" << trans_to_origuc(temp->c_coord) << endl;
}
output.close();
return true;
}
}
/** Write the information within the provided ATOM_NETWORK in a .v1
file format to the provided filename. */
bool writeToV1(char * filename, ATOM_NETWORK *cell){
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .v1 output file " << filename << endl;
//cerr << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing atom network information to " << filename << "\n";
// Write information about the unit cell
output << "Unit cell vectors:" << "\n";
output.precision(8);
output << "va= " << cell->v_a.x << " " << cell->v_a.y << " " << cell->v_a.z << "\n";
output << "vb= " << cell->v_b.x << " " << cell->v_b.y << " " << cell->v_b.z << "\n";
output << "vc= " << cell->v_c.x << " " << cell->v_c.y << " " << cell->v_c.z << "\n";
output << cell->numAtoms << "\n";
// Write information about each atom
vector <ATOM> ::iterator iter = cell->atoms.begin();
while(iter != cell->atoms.end()){
output << iter->type << " " << iter->x << " " << iter->y << " " << iter->z << "\n";
iter++;
}
}
output.close();
return true;
}
/** Write the information stored within the VORONOI_NETWORK in a .nt2
file format to the provided filename. Excludes any nodes or nodes with radii
less than the provided threshold. For the default 0, all nodes and endges are included*/
bool writeToNt2(char *filename, VORONOI_NETWORK *vornet, double minRad){
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .net2 output file " << filename << "\n";
//cerr << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing Voronoi network information to " << filename << "\n";
// Write Voronoi node information
output << "Vertex table:" << "\n";
vector<VOR_NODE> ::iterator niter = vornet->nodes.begin();
int i = 0;
while(niter != vornet->nodes.end()){
if(niter->rad_stat_sphere > minRad){
output << i << " " << niter-> x << " " << niter-> y << " "
<< niter-> z << " " << niter->rad_stat_sphere;
//Write Voronoi node/atom pairing information in i j k....z format
output << " ";
for(unsigned int j = 0; j < niter->atomIDs.size(); j++){
output << niter->atomIDs.at(j);
if(j < niter->atomIDs.size()-1)
output << " ";
}
output << "\n";
}
i++;
niter++;
}
// Write Voronoi edge information
output << "\n" << "Edge table:" << "\n";
vector<VOR_EDGE> ::iterator eiter = vornet->edges.begin();
while(eiter != vornet->edges.end()){
if(eiter->rad_moving_sphere > minRad){
output << eiter->from << " -> " << eiter->to << " " << eiter->rad_moving_sphere
<< " " << eiter->delta_uc_x << " " << eiter->delta_uc_y << " "
<< eiter->delta_uc_z << " " << eiter->length << "\n";
}
eiter++;
}
}
output.close();
return true;
}
/** Write the voronoi noide information within the VORONOI_NETWORK in .xyz
file format to the provided filename. Excludes any nodes with radii
less than the provided threshold. For the default 0, all nodes are included*/
bool writeToXYZ(char *filename, VORONOI_NETWORK *vornet, double minRad){
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .net2 output file " << filename << "\n";
return false;
}
else{
cout << "Writing Voronoi network information to " << filename << "\n";
// Write Voronoi node information
//Compute the # of nodes to be written
int i = 0;
for (vector<VOR_NODE>::const_iterator iter = vornet->nodes.begin();
iter != vornet->nodes.end(); iter++)
if (iter->rad_stat_sphere > minRad){
i++;
}
output << i << "\n\n";
for (vector<VOR_NODE>::const_iterator iter = vornet->nodes.begin();
iter != vornet->nodes.end(); iter++)
if (iter->rad_stat_sphere > minRad)
output << "X " << iter->x << " " << iter->y << " "
<< iter->z << " " << iter->rad_stat_sphere << "\n";
}
output.close();
return true;
}
/** Write the information stored within the VORONOI_NETWORK in a .nt2
file format to the provided filename. Includes all nodes and edges. */
/* redudant
bool writeToNt2(char *filename, VORONOI_NETWORK *vornet){
return nwriteToNt2(filename, vornet, 0);
} */
/** Write the information within the provided ATOM_NETWORK in a .xyz
file format to the provided filename. */
//updated this function to permit supercell (2x2x2) and duplication of atoms on the unit cell perimeter, if desired
bool writeToXYZ(char *filename, ATOM_NETWORK *cell, bool is_supercell, bool is_duplicate_perimeter_atoms){
int num_cells = SUPERCELL_SIZE; //defined in networkio.h
if(!is_supercell) num_cells = 1;
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .xyz output file " << filename << endl;
//cerr << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing atom network information to " << filename << "\n";
//1) construct a new vector of atoms, which contains any supercell projections and duplicates
vector<ATOM> new_atoms;
for(int i=0; i<cell->numAtoms; i++) {
ATOM atom = cell->atoms.at(i);
Point orig_abc(atom.a_coord, atom.b_coord, atom.c_coord);
Point uc_abc = cell->shiftABCInUC(orig_abc);
//first, determine all the supercell images of this atom as required
for(int a=0; a<num_cells; a++) {
for(int b=0; b<num_cells; b++) {
for(int c=0; c<num_cells; c++) {
atom.a_coord=uc_abc[0]+a;
atom.b_coord=uc_abc[1]+b;
atom.c_coord=uc_abc[2]+c;
// Do xyz conversion later, when needed for output
new_atoms.push_back(atom);
//now we have this atom, be it the original or a supercell projection, find the duplicates
if(is_duplicate_perimeter_atoms) {
double dupe_thresh = 0.001;
if(atom.a_coord<dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord+num_cells;
new_atoms.push_back(dupe);
}
if(atom.b_coord<dupe_thresh) {
ATOM dupe = atom;
dupe.b_coord = atom.b_coord+num_cells;
new_atoms.push_back(dupe);
}
if(atom.c_coord<dupe_thresh) {
ATOM dupe = atom;
dupe.c_coord = atom.c_coord+num_cells;
new_atoms.push_back(dupe);
}
if(atom.a_coord<dupe_thresh && atom.b_coord<dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord+num_cells;
dupe.b_coord = atom.b_coord+num_cells;
new_atoms.push_back(dupe);
}
if(atom.a_coord<dupe_thresh && atom.c_coord<dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord+num_cells;
dupe.c_coord = atom.c_coord+num_cells;
new_atoms.push_back(dupe);
}
if(atom.b_coord<dupe_thresh && atom.c_coord<dupe_thresh) {
ATOM dupe = atom;
dupe.b_coord = atom.b_coord+num_cells;
dupe.c_coord = atom.c_coord+num_cells;
new_atoms.push_back(dupe);
}
if(atom.a_coord<dupe_thresh && atom.b_coord<dupe_thresh && atom.c_coord<dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord+num_cells;
dupe.b_coord = atom.b_coord+num_cells;
dupe.c_coord = atom.c_coord+num_cells;
new_atoms.push_back(dupe);
}
if(atom.a_coord>((double)(num_cells))-dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord-num_cells;
new_atoms.push_back(dupe);
}
if(atom.b_coord>((double)(num_cells))-dupe_thresh) {
ATOM dupe = atom;
dupe.b_coord = atom.b_coord-num_cells;
new_atoms.push_back(dupe);
}
if(atom.c_coord>((double)(num_cells))-dupe_thresh) {
ATOM dupe = atom;
dupe.c_coord = atom.c_coord-num_cells;
new_atoms.push_back(dupe);
}
if(atom.a_coord>((double)(num_cells))-dupe_thresh && atom.b_coord>((double)(num_cells))-dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord-num_cells;
dupe.b_coord = atom.b_coord-num_cells;
new_atoms.push_back(dupe);
}
if(atom.a_coord>((double)(num_cells))-dupe_thresh && atom.c_coord>((double)(num_cells))-dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord-num_cells;
dupe.c_coord = atom.c_coord-num_cells;
new_atoms.push_back(dupe);
}
if(atom.b_coord>((double)(num_cells))-dupe_thresh && atom.c_coord>((double)(num_cells))-dupe_thresh) {
ATOM dupe = atom;
dupe.b_coord = atom.b_coord-num_cells;
dupe.c_coord = atom.c_coord-num_cells;
new_atoms.push_back(dupe);
}
if(atom.a_coord>((double)(num_cells))-dupe_thresh && atom.b_coord>((double)(num_cells))-dupe_thresh && atom.c_coord>((double)(num_cells))-dupe_thresh) {
ATOM dupe = atom;
dupe.a_coord = atom.a_coord-num_cells;
dupe.b_coord = atom.b_coord-num_cells;
dupe.c_coord = atom.c_coord-num_cells;
new_atoms.push_back(dupe);
}
}
}
}
}
}
//2) write atom data
output << new_atoms.size() << "\n" << "\n";
for(int i=0; i<new_atoms.size(); i++) {
Point p = cell->abc_to_xyz(new_atoms.at(i).a_coord, new_atoms.at(i).b_coord, new_atoms.at(i).c_coord);
output << new_atoms.at(i).type << " " << p[0] << " " << p[1] << " " << p[2] << "\n";
}
}
output.close();
return true;
}
/** Write the boundary of the unit cell expressed within the provided ATOM_NETWORK in a .vtk
file format to the provided filename. */
bool writeToVTK(char *filename, ATOM_NETWORK *cell){
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cerr << "Error: Failed to open .vtk output file " << filename << endl;
//cerr << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing unit cell information to " << filename << "\n";
//For each corner in abc, get the coords in xyz
vector<Point> corners; Point p;
p = cell->abc_to_xyz(0, 0, 0); corners.push_back(p);
p = cell->abc_to_xyz(0, 0, 1); corners.push_back(p);
p = cell->abc_to_xyz(0, 1, 0); corners.push_back(p);
p = cell->abc_to_xyz(0, 1, 1); corners.push_back(p);
p = cell->abc_to_xyz(1, 0, 0); corners.push_back(p);
p = cell->abc_to_xyz(1, 0, 1); corners.push_back(p);
p = cell->abc_to_xyz(1, 1, 0); corners.push_back(p);
p = cell->abc_to_xyz(1, 1, 1); corners.push_back(p);
// Write header, information about the cell, and footer
output << "# vtk DataFile Version 2.0\nvtk format representation of unit cell boundary\nASCII\nDATASET POLYDATA\nPOINTS 8 double\n";
for(int i=0; i<8; i++) output << corners.at(i)[0] << " " << corners.at(i)[1] << " " << corners.at(i)[2] << "\n";
output << "LINES 12 36\n2 0 1\n2 0 2\n2 1 3\n2 2 3\n2 4 5\n2 4 6\n2 5 7\n2 6 7\n2 0 4\n2 1 5\n2 2 6\n2 3 7\n";
}
output.close();
return true;
}
/** Write the information within the provided ATOM_NETWORK in a .mop
file format to the provided filename. */
/** In .mop file, unit cell vectors are listed as Tv and the shape of the unit cell is kept fixed **/
bool writeToMOPAC(char *filename, ATOM_NETWORK *cell, bool is_supercell){
int num_cells = SUPERCELL_SIZE; //defined in networkio.h
if(!is_supercell) num_cells = 1;
fstream output;
output.open(filename, fstream::out);
if(!output.is_open()){
cout << "Error: Failed to open .mop output file " << filename << endl;
//cout << "Exiting ..." << "\n";
//exit(1);
return false;
}
else{
cout << "Writing atom network information to " << filename << "\n";
//Write two empty lines by default
output << "\n" << "\n";
/*
// Write information about the atoms
vector<ATOM>::iterator atomIter = cell->atoms.begin();
while(atomIter != cell->atoms.end()){
output << atomIter->type << " " << atomIter->x << " +1 "
<< atomIter->y << " +1 " << atomIter->z << " +1\n";
atomIter++;
}
*/
for(int i=0; i<cell->numAtoms; i++) {
//first, determine all the supercell images of this atom as required
for(int a=0; a<num_cells; a++) {
for(int b=0; b<num_cells; b++) {
for(int c=0; c<num_cells; c++) {
ATOM atom = cell->atoms.at(i);
atom.a_coord = trans_to_origuc(atom.a_coord)+a;
atom.b_coord = trans_to_origuc(atom.b_coord)+b;
atom.c_coord = trans_to_origuc(atom.c_coord)+c;
Point p = cell->abc_to_xyz(atom.a_coord, atom.b_coord, atom.c_coord);
output << atom.type << " " << p[0] << " +1 "
<< p[1] << " +1 " << p[2] << " +1\n";
}
}
}
}
//Write unit cell box information
output << "Tv " << cell->v_a.x*num_cells << " +1 ";
if(cell->v_a.y==0.0) { output << " 0.0 0 "; } else { output << cell->v_a.y*num_cells << " +1 ";};
if(cell->v_a.z==0.0) { output << " 0.0 0 \n"; } else { output << cell->v_a.z*num_cells << " +1 \n";};
output << "Tv ";
if(cell->v_b.x==0.0) { output << " 0.0 0 "; } else { output << cell->v_b.x*num_cells << " +1 ";};
output << cell->v_b.y*num_cells << " +1 ";
if(cell->v_b.z==0.0) { output << " 0.0 0 \n"; } else { output << cell->v_b.z*num_cells << " +1 \n";};
output << "Tv ";
if(cell->v_c.x==0.0) { output << " 0.0 0 "; } else { output << cell->v_c.x*num_cells << " +1 ";};
if(cell->v_c.y==0.0) { output << " 0.0 0 "; } else { output << cell->v_c.y*num_cells << " +1 ";};
output << cell->v_c.z*num_cells << " +1 \n\n";
}
output.close();
return true;
}
/** Change the type of the atom to its appropriate form. Used when
reading .cuc files. */
void changeAtomType(ATOM *atom){
switch(atom->type[0]){
case 'O': case 'o':
atom->type = "O";
break;
case 'T': case 't':
atom->type = "Si";
break;
case 'A': case 'a':
atom->type = "Si";
break;
case 'H': case 'h':
atom->type = "H";
break;
case 'S': case 's':
if(tolower(atom->type[1]) == 'i')
atom->type = "Si";
else
atom->type = "S";
break;
default:
cerr<< "Error: Atom name not recognized " << atom->type << "\n";
// << "Exiting..." << "\n";
// exit(1);
break;
}
}
/** Strip atom names from additional indexes following atom string */
void stripAtomNames(ATOM_NETWORK *cell)
{
for(unsigned int na = 0; na < cell->atoms.size(); na++)
cell->atoms[na].type = stripAtomName(cell->atoms[na].type);
// for (vector<ATOM>::const_iterator it=cell->atoms.begin(); it!=cell->atoms.end(); ++it){
// it->type = stripAtomName(it->type);
// cout << stripAtomName(it->type) << "\n";
// }
}
| 37.820484 | 295 | 0.588227 | Luthaf |
297c6dcb64155ce6bd1968f192ae11d61e356c3d | 9,998 | cpp | C++ | rsa.cpp | ex0ample/cryptopp | 9ea66ce4d97d59d61e49c93f5af191107ebd1925 | [
"BSL-1.0"
] | 1 | 2020-03-10T06:53:50.000Z | 2020-03-10T06:53:50.000Z | rsa.cpp | ex0ample/cryptopp | 9ea66ce4d97d59d61e49c93f5af191107ebd1925 | [
"BSL-1.0"
] | null | null | null | rsa.cpp | ex0ample/cryptopp | 9ea66ce4d97d59d61e49c93f5af191107ebd1925 | [
"BSL-1.0"
] | null | null | null | // rsa.cpp - originally written and placed in the public domain by Wei Dai
#include "pch.h"
#include "rsa.h"
#include "asn.h"
#include "sha.h"
#include "oids.h"
#include "modarith.h"
#include "nbtheory.h"
#include "algparam.h"
#include "fips140.h"
#include "pkcspad.h"
#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING) && !defined(CRYPTOPP_IS_DLL)
#include "sha3.h"
#include "pssr.h"
NAMESPACE_BEGIN(CryptoPP)
void RSA_TestInstantiations()
{
RSASS<PKCS1v15, SHA1>::Verifier x1(1, 1);
RSASS<PKCS1v15, SHA1>::Signer x2(NullRNG(), 1);
RSASS<PKCS1v15, SHA1>::Verifier x3(x2);
RSASS<PKCS1v15, SHA1>::Verifier x4(x2.GetKey());
RSASS<PSS, SHA1>::Verifier x5(x3);
#ifndef __MWERKS__
RSASS<PSSR, SHA1>::Signer x6 = x2;
x3 = x2;
x6 = x2;
#endif
RSAES<PKCS1v15>::Encryptor x7(x2);
#ifndef __GNUC__
RSAES<PKCS1v15>::Encryptor x8(x3);
#endif
RSAES<OAEP<SHA1> >::Encryptor x9(x2);
x4 = x2.GetKey();
RSASS<PKCS1v15, SHA3_256>::Verifier x10(1, 1);
RSASS<PKCS1v15, SHA3_256>::Signer x11(NullRNG(), 1);
RSASS<PKCS1v15, SHA3_256>::Verifier x12(x11);
RSASS<PKCS1v15, SHA3_256>::Verifier x13(x11.GetKey());
}
NAMESPACE_END
#endif
#ifndef CRYPTOPP_IMPORTS
NAMESPACE_BEGIN(CryptoPP)
OID RSAFunction::GetAlgorithmID() const
{
return ASN1::rsaEncryption();
}
void RSAFunction::BERDecodePublicKey(BufferedTransformation &bt, bool, size_t)
{
BERSequenceDecoder seq(bt);
m_n.BERDecode(seq);
m_e.BERDecode(seq);
seq.MessageEnd();
}
void RSAFunction::DEREncodePublicKey(BufferedTransformation &bt) const
{
DERSequenceEncoder seq(bt);
m_n.DEREncode(seq);
m_e.DEREncode(seq);
seq.MessageEnd();
}
Integer RSAFunction::ApplyFunction(const Integer &x) const
{
DoQuickSanityCheck();
return a_exp_b_mod_c(x, m_e, m_n);
}
bool RSAFunction::Validate(RandomNumberGenerator& rng, unsigned int level) const
{
CRYPTOPP_UNUSED(rng), CRYPTOPP_UNUSED(level);
bool pass = true;
pass = pass && m_n > Integer::One() && m_n.IsOdd();
CRYPTOPP_ASSERT(pass);
pass = pass && m_e > Integer::One() && m_e.IsOdd() && m_e < m_n;
CRYPTOPP_ASSERT(pass);
return pass;
}
bool RSAFunction::GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
{
return GetValueHelper(this, name, valueType, pValue).Assignable()
CRYPTOPP_GET_FUNCTION_ENTRY(Modulus)
CRYPTOPP_GET_FUNCTION_ENTRY(PublicExponent)
;
}
void RSAFunction::AssignFrom(const NameValuePairs &source)
{
AssignFromHelper(this, source)
CRYPTOPP_SET_FUNCTION_ENTRY(Modulus)
CRYPTOPP_SET_FUNCTION_ENTRY(PublicExponent)
;
}
// *****************************************************************************
class RSAPrimeSelector : public PrimeSelector
{
public:
RSAPrimeSelector(const Integer &e) : m_e(e) {}
bool IsAcceptable(const Integer &candidate) const {return RelativelyPrime(m_e, candidate-Integer::One());}
Integer m_e;
};
void InvertibleRSAFunction::GenerateRandom(RandomNumberGenerator &rng, const NameValuePairs &alg)
{
int modulusSize = 2048;
alg.GetIntValue(Name::ModulusSize(), modulusSize) || alg.GetIntValue(Name::KeySize(), modulusSize);
CRYPTOPP_ASSERT(modulusSize >= 16);
if (modulusSize < 16)
throw InvalidArgument("InvertibleRSAFunction: specified modulus size is too small");
m_e = alg.GetValueWithDefault(Name::PublicExponent(), Integer(17));
CRYPTOPP_ASSERT(m_e >= 3); CRYPTOPP_ASSERT(!m_e.IsEven());
if (m_e < 3 || m_e.IsEven())
throw InvalidArgument("InvertibleRSAFunction: invalid public exponent");
RSAPrimeSelector selector(m_e);
AlgorithmParameters primeParam = MakeParametersForTwoPrimesOfEqualSize(modulusSize)
(Name::PointerToPrimeSelector(), selector.GetSelectorPointer());
m_p.GenerateRandom(rng, primeParam);
m_q.GenerateRandom(rng, primeParam);
m_d = m_e.InverseMod(LCM(m_p-1, m_q-1));
CRYPTOPP_ASSERT(m_d.IsPositive());
m_dp = m_d % (m_p-1);
m_dq = m_d % (m_q-1);
m_n = m_p * m_q;
m_u = m_q.InverseMod(m_p);
if (FIPS_140_2_ComplianceEnabled())
{
RSASS<PKCS1v15, SHA1>::Signer signer(*this);
RSASS<PKCS1v15, SHA1>::Verifier verifier(signer);
SignaturePairwiseConsistencyTest_FIPS_140_Only(signer, verifier);
RSAES<OAEP<SHA1> >::Decryptor decryptor(*this);
RSAES<OAEP<SHA1> >::Encryptor encryptor(decryptor);
EncryptionPairwiseConsistencyTest_FIPS_140_Only(encryptor, decryptor);
}
}
void InvertibleRSAFunction::Initialize(RandomNumberGenerator &rng, unsigned int keybits, const Integer &e)
{
GenerateRandom(rng, MakeParameters(Name::ModulusSize(), (int)keybits)(Name::PublicExponent(), e+e.IsEven()));
}
void InvertibleRSAFunction::Initialize(const Integer &n, const Integer &e, const Integer &d)
{
if (n.IsEven() || e.IsEven() || d.IsEven())
throw InvalidArgument("InvertibleRSAFunction: input is not a valid RSA private key");
m_n = n;
m_e = e;
m_d = d;
Integer r = --(d*e);
unsigned int s = 0;
while (r.IsEven())
{
r >>= 1;
s++;
}
ModularArithmetic modn(n);
for (Integer i = 2; ; ++i)
{
Integer a = modn.Exponentiate(i, r);
if (a == 1)
continue;
Integer b;
unsigned int j = 0;
while (a != n-1)
{
b = modn.Square(a);
if (b == 1)
{
m_p = GCD(a-1, n);
m_q = n/m_p;
m_dp = m_d % (m_p-1);
m_dq = m_d % (m_q-1);
m_u = m_q.InverseMod(m_p);
return;
}
if (++j == s)
throw InvalidArgument("InvertibleRSAFunction: input is not a valid RSA private key");
a = b;
}
}
}
void InvertibleRSAFunction::BERDecodePrivateKey(BufferedTransformation &bt, bool, size_t)
{
BERSequenceDecoder privateKey(bt);
word32 version;
BERDecodeUnsigned<word32>(privateKey, version, INTEGER, 0, 0); // check version
m_n.BERDecode(privateKey);
m_e.BERDecode(privateKey);
m_d.BERDecode(privateKey);
m_p.BERDecode(privateKey);
m_q.BERDecode(privateKey);
m_dp.BERDecode(privateKey);
m_dq.BERDecode(privateKey);
m_u.BERDecode(privateKey);
privateKey.MessageEnd();
}
void InvertibleRSAFunction::DEREncodePrivateKey(BufferedTransformation &bt) const
{
DERSequenceEncoder privateKey(bt);
DEREncodeUnsigned<word32>(privateKey, 0); // version
m_n.DEREncode(privateKey);
m_e.DEREncode(privateKey);
m_d.DEREncode(privateKey);
m_p.DEREncode(privateKey);
m_q.DEREncode(privateKey);
m_dp.DEREncode(privateKey);
m_dq.DEREncode(privateKey);
m_u.DEREncode(privateKey);
privateKey.MessageEnd();
}
Integer InvertibleRSAFunction::CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const
{
DoQuickSanityCheck();
ModularArithmetic modn(m_n);
Integer r, rInv;
do { // do this in a loop for people using small numbers for testing
r.Randomize(rng, Integer::One(), m_n - Integer::One());
rInv = modn.MultiplicativeInverse(r);
} while (rInv.IsZero());
Integer re = modn.Exponentiate(r, m_e);
re = modn.Multiply(re, x); // blind
// here we follow the notation of PKCS #1 and let u=q inverse mod p
// but in ModRoot, u=p inverse mod q, so we reverse the order of p and q
Integer y = ModularRoot(re, m_dq, m_dp, m_q, m_p, m_u);
y = modn.Multiply(y, rInv); // unblind
if (modn.Exponentiate(y, m_e) != x) // check
throw Exception(Exception::OTHER_ERROR, "InvertibleRSAFunction: computational error during private key operation");
return y;
}
bool InvertibleRSAFunction::Validate(RandomNumberGenerator &rng, unsigned int level) const
{
bool pass = RSAFunction::Validate(rng, level);
CRYPTOPP_ASSERT(pass);
pass = pass && m_p > Integer::One() && m_p.IsOdd() && m_p < m_n;
CRYPTOPP_ASSERT(pass);
pass = pass && m_q > Integer::One() && m_q.IsOdd() && m_q < m_n;
CRYPTOPP_ASSERT(pass);
pass = pass && m_d > Integer::One() && m_d.IsOdd() && m_d < m_n;
CRYPTOPP_ASSERT(pass);
pass = pass && m_dp > Integer::One() && m_dp.IsOdd() && m_dp < m_p;
CRYPTOPP_ASSERT(pass);
pass = pass && m_dq > Integer::One() && m_dq.IsOdd() && m_dq < m_q;
CRYPTOPP_ASSERT(pass);
pass = pass && m_u.IsPositive() && m_u < m_p;
CRYPTOPP_ASSERT(pass);
if (level >= 1)
{
pass = pass && m_p * m_q == m_n;
CRYPTOPP_ASSERT(pass);
pass = pass && m_e*m_d % LCM(m_p-1, m_q-1) == 1;
CRYPTOPP_ASSERT(pass);
pass = pass && m_dp == m_d%(m_p-1) && m_dq == m_d%(m_q-1);
CRYPTOPP_ASSERT(pass);
pass = pass && m_u * m_q % m_p == 1;
CRYPTOPP_ASSERT(pass);
}
if (level >= 2)
{
pass = pass && VerifyPrime(rng, m_p, level-2) && VerifyPrime(rng, m_q, level-2);
CRYPTOPP_ASSERT(pass);
}
return pass;
}
bool InvertibleRSAFunction::GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
{
return GetValueHelper<RSAFunction>(this, name, valueType, pValue).Assignable()
CRYPTOPP_GET_FUNCTION_ENTRY(Prime1)
CRYPTOPP_GET_FUNCTION_ENTRY(Prime2)
CRYPTOPP_GET_FUNCTION_ENTRY(PrivateExponent)
CRYPTOPP_GET_FUNCTION_ENTRY(ModPrime1PrivateExponent)
CRYPTOPP_GET_FUNCTION_ENTRY(ModPrime2PrivateExponent)
CRYPTOPP_GET_FUNCTION_ENTRY(MultiplicativeInverseOfPrime2ModPrime1)
;
}
void InvertibleRSAFunction::AssignFrom(const NameValuePairs &source)
{
AssignFromHelper<RSAFunction>(this, source)
CRYPTOPP_SET_FUNCTION_ENTRY(Prime1)
CRYPTOPP_SET_FUNCTION_ENTRY(Prime2)
CRYPTOPP_SET_FUNCTION_ENTRY(PrivateExponent)
CRYPTOPP_SET_FUNCTION_ENTRY(ModPrime1PrivateExponent)
CRYPTOPP_SET_FUNCTION_ENTRY(ModPrime2PrivateExponent)
CRYPTOPP_SET_FUNCTION_ENTRY(MultiplicativeInverseOfPrime2ModPrime1)
;
}
// *****************************************************************************
Integer RSAFunction_ISO::ApplyFunction(const Integer &x) const
{
Integer t = RSAFunction::ApplyFunction(x);
return t % 16 == 12 ? t : m_n - t;
}
Integer InvertibleRSAFunction_ISO::CalculateInverse(RandomNumberGenerator &rng, const Integer &x) const
{
Integer t = InvertibleRSAFunction::CalculateInverse(rng, x);
return STDMIN(t, m_n-t);
}
NAMESPACE_END
#endif
| 30.205438 | 118 | 0.691138 | ex0ample |
297f8ee7cd7623c0491116d7aaefbba2f00f0862 | 6,419 | cc | C++ | components/optimization_guide/core/optimization_filter_unittest.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | components/optimization_guide/core/optimization_filter_unittest.cc | blueboxd/chromium-legacy | 07223bc94bd97499909c9ed3c3f5769d718fe2e0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | components/optimization_guide/core/optimization_filter_unittest.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/optimization_guide/core/optimization_filter.h"
#include "base/macros.h"
#include "components/optimization_guide/core/bloom_filter.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace optimization_guide {
namespace {
std::unique_ptr<BloomFilter> CreateBloomFilter() {
std::unique_ptr<BloomFilter> filter = std::make_unique<BloomFilter>(
7 /* num_hash_functions */, 8191 /* num_bits */);
return filter;
}
std::unique_ptr<RegexpList> CreateRegexps(
const std::vector<std::string>& regexps) {
std::unique_ptr<RegexpList> regexp_list = std::make_unique<RegexpList>();
for (const std::string& regexp : regexps) {
regexp_list->emplace_back(std::make_unique<re2::RE2>(regexp));
}
return regexp_list;
}
TEST(OptimizationFilterTest, TestMatchesBloomFilter) {
std::unique_ptr<BloomFilter> bloom_filter(CreateBloomFilter());
bloom_filter->Add("fooco.co.uk");
OptimizationFilter opt_filter(std::move(bloom_filter), /*regexps=*/nullptr,
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/false);
EXPECT_TRUE(opt_filter.Matches(GURL("http://shopping.fooco.co.uk")));
EXPECT_TRUE(
opt_filter.Matches(GURL("https://shopping.fooco.co.uk/somepath")));
EXPECT_TRUE(opt_filter.Matches(GURL("https://fooco.co.uk")));
EXPECT_FALSE(opt_filter.Matches(GURL("https://nonfooco.co.uk")));
}
TEST(OptimizationFilterTest, TestMatchesBloomFilterChecksRegexpFirst) {
std::unique_ptr<RegexpList> exclusion_regexps(CreateRegexps({"shopping"}));
std::unique_ptr<BloomFilter> bloom_filter(CreateBloomFilter());
bloom_filter->Add("google.com");
OptimizationFilter opt_filter(std::move(bloom_filter), /*regexps=*/nullptr,
std::move(exclusion_regexps),
/*skip_host_suffix_checking=*/false);
EXPECT_FALSE(opt_filter.Matches(GURL("http://shopping.google.com")));
EXPECT_TRUE(opt_filter.Matches(GURL("http://www.google.com")));
}
TEST(OptimizationFilterTest, TestMatchesBloomFilterSkipHostSuffixChecking) {
std::unique_ptr<BloomFilter> bloom_filter(CreateBloomFilter());
bloom_filter->Add("fooco.co.uk");
OptimizationFilter opt_filter(std::move(bloom_filter), /*regexps=*/nullptr,
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/true);
EXPECT_TRUE(opt_filter.Matches(GURL("https://fooco.co.uk/somepath")));
EXPECT_TRUE(opt_filter.Matches(GURL("https://fooco.co.uk")));
EXPECT_FALSE(opt_filter.Matches(GURL("http://shopping.fooco.co.uk")));
EXPECT_FALSE(opt_filter.Matches(GURL("https://nonfooco.co.uk")));
}
TEST(OptimizationFilterTest, TestMatchesRegexp) {
std::unique_ptr<RegexpList> regexps(CreateRegexps({"test"}));
OptimizationFilter opt_filter(/*bloom_filter=*/nullptr, std::move(regexps),
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/false);
EXPECT_TRUE(opt_filter.Matches(GURL("http://test.com")));
EXPECT_TRUE(opt_filter.Matches(GURL("https://shopping.com/test")));
EXPECT_TRUE(opt_filter.Matches(GURL("https://shopping.com/?query=test")));
EXPECT_FALSE(opt_filter.Matches(GURL("https://shopping.com/")));
}
TEST(OptimizationFilterTest, TestMatchesRegexpFragment) {
std::unique_ptr<RegexpList> regexps(CreateRegexps({"test"}));
OptimizationFilter opt_filter(/*bloom_filter=*/nullptr, std::move(regexps),
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/false);
// Fragments are not matched.
EXPECT_FALSE(opt_filter.Matches(GURL("https://shopping.com/#test")));
}
TEST(OptimizationFilterTest, TestMatchesRegexpInvalid) {
std::unique_ptr<RegexpList> regexps(CreateRegexps({"test[", "shop"}));
OptimizationFilter opt_filter(/*bloom_filter=*/nullptr, std::move(regexps),
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/false);
// Invalid regexps are not used
EXPECT_FALSE(opt_filter.Matches(GURL("https://test.com/")));
EXPECT_TRUE(opt_filter.Matches(GURL("https://shopping.com/")));
}
TEST(OptimizationFilterTest, TestMatchesRegexpInvalidGURL) {
std::unique_ptr<RegexpList> regexps(CreateRegexps({"test"}));
OptimizationFilter opt_filter(/*bloom_filter=*/nullptr, std::move(regexps),
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/false);
// Invalid urls are not matched.
EXPECT_FALSE(opt_filter.Matches(GURL("test")));
}
TEST(OptimizationFilterTest, TestMatchesMaxSuffix) {
std::unique_ptr<BloomFilter> bloom_filter(CreateBloomFilter());
bloom_filter->Add("one.two.three.four.co.uk");
bloom_filter->Add("one.two.three.four.five.co.uk");
OptimizationFilter opt_filter(std::move(bloom_filter), /*regexps=*/nullptr,
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/false);
EXPECT_TRUE(opt_filter.Matches(GURL("http://host.one.two.three.four.co.uk")));
EXPECT_FALSE(
opt_filter.Matches(GURL("http://host.one.two.three.four.five.co.uk")));
// Note: full host will match even if more than 5 elements.
EXPECT_TRUE(opt_filter.Matches(GURL("http://one.two.three.four.five.co.uk")));
}
TEST(OptimizationFilterTest, TestMatchesMinSuffix) {
std::unique_ptr<BloomFilter> bloom_filter(CreateBloomFilter());
bloom_filter->Add("abc.tv");
bloom_filter->Add("xy.tv");
OptimizationFilter opt_filter(std::move(bloom_filter), /*regexps=*/nullptr,
/*exclusion_regexps=*/nullptr,
/*skip_host_suffix_checking=*/false);
EXPECT_TRUE(opt_filter.Matches(GURL("https://abc.tv")));
EXPECT_TRUE(opt_filter.Matches(GURL("https://host.abc.tv")));
EXPECT_FALSE(opt_filter.Matches(GURL("https://host.xy.tv")));
// Note: full host will match even if less than min size.
EXPECT_TRUE(opt_filter.Matches(GURL("https://xy.tv")));
EXPECT_FALSE(opt_filter.Matches(GURL("http://.../foo")));
}
} // namespace
} // namespace optimization_guide
| 45.524823 | 80 | 0.685309 | Yannic |
2980e34ab6c75d0a36900d4e235743fae743b1a8 | 13,431 | cc | C++ | third_party/webrtc/src/chromium/src/third_party/ots/src/gdef.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/third_party/ots/src/gdef.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/third_party/ots/src/gdef.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gdef.h"
#include <limits>
#include <vector>
#include "gpos.h"
#include "gsub.h"
#include "layout.h"
#include "maxp.h"
// GDEF - The Glyph Definition Table
// http://www.microsoft.com/typography/otspec/gdef.htm
#define TABLE_NAME "GDEF"
namespace {
// The maximum class value in class definition tables.
const uint16_t kMaxClassDefValue = 0xFFFF;
// The maximum class value in the glyph class definision table.
const uint16_t kMaxGlyphClassDefValue = 4;
// The maximum format number of caret value tables.
// We don't support format 3 for now. See the comment in
// ParseLigCaretListTable() for the reason.
const uint16_t kMaxCaretValueFormat = 2;
bool ParseGlyphClassDefTable(ots::Font *font, const uint8_t *data,
size_t length, const uint16_t num_glyphs) {
return ots::ParseClassDefTable(font, data, length, num_glyphs,
kMaxGlyphClassDefValue);
}
bool ParseAttachListTable(ots::Font *font, const uint8_t *data,
size_t length, const uint16_t num_glyphs) {
ots::Buffer subtable(data, length);
uint16_t offset_coverage = 0;
uint16_t glyph_count = 0;
if (!subtable.ReadU16(&offset_coverage) ||
!subtable.ReadU16(&glyph_count)) {
return OTS_FAILURE_MSG("Failed to read gdef header");
}
const unsigned attach_points_end =
2 * static_cast<unsigned>(glyph_count) + 4;
if (attach_points_end > std::numeric_limits<uint16_t>::max()) {
return OTS_FAILURE_MSG("Bad glyph count in gdef");
}
if (offset_coverage == 0 || offset_coverage >= length ||
offset_coverage < attach_points_end) {
return OTS_FAILURE_MSG("Bad coverage offset %d", offset_coverage);
}
if (glyph_count > num_glyphs) {
return OTS_FAILURE_MSG("Bad glyph count %u", glyph_count);
}
std::vector<uint16_t> attach_points;
attach_points.resize(glyph_count);
for (unsigned i = 0; i < glyph_count; ++i) {
if (!subtable.ReadU16(&attach_points[i])) {
return OTS_FAILURE_MSG("Can't read attachment point %d", i);
}
if (attach_points[i] >= length ||
attach_points[i] < attach_points_end) {
return OTS_FAILURE_MSG("Bad attachment point %d of %d", i, attach_points[i]);
}
}
// Parse coverage table
if (!ots::ParseCoverageTable(font, data + offset_coverage,
length - offset_coverage, num_glyphs)) {
return OTS_FAILURE_MSG("Bad coverage table");
}
// Parse attach point table
for (unsigned i = 0; i < attach_points.size(); ++i) {
subtable.set_offset(attach_points[i]);
uint16_t point_count = 0;
if (!subtable.ReadU16(&point_count)) {
return OTS_FAILURE_MSG("Can't read point count %d", i);
}
if (point_count == 0) {
return OTS_FAILURE_MSG("zero point count %d", i);
}
uint16_t last_point_index = 0;
uint16_t point_index = 0;
for (unsigned j = 0; j < point_count; ++j) {
if (!subtable.ReadU16(&point_index)) {
return OTS_FAILURE_MSG("Can't read point index %d in point %d", j, i);
}
// Contour point indeces are in increasing numerical order
if (last_point_index != 0 && last_point_index >= point_index) {
return OTS_FAILURE_MSG("bad contour indeces: %u >= %u",
last_point_index, point_index);
}
last_point_index = point_index;
}
}
return true;
}
bool ParseLigCaretListTable(ots::Font *font, const uint8_t *data,
size_t length, const uint16_t num_glyphs) {
ots::Buffer subtable(data, length);
uint16_t offset_coverage = 0;
uint16_t lig_glyph_count = 0;
if (!subtable.ReadU16(&offset_coverage) ||
!subtable.ReadU16(&lig_glyph_count)) {
return OTS_FAILURE_MSG("Can't read caret structure");
}
const unsigned lig_glyphs_end =
2 * static_cast<unsigned>(lig_glyph_count) + 4;
if (lig_glyphs_end > std::numeric_limits<uint16_t>::max()) {
return OTS_FAILURE_MSG("Bad caret structure");
}
if (offset_coverage == 0 || offset_coverage >= length ||
offset_coverage < lig_glyphs_end) {
return OTS_FAILURE_MSG("Bad caret coverate offset %d", offset_coverage);
}
if (lig_glyph_count > num_glyphs) {
return OTS_FAILURE_MSG("bad ligature glyph count: %u", lig_glyph_count);
}
std::vector<uint16_t> lig_glyphs;
lig_glyphs.resize(lig_glyph_count);
for (unsigned i = 0; i < lig_glyph_count; ++i) {
if (!subtable.ReadU16(&lig_glyphs[i])) {
return OTS_FAILURE_MSG("Can't read ligature glyph location %d", i);
}
if (lig_glyphs[i] >= length || lig_glyphs[i] < lig_glyphs_end) {
return OTS_FAILURE_MSG("Bad ligature glyph location %d in glyph %d", lig_glyphs[i], i);
}
}
// Parse coverage table
if (!ots::ParseCoverageTable(font, data + offset_coverage,
length - offset_coverage, num_glyphs)) {
return OTS_FAILURE_MSG("Can't parse caret coverage table");
}
// Parse ligature glyph table
for (unsigned i = 0; i < lig_glyphs.size(); ++i) {
subtable.set_offset(lig_glyphs[i]);
uint16_t caret_count = 0;
if (!subtable.ReadU16(&caret_count)) {
return OTS_FAILURE_MSG("Can't read caret count for glyph %d", i);
}
if (caret_count == 0) {
return OTS_FAILURE_MSG("bad caret value count: %u", caret_count);
}
std::vector<uint16_t> caret_value_offsets;
caret_value_offsets.resize(caret_count);
unsigned caret_value_offsets_end = 2 * static_cast<unsigned>(caret_count) + 2;
for (unsigned j = 0; j < caret_count; ++j) {
if (!subtable.ReadU16(&caret_value_offsets[j])) {
return OTS_FAILURE_MSG("Can't read caret offset %d for glyph %d", j, i);
}
if (caret_value_offsets[j] >= length || caret_value_offsets[j] < caret_value_offsets_end) {
return OTS_FAILURE_MSG("Bad caret offset %d for caret %d glyph %d", caret_value_offsets[j], j, i);
}
}
// Parse caret values table
for (unsigned j = 0; j < caret_count; ++j) {
subtable.set_offset(lig_glyphs[i] + caret_value_offsets[j]);
uint16_t caret_format = 0;
if (!subtable.ReadU16(&caret_format)) {
return OTS_FAILURE_MSG("Can't read caret values table %d in glyph %d", j, i);
}
// TODO(bashi): We only support caret value format 1 and 2 for now
// because there are no fonts which contain caret value format 3
// as far as we investigated.
if (caret_format == 0 || caret_format > kMaxCaretValueFormat) {
return OTS_FAILURE_MSG("bad caret value format: %u", caret_format);
}
// CaretValueFormats contain a 2-byte field which could be
// arbitrary value.
if (!subtable.Skip(2)) {
return OTS_FAILURE_MSG("Bad caret value table structure %d in glyph %d", j, i);
}
}
}
return true;
}
bool ParseMarkAttachClassDefTable(ots::Font *font, const uint8_t *data,
size_t length, const uint16_t num_glyphs) {
return ots::ParseClassDefTable(font, data, length, num_glyphs, kMaxClassDefValue);
}
bool ParseMarkGlyphSetsDefTable(ots::Font *font, const uint8_t *data,
size_t length, const uint16_t num_glyphs) {
ots::Buffer subtable(data, length);
uint16_t format = 0;
uint16_t mark_set_count = 0;
if (!subtable.ReadU16(&format) ||
!subtable.ReadU16(&mark_set_count)) {
return OTS_FAILURE_MSG("Can' read mark glyph table structure");
}
if (format != 1) {
return OTS_FAILURE_MSG("bad mark glyph set table format: %u", format);
}
const unsigned mark_sets_end = 2 * static_cast<unsigned>(mark_set_count) + 4;
if (mark_sets_end > std::numeric_limits<uint16_t>::max()) {
return OTS_FAILURE_MSG("Bad mark_set %d", mark_sets_end);
}
for (unsigned i = 0; i < mark_set_count; ++i) {
uint32_t offset_coverage = 0;
if (!subtable.ReadU32(&offset_coverage)) {
return OTS_FAILURE_MSG("Can't read covrage location for mark set %d", i);
}
if (offset_coverage >= length ||
offset_coverage < mark_sets_end) {
return OTS_FAILURE_MSG("Bad coverage location %d for mark set %d", offset_coverage, i);
}
if (!ots::ParseCoverageTable(font, data + offset_coverage,
length - offset_coverage, num_glyphs)) {
return OTS_FAILURE_MSG("Failed to parse coverage table for mark set %d", i);
}
}
font->gdef->num_mark_glyph_sets = mark_set_count;
return true;
}
} // namespace
#define DROP_THIS_TABLE(msg_) \
do { \
OTS_FAILURE_MSG(msg_ ", table discarded"); \
font->gdef->data = 0; \
font->gdef->length = 0; \
} while (0)
namespace ots {
bool ots_gdef_parse(Font *font, const uint8_t *data, size_t length) {
// Grab the number of glyphs in the font from the maxp table to check
// GlyphIDs in GDEF table.
if (!font->maxp) {
return OTS_FAILURE_MSG("No maxp table in font, needed by GDEF");
}
const uint16_t num_glyphs = font->maxp->num_glyphs;
Buffer table(data, length);
OpenTypeGDEF *gdef = new OpenTypeGDEF;
font->gdef = gdef;
uint32_t version = 0;
if (!table.ReadU32(&version)) {
DROP_THIS_TABLE("Incomplete table");
return true;
}
if (version < 0x00010000 || version == 0x00010001) {
DROP_THIS_TABLE("Bad version");
return true;
}
if (version >= 0x00010002) {
gdef->version_2 = true;
}
uint16_t offset_glyph_class_def = 0;
uint16_t offset_attach_list = 0;
uint16_t offset_lig_caret_list = 0;
uint16_t offset_mark_attach_class_def = 0;
if (!table.ReadU16(&offset_glyph_class_def) ||
!table.ReadU16(&offset_attach_list) ||
!table.ReadU16(&offset_lig_caret_list) ||
!table.ReadU16(&offset_mark_attach_class_def)) {
DROP_THIS_TABLE("Incomplete table");
return true;
}
uint16_t offset_mark_glyph_sets_def = 0;
if (gdef->version_2) {
if (!table.ReadU16(&offset_mark_glyph_sets_def)) {
DROP_THIS_TABLE("Incomplete table");
return true;
}
}
unsigned gdef_header_end = 4 + 4 * 2;
if (gdef->version_2)
gdef_header_end += 2;
// Parse subtables
if (offset_glyph_class_def) {
if (offset_glyph_class_def >= length ||
offset_glyph_class_def < gdef_header_end) {
DROP_THIS_TABLE("Invalid offset to glyph classes");
return true;
}
if (!ParseGlyphClassDefTable(font, data + offset_glyph_class_def,
length - offset_glyph_class_def,
num_glyphs)) {
DROP_THIS_TABLE("Invalid glyph classes");
return true;
}
gdef->has_glyph_class_def = true;
}
if (offset_attach_list) {
if (offset_attach_list >= length ||
offset_attach_list < gdef_header_end) {
DROP_THIS_TABLE("Invalid offset to attachment list");
return true;
}
if (!ParseAttachListTable(font, data + offset_attach_list,
length - offset_attach_list,
num_glyphs)) {
DROP_THIS_TABLE("Invalid attachment list");
return true;
}
}
if (offset_lig_caret_list) {
if (offset_lig_caret_list >= length ||
offset_lig_caret_list < gdef_header_end) {
DROP_THIS_TABLE("Invalid offset to ligature caret list");
return true;
}
if (!ParseLigCaretListTable(font, data + offset_lig_caret_list,
length - offset_lig_caret_list,
num_glyphs)) {
DROP_THIS_TABLE("Invalid ligature caret list");
return true;
}
}
if (offset_mark_attach_class_def) {
if (offset_mark_attach_class_def >= length ||
offset_mark_attach_class_def < gdef_header_end) {
return OTS_FAILURE_MSG("Invalid offset to mark attachment list");
}
if (!ParseMarkAttachClassDefTable(font,
data + offset_mark_attach_class_def,
length - offset_mark_attach_class_def,
num_glyphs)) {
DROP_THIS_TABLE("Invalid mark attachment list");
return true;
}
gdef->has_mark_attachment_class_def = true;
}
if (offset_mark_glyph_sets_def) {
if (offset_mark_glyph_sets_def >= length ||
offset_mark_glyph_sets_def < gdef_header_end) {
return OTS_FAILURE_MSG("invalid offset to mark glyph sets");
}
if (!ParseMarkGlyphSetsDefTable(font,
data + offset_mark_glyph_sets_def,
length - offset_mark_glyph_sets_def,
num_glyphs)) {
DROP_THIS_TABLE("Invalid mark glyph sets");
return true;
}
gdef->has_mark_glyph_sets_def = true;
}
gdef->data = data;
gdef->length = length;
return true;
}
bool ots_gdef_should_serialise(Font *font) {
return font->gdef != NULL && font->gdef->data != NULL;
}
bool ots_gdef_serialise(OTSStream *out, Font *font) {
if (!out->Write(font->gdef->data, font->gdef->length)) {
return OTS_FAILURE_MSG("Failed to write GDEF table");
}
return true;
}
void ots_gdef_reuse(Font *font, Font *other) {
font->gdef = other->gdef;
font->gdef_reused = true;
}
void ots_gdef_free(Font *font) {
delete font->gdef;
}
} // namespace ots
#undef TABLE_NAME
#undef DROP_THIS_TABLE
| 34.088832 | 106 | 0.650436 | bopopescu |
2981ae0a60421e2fb5be576ab4071d8739ed2065 | 24,898 | cpp | C++ | dev/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/Slider.cpp | pawandayma/lumberyard | e178f173f9c21369efd8c60adda3914e502f006a | [
"AML"
] | 2 | 2020-06-27T12:13:44.000Z | 2020-06-27T12:13:46.000Z | dev/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/Slider.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | null | null | null | dev/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/Slider.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | null | null | null | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#include <AzQtComponents/Components/Widgets/Slider.h>
#include <AzQtComponents/Components/Widgets/GradientSlider.h>
#include <AzQtComponents/Components/Style.h>
#include <AzQtComponents/Components/ConfigHelpers.h>
#include <AzQtComponents/Utilities/Conversions.h>
#include <QStyleFactory>
#include <QMouseEvent>
#include <QApplication>
#include <QPainter>
#include <QStyleOption>
#include <QVariant>
#include <QSettings>
#include <QVBoxLayout>
#include <QEvent>
#include <QToolTip>
namespace AzQtComponents
{
static QString g_horizontalSliderClass = QStringLiteral("HorizontalSlider");
static QString g_verticalSliderClass = QStringLiteral("VerticalSlider");
static QPoint g_horizontalToolTip;
static QPoint g_verticalToolTip;
static void ReadBorder(QSettings& settings, const QString& name, Slider::Border& border)
{
settings.beginGroup(name);
ConfigHelpers::read<int>(settings, QStringLiteral("Thickness"), border.thickness);
ConfigHelpers::read<QColor>(settings, QStringLiteral("Color"), border.color);
ConfigHelpers::read<qreal>(settings, QStringLiteral("Radius"), border.radius);
settings.endGroup();
}
static void ReadGradientSlider(QSettings& settings, const QString& name, Slider::GradientSliderConfig& gradientSlider)
{
settings.beginGroup(name);
ConfigHelpers::read<int>(settings, QStringLiteral("Thickness"), gradientSlider.thickness);
ConfigHelpers::read<int>(settings, QStringLiteral("Length"), gradientSlider.length);
ReadBorder(settings, QStringLiteral("GrooveBorder"), gradientSlider.grooveBorder);
ReadBorder(settings, QStringLiteral("HandleBorder"), gradientSlider.handleBorder);
settings.endGroup();
}
static void ReadGroove(QSettings& settings, const QString& name, Slider::SliderConfig::GrooveConfig& groove)
{
settings.beginGroup(name);
ConfigHelpers::read<QColor>(settings, QStringLiteral("Color"), groove.color);
ConfigHelpers::read<QColor>(settings, QStringLiteral("ColorHovered"), groove.colorHovered);
ConfigHelpers::read<int>(settings, QStringLiteral("Width"), groove.width);
ConfigHelpers::read<int>(settings, QStringLiteral("MidMarkerHeight"), groove.midMarkerHeight);
settings.endGroup();
}
static void ReadHandle(QSettings& settings, const QString& name, Slider::SliderConfig::HandleConfig& handle)
{
settings.beginGroup(name);
ConfigHelpers::read<QColor>(settings, QStringLiteral("Color"), handle.color);
ConfigHelpers::read<QColor>(settings, QStringLiteral("DisabledColor"), handle.colorDisabled);
ConfigHelpers::read<int>(settings, QStringLiteral("Size"), handle.size);
ConfigHelpers::read<int>(settings, QStringLiteral("SizeMinusMargin"), handle.sizeMinusMargin);
ConfigHelpers::read<int>(settings, QStringLiteral("HoverSize"), handle.hoverSize);
settings.endGroup();
}
static void ReadSlider(QSettings& settings, const QString& name, Slider::SliderConfig& slider)
{
settings.beginGroup(name);
ReadHandle(settings, QStringLiteral("Handle"), slider.handle);
ReadGroove(settings, QStringLiteral("Groove"), slider.grove);
settings.endGroup();
}
static QString g_midPointStyleClass = QStringLiteral("MidPoint");
CustomSlider::CustomSlider(Qt::Orientation orientation, QWidget *parent)
: QSlider(orientation, parent)
{
}
void CustomSlider::mousePressEvent(QMouseEvent* ev)
{
Q_EMIT moveSlider(true);
QSlider::mousePressEvent(ev);
}
void CustomSlider::mouseReleaseEvent(QMouseEvent* ev)
{
Q_EMIT moveSlider(false);
QSlider::mouseReleaseEvent(ev);
}
Slider::Slider(QWidget* parent)
: Slider(Qt::Horizontal, parent)
{
}
Slider::Slider(Qt::Orientation orientation, QWidget* parent)
: QWidget(parent)
{
QVBoxLayout* noFrameLayout = new QVBoxLayout(this);
noFrameLayout->setContentsMargins(0, 0, 0, 0);
m_slider = new CustomSlider(orientation, this);
noFrameLayout->addWidget(m_slider);
connect(m_slider, &CustomSlider::moveSlider, this, &Slider::sliderIsInMoving);
m_slider->installEventFilter(this);
connect(m_slider, &QSlider::sliderPressed, this, &Slider::sliderPressed);
connect(m_slider, &QSlider::sliderMoved, this, &Slider::sliderMoved);
connect(m_slider, &QSlider::sliderReleased, this, &Slider::sliderReleased);
connect(m_slider, &QSlider::actionTriggered, this, &Slider::actionTriggered);
m_slider->setMouseTracking(true);
}
void Slider::initStaticVars(const QPoint& verticalToolTipOffset, const QPoint& horizontalToolTipOffset)
{
g_horizontalToolTip = horizontalToolTipOffset;
g_verticalToolTip = verticalToolTipOffset;
}
void Slider::sliderIsInMoving(bool b)
{
m_moveSlider = b;
}
QSize Slider::sizeHint() const
{
return m_slider->sizeHint();
}
QSize Slider::minimumSizeHint() const
{
return m_slider->minimumSizeHint();
}
void Slider::setTracking(bool enable)
{
m_slider->setTracking(enable);
}
bool Slider::hasTracking() const
{
return m_slider->hasTracking();
}
void Slider::setOrientation(Qt::Orientation orientation)
{
m_slider->setOrientation(orientation);
}
Qt::Orientation Slider::orientation() const
{
return m_slider->orientation();
}
void Slider::applyMidPointStyle(Slider* slider)
{
slider->setProperty("class", g_midPointStyleClass);
slider->m_slider->setProperty("class", g_midPointStyleClass);
}
void Slider::setToolTipFormatting(const QString& prefix, const QString& postFix)
{
m_toolTipPrefix = prefix;
m_toolTipPostfix = postFix;
}
Slider::Config Slider::loadConfig(QSettings& settings)
{
Config config = defaultConfig();
ReadGradientSlider(settings, "GradientSlider", config.gradientSlider);
ReadSlider(settings, "Slider", config.slider);
ConfigHelpers::read<QPoint>(settings, QStringLiteral("HorizontalToolTipOffset"), config.horizontalToolTipOffset);
ConfigHelpers::read<QPoint>(settings, QStringLiteral("VerticalToolTipOffset"), config.verticalToolTipOffset);
return config;
}
Slider::Config Slider::defaultConfig()
{
Config config;
config.gradientSlider.thickness = 16;
config.gradientSlider.length = 6;
config.gradientSlider.grooveBorder.thickness = 1;
config.gradientSlider.grooveBorder.color = QColor(0x33, 0x33, 0x33);
config.gradientSlider.grooveBorder.radius = 1.5;
config.gradientSlider.handleBorder.thickness = 1;
config.gradientSlider.handleBorder.color = QColor(0xff, 0xff, 0xff);
config.gradientSlider.handleBorder.radius = 1.5;
config.slider.handle.color = { "#0185D7" };
config.slider.handle.colorDisabled = { "#999999" };
config.slider.handle.size = 12;
config.slider.handle.sizeMinusMargin = 8;
config.slider.handle.hoverSize = 12;
config.slider.grove.color = { "#999999" };
config.slider.grove.colorHovered = { "#CCDFF5" };
config.slider.grove.width = 2;
config.slider.grove.midMarkerHeight = 16;
// numbers chosen because they place the tooltip at a spot that looks decent
config.horizontalToolTipOffset = QPoint(-8, -16);
config.verticalToolTipOffset = QPoint(8, -24);
return config;
}
int Slider::valueFromPosition(QSlider* slider, const QPoint& pos, int width, int height, int bottom)
{
if (slider->orientation() == Qt::Horizontal)
{
return QStyle::sliderValueFromPosition(slider->minimum(), slider->maximum(), pos.x(), width);
}
else
{
return QStyle::sliderValueFromPosition(slider->minimum(), slider->maximum(), bottom - pos.y(), height);
}
}
int Slider::valueFromPos(const QPoint& pos) const
{
return valueFromPosition(m_slider, pos, width(), height(), rect().bottom());
}
void Slider::showHoverToolTip(const QString& toolTipText, const QPoint& globalPosition, QSlider* slider, QWidget* toolTipParentWidget, int width, int height, const QPoint& toolTipOffset)
{
QPoint toolTipPosition;
// QToolTip::showText puts the tooltip (2, 16) pixels down from the specified point - it's hardcoded.
// We want the tooltip to always appear above the slider, so we offset it according to our settings (which
// are solely there to put the tooltip in a readable spot - somewhere tracking the mouse x position directly
// above a horizontal slider, and tracking the mouse y position directly to the right of vertical sliders).
if (slider->orientation() == Qt::Horizontal)
{
toolTipPosition = QPoint(QCursor::pos().x() + toolTipOffset.x(), globalPosition.y() - height + toolTipOffset.y());
}
else
{
toolTipPosition = QPoint(globalPosition.x() + width + toolTipOffset.x(), QCursor::pos().y() + toolTipOffset.y());
}
QToolTip::showText(toolTipPosition, toolTipText, toolTipParentWidget);
slider->update();
}
bool Slider::eventFilter(QObject* watched, QEvent* event)
{
if (isEnabled() && !m_moveSlider)
{
switch (event->type())
{
case QEvent::MouseMove:
{
auto mEvent = static_cast<QMouseEvent*>(event);
m_mousePos = mEvent->pos();
const QString toolTipText = QStringLiteral("%1%2%3").arg(m_toolTipPrefix, hoverValueText(valueFromPos(m_mousePos)), m_toolTipPostfix);
QPoint globalPosition = parentWidget()->mapToGlobal(pos());
QPoint offsetPos;
if (m_slider->orientation() == Qt::Horizontal)
{
offsetPos = g_horizontalToolTip + m_toolTipOffset;
}
else
{
offsetPos = g_verticalToolTip + m_toolTipOffset;
}
showHoverToolTip(toolTipText, globalPosition, m_slider, this, width(), height(), offsetPos);
}
break;
case QEvent::Leave:
m_mousePos = QPoint();
break;
}
}
return QObject::eventFilter(watched, event);
}
int Slider::sliderThickness(const Style* style, const QStyleOption* option, const QWidget* widget, const Config& config)
{
if (widget && style->hasClass(widget, GradientSlider::s_gradientSliderClass))
{
if (qobject_cast<const GradientSlider*>(widget))
{
return GradientSlider::sliderThickness(style, option, widget, config);
}
}
else
{
return config.slider.handle.size;
}
return -1;
}
int Slider::sliderLength(const Style* style, const QStyleOption* option, const QWidget* widget, const Config& config)
{
if (widget && style->hasClass(widget, GradientSlider::s_gradientSliderClass))
{
if (qobject_cast<const GradientSlider*>(widget))
{
return GradientSlider::sliderLength(style, option, widget, config);
}
}
else
{
return config.slider.handle.size;
}
return -1;
}
QRect Slider::sliderHandleRect(const Style* style, const QStyleOptionSlider* option, const QWidget* widget, const Config& config, bool isHovered)
{
Q_ASSERT(widget);
if (style->hasClass(widget, GradientSlider::s_gradientSliderClass))
{
if (qobject_cast<const GradientSlider*>(widget))
{
return GradientSlider::sliderHandleRect(style, option, widget, config);
}
}
else
{
const auto grooveRect = sliderGrooveRect(style, option, widget, config);
const auto center = style->QCommonStyle::subControlRect(QStyle::CC_Slider, option, QStyle::SC_SliderHandle, widget).center();
int handleSize = config.slider.handle.sizeMinusMargin;
if (isHovered)
{
handleSize = config.slider.handle.hoverSize;
}
QRect handle(0, 0, handleSize, handleSize);
if (option->orientation == Qt::Horizontal)
{
handle.moveCenter({ center.x(), grooveRect.center().y() });
}
else
{
handle.moveCenter({ grooveRect.center().x(), center.y() });
}
return handle;
}
return {};
}
QRect Slider::sliderGrooveRect(const Style* style, const QStyleOptionSlider* option, const QWidget* widget, const Config& config)
{
Q_ASSERT(widget);
if (style->hasClass(widget, GradientSlider::s_gradientSliderClass))
{
if (qobject_cast<const GradientSlider*>(widget))
{
return GradientSlider::sliderGrooveRect(style, option, widget, config);
}
}
else
{
const auto handleMid = config.slider.handle.size / 2;
auto rect = style->QCommonStyle::subControlRect(QProxyStyle::CC_Slider, option, QProxyStyle::SC_SliderGroove, widget);
if (option->orientation == Qt::Horizontal)
{
rect.adjust(handleMid, 0, -handleMid, 0);
rect.setHeight(config.slider.grove.width);
}
else
{
rect.adjust(0, handleMid, 0, -handleMid);
rect.setWidth(config.slider.grove.width);
}
rect.moveCenter(widget->rect().center());
return rect;
}
return {};
}
bool Slider::polish(Style* style, QWidget* widget, const Slider::Config& config)
{
Q_UNUSED(config);
auto polishSlider = [style](auto slider)
{
// Qt's stylesheet parsing doesn't set custom properties on things specified via
// pseudo-states, such as horizontal/vertical, so we implement our own
if (slider->orientation() == Qt::Horizontal)
{
Style::removeClass(slider, g_verticalSliderClass);
Style::addClass(slider, g_horizontalSliderClass);
}
else
{
Style::removeClass(slider, g_horizontalSliderClass);
Style::addClass(slider, g_verticalSliderClass);
}
};
// Apply the right styles to our QSlider objects, so that css rules can be properly applied
if (auto slider = qobject_cast<Slider*>(widget))
{
polishSlider(slider);
}
// Also apply the right styles to our AzQtComponents::Slider container
if (auto slider = qobject_cast<QSlider*>(widget))
{
polishSlider(slider);
}
return false;
}
bool Slider::drawSlider(const Style* style, const QStyleOption* option, QPainter* painter, const QWidget* widget, const Slider::Config& config)
{
const QStyleOptionSlider* sliderOption = static_cast<const QStyleOptionSlider*>(option);
const QSlider* slider = qobject_cast<const QSlider*>(widget);
if (slider != nullptr)
{
if (style->hasClass(widget, GradientSlider::s_gradientSliderClass))
{
Q_ASSERT(widget);
return GradientSlider::drawSlider(style, static_cast<const QStyleOptionSlider*>(option), painter, widget, config);
}
else if (auto sliderWidget = qobject_cast<const Slider*>(widget->parentWidget()))
{
const QColor handleColor = option->state & QStyle::State_Enabled ? config.slider.handle.color : config.slider.handle.colorDisabled;
const QRect grooveRect = sliderGrooveRect(style, sliderOption, widget, config);
// only show the hover highlight if the mouse is hovered over the control, and the slider isn't being clicked on or dragged
const bool mouseIsOnHandler = !sliderWidget->m_mousePos.isNull();
const bool isHovered = mouseIsOnHandler && !(QApplication::mouseButtons() & Qt::MouseButton::LeftButton);
const QRect handleRect = sliderHandleRect(style, sliderOption, widget, config, mouseIsOnHandler);
//draw the groove background, without highlight colors from the mouse hover or the selected value
painter->fillRect(grooveRect, config.slider.grove.color);
if (style->hasClass(widget, g_midPointStyleClass))
{
drawMidPointMarker(painter, config, sliderOption->orientation, grooveRect, handleColor);
drawMidPointGrooveHighlights(painter, config, grooveRect, handleRect, handleColor, isHovered, sliderWidget->m_mousePos, sliderOption->orientation);
}
else
{
drawGrooveHighlights(painter, config, grooveRect, handleRect, handleColor, isHovered, sliderWidget->m_mousePos, sliderOption->orientation);
}
drawHandle(option, painter, config, handleRect, handleColor);
return true;
}
}
return false;
}
void Slider::drawMidPointMarker(QPainter* painter, const Slider::Config& config, Qt::Orientation orientation, const QRect& grooveRect, const QColor& midMarkerColor)
{
int width = orientation == Qt::Horizontal ? config.slider.grove.width : config.slider.grove.midMarkerHeight;
int height = orientation == Qt::Horizontal ? config.slider.grove.midMarkerHeight : config.slider.grove.width;
auto rect = QRect(0, 0, width, height);
rect.moveCenter(grooveRect.center());
painter->fillRect(rect, midMarkerColor);
}
void Slider::drawMidPointGrooveHighlights(QPainter* painter, const Slider::Config& config, const QRect& grooveRect, const QRect& handleRect, const QColor& handleColor, bool isHovered, const QPoint& mousePos, Qt::Orientation orientation)
{
QPoint valueGrooveStart = orientation == Qt::Horizontal ? QPoint(grooveRect.center().x(), grooveRect.top()) : QPoint(grooveRect.left(), grooveRect.center().y());
QPoint valueGrooveEnd = orientation == Qt::Horizontal ? QPoint(handleRect.x(), grooveRect.bottom()) : QPoint(grooveRect.center().x(), handleRect.bottom());
//color the grove from the mid to the handle to show the amount selected
painter->fillRect(QRect(valueGrooveStart, valueGrooveEnd), handleColor);
if (isHovered)
{
QPoint hoveredEnd;
QPoint hoveredStart = valueGrooveStart;
if (orientation == Qt::Horizontal)
{
const auto x = qBound(grooveRect.left(), mousePos.x(), grooveRect.right());
hoveredEnd = QPoint(x, grooveRect.bottom());
// be careful not to completely cover the value highlight
if (((handleRect.x() < valueGrooveStart.x()) && (mousePos.x() < handleRect.x())) || ((handleRect.x() > valueGrooveStart.x()) && (mousePos.x() > handleRect.x())))
{
hoveredStart.setX(handleRect.x());
}
}
else
{
const auto y = qBound(grooveRect.top(), mousePos.y(), grooveRect.bottom());
hoveredEnd = QPoint(grooveRect.right(), y);
// be careful not to completely cover the value highlight
if (((handleRect.y() < valueGrooveStart.y()) && (mousePos.y() < handleRect.y())) || ((handleRect.y() > valueGrooveStart.y()) && (mousePos.y() > handleRect.y())))
{
hoveredStart.setY(handleRect.y());
}
}
painter->fillRect(QRect(hoveredStart, hoveredEnd), config.slider.grove.colorHovered);
}
}
void Slider::drawGrooveHighlights(QPainter* painter, const Slider::Config& config, const QRect& grooveRect, const QRect& handleRect, const QColor& handleColor, bool isHovered, const QPoint& mousePos, Qt::Orientation orientation)
{
QPoint valueGrooveStart = orientation == Qt::Horizontal ? grooveRect.topLeft() : grooveRect.bottomLeft();
QPoint handleMiddle = orientation == Qt::Horizontal ? QPoint(handleRect.x(), grooveRect.bottom()) : QPoint(grooveRect.right(), handleRect.y());
//color the grove from the mid to the handle
painter->fillRect(QRect(valueGrooveStart, handleMiddle), handleColor);
if (isHovered)
{
QPoint hoveredStart = valueGrooveStart;
QPoint hoveredEnd;
if (orientation == Qt::Horizontal)
{
const auto x = qBound(grooveRect.left(), mousePos.x(), grooveRect.right());
if (x > handleMiddle.x())
{
hoveredStart.setX(handleMiddle.x());
}
hoveredEnd = QPoint(x, grooveRect.bottom());
}
else
{
const auto y = qBound(grooveRect.top(), mousePos.y(), grooveRect.bottom());
if (y < handleMiddle.y())
{
hoveredStart.setY(handleMiddle.y());
}
hoveredEnd = QPoint(grooveRect.right(), y);
}
painter->fillRect(QRect(hoveredStart, hoveredEnd), config.slider.grove.colorHovered);
}
}
void Slider::drawHandle(const QStyleOption* option, QPainter* painter, const Slider::Config& config, const QRect& handleRect, const QColor& handleColor)
{
//handle
Q_UNUSED(config);
painter->save();
painter->setRenderHint(QPainter::Antialiasing, true);
if (option->state & QStyle::State_Enabled)
{
painter->setPen(Qt::NoPen);
}
else
{
auto pen = painter->pen();
pen.setBrush(option->palette.background());
painter->setPen(pen);
}
painter->setBrush(handleColor);
painter->drawRoundedRect(handleRect, 100.0, 100.0);
painter->restore();
}
int Slider::styleHintAbsoluteSetButtons()
{
// Make sliders jump to the value when the user clicks on them instead of the Qt default of moving closer to the clicked location
return (Qt::LeftButton | Qt::MidButton | Qt::RightButton);
}
SliderInt::SliderInt(QWidget* parent)
: SliderInt(Qt::Horizontal, parent)
{
}
SliderInt::SliderInt(Qt::Orientation orientation, QWidget* parent)
: Slider(orientation, parent)
{
connect(m_slider, &QSlider::valueChanged, this, &SliderInt::valueChanged);
connect(m_slider, &QSlider::rangeChanged, this, &SliderInt::rangeChanged);
}
void SliderInt::setValue(int value)
{
m_slider->setValue(value);
}
int SliderInt::value() const
{
return m_slider->value();
}
void SliderInt::setMinimum(int min)
{
m_slider->setMinimum(min);
}
int SliderInt::minimum() const
{
return m_slider->minimum();
}
void SliderInt::setMaximum(int max)
{
m_slider->setMaximum(max);
}
int SliderInt::maximum() const
{
return m_slider->maximum();
}
void SliderInt::setRange(int min, int max)
{
m_slider->setRange(min, max);
}
QString SliderInt::hoverValueText(int sliderValue) const
{
return QStringLiteral("%1").arg(sliderValue);
}
inline double calculateRealSliderValue(const SliderDouble* slider, int value)
{
double sliderValue = static_cast<double>(value);
double range = slider->maximum() - slider->minimum();
double steps = static_cast<double>(slider->numSteps() - 1);
double denormalizedValue = ((sliderValue / steps) * range) + slider->minimum();
return denormalizedValue;
}
SliderDouble::SliderDouble(QWidget* parent)
: SliderDouble(Qt::Horizontal, parent)
{
}
static const int g_sliderDecimalPrecisonDefault = 7;
SliderDouble::SliderDouble(Qt::Orientation orientation, QWidget* parent)
: Slider(orientation, parent)
, m_decimals(g_sliderDecimalPrecisonDefault)
{
setRange(m_minimum, m_maximum, m_numSteps);
connect(m_slider, &QSlider::valueChanged, this, [this](int newValue) {
double denormalizedValue = calculateRealSliderValue(this, newValue);
Q_EMIT valueChanged(denormalizedValue);
});
}
void SliderDouble::setValue(double value)
{
int normalizedValue = static_cast<int>(((value - m_minimum) / (m_maximum - m_minimum)) * static_cast<double>(m_numSteps - 1));
m_slider->setValue(normalizedValue);
}
double SliderDouble::value() const
{
return calculateRealSliderValue(this, m_slider->value());
}
double SliderDouble::minimum() const
{
return m_minimum;
}
void SliderDouble::setMinimum(double min)
{
setRange(min, m_maximum, m_numSteps);
}
double SliderDouble::maximum() const
{
return m_maximum;
}
void SliderDouble::setMaximum(double max)
{
setRange(m_minimum, max, m_numSteps);
}
int SliderDouble::numSteps() const
{
return m_numSteps;
}
void SliderDouble::setNumSteps(int steps)
{
setRange(m_minimum, m_maximum, steps);
}
void SliderDouble::setRange(double min, double max, int numSteps)
{
m_slider->setRange(0, (numSteps - 1));
m_maximum = max;
m_minimum = min;
m_numSteps = numSteps;
Q_ASSERT(m_numSteps != 0);
if (m_numSteps == 0)
{
m_numSteps = 1;
}
Q_EMIT rangeChanged(min, max, numSteps);
}
QString SliderDouble::hoverValueText(int sliderValue) const
{
// maybe format this, max number of digits?
QString valueText = toString(calculateRealSliderValue(this, sliderValue), m_decimals, locale());
return QStringLiteral("%1").arg(valueText);
}
} // namespace AzQtComponents
| 32.846966 | 236 | 0.682103 | pawandayma |
2981c85d2cff80cf5f737fb5d5e53d9822c9d022 | 8,524 | cpp | C++ | golg__map_cell.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 5 | 2015-12-09T20:37:49.000Z | 2021-08-10T08:06:29.000Z | golg__map_cell.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 13 | 2021-09-20T16:25:30.000Z | 2022-03-17T04:59:40.000Z | golg__map_cell.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 5 | 2016-01-04T22:54:22.000Z | 2021-09-20T16:09:03.000Z | /********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn't help, contact Jonathan Clark at
golgotha_source@usa.net (Subject should have "GOLG" in it)
***********************************************************************/
#include "pch.h"
#include "map_man.h"
#include "map_cell.h"
#include "g1_object.h"
#include "tile.h"
#include "map.h"
#include "compress/rle.h"
#include "loaders/dir_save.h"
#include "loaders/dir_load.h"
#include "saver_id.h"
#include "map_vert.h"
g1_object_chain_class * g1_map_cell_class::get_solid_list()
{
if (!object_list || !object_list->object->get_flag(g1_object_class::BLOCKING))
{
return 0;
}
else
{
return object_list;
}
}
g1_object_chain_class * g1_map_cell_class::get_non_solid_list()
{
g1_object_chain_class * p=object_list;
while (p && p->object->get_flag(g1_object_class::BLOCKING))
p=p->next;
return p;
}
void g1_map_cell_class::add_object(g1_object_chain_class &o)
{
if (!object_list ||
o.object->get_flag(g1_object_class::BLOCKING)) // add solids to front of list
{
o.next=object_list;
object_list=&o;
}
else
{
// add non solids after all solids
g1_object_chain_class * last=object_list, * p=object_list->next;
while (p && p->object->get_flag(g1_object_class::BLOCKING))
{
last=p;
p=p->next;
}
o.next=last->next;
last->next=&o;
}
}
i4_bool g1_map_cell_class::remove_object(g1_object_chain_class &o)
{
if (&o==object_list)
{
object_list=o.next;
return i4_T;
}
else
{
g1_object_chain_class * c=object_list, * last=0;
while (c && c!=&o)
{
last=c;
c=c->next;
}
if (!c)
{
i4_warning("map_cell::remove_object, object not in cell");
return i4_F;
}
last->next=o.next;
return i4_T;
}
}
void g1_map_cell_class::init(w16 _type, g1_rotation_type rot,
i4_bool mirrored)
{
object_list=0;
type=_type;
flags=FOGGED;
top_left_normal=0x8000;
bottom_right_normal=0x8000;
g1_tile_man.get(_type)->apply_to_cell(*this);
set_rotation(rot);
if (mirrored)
{
flags|=MIRRORED;
}
}
void g1_map_cell_class::recalc_top_left(int cx, int cy)
{
int mw=g1_get_map()->width(), mh=g1_get_map()->height();
I4_ASSERT(cx<=mw && cy<=mh, "recalc normal : vert out of range");
if (cx==mw-1 || cy==mh-1)
{
top_left_normal=(31) | (15<<5) | (15<<10);
} // normal = 0,0,1
else
{
g1_map_vertex_class * v=g1_get_map()->vertex(cx,cy);
float h0=v->get_height(), h2=v[mw+1].get_height(), h3=v[mw+1+1].get_height();
i4_3d_vector v1(1, 0, h3-h2), v2(0, -1, h0-h2);
i4_3d_vector normal;
normal.cross(v2,v1);
normal.normalize();
top_left_normal=g1_normal_to_16(normal);
}
}
void g1_map_cell_class::recalc_bottom_right(int cx, int cy)
{
int mw=g1_get_map()->width(), mh=g1_get_map()->height();
if (cx>=mw || cy>=mh)
{
bottom_right_normal=(31) | (15<<5) | (15<<10);
} // normal = 0,0,1
else
{
g1_map_vertex_class * v=g1_get_map()->vertex(cx,cy);
float h0=v->get_height(), h1=v[1].get_height(), h3=v[mw+1+1].get_height();
i4_3d_vector v1(-1, 0, h0-h1), v2(0, 1, h3-h1);
i4_3d_vector normal;
normal.cross(v2,v1);
normal.normalize();
bottom_right_normal=g1_normal_to_16(normal);
}
}
void g1_save_map_cells(g1_map_cell_class * list,
int lsize, i4_saver_class * fp)
{
int i; //,j;
i4_rle_class<w16> fp16(fp);
fp->mark_section("golgotha cell type v1");
for (i=0; i<lsize; i++)
{
fp16.write(list[i].type);
}
fp16.flush();
fp->mark_section("golgotha cell flags v2");
for (i=0; i<lsize; i++)
{
fp16.write(list[i].flags & g1_map_cell_class::SAVED_FLAGS);
}
fp16.flush();
fp->mark_section("golgotha cell normals v1");
for (i=0; i<lsize; i++)
{
fp16.write(list[i].top_left_normal);
}
for (i=0; i<lsize; i++)
{
fp16.write(list[i].bottom_right_normal);
}
fp16.flush();
}
i4_bool g1_load_map_cells(g1_map_cell_class * list, int lsize,
w16 * tile_remap, i4_loader_class * fp)
{
int i;
i4_rle_class<w16> fp16(fp);
//////////////////////////////////////////////////////////
// support for old formats
if (!fp->goto_section("golgotha cell type v1"))
{
g1_get_map()->mark_for_recalc(G1_RECALC_STATIC_LIGHT);
if (fp->goto_section(OLD_G1_SECTION_CELL_V6))
{
for (i=0; i<lsize; i++)
{
list[i].load_v6(fp, tile_remap);
}
}
else if (fp->goto_section(OLD_G1_SECTION_CELL_V5))
{
for (i=0; i<lsize; i++)
{
list[i].load_v5(fp, tile_remap);
}
}
else if (fp->goto_section(OLD_G1_SECTION_CELL_V4))
{
for (i=0; i<lsize; i++)
{
list[i].load_v4(fp, tile_remap);
}
}
else if (fp->goto_section(OLD_G1_SECTION_CELL_V3))
{
for (i=0; i<lsize; i++)
{
list[i].load_v3(fp, tile_remap);
}
}
else if (fp->goto_section(OLD_G1_SECTION_CELL_V2))
{
for (i=0; i<lsize; i++)
{
list[i].load_v2(fp, tile_remap);
}
}
else
{
return i4_F;
}
}
else /////////////////////// new format : stored in rle arrays rather than structs
{
for (i=0; i<lsize; i++)
{
list[i].type=tile_remap[fp16.read()];
}
}
if (fp->goto_section("golgotha cell flags v2"))
{
for (i=0; i<lsize; i++)
{
list[i].flags = fp16.read() & g1_map_cell_class::SAVED_FLAGS;
}
}
else if (fp->goto_section("golgotha cell flags v1"))
{
for (i=0; i<lsize; i++)
{
list[i].flags = (fp16.read() & g1_map_cell_class::SAVED_FLAGS) | g1_map_cell_class::FOGGED;
list[i].clear_restore_bits();
}
}
for (i=0; i<lsize; i++)
{
g1_tile_man.get(list[i].type)->apply_to_cell(list[i]);
}
if (fp->goto_section("golgotha cell normals v1"))
{
for (i=0; i<lsize; i++)
{
list[i].top_left_normal=fp16.read();
}
for (i=0; i<lsize; i++)
{
list[i].bottom_right_normal=fp16.read();
}
}
return i4_T;
}
///////////////////// OLD LOAD CODE //////////////////////////
void g1_map_cell_class::load_v2(i4_file_class * fp, w16 * tile_remap)
{
object_list=0;
// function_block=0xffff;
type=tile_remap[fp->read_16()];
flags=fp->read_8();
fp->read_8();
fp->read_16(); // nearest node gone
top_left_normal=0x8000;
bottom_right_normal=0x8000;
}
void g1_map_cell_class::load_v3(i4_file_class * fp, w16 * tile_remap)
{
object_list=0;
type=tile_remap[fp->read_16()];
flags=fp->read_16();
fp->read_8(); // height not used anymore
fp->read_16(); // nearest node gone
top_left_normal=0x8000;
bottom_right_normal=0x8000;
}
void g1_map_cell_class::load_v4(i4_file_class * fp, w16 * tile_remap)
{
object_list=0;
type=tile_remap[fp->read_16()];
flags=fp->read_16();
fp->read_16(); // nearest node gone
if (type==0)
{
flags |= IS_GROUND;
}
top_left_normal=0x8000;
bottom_right_normal=0x8000;
}
void g1_map_cell_class::load_v5(i4_file_class * fp, w16 * tile_remap)
{
object_list=0;
type = tile_remap[fp->read_16()];
fp->read_8();
flags=fp->read_16();
fp->read_16(); // nearest_node gone
if (type==0)
{
flags |= IS_GROUND;
}
top_left_normal=0x8000;
bottom_right_normal=0x8000;
}
void g1_map_cell_class::load_v6(i4_file_class * fp, w16 * tile_remap)
{
object_list=0;
type = tile_remap[fp->read_16()];
fp->read_8();
w32 blah = fp->read_32(); // height info not used anymoe
if (blah)
{
fp->read_8();
fp->read_16();
fp->read_float();
fp->read_float();
}
flags=fp->read_16();
fp->read_16(); // nearest_node gone
if (type==0)
{
flags |= IS_GROUND;
}
top_left_normal=0x8000;
bottom_right_normal=0x8000;
}
void g1_map_cell_class::unfog(int x, int y)
{
flags&=~FOGGED;
g1_map_vertex_class * v=g1_verts+x+y*(g1_map_width+1);
v->set_flag(g1_map_vertex_class::FOGGED,0);
v++;
v->set_flag(g1_map_vertex_class::FOGGED,0);
v+=g1_map_width;
v->set_flag(g1_map_vertex_class::FOGGED,0);
v++;
v->set_flag(g1_map_vertex_class::FOGGED,0);
}
| 20.103774 | 95 | 0.594205 | poikilos |
2981fde212706d40f34805e7f73e99d810971414 | 2,617 | cpp | C++ | tests/experimental/test_ExperimentalUserConstraint.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 32 | 2015-05-11T02:38:40.000Z | 2022-02-23T07:31:26.000Z | tests/experimental/test_ExperimentalUserConstraint.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 10 | 2018-06-08T14:44:58.000Z | 2021-08-19T16:07:21.000Z | tests/experimental/test_ExperimentalUserConstraint.cpp | quadric-io/crave | 8096d8b151cbe0d2ba437657f42d8bb0e05f5436 | [
"MIT"
] | 8 | 2019-05-29T21:40:31.000Z | 2021-12-01T09:31:15.000Z | #include <boost/test/unit_test.hpp>
#include <crave/ir/UserConstraint.hpp>
#include <crave/ir/UserExpression.hpp>
#include <crave/utils/Evaluator.hpp>
#include <crave/ir/visitor/ComplexityEstimationVisitor.hpp>
// using namespace std;
using namespace crave;
BOOST_FIXTURE_TEST_SUITE(UserConstraint, Context_Fixture)
BOOST_AUTO_TEST_CASE(constraint_partitioning) {
crv_variable<unsigned> a, b, c, d, e;
ConstraintPartitioner cp;
ConstraintManager cm1, cm2;
Context ctx(variable_container());
cm1.makeConstraint(a() > b(), &ctx);
cm1.makeConstraint(c() > d(), &ctx);
cm1.makeConstraint(e() > 1, &ctx);
cm2.makeConstraint(a() != e(), &ctx);
cp.reset();
cp.mergeConstraints(cm1);
cp.partition();
BOOST_REQUIRE_EQUAL(cp.getPartitions().size(), 3);
cp.reset();
cp.mergeConstraints(cm1);
cp.mergeConstraints(cm2);
cp.partition();
BOOST_REQUIRE_EQUAL(cp.getPartitions().size(), 2);
}
BOOST_AUTO_TEST_CASE(constraint_expression_mixing) {
crv_variable<unsigned> x, y, z, t;
expression e1 = make_expression(x() + y());
expression e2 = make_expression(z() + t() > 10);
Evaluator evaluator;
evaluator.assign(x(), 8);
evaluator.assign(y(), 1);
evaluator.assign(z(), 8);
evaluator.assign(t(), 3);
BOOST_REQUIRE(evaluator.evaluate((x() > z()) && (e1 <= 10) && e2));
BOOST_REQUIRE(!evaluator.result<bool>());
evaluator.assign(x(), 9);
BOOST_REQUIRE(evaluator.evaluate((x() > z()) && (e1 + 1 <= 11) && e2));
BOOST_REQUIRE(evaluator.result<bool>());
BOOST_REQUIRE(evaluator.evaluate(e1 * e1));
BOOST_REQUIRE_EQUAL(evaluator.result<unsigned>(), 100);
}
BOOST_AUTO_TEST_CASE(single_variable_constraint) {
crv_variable<unsigned> a, b, c, d;
ConstraintPartitioner cp;
ConstraintManager cm;
Context ctx(variable_container());
cm.makeConstraint(a() > 1, &ctx);
cm.makeConstraint(a() < 2, &ctx);
cm.makeConstraint((1 < b()) || (b() < 10), &ctx);
cm.makeConstraint(c() + 5 > c() + 2 * c(), &ctx);
cm.makeConstraint(a() + b() + c() > 0, &ctx);
cm.makeConstraint(c() < d(), &ctx);
cp.reset();
cp.mergeConstraints(cm);
cp.partition();
BOOST_REQUIRE_EQUAL(cp.getPartitions().size(), 1);
ConstraintPartition const& part = cp.getPartitions().at(0);
BOOST_REQUIRE_EQUAL(part.singleVariableConstraintMap().size(), 3);
BOOST_REQUIRE_EQUAL(part.singleVariableConstraintMap().at(a().id()).size(), 2);
BOOST_REQUIRE_EQUAL(part.singleVariableConstraintMap().at(b().id()).size(), 1);
BOOST_REQUIRE_EQUAL(part.singleVariableConstraintMap().at(c().id()).size(), 1);
}
BOOST_AUTO_TEST_SUITE_END() // Syntax
// vim: ft=cpp:ts=2:sw=2:expandtab
| 31.53012 | 81 | 0.690485 | quadric-io |
298425e2f1c71a2d8cbae36e4e11d936c1a27795 | 1,961 | cpp | C++ | ExcelProject/CellDouble.cpp | veselin465/ExcelTable | d4989e21e4453e856599e1aa7527e8de9be80007 | [
"MIT"
] | null | null | null | ExcelProject/CellDouble.cpp | veselin465/ExcelTable | d4989e21e4453e856599e1aa7527e8de9be80007 | [
"MIT"
] | null | null | null | ExcelProject/CellDouble.cpp | veselin465/ExcelTable | d4989e21e4453e856599e1aa7527e8de9be80007 | [
"MIT"
] | null | null | null | #include "CellDouble.h"
CellDouble::CellDouble(){
double_ = 0;
}
CellDouble::CellDouble(const std::string& value){
double_ = 0;
setValue(value);
}
CellDouble::CellDouble(const CellDouble& copy){
double_ = copy.double_;
}
void CellDouble::setValue(const std::string& value){
if(isValid(value)){
double_ = std::stod(value);
}else{
throw std::invalid_argument("Not double");
}
}
CellDouble* CellDouble::getPointer(){
return this;
}
void CellDouble::trimZeroes(std::string& str){
size_t decimalPoint = 0;
for(; decimalPoint < str.size(); decimalPoint++){
if(str[decimalPoint]=='.'){
break;
}
}
int cut = str.size() - 1;
for(; cut > decimalPoint; cut--){
if(str[cut] != '0')
break;
}
if(cut != decimalPoint){
cut++;
}
str = str.substr(0, cut);
}
std::string CellDouble::getDisplayableString(){
std::string str = std::to_string(double_);
trimZeroes(str);
return str;
}
std::string CellDouble::getConstructString(){
return getDisplayableString();
}
bool CellDouble::isValid(const std::string& value){
bool decimalPoint = false;
size_t initialPos = 0;
if(value.size() >= 1){
if(value[0] == '.'){
return false;
}
if(value[0] == '+' || value[0] == '-'){
initialPos++;
}
}
for(size_t i = initialPos ; i < value.size(); i++){
if(value[i] == '.'){
if(i + 1 >= value.size()){
return false;
}
if(!decimalPoint){
decimalPoint = true;
}else{
return false;
}
continue;
}
if('0' > value[i] || value[i] > '9'){
return false;
}
}
return true;
}
double CellDouble::getValue(){
return double_;
}
Cell* CellDouble::clone() const{
return new CellDouble(*this);
}
| 21.086022 | 55 | 0.527792 | veselin465 |
2984d51cde646c84acf0c927b0996cddf100c31e | 2,669 | cc | C++ | src/pygmm.cc | zxytim/fast-gmm | 5b6940d62c950889d51d5a3dfc99907e3b631958 | [
"MIT"
] | 20 | 2015-10-27T10:41:32.000Z | 2020-12-23T06:10:36.000Z | src/pygmm.cc | H2020-InFuse/fast-gmm | e88b58d0cb3c9cf1579e6e7c6523a4f10d7e904a | [
"MIT"
] | 3 | 2017-03-06T07:51:38.000Z | 2018-08-16T08:36:34.000Z | src/pygmm.cc | H2020-InFuse/fast-gmm | e88b58d0cb3c9cf1579e6e7c6523a4f10d7e904a | [
"MIT"
] | 6 | 2017-01-26T12:57:01.000Z | 2019-05-18T06:55:16.000Z | /*
* $File: pygmm.cc
* $Date: Wed Dec 11 18:50:31 2013 +0800
* $Author: Xinyu Zhou <zxytim[at]gmail[dot]com>
*/
#include "pygmm.hh"
#include "gmm.hh"
#include <fstream>
using namespace std;
typedef vector<vector<real_t>> DenseDataset;
void conv_double_pp_to_vv(double **Xp, DenseDataset &X, int nr_instance, int nr_dim) {
X.resize(nr_instance);
for (auto &x: X)
x.resize(nr_dim);
for (int i = 0; i < nr_instance; i ++)
for (int j = 0; j < nr_dim; j ++)
X[i][j] = Xp[i][j];
}
void conv_double_p_to_v(double *x_in, vector<real_t> &x, int nr_dim) {
x.resize(nr_dim);
for (int i = 0; i < nr_dim; i ++)
x[i] = x_in[i];
}
void print_param(Parameter *param) {
printf("nr_instance : %d\n", param->nr_instance);
printf("nr_dim : %d\n", param->nr_dim);
printf("nr_mixture : %d\n", param->nr_mixture);
printf("min_covar : %f\n", param->min_covar);
printf("threshold : %f\n", param->threshold);
printf("nr_iteration : %d\n", param->nr_iteration);
printf("init_with_kmeans: %d\n", param->init_with_kmeans);
printf("concurrency : %d\n", param->concurrency);
printf("verbosity : %d\n", param->verbosity);
}
void print_X(double **X) {
printf("X: %p\n", X);
printf("X: %p\n", X[0]);
printf("X: %f\n", X[0][0]);
}
GMM *new_gmm(int nr_mixture, int covariance_type) {
return new GMM(nr_mixture, covariance_type);
}
GMM *load(const char *model_file) {
return new GMM(model_file);
}
void dump(GMM *gmm, const char *model_file) {
ofstream fout(model_file);
gmm->dump(fout);
}
void train_model(GMM *gmm, double **X_in, Parameter *param) {
print_param(param);
GMMTrainerBaseline trainer(param->nr_iteration, param->min_covar, param->init_with_kmeans, param->concurrency, param->verbosity);
gmm->trainer = &trainer;
DenseDataset X;
conv_double_pp_to_vv(X_in, X, param->nr_instance, param->nr_dim);
gmm->fit(X);
}
double score_all(GMM *gmm, double **X_in, int nr_instance, int nr_dim, int concurrency) {
DenseDataset X;
conv_double_pp_to_vv(X_in, X, nr_instance, nr_dim);
return gmm->log_probability_of_fast_exp_threaded(X, concurrency);
}
void score_batch(GMM *gmm, double **X_in, double *prob_out, int nr_instance, int nr_dim, int concurrency) {
DenseDataset X;
conv_double_pp_to_vv(X_in, X, nr_instance, nr_dim);
std::vector<real_t> prob;
gmm->log_probability_of_fast_exp_threaded(X, prob, concurrency);
for (size_t i = 0; i < prob.size(); i ++)
prob_out[i] = prob[i];
}
double score_instance(GMM *gmm, double *x_in, int nr_dim) {
vector<real_t> x;
conv_double_p_to_v(x_in, x, nr_dim);
return gmm->log_probability_of_fast_exp(x);
}
/**
* vim: syntax=cpp11 foldmethod=marker
*/
| 27.515464 | 130 | 0.681529 | zxytim |
2984ea0fb0f4b99b537bde25a55d2e4bb1ed2b01 | 17,413 | cpp | C++ | far/grabber.cpp | gvvynplaine/FarManager | fa26311977da68d349088e4f51736963a15c0549 | [
"BSD-3-Clause"
] | 1 | 2019-11-15T10:13:04.000Z | 2019-11-15T10:13:04.000Z | far/grabber.cpp | fcccode/FarManager | 5df65d2ea1fc1dca27acd439313b5347d4c9afdd | [
"BSD-3-Clause"
] | null | null | null | far/grabber.cpp | fcccode/FarManager | 5df65d2ea1fc1dca27acd439313b5347d4c9afdd | [
"BSD-3-Clause"
] | null | null | null | /*
grabber.cpp
Screen grabber
*/
/*
Copyright © 1996 Eugene Roshal
Copyright © 2000 Far Group
All rights reserved.
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.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
*/
// Self:
#include "grabber.hpp"
// Internal:
#include "keyboard.hpp"
#include "keys.hpp"
#include "savescr.hpp"
#include "ctrlobj.hpp"
#include "manager.hpp"
#include "interf.hpp"
#include "clipboard.hpp"
#include "config.hpp"
#include "help.hpp"
#include "string_utils.hpp"
#include "global.hpp"
#include "colormix.hpp"
#include "eol.hpp"
// Platform:
// Common:
#include "common/string_utils.hpp"
// External:
//----------------------------------------------------------------------------
Grabber::Grabber(private_tag):
ResetArea(true),
m_VerticalBlock(false)
{
ScreenObject::SetPosition({ 0, 0, ScrX, ScrY });
}
grabber_ptr Grabber::create()
{
auto GrabberPtr = std::make_shared<Grabber>(private_tag());
GrabberPtr->init();
return GrabberPtr;
}
void Grabber::init()
{
SetMacroMode(MACROAREA_GRABBER);
SaveScr = std::make_unique<SaveScreen>();
bool Visible=false;
DWORD Size=0;
GetCursorType(Visible,Size);
if (Visible)
GArea.Current = GetCursorPos();
else
GArea.Current = {};
GArea.Begin.x = -1;
Process();
SaveScr.reset();
Global->WindowManager->RefreshWindow();
}
std::tuple<point&, point&> Grabber::GetSelection()
{
auto& SelectionBegin = GArea.Begin.y == GArea.End.y?
GArea.Begin.x < GArea.End.x? GArea.Begin : GArea.End :
GArea.Begin.y < GArea.End.y? GArea.Begin : GArea.End;
auto& SelectionEnd = &SelectionBegin == &GArea.Begin? GArea.End : GArea.Begin;
return std::tie(SelectionBegin, SelectionEnd);
}
void Grabber::CopyGrabbedArea(bool Append, bool VerticalBlock)
{
if (GArea.Begin.x < 0)
return;
const auto X1 = std::min(GArea.Begin.x, GArea.End.x);
const auto X2 = std::max(GArea.Begin.x, GArea.End.x);
const auto Y1 = std::min(GArea.Begin.y, GArea.End.y);
const auto Y2 = std::max(GArea.Begin.y, GArea.End.y);
auto FromX = X1;
auto ToX = X2;
const auto FromY = Y1;
const auto ToY = Y2;
if (m_StreamSelection)
{
FromX = 0;
ToX = ScrX;
}
matrix<FAR_CHAR_INFO> CharBuf(ToY - FromY + 1, ToX - FromX + 1);
GetText({ FromX, FromY, ToX, ToY }, CharBuf);
string CopyBuf;
CopyBuf.reserve(CharBuf.height() * (CharBuf.width() + 2));
string Line;
Line.reserve(CharBuf.width());
const auto& [SelectionBegin, SelectionEnd] = GetSelection();
const auto Eol = eol::str(eol::system());
for (size_t i = 0; i != CharBuf.height(); ++i)
{
const auto& MatrixLine = CharBuf[i];
auto Begin = MatrixLine.cbegin(), End = MatrixLine.cend();
const auto IsFirstLine = i == 0;
const auto IsLastLine = i == CharBuf.height() - 1;
if (m_StreamSelection)
{
Begin += IsFirstLine? SelectionBegin.x : 0;
End -= IsLastLine? ScrX - SelectionEnd.x : 0;
}
Line.clear();
std::transform(Begin, End, std::back_inserter(Line), [](const FAR_CHAR_INFO& Char) { return Char.Char; });
bool AddEol = !IsLastLine;
if (m_StreamSelection)
{
// in stream mode we want to preserve existing line breaks,
// but at the same time join lines that were split because of the text wrapping.
// The Windows console doesn't keep EOL characters at all, so we will try to guess.
// If the line ends with an alphanumeric character, it's probably has been wrapped.
// TODO: consider analysing the beginning of the next line too.
AddEol = !is_alphanumeric(Line.back());
}
else
{
inplace::trim_right(Line);
}
CopyBuf += Line;
if (AddEol)
{
CopyBuf += Eol;
}
}
clipboard_accessor Clip;
if (Clip->Open())
{
if (Append)
{
string OldData;
if (Clip->GetText(OldData))
{
if (!OldData.empty() && OldData.back() != L'\n')
{
OldData += Eol;
}
CopyBuf.insert(0, OldData);
}
}
if (VerticalBlock)
Clip->SetVText(CopyBuf);
else
Clip->SetText(CopyBuf);
}
}
void Grabber::DisplayObject()
{
MoveCursor({ GArea.Current.x, GArea.Current.y });
const auto X1 = std::min(GArea.Begin.x, GArea.End.x);
const auto X2 = std::max(GArea.Begin.x, GArea.End.x);
const auto Y1 = std::min(GArea.Begin.y, GArea.End.y);
const auto Y2 = std::max(GArea.Begin.y, GArea.End.y);
m_StreamSelection.forget();
if (GArea.Begin.x != -1)
{
auto FromX = X1;
auto ToX = X2;
const auto FromY = Y1;
const auto ToY = Y2;
if (m_StreamSelection)
{
FromX = 0;
ToX = ScrX;
}
matrix<FAR_CHAR_INFO> CharBuf(ToY - FromY + 1, ToX - FromX + 1);
GetText({ FromX, FromY, ToX, ToY }, CharBuf);
for (int Y = FromY; Y <= ToY; Y++)
{
for (int X = FromX; X <= ToX; X++)
{
const auto& CurColor = SaveScr->ScreenBuf[Y][X].Attributes;
auto& Destination = CharBuf[Y - Y1][X - FromX].Attributes;
Destination = CurColor;
if (m_StreamSelection)
{
const auto ToUp = GArea.Begin.y < GArea.End.y;
const auto ToDown = !ToUp;
const auto FirstLine = Y == FromY;
const auto LastLine = Y == ToY;
if (ToDown)
{
if (FirstLine && LastLine)
{
if (X < X1 || X > X2)
{
continue;
}
}
else if ((FirstLine && X < GArea.End.x) || (LastLine && X > GArea.Begin.x))
continue;
}
else
{
if ((FirstLine && X < GArea.Begin.x) || (LastLine && X > GArea.End.x))
continue;
}
}
Destination.BackgroundColor = colors::alpha_value(CurColor.BackgroundColor) | (
CurColor.IsBg4Bit()?
colors::index_value(~colors::index_value(CurColor.BackgroundColor)) :
colors::color_value(~colors::color_value(CurColor.BackgroundColor))
);
Destination.ForegroundColor = colors::alpha_value(CurColor.ForegroundColor) | (
CurColor.IsFg4Bit()?
colors::index_value(~colors::index_value(CurColor.ForegroundColor)) :
colors::color_value(~colors::color_value(CurColor.ForegroundColor))
);
}
}
PutText({ FromX, FromY, ToX, ToY }, CharBuf.data());
}
SetCursorType(true, 60);
}
bool Grabber::ProcessKey(const Manager::Key& Key)
{
auto LocalKey = Key();
if(Global->CloseFAR)
{
LocalKey = KEY_ESC;
}
/* $ 14.03.2001 SVS
[-] Неправильно воспроизводился макрос в режиме грабления экрана.
При воспроизведении клавиша Home перемещала курсор в координаты
0,0 консоли.
Не было учтено режима выполнения макроса.
*/
if (Global->CtrlObject->Macro.IsExecuting())
{
if ((LocalKey&KEY_SHIFT) && LocalKey!=KEY_NONE && ResetArea)
Reset();
else if (LocalKey!=KEY_IDLE && LocalKey!=KEY_NONE && !(LocalKey&KEY_SHIFT) && !IntKeyState.ShiftPressed() && !IntKeyState.AltPressed())
ResetArea = true;
}
else
{
if ((IntKeyState.ShiftPressed() || LocalKey!=KEY_SHIFT) && (LocalKey&KEY_SHIFT) && LocalKey!=KEY_NONE && LocalKey!=KEY_CTRLA && LocalKey!=KEY_RCTRLA && !IntKeyState.AltPressed() && ResetArea)
Reset();
else if (LocalKey!=KEY_IDLE && LocalKey!=KEY_NONE && LocalKey!=KEY_SHIFT && LocalKey!=KEY_CTRLA && LocalKey!=KEY_RCTRLA && !IntKeyState.ShiftPressed() && !IntKeyState.AltPressed() && !(LocalKey&KEY_SHIFT) && LocalKey != KEY_F1 && LocalKey != KEY_SPACE)
ResetArea = true;
}
const auto Move = [](point& What, int Count, int Direction, int LimitX, int LimitY, int NewX)
{
for (; Count; --Count)
{
if (What.x != LimitX)
{
What.x += Direction;
}
else if (m_StreamSelection)
{
if (What.y != LimitY)
{
What.y += Direction;
What.x = NewX;
}
else
{
return false;
}
}
else
{
return false;
}
}
return true;
};
const auto MovePointLeft = [&](point& What, int Count)
{
return Move(What, Count, -1, 0, 0, ScrX);
};
const auto MovePointRight = [&](point& What, int Count)
{
return Move(What, Count, 1, ScrX, ScrY, 0);
};
const auto MoveLeft = [&](int Count)
{
return MovePointLeft(GArea.Current, Count);
};
const auto MoveRight = [&](int Count)
{
return MovePointRight(GArea.Current, Count);
};
switch (LocalKey)
{
case KEY_F1:
help::show(L"Grabber"sv);
break;
case KEY_CTRLU:
case KEY_RCTRLU:
Reset();
GArea.Begin.x = -1;
break;
case KEY_ESC:
case KEY_F10:
Close(0);
break;
case KEY_SPACE:
m_StreamSelection = !m_StreamSelection;
break;
case KEY_NUMENTER:
case KEY_ENTER:
case KEY_CTRLINS: case KEY_CTRLNUMPAD0:
case KEY_RCTRLINS: case KEY_RCTRLNUMPAD0:
case KEY_CTRLADD:
case KEY_RCTRLADD:
CopyGrabbedArea(LocalKey == KEY_CTRLADD || LocalKey == KEY_RCTRLADD,m_VerticalBlock);
Close(1);
break;
case KEY_LEFT: case KEY_NUMPAD4: case L'4':
MoveLeft(1);
break;
case KEY_RIGHT: case KEY_NUMPAD6: case L'6':
MoveRight(1);
break;
case KEY_UP: case KEY_NUMPAD8: case L'8':
if (GArea.Current.y > 0)
--GArea.Current.y;
break;
case KEY_DOWN: case KEY_NUMPAD2: case L'2':
if (GArea.Current.y < ScrY)
++GArea.Current.y;
break;
case KEY_HOME: case KEY_NUMPAD7: case L'7':
GArea.Current.x = 0;
break;
case KEY_END: case KEY_NUMPAD1: case L'1':
GArea.Current.x = ScrX;
break;
case KEY_PGUP: case KEY_NUMPAD9: case L'9':
GArea.Current.y = 0;
break;
case KEY_PGDN: case KEY_NUMPAD3: case L'3':
GArea.Current.y = ScrY;
break;
case KEY_CTRLHOME: case KEY_CTRLNUMPAD7:
case KEY_RCTRLHOME: case KEY_RCTRLNUMPAD7:
GArea.Current = {};
break;
case KEY_CTRLEND: case KEY_CTRLNUMPAD1:
case KEY_RCTRLEND: case KEY_RCTRLNUMPAD1:
GArea.Current = { ScrX, ScrY };
break;
case KEY_CTRLLEFT: case KEY_CTRLNUMPAD4:
case KEY_RCTRLLEFT: case KEY_RCTRLNUMPAD4:
case KEY_CTRLSHIFTLEFT: case KEY_CTRLSHIFTNUMPAD4:
case KEY_RCTRLSHIFTLEFT: case KEY_RCTRLSHIFTNUMPAD4:
MoveLeft(10);
if (LocalKey == KEY_CTRLSHIFTLEFT || LocalKey == KEY_RCTRLSHIFTLEFT || LocalKey == KEY_CTRLSHIFTNUMPAD4 || LocalKey == KEY_RCTRLSHIFTNUMPAD4)
{
GArea.Begin = GArea.Current;
}
break;
case KEY_CTRLRIGHT: case KEY_CTRLNUMPAD6:
case KEY_RCTRLRIGHT: case KEY_RCTRLNUMPAD6:
case KEY_CTRLSHIFTRIGHT: case KEY_CTRLSHIFTNUMPAD6:
case KEY_RCTRLSHIFTRIGHT: case KEY_RCTRLSHIFTNUMPAD6:
MoveRight(10);
if (LocalKey == KEY_CTRLSHIFTRIGHT || LocalKey == KEY_RCTRLSHIFTRIGHT || LocalKey == KEY_CTRLSHIFTNUMPAD6 || LocalKey == KEY_RCTRLSHIFTNUMPAD6)
{
GArea.Begin = GArea.Current;
}
break;
case KEY_CTRLUP: case KEY_CTRLNUMPAD8:
case KEY_RCTRLUP: case KEY_RCTRLNUMPAD8:
case KEY_CTRLSHIFTUP: case KEY_CTRLSHIFTNUMPAD8:
case KEY_RCTRLSHIFTUP: case KEY_RCTRLSHIFTNUMPAD8:
GArea.Current.y = std::max(GArea.Current.y - 5, 0);
if (LocalKey == KEY_CTRLSHIFTUP || LocalKey == KEY_RCTRLSHIFTUP || LocalKey == KEY_CTRLSHIFTNUMPAD8 || LocalKey == KEY_RCTRLSHIFTNUMPAD8)
GArea.Begin.y = GArea.Current.y;
break;
case KEY_CTRLDOWN: case KEY_CTRLNUMPAD2:
case KEY_RCTRLDOWN: case KEY_RCTRLNUMPAD2:
case KEY_CTRLSHIFTDOWN: case KEY_CTRLSHIFTNUMPAD2:
case KEY_RCTRLSHIFTDOWN: case KEY_RCTRLSHIFTNUMPAD2:
GArea.Current.y = std::min(static_cast<int>(ScrY), GArea.Current.y + 5);
if (LocalKey == KEY_CTRLSHIFTDOWN || LocalKey == KEY_RCTRLSHIFTDOWN || LocalKey == KEY_CTRLSHIFTNUMPAD2 || LocalKey == KEY_RCTRLSHIFTNUMPAD2)
GArea.Begin.y = GArea.Current.y;
break;
case KEY_SHIFTLEFT: case KEY_SHIFTNUMPAD4:
MoveLeft(1);
GArea.Begin = GArea.Current;
break;
case KEY_SHIFTRIGHT: case KEY_SHIFTNUMPAD6:
MoveRight(1);
GArea.Begin = GArea.Current;
break;
case KEY_SHIFTUP: case KEY_SHIFTNUMPAD8:
if (GArea.Begin.y > 0)
--GArea.Begin.y;
GArea.Current = GArea.Begin;
break;
case KEY_SHIFTDOWN: case KEY_SHIFTNUMPAD2:
if (GArea.Begin.y < ScrY)
++GArea.Begin.y;
GArea.Current = GArea.Begin;
break;
case KEY_SHIFTHOME: case KEY_SHIFTNUMPAD7:
GArea.Current.x = GArea.Begin.x = 0;
break;
case KEY_SHIFTEND: case KEY_SHIFTNUMPAD1:
GArea.Current.x = GArea.Begin.x = ScrX;
break;
case KEY_SHIFTPGUP: case KEY_SHIFTNUMPAD9:
GArea.Current.y = GArea.Begin.y = 0;
break;
case KEY_SHIFTPGDN: case KEY_SHIFTNUMPAD3:
GArea.Current.y = GArea.Begin.y = ScrY;
break;
case KEY_ALTSHIFTHOME: case KEY_ALTSHIFTNUMPAD7:
case KEY_RALTSHIFTHOME: case KEY_RALTSHIFTNUMPAD7:
GArea.End.x = 0;
break;
case KEY_ALTSHIFTEND: case KEY_ALTSHIFTNUMPAD1:
case KEY_RALTSHIFTEND: case KEY_RALTSHIFTNUMPAD1:
GArea.End.x = ScrX;
break;
case KEY_ALTSHIFTPGUP: case KEY_ALTSHIFTNUMPAD9:
case KEY_RALTSHIFTPGUP: case KEY_RALTSHIFTNUMPAD9:
GArea.End.y = 0;
break;
case KEY_ALTSHIFTPGDN: case KEY_ALTSHIFTNUMPAD3:
case KEY_RALTSHIFTPGDN: case KEY_RALTSHIFTNUMPAD3:
GArea.End.y = ScrY;
break;
case KEY_ALTSHIFTLEFT: case KEY_ALTSHIFTNUMPAD4:
case KEY_RALTSHIFTLEFT: case KEY_RALTSHIFTNUMPAD4:
MovePointLeft(GArea.End, 1);
break;
case KEY_ALTSHIFTRIGHT: case KEY_ALTSHIFTNUMPAD6:
case KEY_RALTSHIFTRIGHT: case KEY_RALTSHIFTNUMPAD6:
MovePointRight(GArea.End, 1);
break;
case KEY_ALTSHIFTUP: case KEY_ALTSHIFTNUMPAD8:
case KEY_RALTSHIFTUP: case KEY_RALTSHIFTNUMPAD8:
if (GArea.End.y > 0)
--GArea.End.y;
break;
case KEY_ALTSHIFTDOWN: case KEY_ALTSHIFTNUMPAD2:
case KEY_RALTSHIFTDOWN: case KEY_RALTSHIFTNUMPAD2:
if (GArea.End.y < ScrY)
++GArea.End.y;
break;
case KEY_CTRLA:
case KEY_RCTRLA:
GArea.Begin.x = ScrX;
GArea.Begin.y = ScrY;
GArea.End.x = 0;
GArea.End.y = 0;
GArea.Current = GArea.Begin;
break;
case KEY_ALTLEFT:
case KEY_RALTLEFT:
{
const auto& [SelectionBegin, SelectionEnd] = GetSelection();
if (MovePointLeft(SelectionBegin, 1))
{
MovePointLeft(SelectionEnd, 1);
GArea.Current = GArea.Begin;
}
}
break;
case KEY_ALTRIGHT:
case KEY_RALTRIGHT:
{
const auto& [SelectionBegin, SelectionEnd] = GetSelection();
if (MovePointRight(SelectionEnd, 1))
{
MovePointRight(SelectionBegin, 1);
GArea.Current = GArea.Begin;
}
}
break;
case KEY_ALTUP:
case KEY_RALTUP:
if (GArea.Begin.y && GArea.End.y)
{
--GArea.Begin.y;
--GArea.End.y;
GArea.Current = GArea.Begin;
}
break;
case KEY_ALTDOWN:
case KEY_RALTDOWN:
if (GArea.Begin.y < ScrY && GArea.End.y < ScrY)
{
++GArea.Begin.y;
++GArea.End.y;
GArea.Current = GArea.Begin;
}
break;
case KEY_ALTHOME:
case KEY_RALTHOME:
GArea.Begin.x = GArea.Current.x = abs(GArea.Begin.x - GArea.End.x);
GArea.End.x = 0;
break;
case KEY_ALTEND:
case KEY_RALTEND:
GArea.End.x = ScrX - abs(GArea.Begin.x - GArea.End.x);
GArea.Begin.x = GArea.Current.x = ScrX;
break;
case KEY_ALTPGUP:
case KEY_RALTPGUP:
GArea.Begin.y = GArea.Current.y = abs(GArea.Begin.y - GArea.End.y);
GArea.End.y = 0;
break;
case KEY_ALTPGDN:
case KEY_RALTPGDN:
GArea.End.y = ScrY - abs(GArea.Begin.y - GArea.End.y);
GArea.Begin.y = GArea.Current.y = ScrY;
break;
}
Global->WindowManager->RefreshWindow();
return true;
}
bool Grabber::ProcessMouse(const MOUSE_EVENT_RECORD *MouseEvent)
{
if (MouseEvent->dwEventFlags==DOUBLE_CLICK ||
(!MouseEvent->dwEventFlags && (MouseEvent->dwButtonState & RIGHTMOST_BUTTON_PRESSED)))
{
ProcessKey(Manager::Key(KEY_ENTER));
return true;
}
if (IntKeyState.MouseButtonState!=FROM_LEFT_1ST_BUTTON_PRESSED)
return false;
if (!MouseEvent->dwEventFlags)
{
ResetArea = true;
}
else if (MouseEvent->dwEventFlags == MOUSE_MOVED && ResetArea)
{
GArea.End = GArea.Current;
ResetArea = false;
}
GArea.Current.x = std::clamp(IntKeyState.MousePos.x, 0, int(ScrX));
GArea.Current.y = std::clamp(IntKeyState.MousePos.y, 0, int(ScrY));
if (MouseEvent->dwEventFlags == MOUSE_MOVED)
{
GArea.Begin = GArea.Current;
}
Global->WindowManager->RefreshWindow();
return true;
}
void Grabber::Reset()
{
GArea.Begin = GArea.End = GArea.Current;
ResetArea = false;
}
void Grabber::ResizeConsole()
{
Close(0);
}
bool RunGraber()
{
static bool InGrabber=false;
if (!InGrabber)
{
InGrabber=true;
FlushInputBuffer();
Grabber::create();
InGrabber=false;
return true;
}
return false;
}
| 25.018678 | 254 | 0.674955 | gvvynplaine |
2985674b4ce02f5cef60c46ba37c6b8b0fca82b8 | 19,310 | cc | C++ | gearmand/gearmand.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 712 | 2016-07-02T03:32:22.000Z | 2022-03-23T14:23:02.000Z | gearmand/gearmand.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 294 | 2016-07-03T16:17:41.000Z | 2022-03-30T04:37:49.000Z | gearmand/gearmand.cc | alionurdemetoglu/gearmand | dd9ac59a730f816e0dc5f27f98fdc06a08cc4c22 | [
"BSD-3-Clause"
] | 163 | 2016-07-08T10:03:38.000Z | 2022-01-21T05:03:48.000Z | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011-2013 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 Brian Aker, Eric Day
* 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.
*
* * The names of its contributors may not 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.
*
*/
#include "gear_config.h"
#include "configmake.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fcntl.h>
#include <fstream>
#include <pwd.h>
#include <signal.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <syslog.h>
#include <unistd.h>
#include <grp.h>
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
#include "libgearman-server/gearmand.h"
#include "libgearman-server/plugins.h"
#include "libgearman-server/queue.hpp"
#define GEARMAND_LOG_REOPEN_TIME 60
#include "util/daemon.hpp"
#include "util/pidfile.hpp"
#include <boost/program_options.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/token_functions.hpp>
#include <boost/tokenizer.hpp>
#include <iostream>
#include "libtest/cpu.hpp"
#include "gearmand/error.hpp"
#include "gearmand/log.hpp"
#include "libgearman/backtrace.hpp"
using namespace datadifferential;
using namespace gearmand;
static bool _set_fdlimit(rlim_t fds);
static bool _switch_user(const char *user);
extern "C" {
static bool _set_signals(bool core_dump= false);
}
static void _log(const char *line, gearmand_verbose_t verbose, void *context);
int main(int argc, char *argv[])
{
gearmand::error::init(argv[0]);
int backlog;
rlim_t fds= 0;
uint32_t job_retries;
uint32_t worker_wakeup;
std::string host;
std::string user;
std::string log_file;
std::string pid_file;
std::string protocol;
std::string queue_type;
std::string job_handle_prefix;
std::string verbose_string;
std::string config_file;
uint32_t threads;
bool opt_exceptions;
bool opt_round_robin;
bool opt_daemon;
bool opt_check_args;
bool opt_syslog;
bool opt_coredump;
uint32_t hashtable_buckets;
bool opt_keepalive;
int opt_keepalive_idle;
int opt_keepalive_interval;
int opt_keepalive_count;
boost::program_options::options_description general("General options");
general.add_options()
("backlog,b", boost::program_options::value(&backlog)->default_value(32),
"Number of backlog connections for listen.")
("daemon,d", boost::program_options::bool_switch(&opt_daemon)->default_value(false),
"Daemon, detach and run in the background.")
("exceptions", boost::program_options::bool_switch(&opt_exceptions)->default_value(false),
"Enable protocol exceptions by default.")
("file-descriptors,f", boost::program_options::value(&fds),
"Number of file descriptors to allow for the process (total connections will be slightly less). Default is max allowed for user.")
("help,h", "Print this help menu.")
("job-retries,j", boost::program_options::value(&job_retries)->default_value(0),
"Number of attempts to run the job before the job server removes it. This is helpful to ensure a bad job does not crash all available workers. Default is no limit.")
("job-handle-prefix", boost::program_options::value(&job_handle_prefix),
"Prefix used to generate a job handle string. If not provided, the default \"H:<host_name>\" is used.")
("hashtable-buckets", boost::program_options::value(&hashtable_buckets)->default_value(GEARMAND_DEFAULT_HASH_SIZE),
"Number of buckets in the internal job hash tables. The default of 991 works well for about three million jobs in queue. If the number of jobs in the queue at any time will exceed three million, use proportionally larger values (991 * # of jobs / 3M). For example, to accommodate 2^32 jobs, use 1733003. This will consume ~26MB of extra memory. Gearmand cannot support more than 2^32 jobs in queue at this time.")
("keepalive", boost::program_options::bool_switch(&opt_keepalive)->default_value(false),
"Enable keepalive on sockets.")
("keepalive-idle", boost::program_options::value(&opt_keepalive_idle)->default_value(-1),
"If keepalive is enabled, set the value for TCP_KEEPIDLE for systems that support it. A value of -1 means that either the system does not support it or an error occurred when trying to retrieve the default value.")
("keepalive-interval", boost::program_options::value(&opt_keepalive_interval)->default_value(-1),
"If keepalive is enabled, set the value for TCP_KEEPINTVL for systems that support it. A value of -1 means that either the system does not support it or an error occurred when trying to retrieve the default value.")
("keepalive-count", boost::program_options::value(&opt_keepalive_count)->default_value(-1),
"If keepalive is enabled, set the value for TCP_KEEPCNT for systems that support it. A value of -1 means that either the system does not support it or an error occurred when trying to retrieve the default value.")
("log-file,l", boost::program_options::value(&log_file)->default_value(LOCALSTATEDIR"/log/gearmand.log"),
"Log file to write errors and information to. If the log-file parameter is specified as 'stderr', then output will go to stderr. If 'none', then no logfile will be generated.")
("listen,L", boost::program_options::value(&host),
"Address the server should listen on. Default is INADDR_ANY.")
("pid-file,P", boost::program_options::value(&pid_file)->default_value(GEARMAND_PID),
"File to write process ID out to.")
("protocol,r", boost::program_options::value(&protocol),
"Load protocol module.")
("round-robin,R", boost::program_options::bool_switch(&opt_round_robin)->default_value(false),
"Assign work in round-robin order per worker connection. The default is to assign work in the order of functions added by the worker.")
("queue-type,q", boost::program_options::value(&queue_type)->default_value("builtin"),
"Persistent queue type to use.")
("config-file", boost::program_options::value(&config_file)->default_value(GEARMAND_CONFIG),
"Can be specified with '@name', too")
("syslog", boost::program_options::bool_switch(&opt_syslog)->default_value(false),
"Use syslog.")
("coredump", boost::program_options::bool_switch(&opt_coredump)->default_value(false),
"Whether to create a core dump for uncaught signals.")
("threads,t", boost::program_options::value(&threads)->default_value(4),
"Number of I/O threads to use, 0 means that gearmand will try to guess the maximum number it can use. Default=4.")
("user,u", boost::program_options::value(&user),
"Switch to given user after startup.")
("verbose", boost::program_options::value(&verbose_string)->default_value("ERROR"),
"Set verbose level (FATAL, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG).")
("version,V", "Display the version of gearmand and exit.")
("worker-wakeup,w", boost::program_options::value(&worker_wakeup)->default_value(0),
"Number of workers to wakeup for each job received. The default is to wakeup all available workers.")
;
boost::program_options::options_description all("Allowed options");
all.add(general);
gearmand::protocol::HTTP http;
all.add(http.command_line_options());
gearmand::protocol::Gear gear;
all.add(gear.command_line_options());
gearmand::plugins::initialize(all);
boost::program_options::positional_options_description positional;
positional.add("provided", -1);
// Now insert all options that we want to make visible to the user
boost::program_options::options_description visible("Allowed options");
visible.add(all);
boost::program_options::options_description hidden("Hidden options");
hidden.add_options()
("check-args", boost::program_options::bool_switch(&opt_check_args)->default_value(false),
"Check command line and configuration file arguments and then exit.");
all.add(hidden);
boost::program_options::variables_map vm;
try {
// Disable allow_guessing
int style= boost::program_options::command_line_style::default_style ^ boost::program_options::command_line_style::allow_guessing;
boost::program_options::parsed_options parsed= boost::program_options::command_line_parser(argc, argv)
.options(all)
.positional(positional)
.style(style)
.run();
store(parsed, vm);
notify(vm);
if (config_file.empty() == false)
{
// Load the file and tokenize it
std::ifstream ifs(config_file.c_str());
if (ifs)
{
// Read the whole file into a string
std::stringstream ss;
ss << ifs.rdbuf();
// Split the file content
boost::char_separator<char> sep(" \n\r");
std::string sstr= ss.str();
boost::tokenizer<boost::char_separator<char> > tok(sstr, sep);
std::vector<std::string> args;
std::copy(tok.begin(), tok.end(), back_inserter(args));
#if defined(DEBUG) && DEBUG
for (std::vector<std::string>::iterator iter= args.begin();
iter != args.end();
++iter)
{
std::cerr << *iter << std::endl;
}
#endif
// Parse the file and store the options
store(boost::program_options::command_line_parser(args).options(visible).run(), vm);
}
else if (config_file.compare(GEARMAND_CONFIG))
{
error::message("Could not open configuration file.");
return EXIT_FAILURE;
}
}
notify(vm);
}
catch(boost::program_options::validation_error &e)
{
error::message(e.what());
return EXIT_FAILURE;
}
catch(std::exception &e)
{
if (e.what() and strncmp("-v", e.what(), 2) == 0)
{
error::message("Option -v has been deprecated, please use --verbose");
}
else
{
error::message(e.what());
}
return EXIT_FAILURE;
}
gearmand_verbose_t verbose= GEARMAND_VERBOSE_ERROR;
if (gearmand_verbose_check(verbose_string.c_str(), verbose) == false)
{
error::message("Invalid value for --verbose supplied");
return EXIT_FAILURE;
}
if (hashtable_buckets <= 0)
{
error::message("hashtable-buckets has to be greater than 0");
return EXIT_FAILURE;
}
if (opt_check_args)
{
return EXIT_SUCCESS;
}
if (vm.count("help"))
{
std::cout << visible << std::endl;
return EXIT_SUCCESS;
}
if (vm.count("version"))
{
std::cout << std::endl << "gearmand " << gearmand_version() << " - " << gearmand_bugreport() << std::endl;
return EXIT_SUCCESS;
}
if (fds > 0 and _set_fdlimit(fds))
{
return EXIT_FAILURE;
}
if (not user.empty() and _switch_user(user.c_str()))
{
return EXIT_FAILURE;
}
if (opt_daemon)
{
util::daemonize(false, true);
}
if (_set_signals(opt_coredump))
{
return EXIT_FAILURE;
}
util::Pidfile _pid_file(pid_file);
if (_pid_file.create() == false and pid_file.compare(GEARMAND_PID))
{
error::perror(_pid_file.error_message().c_str());
return EXIT_FAILURE;
}
gearmand::gearmand_log_info_st log_info(log_file, opt_syslog);
if (log_info.initialized() == false)
{
return EXIT_FAILURE;
}
if (threads == 0)
{
uint32_t number_of_threads= libtest::number_of_cpus();
if (number_of_threads > 4)
{
threads= number_of_threads;
}
}
gearmand_config_st *gearmand_config= gearmand_config_create();
if (gearmand_config == NULL)
{
return EXIT_FAILURE;
}
gearmand_config_sockopt_keepalive(gearmand_config, opt_keepalive);
gearmand_config_sockopt_keepalive_count(gearmand_config, opt_keepalive_count);
gearmand_config_sockopt_keepalive_idle(gearmand_config, opt_keepalive_idle);
gearmand_config_sockopt_keepalive_interval(gearmand_config, opt_keepalive_interval);
gearmand_st *_gearmand= gearmand_create(gearmand_config,
host.empty() ? NULL : host.c_str(),
threads, backlog,
static_cast<uint8_t>(job_retries),
job_handle_prefix.empty() ? NULL : job_handle_prefix.c_str(),
static_cast<uint8_t>(worker_wakeup),
_log, &log_info, verbose,
opt_round_robin, opt_exceptions,
hashtable_buckets);
if (_gearmand == NULL)
{
error::message("Could not create gearmand library instance.");
return EXIT_FAILURE;
}
gearmand_config_free(gearmand_config);
assert(queue_type.size());
if (queue_type.empty() == false)
{
gearmand_error_t rc;
if ((rc= gearmand::queue::initialize(_gearmand, queue_type.c_str())) != GEARMAND_SUCCESS)
{
error::message("Error while initializing the queue", queue_type.c_str());
gearmand_free(_gearmand);
return EXIT_FAILURE;
}
}
if (gear.start(_gearmand) != GEARMAND_SUCCESS)
{
error::message("Error while enabling Gear protocol module");
gearmand_free(_gearmand);
return EXIT_FAILURE;
}
if (protocol.compare("http") == 0)
{
if (http.start(_gearmand) != GEARMAND_SUCCESS)
{
error::message("Error while enabling protocol module", protocol.c_str());
gearmand_free(_gearmand);
return EXIT_FAILURE;
}
}
else if (protocol.empty() == false)
{
error::message("Unknown protocol module", protocol.c_str());
gearmand_free(_gearmand);
return EXIT_FAILURE;
}
if (opt_daemon)
{
if (util::daemon_is_ready(true) == false)
{
return EXIT_FAILURE;
}
}
gearmand_error_t ret= gearmand_run(_gearmand);
gearmand_free(_gearmand);
_gearmand= NULL;
return (ret == GEARMAND_SUCCESS || ret == GEARMAND_SHUTDOWN) ? 0 : 1;
}
static bool _set_fdlimit(rlim_t fds)
{
struct rlimit rl;
if (getrlimit(RLIMIT_NOFILE, &rl) == -1)
{
error::perror("Could not get file descriptor limit");
return true;
}
rl.rlim_cur= fds;
if (rl.rlim_max < rl.rlim_cur)
{
rl.rlim_max= rl.rlim_cur;
}
if (setrlimit(RLIMIT_NOFILE, &rl) == -1)
{
error::perror("Failed to set limit for the number of file "
"descriptors. Try running as root or giving a "
"smaller value to -f.");
return true;
}
return false;
}
static bool _switch_user(const char *user)
{
if (getuid() == 0 or geteuid() == 0)
{
struct passwd *pw= getpwnam(user);
if (not pw)
{
error::message("Could not find user", user);
return EXIT_FAILURE;
}
if (setgroups(0, NULL) == -1 ||
setgid(pw->pw_gid) == -1 ||
setuid(pw->pw_uid) == -1)
{
error::message("Could not switch to user", user);
return EXIT_FAILURE;
}
}
else
{
error::message("Must be root to switch users.");
return true;
}
return false;
}
extern "C" void _shutdown_handler(int signal_, siginfo_t*, void*)
{
if (signal_== SIGUSR1)
{
gearmand_wakeup(Gearmand(), GEARMAND_WAKEUP_SHUTDOWN_GRACEFUL);
}
else
{
gearmand_wakeup(Gearmand(), GEARMAND_WAKEUP_SHUTDOWN);
}
}
extern "C" void _reset_log_handler(int, siginfo_t*, void*) // signal_arg
{
gearmand_log_info_st *log_info= static_cast<gearmand_log_info_st *>(Gearmand()->log_context);
log_info->write(GEARMAND_VERBOSE_NOTICE, "SIGHUP, reopening log file");
log_info->reset();
}
static bool segfaulted= false;
extern "C" void _crash_handler(int signal_, siginfo_t*, void*)
{
if (segfaulted)
{
error::message("\nFatal crash while backtrace from signal:", strsignal(signal_));
_exit(EXIT_FAILURE); /* Quit without running destructors */
}
segfaulted= true;
custom_backtrace();
_exit(EXIT_FAILURE); /* Quit without running destructors */
}
extern "C" {
static bool _set_signals(bool core_dump)
{
struct sigaction sa;
memset(&sa, 0, sizeof(struct sigaction));
sa.sa_handler= SIG_IGN;
if (sigemptyset(&sa.sa_mask) == -1 or
sigaction(SIGPIPE, &sa, 0) == -1)
{
error::perror("Could not set SIGPIPE handler.");
return true;
}
sa.sa_sigaction= _shutdown_handler;
sa.sa_flags= SA_SIGINFO;
if (sigaction(SIGTERM, &sa, 0) == -1)
{
error::perror("Could not set SIGTERM handler.");
return true;
}
if (sigaction(SIGINT, &sa, 0) == -1)
{
error::perror("Could not set SIGINT handler.");
return true;
}
if (sigaction(SIGUSR1, &sa, 0) == -1)
{
error::perror("Could not set SIGUSR1 handler.");
return true;
}
sa.sa_sigaction= _reset_log_handler;
if (sigaction(SIGHUP, &sa, 0) == -1)
{
error::perror("Could not set SIGHUP handler.");
return true;
}
bool in_gdb_libtest= bool(getenv("LIBTEST_IN_GDB"));
if ((in_gdb_libtest == false) and (core_dump == false))
{
sa.sa_sigaction= _crash_handler;
if (sigaction(SIGSEGV, &sa, NULL) == -1)
{
error::perror("Could not set SIGSEGV handler.");
return true;
}
if (sigaction(SIGABRT, &sa, NULL) == -1)
{
error::perror("Could not set SIGABRT handler.");
return true;
}
#ifdef SIGBUS
if (sigaction(SIGBUS, &sa, NULL) == -1)
{
error::perror("Could not set SIGBUS handler.");
return true;
}
#endif
if (sigaction(SIGILL, &sa, NULL) == -1)
{
error::perror("Could not set SIGILL handler.");
return true;
}
if (sigaction(SIGFPE, &sa, NULL) == -1)
{
error::perror("Could not set SIGFPE handler.");
return true;
}
}
return false;
}
}
static void _log(const char *mesg, gearmand_verbose_t verbose, void *context)
{
gearmand_log_info_st *log_info= static_cast<gearmand_log_info_st *>(context);
log_info->write(verbose, mesg);
}
| 29.662058 | 416 | 0.68348 | alionurdemetoglu |
2988952542ad7b50ab726e6e0e3513f94b4ab8b1 | 12,242 | cpp | C++ | src/engine/components/replay/cl_replaymoviemanager.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/components/replay/cl_replaymoviemanager.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/components/replay/cl_replaymoviemanager.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
//=======================================================================================//
#include "cl_replaymoviemanager.h"
#include "replay/ireplaymoviemanager.h"
#include "replay/ireplaymovierenderer.h"
#include "replay/replay.h"
#include "replay/replayutils.h"
#include "replay/rendermovieparams.h"
#include "replay/shared_defs.h"
#include "cl_replaymovie.h"
#include "cl_renderqueue.h"
#include "cl_replaycontext.h"
#include "filesystem.h"
#include "KeyValues.h"
#include "replaysystem.h"
#include "cl_replaymanager.h"
#include "materialsystem/imaterialsystem.h"
#include "materialsystem/materialsystem_config.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
//----------------------------------------------------------------------------------------
#define MOVIE_MANAGER_VERSION 1
//----------------------------------------------------------------------------------------
extern IMaterialSystem *materials;
//----------------------------------------------------------------------------------------
CReplayMovieManager::CReplayMovieManager()
: m_pPendingMovie(NULL),
m_pVidModeSettings(NULL),
m_pRenderMovieSettings(NULL),
m_bIsRendering(false),
m_bRenderingCancelled(false) {
m_pVidModeSettings = new MaterialSystem_Config_t();
m_pRenderMovieSettings = new RenderMovieParams_t();
m_wszCachedMovieTitle[0] = L'\0';
}
CReplayMovieManager::~CReplayMovieManager() {
delete m_pVidModeSettings;
}
bool CReplayMovieManager::Init() {
// Create "rendered" dir
const char *pRenderedDir = Replay_va("%s%s%c", CL_GetReplayBaseDir(), SUBDIR_RENDERED, CORRECT_PATH_SEPARATOR);
g_pFullFileSystem->CreateDirHierarchy(pRenderedDir);
return BaseClass::Init();
}
int CReplayMovieManager::GetMovieCount() {
return Count();
}
void CReplayMovieManager::GetMovieList(CUtlLinkedList<IReplayMovie *> &list) {
FOR_EACH_OBJ(this, i) {
list.AddToTail(ToMovie(m_vecObjs[i]));
}
}
IReplayMovie *CReplayMovieManager::GetMovie(ReplayHandle_t hMovie) {
return ToMovie(Find(hMovie));
}
void CReplayMovieManager::AddMovie(CReplayMovie *pNewMovie) {
Add(pNewMovie);
Save();
}
CReplayMovie *CReplayMovieManager::Create() {
return new CReplayMovie();
}
const char *CReplayMovieManager::GetRelativeIndexPath() const {
return Replay_va("%s%c", SUBDIR_MOVIES, CORRECT_PATH_SEPARATOR);
}
IReplayMovie *CReplayMovieManager::CreateAndAddMovie(ReplayHandle_t hReplay) {
CReplayMovie *pNewMovie = CreateAndGenerateHandle(); // Sets m_hThis (which is accessed via GetHandle())
// Cache replay handle.
pNewMovie->m_hReplay = hReplay;
// Copy cached render settings to the movie itself.
V_memcpy(&pNewMovie->m_RenderSettings, &m_pRenderMovieSettings->m_Settings, sizeof(ReplayRenderSettings_t));
AddMovie(pNewMovie);
return pNewMovie;
}
void CReplayMovieManager::DeleteMovie(ReplayHandle_t hMovie) {
// Cache owner replay
CReplayMovie *pMovie = Find(hMovie);
CReplay *pOwnerReplay = pMovie ? CL_GetReplayManager()->GetReplay(pMovie->m_hReplay) : NULL;
Remove(hMovie);
// If no more movies for the given replay, mark as unrendered & save
if (pOwnerReplay && GetNumMoviesDependentOnReplay(pOwnerReplay) == 0) {
pOwnerReplay->m_bRendered = false;
CL_GetReplayManager()->FlagReplayForFlush(pOwnerReplay, false);
}
}
int CReplayMovieManager::GetNumMoviesDependentOnReplay(const CReplay *pReplay) {
if (!pReplay)
return 0;
// Go through all movies and find any that depend on the given replay
int nNumMovies = 0;
FOR_EACH_OBJ(this, i) {
CReplayMovie *pMovie = ToMovie(m_vecObjs[i]);
if (pMovie->m_hReplay == pReplay->GetHandle()) {
++nNumMovies;
}
}
return nNumMovies;
}
void CReplayMovieManager::SetPendingMovie(IReplayMovie *pMovie) {
m_pPendingMovie = pMovie;
}
IReplayMovie *CReplayMovieManager::GetPendingMovie() {
return m_pPendingMovie;
}
void CReplayMovieManager::FlagMovieForFlush(IReplayMovie *pMovie, bool bImmediate) {
FlagForFlush(CastMovie(pMovie), bImmediate);
}
CReplayMovie *CReplayMovieManager::CastMovie(IReplayMovie *pMovie) {
return static_cast< CReplayMovie * >( pMovie );
}
int CReplayMovieManager::GetVersion() const {
return MOVIE_MANAGER_VERSION;
}
IReplayContext *CReplayMovieManager::GetReplayContext() const {
return g_pClientReplayContextInternal;
}
float CReplayMovieManager::GetNextThinkTime() const {
return 0.1f;
}
void CReplayMovieManager::CacheMovieTitle(const wchar_t *pTitle) {
V_wcsncpy(m_wszCachedMovieTitle, pTitle, sizeof(m_wszCachedMovieTitle));
}
void CReplayMovieManager::GetCachedMovieTitleAndClear(wchar_t *pOut, int nOutBufLength) {
const int nLength = wcslen(m_wszCachedMovieTitle);
wcsncpy(pOut, m_wszCachedMovieTitle, nOutBufLength);
pOut[nLength] = L'\0';
m_wszCachedMovieTitle[0] = L'\0';
}
void CReplayMovieManager::AddReplayForRender(CReplay *pReplay, int iPerformance) {
if (!g_pClientReplayContextInternal->ReconstructReplayIfNecessary(pReplay)) {
CL_GetErrorSystem()->AddErrorFromTokenName("#Replay_Err_Render_ReconstructFailed");
return;
}
// Store in the demo player's list
g_pReplayDemoPlayer->AddReplayToList(pReplay->GetHandle(), iPerformance);
}
void CReplayMovieManager::ClearRenderCancelledFlag() {
m_bRenderingCancelled = false;
}
void CReplayMovieManager::RenderMovie(RenderMovieParams_t const ¶ms) {
// Save state
m_bIsRendering = true;
// Change video settings for recording
SetupVideo(params);
// Clear any old replays in the player
g_pReplayDemoPlayer->ClearReplayList();
// Render all unrendered replays
if (params.m_hReplay == REPLAY_HANDLE_INVALID) {
CRenderQueue *pRenderQueue = g_pClientReplayContextInternal->m_pRenderQueue;
const int nQueueCount = pRenderQueue->GetCount();
for (int i = 0; i < nQueueCount; ++i) {
ReplayHandle_t hCurReplay;
int iCurPerformance;
if (!pRenderQueue->GetEntryData(i, &hCurReplay, &iCurPerformance))
continue;
CReplay *pReplay = CL_GetReplayManager()->GetReplay(hCurReplay);
if (!pReplay)
continue;
AddReplayForRender(pReplay, iCurPerformance);
}
} else {
// Cache the title
CReplayMovieManager *pMovieManager = CL_GetMovieManager();
pMovieManager->CacheMovieTitle(params.m_wszTitle);
// Only render the specified replay
AddReplayForRender(CL_GetReplayManager()->GetReplay(params.m_hReplay), params.m_iPerformance);
}
g_pReplayDemoPlayer->PlayNextReplay();
}
void CReplayMovieManager::RenderNextMovie() {
m_bIsRendering = true;
g_pReplayDemoPlayer->PlayNextReplay();
}
void CReplayMovieManager::SetupHighDetailModels() {
g_pEngine->Cbuf_AddText("r_rootlod 0\n");
}
void CReplayMovieManager::SetupHighDetailTextures() {
g_pEngine->Cbuf_AddText("mat_picmip -1\n");
}
void CReplayMovieManager::SetupHighQualityAntialiasing() {
int nNumSamples = 1;
int nQualityLevel = 0;
if (materials->SupportsCSAAMode(8, 2)) {
nNumSamples = 8;
nQualityLevel = 2;
} else if (materials->SupportsMSAAMode(8)) {
nNumSamples = 8;
nQualityLevel = 0;
} else if (materials->SupportsCSAAMode(4, 4)) {
nNumSamples = 4;
nQualityLevel = 4;
} else if (materials->SupportsCSAAMode(4, 2)) {
nNumSamples = 4;
nQualityLevel = 2;
} else if (materials->SupportsMSAAMode(6)) {
nNumSamples = 6;
nQualityLevel = 0;
} else if (materials->SupportsMSAAMode(4)) {
nNumSamples = 4;
nQualityLevel = 0;
} else if (materials->SupportsMSAAMode(2)) {
nNumSamples = 2;
nQualityLevel = 0;
}
g_pEngine->Cbuf_AddText(Replay_va("mat_antialias %i\n", nNumSamples));
g_pEngine->Cbuf_AddText(Replay_va("mat_aaquality %i\n", nQualityLevel));
}
void CReplayMovieManager::SetupHighQualityFiltering() {
g_pEngine->Cbuf_AddText("mat_forceaniso\n");
}
void CReplayMovieManager::SetupHighQualityShadowDetail() {
if (materials->SupportsShadowDepthTextures()) {
g_pEngine->Cbuf_AddText("r_shadowrendertotexture 1\n");
g_pEngine->Cbuf_AddText("r_flashlightdepthtexture 1\n");
} else {
g_pEngine->Cbuf_AddText("r_shadowrendertotexture 1\n");
g_pEngine->Cbuf_AddText("r_flashlightdepthtexture 0\n");
}
}
void CReplayMovieManager::SetupHighQualityHDR() {
ConVarRef mat_dxlevel("mat_dxlevel");
if (mat_dxlevel.GetInt() < 80)
return;
g_pEngine->Cbuf_AddText(Replay_va("mat_hdr_level %i\n", materials->SupportsHDRMode(HDR_TYPE_INTEGER) ? 2 : 1));
}
void CReplayMovieManager::SetupHighQualityWaterDetail() {
#ifndef _X360
g_pEngine->Cbuf_AddText("r_waterforceexpensive 1\n");
#endif
g_pEngine->Cbuf_AddText("r_waterforcereflectentities 1\n");
}
void CReplayMovieManager::SetupMulticoreRender() {
g_pEngine->Cbuf_AddText("mat_queue_mode 0\n");
}
void CReplayMovieManager::SetupHighQualityShaderDetail() {
g_pEngine->Cbuf_AddText("mat_reducefillrate 0\n");
}
void CReplayMovieManager::SetupColorCorrection() {
g_pEngine->Cbuf_AddText("mat_colorcorrection 1\n");
}
void CReplayMovieManager::SetupMotionBlur() {
g_pEngine->Cbuf_AddText("mat_motion_blur_enabled 1\n");
}
void CReplayMovieManager::SetupVideo(RenderMovieParams_t const ¶ms) {
// Get current video config
const MaterialSystem_Config_t &config = materials->GetCurrentConfigForVideoCard();
// Cache config
V_memcpy(m_pVidModeSettings, &config, sizeof(config));
// Cache quit when done
V_memcpy(m_pRenderMovieSettings, ¶ms, sizeof(params));
g_pEngine->Cbuf_Execute();
}
void CReplayMovieManager::CompleteRender(bool bSuccess, bool bShowBrowser) {
// Store state
m_bIsRendering = false;
// Shutdown renderer
IReplayMovieRenderer *pRenderer = CL_GetMovieRenderer();
if (pRenderer) {
pRenderer->ShutdownRenderer();
}
if (!bSuccess) {
// Delete the movie from the manager
IReplayMovie *pMovie = CL_GetMovieManager()->GetPendingMovie();
if (pMovie) {
CL_GetMovieManager()->DeleteMovie(pMovie->GetMovieHandle());
}
}
// Clear render queue if we're done
if (bShowBrowser) {
CL_GetRenderQueue()->Clear();
}
// Notify UI that rendering is complete
g_pClient->OnRenderComplete(*m_pRenderMovieSettings, m_bRenderingCancelled, bSuccess, bShowBrowser);
// Quit now?
if (m_pRenderMovieSettings->m_bQuitWhenFinished) {
g_pEngine->HostState_Shutdown();
return;
}
// Otherwise, play a sound.
g_pClient->PlaySound("replay\\rendercomplete.wav");
}
void CReplayMovieManager::CancelRender() {
m_bRenderingCancelled = true;
CompleteRender(false, true);
g_pEngine->Host_Disconnect(false); // CReplayDemoPlayer::StopPlayback() will be called
}
void CReplayMovieManager::GetMoviesAsQueryableItems(CUtlLinkedList<IQueryableReplayItem *, int> &lstMovies) {
lstMovies.RemoveAll();
FOR_EACH_OBJ(this, i) {
lstMovies.AddToHead(ToMovie(m_vecObjs[i]));
}
}
const char *CReplayMovieManager::GetRenderDir() const {
return Replay_va("%s%s%c", g_pClientReplayContextInternal->GetBaseDir(), SUBDIR_RENDERED, CORRECT_PATH_SEPARATOR);
}
const char *CReplayMovieManager::GetRawExportDir() const {
static CFmtStr s_fmtExportDir;
CReplayTime time;
time.InitDateAndTimeToNow();
int nDay, nMonth, nYear;
time.GetDate(nDay, nMonth, nYear);
int nHour, nMin, nSec;
time.GetTime(nHour, nMin, nSec);
s_fmtExportDir.sprintf(
"%smovie_%02i%02i%04i_%02i%02i%02i%c",
GetRenderDir(),
nMonth, nDay, nYear,
nHour, nMin, nSec,
CORRECT_PATH_SEPARATOR
);
return s_fmtExportDir.Access();
}
//----------------------------------------------------------------------------------------
| 30.452736 | 118 | 0.680444 | cstom4994 |
2989dfc2a236f7fc08543543e20a31ed114d9062 | 603 | cpp | C++ | squangle/mysql_client/SyncMysqlClient.cpp | facebookarchive/squangle | b89d51f23cc489eb6911c770bb224b1ca69bdf5c | [
"BSD-3-Clause"
] | 28 | 2016-09-12T04:24:01.000Z | 2020-07-10T01:08:07.000Z | squangle/mysql_client/SyncMysqlClient.cpp | facebookarchive/squangle | b89d51f23cc489eb6911c770bb224b1ca69bdf5c | [
"BSD-3-Clause"
] | 1 | 2020-01-07T23:14:24.000Z | 2020-01-07T23:14:24.000Z | squangle/mysql_client/SyncMysqlClient.cpp | facebookarchive/squangle | b89d51f23cc489eb6911c770bb224b1ca69bdf5c | [
"BSD-3-Clause"
] | 12 | 2016-11-02T01:20:52.000Z | 2020-04-07T09:51:54.000Z | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "squangle/mysql_client/SyncMysqlClient.h"
namespace facebook {
namespace common {
namespace mysql_client {
std::unique_ptr<Connection> SyncMysqlClient::createConnection(
ConnectionKey conn_key,
MYSQL* mysql_conn) {
return std::make_unique<SyncConnection>(this, conn_key, mysql_conn);
}
} // namespace mysql_client
} // namespace common
} // namespace facebook
| 25.125 | 72 | 0.751244 | facebookarchive |
298d359278ad51afbf71c75dfa098289dfd272a4 | 5,807 | cpp | C++ | samples/OpenGL/basic/main.cpp | KHeresy/SS6ssbpLib | 0cf4f08ae31a544f64249508cbd80289087f659d | [
"MIT"
] | null | null | null | samples/OpenGL/basic/main.cpp | KHeresy/SS6ssbpLib | 0cf4f08ae31a544f64249508cbd80289087f659d | [
"MIT"
] | null | null | null | samples/OpenGL/basic/main.cpp | KHeresy/SS6ssbpLib | 0cf4f08ae31a544f64249508cbd80289087f659d | [
"MIT"
] | null | null | null | #include <windows.h>
#include <stdio.h>
#include <iostream>
#include <GL/glew.h>
#include <GL/glut.h>
#include "./SSPlayer/SS6Player.h"
//画面サイズ
#define WIDTH (1280)
#define HEIGHT (720)
//FPS制御用
int nowtime = 0; //経過時間
int drawtime = 0; //前回の時間
//glutのコールバック関数
void mouse(int button, int state, int x, int y);
void keyboard(unsigned char key, int x, int y);
void idle(void);
void disp(void);
//アプリケーションの制御
void Init();
void update(float dt);
void relese(void);
void draw(void);
void userDataCallback(ss::Player* player, const ss::UserData* data);
void playEndCallback(ss::Player* player);
// SSプレイヤー
ss::Player *ssplayer;
ss::ResourceManager *resman;
//アプリケーションでの入力操作用
bool nextanime = false; //次のアニメを再生する
bool forwardanime = false; //前のアニメを再生する
bool pauseanime = false;
int playindex = 0; //現在再生しているアニメのインデックス
int playerstate = 0;
std::vector<std::string> animename; //アニメーション名のリスト
//アプリケーションのメイン関数関数
int main(int argc, char ** argv)
{
//ライブラリ初期化
glutInit(&argc, argv); //GLUTの初期化
//ウィンドウ作成
glutInitWindowPosition(100, 50); //ウィンドウ位置設定
glutInitWindowSize(WIDTH, HEIGHT); //ウィンドウサイズ設定
glutInitDisplayMode(GLUT_RGBA | GLUT_STENCIL | GLUT_DEPTH | GLUT_DOUBLE); //使用するバッファを設定
glutCreateWindow("Sprite Studio SS6ssbpLib Sample"); //ウィンドウタイトル
GLenum err;
err = glewInit(); //GLEWの初期化
if (err != GLEW_OK) {
std::cerr << glewGetErrorString(err) << '\n';
return 0;
}
glClearColor(0.0, 0.0, 0.2, 1.0); //背景色
//割り込み設定
glutIdleFunc(idle); //アイドルコールバック設定
glutDisplayFunc(disp); //表示コールバック設定
glutKeyboardFunc(keyboard); //キーボード入力コールバック設定
glutMouseFunc(mouse); //マウス入力コールバック設定
Init();
glutMainLoop(); //メインループ
return 0;
}
//キーボード入力コールバック
void keyboard(unsigned char key, int x, int y)
{
switch (key) {
case 27: //esc
relese(); //アプリケーション終了
exit(0);
break;
case 122: //z
nextanime = true;
break;
case 120: //x
forwardanime = true;
break;
case 99: //c
pauseanime = true;
break;
default:
break;
}
}
//マウス入力コールバック
void mouse(int button, int state, int x, int y)
{
}
//アイドルコールバック
void idle(void)
{
//FPSの設定
nowtime = glutGet(GLUT_ELAPSED_TIME);//経過時間を取得
int wait = nowtime - drawtime;
if (wait > 16)
{
update((float)wait / 1000.0f);
glutPostRedisplay();
drawtime = nowtime;
}
}
//描画コールバック
void disp(void)
{
//レンダリング開始時の初期化
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); //フレームバッファのクリア
glDisable(GL_STENCIL_TEST); //ステンシル無効にする
glEnable(GL_DEPTH_TEST); //深度バッファを有効にする
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); //フレームバッファへ各色の書き込みを設定
draw();
//終了処理
glDisable(GL_DEPTH_TEST); //深度テストを無効にする
glDisable(GL_ALPHA_TEST); //アルファテスト無効にする
glDisable(GL_TEXTURE_2D); //テクスチャ無効
glDisable(GL_BLEND); //ブレンドを無効にする
glutSwapBuffers();
}
//アプリケーション初期化処理
void Init()
{
/**********************************************************************************
SpriteStudioアニメーション表示のサンプルコード
Visual Studio Community 2017で動作を確認しています。
WindowsSDK(デスクトップC++ x86およびx64用のWindows10 SDK)をインストールする必要があります
プロジェクトのNuGetでglutを検索しnupengl.coreを追加してください。
ssbpとpngがあれば再生する事ができますが、Resourcesフォルダにsspjも含まれています。
**********************************************************************************/
//プレイヤーを使用する前の初期化処理
//この処理はアプリケーションの初期化で1度だけ行ってください。
ss::SSPlatformInit();
//Y方向の設定とウィンドウサイズ設定を行います
ss::SSSetPlusDirection(ss::PLUS_UP, WIDTH, HEIGHT);
//リソースマネージャの作成
resman = ss::ResourceManager::getInstance();
//プレイヤーを使用する前の初期化処理ここまで
//プレイヤーの作成
ssplayer = ss::Player::create();
//アニメデータをリソースに追加
//それぞれのプラットフォームに合わせたパスへ変更してください。
resman->addData("Resources/character_template_comipo/character_template1.ssbp");
//プレイヤーにリソースを割り当て
ssplayer->setData("character_template1"); // ssbpファイル名(拡張子不要)
//再生するモーションを設定
ssplayer->play("character_template_3head/stance"); // アニメーション名を指定(ssae名/アニメーション)
//表示位置を設定
ssplayer->setPosition(WIDTH / 2, HEIGHT / 2);
ssplayer->setScale(0.5f, 0.5f);
//ユーザーデータコールバックを設定
ssplayer->setUserDataCallback(userDataCallback);
//アニメーション終了コールバックを設定
ssplayer->setPlayEndCallback(playEndCallback);
//ssbpに含まれているアニメーション名のリストを取得する
animename = resman->getAnimeName(ssplayer->getPlayDataName());
playindex = 0; //現在再生しているアニメのインデックス
}
//アプリケーション更新
void update(float dt)
{
//プレイヤーの更新、引数は前回の更新処理から経過した時間
ssplayer->update(dt);
if (nextanime == true)
{
playindex++;
if (playindex >= animename.size())
{
playindex = 0;
}
std::string name = animename.at(playindex);
ssplayer->play(name);
nextanime = false;
}
if (forwardanime == true)
{
playindex--;
if ( playindex < 0 )
{
playindex = animename.size() - 1;
}
std::string name = animename.at(playindex);
ssplayer->play(name);
forwardanime = false;
}
if (pauseanime == true)
{
if (playerstate == 0)
{
ssplayer->animePause();
playerstate = 1;
}
else
{
ssplayer->animeResume();
playerstate = 0;
}
pauseanime = false;
}
}
//ユーザーデータコールバック
void userDataCallback(ss::Player* player, const ss::UserData* data)
{
//再生したフレームにユーザーデータが設定されている場合呼び出されます。
//プレイヤーを判定する場合、ゲーム側で管理しているss::Playerのアドレスと比較して判定してください。
/*
//コールバック内でパーツのステータスを取得したい場合は、この時点ではアニメが更新されていないため、
//getPartState に data->frameNo でフレーム数を指定して取得してください。
ss::ResluteState result;
//再生しているモーションに含まれるパーツ名「collision」のステータスを取得します。
ssplayer->getPartState(result, "collision", data->frameNo);
*/
}
//アニメーション終了コールバック
void playEndCallback(ss::Player* player)
{
//再生したアニメーションが終了した段階で呼び出されます。
//プレイヤーを判定する場合、ゲーム側で管理しているss::Playerのアドレスと比較して判定してください。
//player->getPlayAnimeName();
//を使用する事で再生しているアニメーション名を取得する事もできます。
//ループ回数分再生した後に呼び出される点に注意してください。
//無限ループで再生している場合はコールバックが発生しません。
}
//アプリケーション描画
void draw(void)
{
//プレイヤーの描画
ssplayer->draw();
}
//アプリケーション終了処理
void relese(void)
{
//SSPlayerの削除
delete (ssplayer);
delete (resman);
ss::SSPlatformRelese( );
}
| 20.81362 | 91 | 0.700017 | KHeresy |
298d63aea0d103907212ce09aea06bdbfb1a4975 | 224 | hpp | C++ | tools/TP/TP.hpp | jon-dez/easy-imgui | 06644279045c167e300b346f094f3dbebcbc963b | [
"MIT"
] | null | null | null | tools/TP/TP.hpp | jon-dez/easy-imgui | 06644279045c167e300b346f094f3dbebcbc963b | [
"MIT"
] | null | null | null | tools/TP/TP.hpp | jon-dez/easy-imgui | 06644279045c167e300b346f094f3dbebcbc963b | [
"MIT"
] | null | null | null | #include <functional>
#include <sstream>
namespace TP {
void prepare_pool(uint32_t number_threads = 0);
void add_job(std::function<void()> job);
void join_pool();
const std::stringstream& message_stream();
} | 24.888889 | 51 | 0.700893 | jon-dez |
2990605743d5ab86578f9f440439f9321fcc4411 | 3,188 | cpp | C++ | external/openglcts/modules/common/glcConfigListWGL.cpp | TinkerBoard2-Android/external-deqp | b092edde5fd8018799ad1ff5939411483c8cee0d | [
"Apache-2.0"
] | 20 | 2019-04-18T07:37:34.000Z | 2022-02-02T21:43:47.000Z | external/openglcts/modules/common/glcConfigListWGL.cpp | TinkerBoard2-Android/external-deqp | b092edde5fd8018799ad1ff5939411483c8cee0d | [
"Apache-2.0"
] | 11 | 2019-10-21T13:39:41.000Z | 2021-11-05T08:11:54.000Z | external/openglcts/modules/common/glcConfigListWGL.cpp | TinkerBoard2-Android/external-deqp | b092edde5fd8018799ad1ff5939411483c8cee0d | [
"Apache-2.0"
] | 2 | 2017-10-17T10:00:25.000Z | 2022-02-28T07:43:27.000Z | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2016 Google Inc.
* Copyright (c) 2016 The Khronos Group Inc.
*
* 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.
*
*/ /*!
* \file
* \brief CTS rendering configuration list utility.
*/ /*-------------------------------------------------------------------*/
#include "deUniquePtr.hpp"
#include "glcConfigList.hpp"
#include <typeinfo>
#if defined(GLCTS_SUPPORT_WGL)
#include "tcuWGL.hpp"
#include "tcuWin32Platform.hpp"
#include "tcuWin32Window.hpp"
#endif
namespace glcts
{
#if defined(GLCTS_SUPPORT_WGL)
static void getDefaultWglConfigList(tcu::win32::Platform& wglPlatform, glu::ApiType type, ConfigList& configList)
{
const HINSTANCE instance = GetModuleHandle(DE_NULL);
const tcu::wgl::Core& wgl(instance);
const tcu::win32::Window tmpWindow(instance, 1, 1);
const std::vector<int> pixelFormats = wgl.getPixelFormats(tmpWindow.getDeviceContext());
DE_UNREF(type); // \todo [2013-09-16 pyry] Check for support.
for (std::vector<int>::const_iterator fmtIter = pixelFormats.begin(); fmtIter != pixelFormats.end(); ++fmtIter)
{
const int pixelFormat = *fmtIter;
const tcu::wgl::PixelFormatInfo fmtInfo = wgl.getPixelFormatInfo(tmpWindow.getDeviceContext(), pixelFormat);
if (!tcu::wgl::isSupportedByTests(fmtInfo))
continue;
bool isAOSPOk = (fmtInfo.surfaceTypes & tcu::wgl::PixelFormatInfo::SURFACE_WINDOW) && fmtInfo.supportOpenGL &&
fmtInfo.pixelType == tcu::wgl::PixelFormatInfo::PIXELTYPE_RGBA;
bool isOk = isAOSPOk && (fmtInfo.sampleBuffers == 0);
if (isAOSPOk)
{
configList.aospConfigs.push_back(AOSPConfig(
CONFIGTYPE_WGL, pixelFormat, SURFACETYPE_WINDOW, fmtInfo.redBits, fmtInfo.greenBits, fmtInfo.blueBits,
fmtInfo.alphaBits, fmtInfo.depthBits, fmtInfo.stencilBits, fmtInfo.samples));
}
if (isOk)
{
configList.configs.push_back(Config(CONFIGTYPE_WGL, pixelFormat, SURFACETYPE_WINDOW));
}
else
{
configList.excludedConfigs.push_back(
ExcludedConfig(CONFIGTYPE_WGL, pixelFormat, EXCLUDEREASON_NOT_COMPATIBLE));
}
}
}
void getConfigListWGL(tcu::Platform& platform, glu::ApiType type, ConfigList& configList)
{
try
{
tcu::win32::Platform& wglPlatform = dynamic_cast<tcu::win32::Platform&>(platform);
getDefaultWglConfigList(wglPlatform, type, configList);
}
catch (const std::bad_cast&)
{
throw tcu::Exception("Platform is not tcu::WGLPlatform");
}
}
#else
void getConfigListWGL(tcu::Platform&, glu::ApiType, ConfigList&)
{
throw tcu::Exception("WGL is not supported on this OS");
}
#endif
} // glcts
| 30.653846 | 113 | 0.694793 | TinkerBoard2-Android |
299437c35fc631fd22cb3a05e5751472972ca84e | 36,314 | cc | C++ | src/session/internal/session_output_test.cc | Kento75/mozc | 0abed62d6f9cd9c6ce2142407a1f80e02a3230f1 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T07:35:49.000Z | 2022-03-08T07:35:49.000Z | src/session/internal/session_output_test.cc | kirameister/mozc | 18b2b32b4d3fe585d38134606773239781b6be82 | [
"BSD-3-Clause"
] | null | null | null | src/session/internal/session_output_test.cc | kirameister/mozc | 18b2b32b4d3fe585d38134606773239781b6be82 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2010-2021, Google Inc.
// 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 Google Inc. 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.
#include "session/internal/session_output.h"
#include <cstdint>
#include <string>
#include "base/port.h"
#include "base/text_normalizer.h"
#include "base/util.h"
#include "converter/segments.h"
#include "protocol/candidates.pb.h"
#include "protocol/commands.pb.h"
#include "session/internal/candidate_list.h"
#include "testing/base/public/gunit.h"
namespace mozc {
namespace session {
struct DummySegment {
const char *value;
const int32_t usage_id;
const char *usage_title;
const char *usage_description;
};
void FillDummySegment(const DummySegment *dummy_segments, const size_t num,
Segment *segment, CandidateList *candidate_list) {
for (size_t i = 0; i < num; ++i) {
Segment::Candidate *cand = segment->push_back_candidate();
candidate_list->AddCandidate(i, dummy_segments[i].value);
cand->value = dummy_segments[i].value;
cand->usage_id = dummy_segments[i].usage_id;
cand->usage_title = dummy_segments[i].usage_title;
cand->usage_description = dummy_segments[i].usage_description;
}
}
TEST(SessionOutputTest, FillCandidate) {
Segment segment;
Candidate candidate;
CandidateList candidate_list(true);
commands::Candidates_Candidate candidate_proto;
const std::string kValue13 = "Value only";
const std::string kValue42 = "The answer";
const std::string kPrefix42 = "prefix";
const std::string kSuffix42 = "suffix";
const std::string kDescription42 = "description";
const std::string kSubcandidateList = "Subcandidates";
// Make 100 candidates
for (size_t i = 0; i < 100; ++i) {
segment.push_back_candidate();
}
segment.mutable_candidate(13)->value = kValue13;
segment.mutable_candidate(42)->value = kValue42;
segment.mutable_candidate(42)->prefix = kPrefix42;
segment.mutable_candidate(42)->suffix = kSuffix42;
segment.mutable_candidate(42)->description = kDescription42;
candidate_list.set_name(kSubcandidateList);
static const int kFirstIdInSubList = -123;
candidate_list.AddCandidate(kFirstIdInSubList, "minus 123");
candidate_list.AddCandidate(-456, "minus 456");
candidate_list.AddCandidate(-789, "minus 789");
candidate.set_id(13);
SessionOutput::FillCandidate(segment, candidate, &candidate_proto);
EXPECT_EQ(13, candidate_proto.id());
EXPECT_EQ(kValue13, candidate_proto.value());
EXPECT_FALSE(candidate_proto.has_annotation());
candidate.Clear();
candidate_proto.Clear();
candidate.set_id(42);
SessionOutput::FillCandidate(segment, candidate, &candidate_proto);
EXPECT_EQ(42, candidate_proto.id());
EXPECT_EQ(kValue42, candidate_proto.value());
EXPECT_TRUE(candidate_proto.has_annotation());
EXPECT_EQ(kPrefix42, candidate_proto.annotation().prefix());
EXPECT_EQ(kSuffix42, candidate_proto.annotation().suffix());
EXPECT_EQ(kDescription42, candidate_proto.annotation().description());
candidate.Clear();
candidate_proto.Clear();
candidate.set_subcandidate_list(&candidate_list);
SessionOutput::FillCandidate(segment, candidate, &candidate_proto);
EXPECT_TRUE(candidate_proto.has_id());
EXPECT_EQ(kFirstIdInSubList, candidate_proto.id());
EXPECT_EQ(kSubcandidateList, candidate_proto.value());
EXPECT_FALSE(candidate_proto.has_annotation());
}
TEST(SessionOutputTest, FillCandidates) {
Segment segment;
Candidate candidate;
CandidateList candidate_list(true);
CandidateList subcandidate_list(true);
commands::Candidates candidates_proto;
const std::string kSubcandidateList = "Subcandidates";
const char *kValues[5] = {"0", "1", "2:sub0", "3:sub1", "4:sub2"};
// Make 5 candidates
for (size_t i = 0; i < 5; ++i) {
segment.push_back_candidate()->value = kValues[i];
}
candidate_list.set_focused(true);
candidate_list.set_page_size(9);
candidate_list.AddCandidate(0, "0");
candidate_list.AddCandidate(1, "1");
candidate_list.AddSubCandidateList(&subcandidate_list);
subcandidate_list.set_focused(true);
subcandidate_list.set_name(kSubcandidateList);
subcandidate_list.AddCandidate(2, "2");
subcandidate_list.AddCandidate(3, "3");
subcandidate_list.AddCandidate(4, "4");
// Focused index = 0. page_size = 9.
SessionOutput::FillCandidates(segment, candidate_list, 0, &candidates_proto);
EXPECT_EQ(9, candidates_proto.page_size());
EXPECT_EQ(3, candidates_proto.candidate_size());
EXPECT_EQ(0, candidates_proto.position());
EXPECT_TRUE(candidates_proto.has_focused_index());
EXPECT_EQ(0, candidates_proto.focused_index());
EXPECT_EQ(kValues[0], candidates_proto.candidate(0).value());
EXPECT_EQ(kValues[1], candidates_proto.candidate(1).value());
EXPECT_EQ(kSubcandidateList, candidates_proto.candidate(2).value());
EXPECT_FALSE(candidates_proto.has_subcandidates());
// Focused index = 2 with a subcandidate list. page_size = 5.
candidates_proto.Clear();
candidate_list.MoveToId(3);
candidate_list.set_page_size(5);
SessionOutput::FillCandidates(segment, candidate_list, 1, &candidates_proto);
EXPECT_EQ(5, candidates_proto.page_size());
EXPECT_EQ(3, candidates_proto.candidate_size());
EXPECT_EQ(1, candidates_proto.position());
EXPECT_TRUE(candidates_proto.has_focused_index());
EXPECT_EQ(2, candidates_proto.focused_index());
EXPECT_EQ(kValues[0], candidates_proto.candidate(0).value());
EXPECT_EQ(kValues[1], candidates_proto.candidate(1).value());
EXPECT_EQ(kSubcandidateList, candidates_proto.candidate(2).value());
EXPECT_EQ(0, candidates_proto.candidate(0).index());
EXPECT_EQ(1, candidates_proto.candidate(1).index());
EXPECT_EQ(2, candidates_proto.candidate(2).index());
// Check the values of the subcandidate list.
EXPECT_TRUE(candidates_proto.has_subcandidates());
EXPECT_EQ(3, candidates_proto.subcandidates().candidate_size());
EXPECT_EQ(2, candidates_proto.subcandidates().position());
EXPECT_TRUE(candidates_proto.subcandidates().has_focused_index());
EXPECT_EQ(1, candidates_proto.subcandidates().focused_index());
EXPECT_EQ(kValues[2], candidates_proto.subcandidates().candidate(0).value());
EXPECT_EQ(kValues[3], candidates_proto.subcandidates().candidate(1).value());
EXPECT_EQ(kValues[4], candidates_proto.subcandidates().candidate(2).value());
// Check focused_index.
candidates_proto.Clear();
candidate_list.set_focused(false);
subcandidate_list.set_focused(true);
SessionOutput::FillCandidates(segment, candidate_list, 0, &candidates_proto);
EXPECT_FALSE(candidates_proto.has_focused_index());
EXPECT_TRUE(candidates_proto.subcandidates().has_focused_index());
candidates_proto.Clear();
candidate_list.set_focused(false);
subcandidate_list.set_focused(false);
SessionOutput::FillCandidates(segment, candidate_list, 0, &candidates_proto);
EXPECT_FALSE(candidates_proto.has_focused_index());
EXPECT_FALSE(candidates_proto.subcandidates().has_focused_index());
candidates_proto.Clear();
candidate_list.set_focused(true);
subcandidate_list.set_focused(false);
SessionOutput::FillCandidates(segment, candidate_list, 0, &candidates_proto);
EXPECT_TRUE(candidates_proto.has_focused_index());
EXPECT_FALSE(candidates_proto.subcandidates().has_focused_index());
}
TEST(SessionOutputTest, FillAllCandidateWords) {
// IDs are ordered by BFS.
//
// ID|Idx| Candidate list tree
// 1| 0 | [1:[sub1_1,
// 5| 1 | sub1_2:[subsub1_1,
// 6| 2 | subsub1_2],
// 2| 3 | sub1_3],
// 0| 4 | 2,
// 3| 5 | 3:[sub2_1,
// 4| 6 | sub2_2]]
CandidateList main_list(true);
CandidateList sub1(true);
CandidateList sub2(true);
CandidateList subsub1(true);
commands::CandidateList candidates_proto;
// Initialize Segment
Segment segment;
const char *kNormalKey = "key";
segment.set_key(kNormalKey);
const char *kDescription = "desc";
const char *kValues[7] = {"2", "sub1_1", "sub1_3", "sub2_1",
"sub2_2", "subsub1_1", "subsub1_2"};
const size_t kValueSize = arraysize(kValues);
for (size_t i = 0; i < kValueSize; ++i) {
Segment::Candidate *candidate = segment.push_back_candidate();
candidate->content_key = kNormalKey;
candidate->value = kValues[i];
candidate->description = kDescription;
for (size_t j = 0; j < i; ++j) {
candidate->PushBackInnerSegmentBoundary(1, 1, 1, 1);
}
}
// Set special key to ID:4 / Index:6
const char *kSpecialKey = "Special Key";
segment.mutable_candidate(4)->content_key = kSpecialKey;
// Main
main_list.AddSubCandidateList(&sub1);
main_list.AddCandidate(0, kValues[0]);
main_list.AddSubCandidateList(&sub2);
// Sub1
sub1.AddCandidate(1, kValues[1]);
sub1.AddSubCandidateList(&subsub1);
sub1.AddCandidate(2, kValues[2]);
// Sub2
sub2.AddCandidate(3, kValues[3]);
sub2.AddCandidate(4, kValues[4]);
// SubSub1
subsub1.AddCandidate(5, kValues[5]);
subsub1.AddCandidate(6, kValues[6]);
// Set forcus to ID:5 / Index:1
main_list.set_focused(true);
sub1.set_focused(true);
subsub1.set_focused(true);
main_list.MoveToId(5);
EXPECT_EQ(5, main_list.focused_id());
EXPECT_EQ(0, main_list.focused_index());
EXPECT_EQ(1, sub1.focused_index());
EXPECT_EQ(0, subsub1.focused_index());
// End of Initialization
// Exexcute FillAllCandidateWords
const commands::Category kCategory = commands::PREDICTION;
SessionOutput::FillAllCandidateWords(segment, main_list, kCategory,
&candidates_proto);
// Varidation
EXPECT_EQ(1, candidates_proto.focused_index());
EXPECT_EQ(kCategory, candidates_proto.category());
EXPECT_EQ(kValueSize, candidates_proto.candidates_size());
EXPECT_EQ(1, candidates_proto.candidates(0).id());
EXPECT_EQ(5, candidates_proto.candidates(1).id());
EXPECT_EQ(6, candidates_proto.candidates(2).id());
EXPECT_EQ(2, candidates_proto.candidates(3).id());
EXPECT_EQ(0, candidates_proto.candidates(4).id());
EXPECT_EQ(3, candidates_proto.candidates(5).id());
EXPECT_EQ(4, candidates_proto.candidates(6).id());
EXPECT_EQ(0, candidates_proto.candidates(0).index());
EXPECT_EQ(1, candidates_proto.candidates(1).index());
EXPECT_EQ(2, candidates_proto.candidates(2).index());
EXPECT_EQ(3, candidates_proto.candidates(3).index());
EXPECT_EQ(4, candidates_proto.candidates(4).index());
EXPECT_EQ(5, candidates_proto.candidates(5).index());
EXPECT_EQ(6, candidates_proto.candidates(6).index());
EXPECT_FALSE(candidates_proto.candidates(0).has_key());
EXPECT_FALSE(candidates_proto.candidates(1).has_key());
EXPECT_FALSE(candidates_proto.candidates(2).has_key());
EXPECT_FALSE(candidates_proto.candidates(3).has_key());
EXPECT_FALSE(candidates_proto.candidates(4).has_key());
EXPECT_FALSE(candidates_proto.candidates(5).has_key());
EXPECT_TRUE(candidates_proto.candidates(6).has_key());
EXPECT_EQ(kSpecialKey, candidates_proto.candidates(6).key());
EXPECT_EQ(kValues[1], candidates_proto.candidates(0).value());
EXPECT_EQ(kValues[5], candidates_proto.candidates(1).value());
EXPECT_EQ(kValues[6], candidates_proto.candidates(2).value());
EXPECT_EQ(kValues[2], candidates_proto.candidates(3).value());
EXPECT_EQ(kValues[0], candidates_proto.candidates(4).value());
EXPECT_EQ(kValues[3], candidates_proto.candidates(5).value());
EXPECT_EQ(kValues[4], candidates_proto.candidates(6).value());
EXPECT_TRUE(candidates_proto.candidates(0).has_annotation());
EXPECT_TRUE(candidates_proto.candidates(1).has_annotation());
EXPECT_TRUE(candidates_proto.candidates(2).has_annotation());
EXPECT_TRUE(candidates_proto.candidates(3).has_annotation());
EXPECT_TRUE(candidates_proto.candidates(4).has_annotation());
EXPECT_TRUE(candidates_proto.candidates(5).has_annotation());
EXPECT_TRUE(candidates_proto.candidates(6).has_annotation());
EXPECT_EQ(1, candidates_proto.candidates(0).num_segments_in_candidate());
EXPECT_EQ(5, candidates_proto.candidates(1).num_segments_in_candidate());
EXPECT_EQ(6, candidates_proto.candidates(2).num_segments_in_candidate());
EXPECT_EQ(2, candidates_proto.candidates(3).num_segments_in_candidate());
EXPECT_EQ(1, candidates_proto.candidates(4).num_segments_in_candidate());
EXPECT_EQ(3, candidates_proto.candidates(5).num_segments_in_candidate());
EXPECT_EQ(4, candidates_proto.candidates(6).num_segments_in_candidate());
}
TEST(SessionOutputTest, FillAllCandidateWords_Attributes) {
CandidateList candidate_list(true);
commands::CandidateList candidates_proto;
// Initialize Segment
Segment segment;
const char *kKey = "key";
segment.set_key(kKey);
const char *kValues[5] = {"value_0", "value_1", "value_2", "value_3",
"value_4"};
const size_t kValueSize = arraysize(kValues);
for (size_t i = 0; i < kValueSize; ++i) {
Segment::Candidate *candidate = segment.push_back_candidate();
candidate->content_key = kKey;
candidate->value = kValues[i];
candidate_list.AddCandidate(i, kValues[i]);
}
segment.mutable_candidate(1)->attributes =
Segment::Candidate::Attribute::USER_DICTIONARY;
segment.mutable_candidate(2)->attributes =
Segment::Candidate::Attribute::USER_HISTORY_PREDICTION |
Segment::Candidate::Attribute::NO_VARIANTS_EXPANSION;
segment.mutable_candidate(3)->attributes =
Segment::Candidate::Attribute::SPELLING_CORRECTION |
Segment::Candidate::Attribute::NO_EXTRA_DESCRIPTION;
segment.mutable_candidate(4)->attributes =
Segment::Candidate::Attribute::TYPING_CORRECTION |
Segment::Candidate::Attribute::BEST_CANDIDATE;
candidate_list.set_focused(true);
candidate_list.MoveToId(0);
EXPECT_EQ(0, candidate_list.focused_id());
EXPECT_EQ(0, candidate_list.focused_index());
// End of Initialization
// Exexcute FillAllCandidateWords
const commands::Category kCategory = commands::PREDICTION;
SessionOutput::FillAllCandidateWords(segment, candidate_list, kCategory,
&candidates_proto);
// Varidation
EXPECT_EQ(0, candidates_proto.focused_index());
EXPECT_EQ(kCategory, candidates_proto.category());
EXPECT_EQ(kValueSize, candidates_proto.candidates_size());
EXPECT_EQ(0, candidates_proto.candidates(0).attributes_size());
EXPECT_EQ(1, candidates_proto.candidates(1).attributes_size());
EXPECT_EQ(commands::CandidateAttribute::USER_DICTIONARY,
candidates_proto.candidates(1).attributes(0));
EXPECT_EQ(1, candidates_proto.candidates(2).attributes_size());
EXPECT_EQ(commands::CandidateAttribute::USER_HISTORY,
candidates_proto.candidates(2).attributes(0));
EXPECT_EQ(1, candidates_proto.candidates(3).attributes_size());
EXPECT_EQ(commands::CandidateAttribute::SPELLING_CORRECTION,
candidates_proto.candidates(3).attributes(0));
EXPECT_EQ(1, candidates_proto.candidates(4).attributes_size());
EXPECT_EQ(commands::CandidateAttribute::TYPING_CORRECTION,
candidates_proto.candidates(4).attributes(0));
}
TEST(SessionOutputTest, ShouldShowUsages) {
{
Segment segment;
CandidateList candidate_list(true);
CandidateList sub(true);
static const DummySegment dummy_segments[] = {
{"val0", 0, "", ""}, {"val1", 0, "", ""}, {"val2", 0, "", ""},
{"val3", 0, "", ""}, {"val4", 0, "", ""},
};
FillDummySegment(dummy_segments, 5, &segment, &candidate_list);
candidate_list.AddSubCandidateList(&sub);
candidate_list.set_focused(true);
ASSERT_TRUE(candidate_list.MoveToId(0));
ASSERT_FALSE(SessionOutput::ShouldShowUsages(segment, candidate_list));
}
{
Segment segment;
CandidateList candidate_list(true);
CandidateList sub(true);
static const DummySegment dummy_segments[] = {
{"val0", 0, "", ""}, {"val1", 10, "title1", ""}, {"val2", 0, "", ""},
{"val3", 0, "", ""}, {"val4", 0, "", ""},
};
FillDummySegment(dummy_segments, 5, &segment, &candidate_list);
candidate_list.AddSubCandidateList(&sub);
candidate_list.set_focused(true);
ASSERT_TRUE(candidate_list.MoveToId(0));
ASSERT_TRUE(SessionOutput::ShouldShowUsages(segment, candidate_list));
}
{
Segment segment;
CandidateList candidate_list(true);
CandidateList sub(true);
static const DummySegment dummy_segments[] = {
{"val00", 10, "title00", ""}, {"val01", 0, "", ""},
{"val02", 0, "", ""}, {"val03", 0, "", ""},
{"val04", 0, "", ""}, {"val05", 0, "", ""},
{"val06", 0, "", ""}, {"val07", 0, "", ""},
{"val08", 0, "", ""}, {"val09", 0, "", ""},
{"val10", 20, "title10", ""}, {"val11", 0, "", ""},
{"val12", 0, "", ""}, {"val13", 30, "title13", ""},
{"val14", 0, "", ""}, {"val15", 0, "", ""},
{"val16", 0, "", ""}, {"val17", 0, "", ""},
{"val18", 0, "", ""}, {"val19", 0, "", ""},
{"val20", 0, "", ""}, {"val21", 0, "", ""},
{"val22", 0, "", ""}, {"val23", 0, "", ""},
{"val24", 0, "", ""}, {"val25", 0, "", ""},
{"val26", 0, "", ""}, {"val27", 0, "", ""},
{"val28", 0, "", ""}, {"val29", 0, "", ""},
};
FillDummySegment(dummy_segments, 30, &segment, &candidate_list);
candidate_list.AddSubCandidateList(&sub);
// pages of candidate_list:
// [00-08],[09-17],[18-26],[27-29]+subcandidate
candidate_list.set_focused(true);
ASSERT_TRUE(candidate_list.MoveToId(0));
ASSERT_TRUE(SessionOutput::ShouldShowUsages(segment, candidate_list));
ASSERT_TRUE(candidate_list.MoveToId(8));
ASSERT_TRUE(SessionOutput::ShouldShowUsages(segment, candidate_list));
ASSERT_TRUE(candidate_list.MoveToId(9));
ASSERT_TRUE(SessionOutput::ShouldShowUsages(segment, candidate_list));
ASSERT_TRUE(candidate_list.MoveToId(17));
ASSERT_TRUE(SessionOutput::ShouldShowUsages(segment, candidate_list));
ASSERT_TRUE(candidate_list.MoveToId(18));
ASSERT_FALSE(SessionOutput::ShouldShowUsages(segment, candidate_list));
ASSERT_TRUE(candidate_list.MoveToId(26));
ASSERT_FALSE(SessionOutput::ShouldShowUsages(segment, candidate_list));
ASSERT_TRUE(candidate_list.MoveToId(27));
ASSERT_FALSE(SessionOutput::ShouldShowUsages(segment, candidate_list));
}
}
TEST(SessionOutputTest, FillUsages) {
Segment segment;
CandidateList candidate_list(true);
CandidateList sub(true);
commands::Candidates candidates_proto;
static const DummySegment dummy_segments[] = {
{"val00", 10, "title00", "desc00"},
{"val01", 0, "", ""},
{"val02", 0, "", ""},
{"val03", 0, "", ""},
{"val04", 20, "title04", "desc04"},
{"val05", 0, "", ""},
{"val06", 0, "", ""},
{"val07", 0, "", ""},
{"val08", 0, "", ""},
{"val09", 0, "", ""},
{"val10", 30, "title10", "desc10"},
{"val11", 40, "title11", "desc11"},
{"val12", 50, "title12", "desc12"},
{"val13", 60, "title13", "desc13"},
{"val14", 0, "", ""},
{"val15", 0, "", ""},
{"val16", 0, "", ""},
{"val17", 0, "", ""},
{"val18", 0, "", ""},
{"val19", 100, "title100", "desc100"},
{"val20", 110, "title110", "desc110"},
{"val21", 100, "title100", "desc100"},
{"val22", 110, "title110", "desc110"},
{"val23", 0, "", ""},
{"val24", 0, "", ""},
{"val25", 0, "", ""},
{"val26", 0, "", ""},
{"val27", 0, "", ""},
{"val28", 0, "", ""},
{"val29", 0, "", ""},
};
FillDummySegment(dummy_segments, 30, &segment, &candidate_list);
candidate_list.AddSubCandidateList(&sub);
// pages of candidate_list:
// [00-08],[09-17],[18-26],[27-29]+subcandidate
candidate_list.set_focused(true);
candidate_list.MoveToId(2);
candidates_proto.Clear();
SessionOutput::FillUsages(segment, candidate_list, &candidates_proto);
ASSERT_TRUE(candidates_proto.has_usages());
// There is no focused usage.
EXPECT_FALSE(candidates_proto.usages().has_focused_index());
EXPECT_EQ(2, candidates_proto.usages().information_size());
EXPECT_EQ(10, candidates_proto.usages().information(0).id());
EXPECT_EQ(dummy_segments[0].usage_title,
candidates_proto.usages().information(0).title());
EXPECT_EQ(dummy_segments[0].usage_description,
candidates_proto.usages().information(0).description());
EXPECT_EQ(20, candidates_proto.usages().information(1).id());
EXPECT_EQ(dummy_segments[4].usage_title,
candidates_proto.usages().information(1).title());
EXPECT_EQ(dummy_segments[4].usage_description,
candidates_proto.usages().information(1).description());
candidate_list.MoveToId(12);
candidates_proto.Clear();
SessionOutput::FillUsages(segment, candidate_list, &candidates_proto);
ASSERT_TRUE(candidates_proto.has_usages());
// Focused usage index is 20
EXPECT_TRUE(candidates_proto.usages().has_focused_index());
EXPECT_EQ(2, candidates_proto.usages().focused_index());
EXPECT_EQ(4, candidates_proto.usages().information_size());
EXPECT_EQ(30, candidates_proto.usages().information(0).id());
EXPECT_EQ(dummy_segments[10].usage_title,
candidates_proto.usages().information(0).title());
EXPECT_EQ(dummy_segments[10].usage_description,
candidates_proto.usages().information(0).description());
EXPECT_EQ(40, candidates_proto.usages().information(1).id());
EXPECT_EQ(dummy_segments[11].usage_title,
candidates_proto.usages().information(1).title());
EXPECT_EQ(dummy_segments[11].usage_description,
candidates_proto.usages().information(1).description());
EXPECT_EQ(50, candidates_proto.usages().information(2).id());
EXPECT_EQ(dummy_segments[12].usage_title,
candidates_proto.usages().information(2).title());
EXPECT_EQ(dummy_segments[12].usage_description,
candidates_proto.usages().information(2).description());
EXPECT_EQ(60, candidates_proto.usages().information(3).id());
EXPECT_EQ(dummy_segments[13].usage_title,
candidates_proto.usages().information(3).title());
EXPECT_EQ(dummy_segments[13].usage_description,
candidates_proto.usages().information(3).description());
candidate_list.MoveToId(19);
candidates_proto.Clear();
SessionOutput::FillUsages(segment, candidate_list, &candidates_proto);
ASSERT_TRUE(candidates_proto.has_usages());
EXPECT_TRUE(candidates_proto.usages().has_focused_index());
EXPECT_EQ(0, candidates_proto.usages().focused_index());
// usages(id:100) of "val19" and "val21" are merged
EXPECT_EQ(2, candidates_proto.usages().information_size());
EXPECT_EQ(100, candidates_proto.usages().information(0).id());
EXPECT_EQ(dummy_segments[19].usage_title,
candidates_proto.usages().information(0).title());
EXPECT_EQ(dummy_segments[19].usage_description,
candidates_proto.usages().information(0).description());
EXPECT_EQ(110, candidates_proto.usages().information(1).id());
EXPECT_EQ(dummy_segments[20].usage_title,
candidates_proto.usages().information(1).title());
EXPECT_EQ(dummy_segments[20].usage_description,
candidates_proto.usages().information(1).description());
candidate_list.MoveToId(20);
candidates_proto.Clear();
SessionOutput::FillUsages(segment, candidate_list, &candidates_proto);
ASSERT_TRUE(candidates_proto.has_usages());
EXPECT_TRUE(candidates_proto.usages().has_focused_index());
EXPECT_EQ(1, candidates_proto.usages().focused_index());
// usages(id:100) of "val19" and "val21" are merged
candidate_list.MoveToId(21);
candidates_proto.Clear();
SessionOutput::FillUsages(segment, candidate_list, &candidates_proto);
ASSERT_TRUE(candidates_proto.has_usages());
EXPECT_TRUE(candidates_proto.usages().has_focused_index());
EXPECT_EQ(0, candidates_proto.usages().focused_index());
// usages(id:110) of "val20" and "val22" are merged
candidate_list.MoveToId(22);
candidates_proto.Clear();
SessionOutput::FillUsages(segment, candidate_list, &candidates_proto);
ASSERT_TRUE(candidates_proto.has_usages());
EXPECT_TRUE(candidates_proto.usages().has_focused_index());
EXPECT_EQ(1, candidates_proto.usages().focused_index());
candidate_list.MoveToId(28);
candidates_proto.Clear();
SessionOutput::FillUsages(segment, candidate_list, &candidates_proto);
ASSERT_FALSE(candidates_proto.has_usages());
}
TEST(SessionOutputTest, FillShortcuts) {
const std::string kDigits = "123456789";
commands::Candidates candidates_proto1;
for (size_t i = 0; i < 10; ++i) {
candidates_proto1.add_candidate();
}
ASSERT_EQ(10, candidates_proto1.candidate_size());
SessionOutput::FillShortcuts(kDigits, &candidates_proto1);
EXPECT_EQ(kDigits.substr(0, 1),
candidates_proto1.candidate(0).annotation().shortcut());
EXPECT_EQ(kDigits.substr(8, 1),
candidates_proto1.candidate(8).annotation().shortcut());
EXPECT_FALSE(candidates_proto1.candidate(9).annotation().has_shortcut());
commands::Candidates candidates_proto2;
for (size_t i = 0; i < 3; ++i) {
candidates_proto2.add_candidate();
}
ASSERT_EQ(3, candidates_proto2.candidate_size());
SessionOutput::FillShortcuts(kDigits, &candidates_proto2);
EXPECT_EQ(kDigits.substr(0, 1),
candidates_proto2.candidate(0).annotation().shortcut());
EXPECT_EQ(kDigits.substr(2, 1),
candidates_proto2.candidate(2).annotation().shortcut());
}
TEST(SessionOutputTest, FillFooter) {
commands::Candidates candidates;
EXPECT_TRUE(SessionOutput::FillFooter(commands::SUGGESTION, &candidates));
EXPECT_TRUE(candidates.has_footer());
#if defined(CHANNEL_DEV) && defined(GOOGLE_JAPANESE_INPUT_BUILD)
EXPECT_FALSE(candidates.footer().has_label());
EXPECT_TRUE(candidates.footer().has_sub_label());
EXPECT_EQ(0, candidates.footer().sub_label().find("build "));
#else // CHANNEL_DEV && GOOGLE_JAPANESE_INPUT_BUILD
EXPECT_TRUE(candidates.footer().has_label());
EXPECT_FALSE(candidates.footer().has_sub_label());
const char kLabel[] = "Tabキーで選択";
EXPECT_EQ(kLabel, candidates.footer().label());
#endif // CHANNEL_DEV && GOOGLE_JAPANESE_INPUT_BUILD
EXPECT_FALSE(candidates.footer().index_visible());
EXPECT_FALSE(candidates.footer().logo_visible());
candidates.Clear();
EXPECT_TRUE(SessionOutput::FillFooter(commands::PREDICTION, &candidates));
EXPECT_TRUE(candidates.has_footer());
EXPECT_FALSE(candidates.footer().has_label());
EXPECT_TRUE(candidates.footer().index_visible());
EXPECT_TRUE(candidates.footer().logo_visible());
candidates.Clear();
EXPECT_TRUE(SessionOutput::FillFooter(commands::CONVERSION, &candidates));
EXPECT_TRUE(candidates.has_footer());
EXPECT_FALSE(candidates.footer().has_label());
EXPECT_TRUE(candidates.footer().index_visible());
EXPECT_TRUE(candidates.footer().logo_visible());
candidates.Clear();
EXPECT_FALSE(
SessionOutput::FillFooter(commands::TRANSLITERATION, &candidates));
EXPECT_FALSE(candidates.has_footer());
candidates.Clear();
EXPECT_FALSE(SessionOutput::FillFooter(commands::USAGE, &candidates));
EXPECT_FALSE(candidates.has_footer());
candidates.Clear();
for (int i = 0; i < 20; ++i) {
commands::Candidates::Candidate *c = candidates.add_candidate();
c->set_index(i);
c->set_value("dummy");
c->set_id(i);
// Candidates with even Id can be deleted.
c->mutable_annotation()->set_deletable(i % 2 == 0);
}
for (int i = 0; i < 20; ++i) {
candidates.clear_footer();
candidates.set_focused_index(i);
EXPECT_TRUE(SessionOutput::FillFooter(commands::PREDICTION, &candidates));
if (i % 2 == 0) {
ASSERT_TRUE(candidates.has_footer());
ASSERT_TRUE(candidates.footer().has_label());
#if defined(__APPLE__)
const char kDeleteInstruction[] = "control+fn+deleteで履歴から削除";
#elif defined(OS_CHROMEOS)
const char kDeleteInstruction[] = "ctrl+alt+backspaceで履歴から削除";
#else // !__APPLE__ && !OS_CHROMEOS
const char kDeleteInstruction[] = "Ctrl+Delで履歴から削除";
#endif // __APPLE__ || OS_CHROMEOS
EXPECT_EQ(kDeleteInstruction, candidates.footer().label());
#if defined(CHANNEL_DEV) && defined(GOOGLE_JAPANESE_INPUT_BUILD)
} else {
EXPECT_FALSE(candidates.footer().has_label());
EXPECT_TRUE(candidates.footer().has_sub_label());
EXPECT_EQ(0, candidates.footer().sub_label().find("build "));
#endif // CHANNEL_DEV && GOOGLE_JAPANESE_INPUT_BUILD
}
}
}
TEST(SessionOutputTest, FillSubLabel) {
commands::Footer footer;
footer.set_label("to be deleted");
SessionOutput::FillSubLabel(&footer);
EXPECT_TRUE(footer.has_sub_label());
EXPECT_FALSE(footer.has_label());
EXPECT_GT(footer.sub_label().size(), 6); // 6 == strlen("build ")
// sub_label should start with "build ".
EXPECT_EQ(0, footer.sub_label().find("build "));
}
TEST(SessionOutputTest, AddSegment) {
commands::Preedit preedit;
int index = 0;
{
// "〜" is a character to be processed by TextNormalizer::NormalizeText
const std::string kKey = "ゔ〜 preedit focused";
const std::string kValue = "ゔ〜 PREEDIT FOCUSED";
const int types = SessionOutput::PREEDIT | SessionOutput::FOCUSED;
EXPECT_TRUE(SessionOutput::AddSegment(kKey, kValue, types, &preedit));
EXPECT_EQ(index + 1, preedit.segment_size());
const commands::Preedit::Segment &segment = preedit.segment(index);
std::string normalized_key;
TextNormalizer::NormalizeText(kKey, &normalized_key);
EXPECT_EQ(normalized_key, segment.key());
std::string normalized_value;
TextNormalizer::NormalizeText(kValue, &normalized_value);
EXPECT_EQ(normalized_value, segment.value());
EXPECT_EQ(Util::CharsLen(normalized_value), segment.value_length());
EXPECT_EQ(commands::Preedit::Segment::UNDERLINE, segment.annotation());
++index;
}
{
const std::string kKey = "ゔ〜 preedit";
const std::string kValue = "ゔ〜 PREEDIT";
const int types = SessionOutput::PREEDIT;
EXPECT_TRUE(SessionOutput::AddSegment(kKey, kValue, types, &preedit));
EXPECT_EQ(index + 1, preedit.segment_size());
const commands::Preedit::Segment &segment = preedit.segment(index);
std::string normalized_key;
TextNormalizer::NormalizeText(kKey, &normalized_key);
EXPECT_EQ(normalized_key, segment.key());
std::string normalized_value;
TextNormalizer::NormalizeText(kValue, &normalized_value);
EXPECT_EQ(normalized_value, segment.value());
EXPECT_EQ(Util::CharsLen(normalized_value), segment.value_length());
EXPECT_EQ(commands::Preedit::Segment::UNDERLINE, segment.annotation());
++index;
}
{
const std::string kKey = "ゔ〜 conversion focused";
const std::string kValue = "ゔ〜 CONVERSION FOCUSED";
const int types = SessionOutput::CONVERSION | SessionOutput::FOCUSED;
EXPECT_TRUE(SessionOutput::AddSegment(kKey, kValue, types, &preedit));
EXPECT_EQ(index + 1, preedit.segment_size());
const commands::Preedit::Segment &segment = preedit.segment(index);
std::string normalized_key;
TextNormalizer::NormalizeText(kKey, &normalized_key);
EXPECT_EQ(normalized_key, segment.key());
// Normalization is performed in Rewriter.
std::string normalized_value = kValue;
EXPECT_EQ(normalized_value, segment.value());
EXPECT_EQ(Util::CharsLen(normalized_value), segment.value_length());
EXPECT_EQ(commands::Preedit::Segment::HIGHLIGHT, segment.annotation());
++index;
}
{
const std::string kKey = "ゔ〜 conversion";
const std::string kValue = "ゔ〜 CONVERSION";
const int types = SessionOutput::CONVERSION;
EXPECT_TRUE(SessionOutput::AddSegment(kKey, kValue, types, &preedit));
EXPECT_EQ(index + 1, preedit.segment_size());
const commands::Preedit::Segment &segment = preedit.segment(index);
std::string normalized_key;
TextNormalizer::NormalizeText(kKey, &normalized_key);
EXPECT_EQ(normalized_key, segment.key());
// Normalization is performed in Rewriter.
std::string normalized_value = kValue;
EXPECT_EQ(normalized_value, segment.value());
EXPECT_EQ(Util::CharsLen(normalized_value), segment.value_length());
EXPECT_EQ(commands::Preedit::Segment::UNDERLINE, segment.annotation());
++index;
}
{
const std::string kKey = "abc";
const std::string kValue = ""; // empty value
const int types = SessionOutput::CONVERSION;
EXPECT_FALSE(SessionOutput::AddSegment(kKey, kValue, types, &preedit));
EXPECT_EQ(index, preedit.segment_size());
}
}
TEST(SessionOutputTest, FillConversionResultWithoutNormalization) {
const char kInput[] = "ゔ";
commands::Result result;
SessionOutput::FillConversionResultWithoutNormalization(kInput, kInput,
&result);
EXPECT_EQ(commands::Result::STRING, result.type());
EXPECT_EQ(kInput, result.key()); // should not be normalized
EXPECT_EQ(kInput, result.value()); // should not be normalized
}
TEST(SessionOutputTest, FillConversionResult) {
commands::Result result;
SessionOutput::FillConversionResult("abc", "ABC", &result);
EXPECT_EQ(commands::Result::STRING, result.type());
EXPECT_EQ("abc", result.key());
EXPECT_EQ("ABC", result.value());
}
TEST(SessionOutputTest, FillPreeditResult) {
commands::Result result;
SessionOutput::FillPreeditResult("ABC", &result);
EXPECT_EQ(commands::Result::STRING, result.type());
EXPECT_EQ("ABC", result.key());
EXPECT_EQ("ABC", result.value());
}
TEST(SessionOutputTest, FillAllCandidateWords_NonForcused) {
// Test against b/3059255
// Even when no candidate was focused, all_candidate_words had focused_index.
CandidateList main_list(true);
commands::CandidateList candidates_proto;
main_list.AddCandidate(0, "key");
// Initialize Segment
Segment segment;
const char *kNormalKey = "key";
segment.set_key(kNormalKey);
Segment::Candidate *candidate = segment.push_back_candidate();
candidate->content_key = "key";
candidate->value = "value";
{
// Exexcute FillAllCandidateWords
const commands::Category kCategory = commands::SUGGESTION;
SessionOutput::FillAllCandidateWords(segment, main_list, kCategory,
&candidates_proto);
// Varidation
EXPECT_FALSE(candidates_proto.has_focused_index());
}
{
main_list.set_focused(true);
// Exexcute FillAllCandidateWords
// When the category is SUGGESTION, has_focused_index never return true in
// real usage. This is just a testcase.
const commands::Category kCategory = commands::SUGGESTION;
SessionOutput::FillAllCandidateWords(segment, main_list, kCategory,
&candidates_proto);
// Varidation
// If a candidate is forcused, true is expected.
EXPECT_TRUE(candidates_proto.has_focused_index());
}
}
} // namespace session
} // namespace mozc
| 40.756453 | 79 | 0.708294 | Kento75 |
2994abfcab4dca2b9a5be4887406b99880a9c455 | 7,923 | cpp | C++ | dev/Code/Sandbox/Editor/PanelSimpleTreeBrowser.cpp | crazyskateface/lumberyard | 164512f8d415d6bdf37e195af319ffe5f96a8f0b | [
"AML"
] | 5 | 2018-08-17T21:05:55.000Z | 2021-04-17T10:48:26.000Z | dev/Code/Sandbox/Editor/PanelSimpleTreeBrowser.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | null | null | null | dev/Code/Sandbox/Editor/PanelSimpleTreeBrowser.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 5 | 2017-12-05T16:36:00.000Z | 2021-04-27T06:33:54.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
// Original file Copyright Crytek GMBH or its affiliates, used under license.
#include "StdAfx.h"
#include "PanelSimpleTreeBrowser.h"
#include "ViewManager.h"
#include "IThreadTask.h"
#include "QtUI/WaitCursor.h"
#include <io.h>
#include <StringUtils.h>
BEGIN_MESSAGE_MAP(CSimpleTreeBrowser, CXTResizeDialog)
ON_EN_CHANGE(IDC_FILTER, OnFilterChange)
ON_WM_DESTROY()
END_MESSAGE_MAP()
//////////////////////////////////////////////////////////////////////////
CSimpleTreeBrowser::CSimpleTreeBrowser(int Height /*= 0*/, int iddImageList /*= 0*/, CWnd* pParent /*= NULL*/)
: CXTResizeDialog(CSimpleTreeBrowser::IDD, pParent)
, m_pScanner(NULL)
, m_iHeight(Height)
, m_iddImageList(iddImageList)
, m_onSelectCallback(NULL)
, m_onDblClickCallback(NULL)
, m_CMCallbackCreate(NULL)
, m_CMCallbackCommand(NULL)
, m_bOnSelectCallbackEnabled(true)
, m_bOnDblClickCallbackEnabled(true)
, m_bOnDragAndDropCallbackEnabled(true)
, m_bContextMenuCallbacksEnabled(true)
, m_lastSelectedRecord("")
{
}
//////////////////////////////////////////////////////////////////////////
CSimpleTreeBrowser::~CSimpleTreeBrowser()
{
ClearTreeItems();
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::DoDataExchange(CDataExchange* pDX)
{
CXTResizeDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_FILTER, m_filter);
}
/////////////////////////////////////////////////////////////////////////////
BOOL CSimpleTreeBrowser::OnInitDialog()
{
CXTResizeDialog::OnInitDialog();
CMFCUtils::LoadTrueColorImageList(m_cImageList, m_iddImageList, 16, RGB(255, 0, 255));
CRect rc;
GetClientRect(rc);
rc.DeflateRect(5, 5, 5, 64);
m_treeCtrl.Create(WS_CHILD | WS_VISIBLE | WS_BORDER, rc, this, IDC_BROWSER_TREE);
m_treeCtrl.EnableAutoNameGrouping(true, 0);
m_treeCtrl.SetImageList(&m_cImageList);
m_treeCtrl.SetCallback(CTreeCtrlReport::eCB_OnSelect, functor(*this, &CSimpleTreeBrowser::OnSelectionChanged));
m_treeCtrl.SetCallback(CTreeCtrlReport::eCB_OnDragAndDrop, functor(*this, &CSimpleTreeBrowser::OnDragAndDrop));
m_treeCtrl.SetCallback(CTreeCtrlReport::eCB_OnDblClick, functor(*this, &CSimpleTreeBrowser::OnDblclkBrowserTree));
CXTPReportColumn* pCol1 = m_treeCtrl.AddTreeColumn("");
pCol1->SetSortable(TRUE);
m_treeCtrl.GetColumns()->SetSortColumn(pCol1, TRUE);
m_treeCtrl.SetExpandOnDblClick(true);
SetResize(IDC_BROWSER_TREE, SZ_RESIZE(1));
SetResize(IDC_STATIC, SZ_BOTTOM_LEFT, SZ_BOTTOM_LEFT);
SetResize(IDC_FILTER, SZ_BOTTOM_LEFT, SZ_BOTTOM_RIGHT);
if (m_iHeight > 0)
{
GetWindowRect(&rc);
SetWindowPos(NULL, 0, 0, (long)rc.Width(), (long)m_iHeight, SWP_NOMOVE);
}
return TRUE;
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::OnDestroy()
{
CXTResizeDialog::OnDestroy();
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::Create(ISimpleTreeBrowserScanner* pScanner, CWnd* parent)
{
CXTResizeDialog::Create(IDD, parent);
m_pScanner = pScanner;
Refresh();
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::SetAutoResize(bool bEnabled, int minHeight /*= 0*/, int maxHeight /*= 0*/)
{
m_bAutoResize = bEnabled;
m_iMinHeight = minHeight;
m_iMaxHeight = maxHeight;
AutoResize();
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::OnFilterChange()
{
CString filter;
m_filter.GetWindowText(filter);
m_treeCtrl.SetFilterText(filter);
ReselectLastSelectedTreeItem();
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::Refresh()
{
if (m_pScanner)
{
WaitCursor wait;
m_pScanner->Scan();
LoadFilesFromScanning();
}
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::ClearTreeItems()
{
m_treeCtrl.DeleteAllItems();
m_treeCtrl.GetRecords()->RemoveAll();
m_CurrItems.clear();
m_lastSelectedRecord = "";
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::LoadFilesFromScanning()
{
if (m_pScanner && m_pScanner->HasNewFiles())
{
ClearTreeItems();
TSimpleTreeBrowserItems items;
m_pScanner->GetScannedFiles(items);
m_CurrItems = items;
m_treeCtrl.BeginUpdate();
AddItemsToTree(m_CurrItems);
m_treeCtrl.EndUpdate();
m_treeCtrl.Populate();
AutoResize();
ReselectLastSelectedTreeItem();
}
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::AddItemsToTree(const TSimpleTreeBrowserItems& items, CTreeItemRecord* pParent)
{
for (size_t i = 0, iCount = items.size(); i < iCount; i++)
{
const SSimpleTreeBrowserItem& item = items[i];
CTreeItemRecord* pRec = new CTreeItemRecord(false, item.DisplayName);
pRec->SetUserData((void*) &item);
pRec->SetIcon(item.Icon);
pRec->SetUserString(string().Format("%s_%i", item.DisplayName.GetString(), (int) item.UserData).c_str());
pRec->GetItem(0)->SetTooltip(item.Tooltip);
m_treeCtrl.AddTreeRecord(pRec, pParent);
AddItemsToTree(item.Children, pRec);
}
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::ReselectLastSelectedTreeItem()
{
if (!m_lastSelectedRecord.IsEmpty())
{
m_treeCtrl.SelectRecordByUserString(m_lastSelectedRecord);
}
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::AutoResize()
{
if (m_bAutoResize && m_iMinHeight > 0 && m_iMaxHeight > 0)
{
int newHeight = m_CurrItems.size() * 28 + 50;
newHeight = max(min(newHeight, m_iMaxHeight), m_iMinHeight);
CRect rc;
GetWindowRect(&rc);
SetWindowPos(NULL, 0, 0, (long)rc.Width(), (long)newHeight, SWP_NOMOVE);
}
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::OnSelectionChanged(CTreeItemRecord* pRec)
{
m_lastSelectedRecord = pRec ? pRec->GetUserString() : "";
if (m_bOnSelectCallbackEnabled && pRec && m_onSelectCallback)
{
m_onSelectCallback((SSimpleTreeBrowserItem*) pRec->GetUserData());
}
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::OnDragAndDrop(CTreeItemRecord* pRec)
{
if (m_bOnDragAndDropCallbackEnabled)
{
CPoint pt;
GetCursorPos(&pt);
CViewport* pView = GetIEditor()->GetViewManager()->GetViewportAtPoint(pt);
if (pView)
{
TEventCallback& cb = m_onDragAndDropCallbacks[pView->GetType()];
if (cb)
{
cb((SSimpleTreeBrowserItem*) pRec->GetUserData());
}
}
}
}
//////////////////////////////////////////////////////////////////////////
void CSimpleTreeBrowser::OnDblclkBrowserTree(CTreeItemRecord* pRec)
{
if (m_bOnDblClickCallbackEnabled && pRec && m_onDblClickCallback)
{
m_onDblClickCallback((SSimpleTreeBrowserItem*) pRec->GetUserData());
}
}
| 31.440476 | 118 | 0.585637 | crazyskateface |
2994b81ca2e5fbb90f3c33368c3d613d43c7fd08 | 24,787 | cpp | C++ | runtime/test/generated/spec_V1_2/svdf_bias_present_float16.example.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | runtime/test/generated/spec_V1_2/svdf_bias_present_float16.example.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | runtime/test/generated/spec_V1_2/svdf_bias_present_float16.example.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | // Generated from svdf_bias_present_float16.mod.py
// DO NOT EDIT
// clang-format off
#include "TestHarness.h"
using namespace test_helper; // NOLINT(google-build-using-namespace)
namespace generated_tests::svdf_bias_present_float16 {
const TestModel& get_test_model() {
static TestModel model = {
.main = {
.operands = {{ // input
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 3},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.12609188f, -0.46347019f, -0.89598465f, 0.12609188f, -0.46347019f, -0.89598465f})
}, { // weights_feature
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4, 3},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({-0.31930989f, -0.36118156f, 0.0079667f, 0.37613347f, 0.22197971f, 0.12416199f, 0.27901134f, 0.27557442f, 0.3905206f, -0.36137494f, -0.06634006f, -0.10640851f})
}, { // weights_time
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4, 10},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({-0.31930989f, 0.37613347f, 0.27901134f, -0.36137494f, -0.36118156f, 0.22197971f, 0.27557442f, -0.06634006f, 0.0079667f, 0.12416199f, 0.3905206f, -0.10640851f, -0.0976817f, 0.15294972f, 0.39635518f, -0.02702999f, 0.39296314f, 0.15785322f, 0.21931258f, 0.31053296f, -0.36916667f, 0.38031587f, -0.21580373f, 0.27072677f, 0.23622236f, 0.34936687f, 0.18174365f, 0.35907319f, -0.17493086f, 0.324846f, -0.10781813f, 0.27201805f, 0.14324132f, -0.23681851f, -0.27115166f, -0.01580888f, -0.14943552f, 0.15465137f, 0.09784451f, -0.0337657f})
}, { // bias
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({1.0f, 2.0f, 3.0f, 4.0f})
}, { // state_in
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 40},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f})
}, { // rank_param
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({1})
}, { // activation_param
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({0})
}, { // state_out
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 40},
.numberOfConsumers = 0,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
.channelQuant = {},
.isIgnored = true,
.data = TestBuffer::createFromVector<_Float16>({0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f})
}, { // output
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 4},
.numberOfConsumers = 0,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({1.014899f, 1.9482339f, 2.856275f, 3.99728117f, 1.014899f, 1.9482339f, 2.856275f, 3.99728117f})
}},
.operations = {{
.type = TestOperationType::SVDF,
.inputs = {0, 1, 2, 3, 4, 5, 6},
.outputs = {7, 8}
}},
.inputIndexes = {0, 1, 2, 3, 4},
.outputIndexes = {7, 8}
},
.referenced = {},
.isRelaxed = false,
.expectedMultinomialDistributionTolerance = 0,
.expectFailure = false,
.minSupportedVersion = TestHalVersion::V1_2
};
return model;
}
const auto dummy_test_model = TestModelManager::get().add("svdf_bias_present_float16", get_test_model());
} // namespace generated_tests::svdf_bias_present_float16
namespace generated_tests::svdf_bias_present_float16 {
const TestModel& get_test_model_all_inputs_as_internal() {
static TestModel model = {
.main = {
.operands = {{ // input
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 3},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({})
}, { // weights_feature
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4, 3},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({})
}, { // weights_time
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4, 10},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({})
}, { // bias
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({})
}, { // state_in
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 40},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({})
}, { // rank_param
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({1})
}, { // activation_param
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({0})
}, { // state_out
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 40},
.numberOfConsumers = 0,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
.channelQuant = {},
.isIgnored = true,
.data = TestBuffer::createFromVector<_Float16>({0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f})
}, { // output
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 4},
.numberOfConsumers = 0,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({1.014899f, 1.9482339f, 2.856275f, 3.99728117f, 1.014899f, 1.9482339f, 2.856275f, 3.99728117f})
}, { // input_new
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 3},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.12609188f, -0.46347019f, -0.89598465f, 0.12609188f, -0.46347019f, -0.89598465f})
}, { // placeholder
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {1},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.0f})
}, { // param
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({0})
}, { // weights_feature_new
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4, 3},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({-0.31930989f, -0.36118156f, 0.0079667f, 0.37613347f, 0.22197971f, 0.12416199f, 0.27901134f, 0.27557442f, 0.3905206f, -0.36137494f, -0.06634006f, -0.10640851f})
}, { // placeholder1
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {1},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.0f})
}, { // param1
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({0})
}, { // weights_time_new
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4, 10},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({-0.31930989f, 0.37613347f, 0.27901134f, -0.36137494f, -0.36118156f, 0.22197971f, 0.27557442f, -0.06634006f, 0.0079667f, 0.12416199f, 0.3905206f, -0.10640851f, -0.0976817f, 0.15294972f, 0.39635518f, -0.02702999f, 0.39296314f, 0.15785322f, 0.21931258f, 0.31053296f, -0.36916667f, 0.38031587f, -0.21580373f, 0.27072677f, 0.23622236f, 0.34936687f, 0.18174365f, 0.35907319f, -0.17493086f, 0.324846f, -0.10781813f, 0.27201805f, 0.14324132f, -0.23681851f, -0.27115166f, -0.01580888f, -0.14943552f, 0.15465137f, 0.09784451f, -0.0337657f})
}, { // placeholder2
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {1},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.0f})
}, { // param2
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({0})
}, { // bias_new
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {4},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({1.0f, 2.0f, 3.0f, 4.0f})
}, { // placeholder3
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {1},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.0f})
}, { // param3
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({0})
}, { // state_in_new
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {2, 40},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f})
}, { // placeholder4
.type = TestOperandType::TENSOR_FLOAT16,
.dimensions = {1},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<_Float16>({0.0f})
}, { // param4
.type = TestOperandType::INT32,
.dimensions = {},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
.lifetime = TestOperandLifeTime::CONSTANT_COPY,
.channelQuant = {},
.isIgnored = false,
.data = TestBuffer::createFromVector<int32_t>({0})
}},
.operations = {{
.type = TestOperationType::ADD,
.inputs = {9, 10, 11},
.outputs = {0}
}, {
.type = TestOperationType::ADD,
.inputs = {12, 13, 14},
.outputs = {1}
}, {
.type = TestOperationType::ADD,
.inputs = {15, 16, 17},
.outputs = {2}
}, {
.type = TestOperationType::ADD,
.inputs = {18, 19, 20},
.outputs = {3}
}, {
.type = TestOperationType::ADD,
.inputs = {21, 22, 23},
.outputs = {4}
}, {
.type = TestOperationType::SVDF,
.inputs = {0, 1, 2, 3, 4, 5, 6},
.outputs = {7, 8}
}},
.inputIndexes = {9, 12, 15, 18, 21},
.outputIndexes = {7, 8}
},
.referenced = {},
.isRelaxed = false,
.expectedMultinomialDistributionTolerance = 0,
.expectFailure = false,
.minSupportedVersion = TestHalVersion::V1_2
};
return model;
}
const auto dummy_test_model_all_inputs_as_internal = TestModelManager::get().add("svdf_bias_present_float16_all_inputs_as_internal", get_test_model_all_inputs_as_internal());
} // namespace generated_tests::svdf_bias_present_float16
| 60.309002 | 606 | 0.40489 | riscv-android-src |
299745dd1c98b88a7f73e5c8b93b2f38c014d1d2 | 350 | cpp | C++ | restbed/test/regression/source/missing_regex_support_on_gcc_4.8.cpp | stevens2017/Aware | cd4754a34c809707c219a173dc1ad494e149cdb1 | [
"BSD-3-Clause"
] | null | null | null | restbed/test/regression/source/missing_regex_support_on_gcc_4.8.cpp | stevens2017/Aware | cd4754a34c809707c219a173dc1ad494e149cdb1 | [
"BSD-3-Clause"
] | null | null | null | restbed/test/regression/source/missing_regex_support_on_gcc_4.8.cpp | stevens2017/Aware | cd4754a34c809707c219a173dc1ad494e149cdb1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2013-2017, Corvusoft Ltd, All Rights Reserved.
*/
//System Includes
#include <regex>
//Project Includes
//External Includes
#include <catch.hpp>
//System Namespaces
//Project Namespaces
using std::regex;
//External Namespaces
TEST_CASE( "missing regex support", "[stdlib]" )
{
REQUIRE_NOTHROW( regex( "(abc[1234])" ) );
}
| 14.583333 | 59 | 0.694286 | stevens2017 |
2998a6a26e60531b0845f7a99fac81d96dea1b83 | 431 | hpp | C++ | simulations/landau/params.yaml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | 3 | 2022-02-28T08:47:07.000Z | 2022-03-01T10:29:08.000Z | simulations/landau/params.yaml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | simulations/landau/params.yaml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#pragma once
constexpr char const* const params_yaml = R"PDI_CFG(Mesh:
x_min: 0.0
x_max: 12.56637061435917
x_size: 128
vx_min: -6.0
vx_max: +6.0
vx_size: 127
SpeciesInfo:
- charge: -1
mass: 0.0005
density_eq: 1.
temperature_eq: 1.
mean_velocity_eq: 0.
perturb_amplitude: 0.01
perturb_mode: 1
Algorithm:
deltat: 0.125
nbiter: 360
Output:
time_diag: 0.25
)PDI_CFG";
| 14.862069 | 57 | 0.693735 | gyselax |
299ae8675a8186dbfd9a19603c91c7f05f292fa4 | 2,759 | cpp | C++ | wxMsRunMailClient.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | wxMsRunMailClient.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | wxMsRunMailClient.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | /*-----------------------------------------------------------------
* Name: wxMsRunMailClient.cpp
* Purpose: code to invoke the external mail client - eg: Thunderbird
* Author: A. Wiegert
*
* Copyright:
* Licence: wxWidgets license
*---------------------------------------------------------------- */
/*----------------------------------------------------------------
* Standard wxWidgets headers
*---------------------------------------------------------------- */
// Note __VISUALC__ is defined by wxWidgets, not by MSVC IDE
// and thus won't be defined until some wxWidgets headers are included
#if defined( _MSC_VER )
# if defined ( _DEBUG )
// this statement NEEDS to go BEFORE all headers
# define _CRTDBG_MAP_ALLOC
# endif
#endif
#include "wxMsPreProcDefsh.h" // needs to be first
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
/* For all others, include the necessary headers
* (this file is usually all you need because it
* includes almost all "standard" wxWidgets headers) */
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
// ------------------------------------------------------------------
#include "wxMsFrameh.h"
// ------------------------------------------------------------------
// Note __VISUALC__ is defined by wxWidgets, not by MSVC IDE
// and thus won't be defined until some wxWidgets headers are included
#if defined( _MSC_VER )
// only good for MSVC
// this block needs to go AFTER all headers
#include <crtdbg.h>
#ifdef _DEBUG
#ifndef DBG_NEW
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
#define new DBG_NEW
#endif
#endif
#endif
// ------------------------------------------------------------------
void MyFrame::OnLaunchMailClient(wxCommandEvent& event)
{
event.Skip();
if ( !g_iniPrefs.data[IE_MAIL_CLIENT_PATH].dataCurrent.wsVal.IsEmpty() )
{
InvokeMailClient( g_iniPrefs.data[IE_MAIL_CLIENT_PATH].dataCurrent.wsVal );
}
else
{
wxString wsT;
wsT.Printf( _("No E-Mail client defined!\n") );
wxMessageBox( wsT, "Error", wxOK );
return;
}
}
// ------------------------------------------------------------------
bool MyFrame::InvokeMailClient( wxString wsClientPath )
{
wxString wsT;
wxTextAttr wtaOld;
wsT = _("Invoking mail client ") + wsClientPath;
wxLogMessage( wsT );
wxString wsCmd;
// adding -mail does not show the GUI??, does TB run??
wsCmd = wsClientPath;// + _T(" -mail");
if ( g_iniPrefs.data[IE_LOG_VERBOSITY].dataCurrent.lVal > 0 )
{
wxLogMessage( _T("wsCmd: ") + wsCmd );
}
wxExecute( wsCmd );
return true;
}
// ------------------------------- eof ------------------------------
| 29.666667 | 79 | 0.540051 | tester0077 |
299beebb6850e88209f6dbe6d530a862900c4c94 | 12,674 | cpp | C++ | src/gausskernel/runtime/codegen/executor/foreignscancodegen.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2021-11-05T10:14:39.000Z | 2021-11-05T10:14:39.000Z | src/gausskernel/runtime/codegen/executor/foreignscancodegen.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/gausskernel/runtime/codegen/executor/foreignscancodegen.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
* -------------------------------------------------------------------------
*
* foreignscancodegen.cpp
* codegeneration of filter expression for HDFS tables
*
* IDENTIFICATION
* Code/src/gausskernel/runtime/codegen/executor/foreignscancodegen.cpp
*
* -----------------------------------------------------------------------
*/
#include "codegen/gscodegen.h"
#include "codegen/foreignscancodegen.h"
#include "catalog/pg_operator.h"
using namespace llvm;
using namespace dorado;
namespace dorado {
bool ForeignScanCodeGen::IsJittableExpr(Expr* expr)
{
/*
* We only support the following operators and data types.
*/
OpExpr* op = (OpExpr*)expr;
bool IsOperatorLLVMReady = false;
switch (op->opno) {
case FLOAT8EQOID:
case FLOAT8NEOID:
case FLOAT8LTOID:
case FLOAT8LEOID:
case FLOAT8GTOID:
case FLOAT8GEOID:
case FLOAT4EQOID:
case FLOAT4NEOID:
case FLOAT4LTOID:
case FLOAT4LEOID:
case FLOAT4GTOID:
case FLOAT4GEOID:
case INT2EQOID:
case INT2NEOID:
case INT2LTOID:
case INT2LEOID:
case INT2GTOID:
case INT2GEOID:
case INT4EQOID:
case INT4NEOID:
case INT4LTOID:
case INT4LEOID:
case INT4GTOID:
case INT4GEOID:
case INT8EQOID:
case INT8NEOID:
case INT8LTOID:
case INT8LEOID:
case INT8GTOID:
case INT8GEOID:
case INT24EQOID:
case INT42EQOID:
case INT24LTOID:
case INT42LTOID:
case INT24GTOID:
case INT42GTOID:
case INT24NEOID:
case INT42NEOID:
case INT24LEOID:
case INT42LEOID:
case INT24GEOID:
case INT42GEOID:
case INT84EQOID:
case INT84NEOID:
case INT84LTOID:
case INT84GTOID:
case INT84LEOID:
case INT84GEOID:
case INT48EQOID:
case INT48NEOID:
case INT48LTOID:
case INT48GTOID:
case INT48LEOID:
case INT48GEOID:
case INT28EQOID:
case INT28NEOID:
case INT28LTOID:
case INT28GTOID:
case INT28LEOID:
case INT28GEOID:
case INT82EQOID:
case INT82NEOID:
case INT82LTOID:
case INT82GTOID:
case INT82LEOID:
case INT82GEOID:
case FLOAT48EQOID:
case FLOAT48NEOID:
case FLOAT48LTOID:
case FLOAT48GTOID:
case FLOAT48LEOID:
case FLOAT48GEOID:
case FLOAT84EQOID:
case FLOAT84NEOID:
case FLOAT84LTOID:
case FLOAT84GTOID:
case FLOAT84LEOID:
case FLOAT84GEOID: {
IsOperatorLLVMReady = true;
break;
}
default: {
IsOperatorLLVMReady = false;
break;
}
}
return IsOperatorLLVMReady;
}
llvm::Value* ForeignScanCodeGen::buildConstValue(
Expr* node, llvm::Value* llvm_args[], GsCodeGen::LlvmBuilder builder, StringInfo fname)
{
GsCodeGen* llvmCodeGen = (GsCodeGen*)t_thrd.codegen_cxt.thr_codegen_obj;
llvm::LLVMContext& context = llvmCodeGen->context();
llvm::Value* result = NULL;
if (node == NULL) {
return NULL;
}
switch (nodeTag(node)) {
case T_Const: {
Const* c = (Const*)node;
if (c->consttype == FLOAT8OID) {
result = llvm::ConstantFP::get(context, llvm::APFloat((DatumGetFloat8(c->constvalue))));
} else if (c->consttype == FLOAT4OID) {
result = llvm::ConstantFP::get(context, llvm::APFloat((float8)(DatumGetFloat4(c->constvalue))));
} else if (c->consttype == INT8OID || c->consttype == INT4OID || c->consttype == INT2OID) {
int64 value = 0;
switch (c->consttype) {
case INT8OID: {
value = DatumGetInt64(c->constvalue);
break;
}
case INT4OID: {
value = DatumGetInt32(c->constvalue);
break;
}
default: {
value = DatumGetInt16(c->constvalue);
break;
}
}
result = llvm::ConstantInt::get(llvmCodeGen->getType(INT8OID), value);
}
break;
}
default: {
ereport(LOG, (errmsg("Find unsupported node type in buildConstValue.")));
}
}
return result;
}
bool ForeignScanCodeGen::ScanCodeGen(Expr* expr, PlanState* parent, void** jittedFunc)
{
bool prepare_result = false;
GsCodeGen* llvmCodeGen = (GsCodeGen*)t_thrd.codegen_cxt.thr_codegen_obj;
if (IsJittableExpr(expr)) {
OpExpr* op = (OpExpr*)expr;
/*
* Rightop should be const. Has been checked before.
* To avoid any risk, if the rightop is not Const, just return without doing anything.
*/
Expr* rightop = (Expr*)get_rightop(expr);
if (rightop == NULL) {
ereport(ERROR,
(errcode(ERRCODE_UNEXPECTED_NULL_VALUE),
errmodule(MOD_LLVM),
errmsg("Unexpected NULL right operator!")));
}
if (!IsA(rightop, Const))
return false;
/*
* Get the IR function from the static IR file:
* Make sure we use the same module for both HDFS tables and column tables.
*/
llvmCodeGen->loadIRFile();
llvm::LLVMContext& context = llvmCodeGen->context();
GsCodeGen::LlvmBuilder builder(context);
llvm::Type* int64_type = llvmCodeGen->getType(INT8OID);
llvm::Value* llvmargs[1];
llvm::Value* rhs_value = NULL;
llvm::Value* result = NULL;
llvm::Function* jitted_function = NULL;
GsCodeGen::FnPrototype fn_prototype(llvmCodeGen, "JittedPredicate", llvmCodeGen->getType(BITOID));
/*
* If float8 operation, else the operation must be int4 related operation and
* it is guarded by IsOperatorLLVMReady right now (need to change the condition
* when we support more data type though)
*/
List* args = NULL;
Node* leftChild = NULL;
Var* leftVar = NULL;
args = op->args;
Assert(list_length(args) == 2);
leftChild = (Node*)linitial(args);
Assert(nodeTag(leftChild) == T_Var);
leftVar = (Var*)leftChild;
Assert((leftVar->vartype == FLOAT8OID) || (leftVar->vartype == FLOAT4OID) || (leftVar->vartype == INT2OID) ||
(leftVar->vartype == INT4OID) || (leftVar->vartype == INT8OID));
/* int4, int8, int2 */
if (leftVar->vartype == INT2OID || leftVar->vartype == INT4OID || leftVar->vartype == INT8OID) {
fn_prototype.addArgument(GsCodeGen::NamedVariable("value", int64_type));
} else {
fn_prototype.addArgument(GsCodeGen::NamedVariable("value", llvmCodeGen->getType(FLOAT8OID)));
}
jitted_function = fn_prototype.generatePrototype(&builder, &llvmargs[0]);
if (NULL == jitted_function) {
return false;
}
StringInfo fname = makeStringInfo();
rhs_value = buildConstValue(rightop, llvmargs, builder, fname);
if (NULL == rhs_value) {
pfree_ext(fname->data);
pfree_ext(fname);
return false;
}
switch (op->opno) {
case FLOAT4LTOID: /* "<" */
case FLOAT8LTOID:
case FLOAT48LTOID:
case FLOAT84LTOID: {
result = builder.CreateFCmpOLT(llvmargs[0], rhs_value, "tmp_flt");
break;
}
case FLOAT4LEOID: /* "<=" */
case FLOAT8LEOID:
case FLOAT48LEOID:
case FLOAT84LEOID: {
result = builder.CreateFCmpOLE(llvmargs[0], rhs_value, "tmp_fle");
break;
}
case FLOAT4EQOID: /* "=" */
case FLOAT8EQOID:
case FLOAT48EQOID:
case FLOAT84EQOID: {
result = builder.CreateFCmpOEQ(llvmargs[0], rhs_value, "tmp_feq");
break;
}
case FLOAT4GEOID: /* ">=" */
case FLOAT8GEOID:
case FLOAT48GEOID:
case FLOAT84GEOID: {
result = builder.CreateFCmpOGE(llvmargs[0], rhs_value, "tmp_fge");
break;
}
case FLOAT4GTOID: /* ">" */
case FLOAT8GTOID:
case FLOAT48GTOID:
case FLOAT84GTOID: {
result = builder.CreateFCmpOGT(llvmargs[0], rhs_value, "tmp_fgt");
break;
}
case FLOAT4NEOID: /* "!=" and "<>" */
case FLOAT8NEOID:
case FLOAT48NEOID:
case FLOAT84NEOID: {
result = builder.CreateFCmpONE(llvmargs[0], rhs_value, "tmp_fne");
break;
}
case INT2EQOID: /* "=" */
case INT4EQOID:
case INT8EQOID:
case INT24EQOID:
case INT28EQOID:
case INT42EQOID:
case INT48EQOID:
case INT82EQOID:
case INT84EQOID: {
result = builder.CreateICmpEQ(llvmargs[0], rhs_value, "tmp_i4eq");
break;
}
case INT2NEOID: /* "<>" and "!=" */
case INT4NEOID:
case INT8NEOID:
case INT24NEOID:
case INT28NEOID:
case INT42NEOID:
case INT48NEOID:
case INT82NEOID:
case INT84NEOID: {
result = builder.CreateICmpNE(llvmargs[0], rhs_value, "tmp_i4ne");
break;
}
case INT2LTOID: /* "<" */
case INT4LTOID:
case INT8LTOID:
case INT24LTOID:
case INT28LTOID:
case INT42LTOID:
case INT48LTOID:
case INT82LTOID:
case INT84LTOID: {
result = builder.CreateICmpSLT(llvmargs[0], rhs_value, "tmp_i4lt");
break;
}
case INT2GTOID: /* ">" */
case INT4GTOID:
case INT8GTOID:
case INT24GTOID:
case INT28GTOID:
case INT42GTOID:
case INT48GTOID:
case INT82GTOID:
case INT84GTOID: {
result = builder.CreateICmpSGT(llvmargs[0], rhs_value, "tmp_i4gt");
break;
}
case INT2GEOID: /* ">=" */
case INT4GEOID:
case INT8GEOID:
case INT24GEOID:
case INT28GEOID:
case INT42GEOID:
case INT48GEOID:
case INT82GEOID:
case INT84GEOID: {
result = builder.CreateICmpSGE(llvmargs[0], rhs_value, "tmp_i4ge");
break;
}
case INT2LEOID: /* "<=" */
case INT4LEOID:
case INT8LEOID:
case INT24LEOID:
case INT28LEOID:
case INT42LEOID:
case INT48LEOID:
case INT82LEOID:
case INT84LEOID: {
result = builder.CreateICmpSLE(llvmargs[0], rhs_value, "tmp_i4le");
break;
}
default: {
elog(LOG, "Find unsupported operator %u!", op->opno);
return false;
}
}
builder.CreateRet(result);
llvmCodeGen->FinalizeFunction(jitted_function);
llvmCodeGen->addFunctionToMCJit(jitted_function, reinterpret_cast<void**>(&(*jittedFunc)));
prepare_result = true;
pfree_ext(fname->data);
pfree_ext(fname);
} else {
prepare_result = false;
}
return prepare_result;
}
} // namespace dorado
bool ForeignScanExprCodeGen(Expr* expr, PlanState* parent, void** jittedFunc)
{
return ForeignScanCodeGen::ScanCodeGen(expr, parent, jittedFunc);
}
| 31.605985 | 117 | 0.536689 | wotchin |
299c6e360b33ef7676eab2cc58b806bb55ba12e9 | 18,700 | cpp | C++ | Source/WndSpyGui/SpyMsgWnd.cpp | Skight/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | 24 | 2017-03-16T05:32:44.000Z | 2021-12-11T13:49:07.000Z | Source/WndSpyGui/SpyMsgWnd.cpp | zhen-e-liu/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | null | null | null | Source/WndSpyGui/SpyMsgWnd.cpp | zhen-e-liu/wndspy | b89cc2df88ca3e58b26be491814008aaf6f11122 | [
"Apache-2.0"
] | 13 | 2017-03-16T05:26:12.000Z | 2021-07-04T16:24:42.000Z | #include "WndSpyGui.h"
#include "SndMsgFunc.h"
#include "SpyMsgWnd.h"
//////////////////////////////////////////////////////////////////////////
LRESULT OnMainTrayNotify(HWND hwnd, LPARAM lParam);
//////////////////////////////////////////////////////////////////////////
LRESULT CALLBACK WndProc_MsgBackWnd(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static HICON hIconGreyGoBtn = (HICON)LoadImage(g_hInstance,
MAKEINTRESOURCE(IDI_ICON_GOTO_GREY), IMAGE_ICON, 16, 16, LR_SHARED);
INT iBuf;
TCHAR strBuf[MAX_PATH];
switch (message)
{
case WM_CREATE:
{
//Set g_hwndBK firstly...
g_hwndBK = hwnd;
if(g_option.SpyHotkey.wEnableFlag)
{
g_option.SpyHotkey.wEnableFlag=(WORD)
DoRegisterHotKey(hwnd, ID_HOTKEY_SPYIT, g_option.SpyHotkey.Hotkey, TRUE);
}
return 0;
}
case WM_HOTKEY:
{
if( wParam==ID_HOTKEY_SPYIT )
{
SetTimer(g_TabDlgHdr.CDI[TAB_FINDER].hwnd,
FINDER_TIMER_HOTKEY_SPYIT, g_option.SpyHotkey.wDelay, NULL);
}
break;
}
case WM_SETTEXT:
{
if( lstrcmpi((LPTSTR)lParam,SPY_HOOK_SIGNAL)==0 )
{
g_isHookSignal=TRUE;
SetTimer(hwnd, TIMER_FORWARD_HOOK_SPYWNDINFO, USER_TIMER_MINIMUM, NULL);
}
else if( lstrcmpi((LPTSTR)lParam, SPY_BASE_SIGNAL)==0 )
{
g_isHookSignal=FALSE;
GetModuleFileName(NULL, strBuf, MAX_PATH);
if( lstrcmpi(g_spyinfo_SWIex.szWndModuleName, strBuf)==0 )
{
lstrcpyn(g_spyinfo_SWIex.szWndModuleName,
g_spyinfo_SPI.pe32.szExeFile, MAX_PATH);
}
if( lstrcmpi(g_spyinfo_SWIex.szClassModuleName, strBuf)==0 )
{
lstrcpyn(g_spyinfo_SWIex.szClassModuleName,
g_spyinfo_SPI.pe32.szExeFile, MAX_PATH);
}
SendMessage(hwnd, WM_MY_PRINT_SPYWNDINFO, 0, 0);
if( g_siWinVer>WINVER_WIN9X &&
lstrlen(g_spyinfo_SPI.ProcStrs.szCommandLine) > DEF_CMDLINE_STR_LEN )
{
SetTimer(hwnd, TIMER_FORWARD_SHOWLONGCMDLINE, USER_TIMER_MINIMUM, NULL);
}
}
break;
}
case WM_MY_PRINT_SPYWNDINFO:
{
if(lstrcmpi(g_spyinfo_SWIex.swi.szClassName, WNDCLASS_DESKTOP)==0)
{
wsprintf(strBuf, g_szFormat, g_spyinfo_SWIex.swi.hwnd);
lstrcat(strBuf, TEXT(" (Desktop)"));
SetDlgItemText(g_TabDlgHdr.CDI[0].hwnd, IDC_EDIT_HWND, strBuf);
SetDlgItemText(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_HWND, strBuf);
}
else
{
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_HWND,
g_szFormat, g_spyinfo_SWIex.swi.hwnd);
}
if( g_spyinfo_SWIex.swi.isLargeText ||
lstrcmpi(g_spyinfo_SWIex.swi.szClassName, TEXT("MS_WINNOTE"))==0 )
{
CopyWndTextToWnd(g_spyinfo_SWIex.swi.hwnd,
GetDlgItem(g_TabDlgHdr.CDI[0].hwnd, IDC_EDIT_CAPTION),
MAX_CAPTION_STRBUF_LEN, NULL, g_hInstance, IDS_TIP_OMISSION);
CopyWndTextToWnd(g_spyinfo_SWIex.swi.hwnd,
GetDlgItem(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_CAPTION),
MAX_STRBUF_LEN, NULL, NULL, NULL);
}
else
{
SetDlgItemText(g_TabDlgHdr.CDI[1].hwnd,
IDC_EDIT_CAPTION, g_spyinfo_SWIex.swi.szCaption);
}
SetDlgItemText(g_TabDlgHdr.CDI[1].hwnd,
IDC_EDIT_CLASS, g_spyinfo_SWIex.swi.szClassName);
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_WNDRECT,
TEXT("(%d,%d)-(%d,%d) %dx%d"),
g_spyinfo_SWIex.wi.rcWindow.left,
g_spyinfo_SWIex.wi.rcWindow.top,
g_spyinfo_SWIex.wi.rcWindow.right,
g_spyinfo_SWIex.wi.rcWindow.bottom,
g_spyinfo_SWIex.wi.rcWindow.right - g_spyinfo_SWIex.wi.rcWindow.left,
g_spyinfo_SWIex.wi.rcWindow.bottom - g_spyinfo_SWIex.wi.rcWindow.top);
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_CLIENTRECT,
TEXT("(%d,%d)-(%d,%d) %dx%d"),
g_spyinfo_SWIex.wi.rcClient.left,
g_spyinfo_SWIex.wi.rcClient.top,
g_spyinfo_SWIex.wi.rcClient.right,
g_spyinfo_SWIex.wi.rcClient.bottom,
g_spyinfo_SWIex.wi.rcClient.right - g_spyinfo_SWIex.wi.rcClient.left,
g_spyinfo_SWIex.wi.rcClient.bottom - g_spyinfo_SWIex.wi.rcClient.top);
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_HINSTANCE,
g_szFormat, g_spyinfo_SWIex.hWndInstance);
if(g_spyinfo_SWIex.wndproc)
{
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_WNDPROC,
g_option.IsPrefix? TEXT("0x%08X%s"):TEXT("%08X%s"),
g_spyinfo_SWIex.wndproc,
IsWindowUnicode(g_spyinfo_SWIex.swi.hwnd)? TEXT(" (Unicode)"):TEXT("") );
}
else
{
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_WNDPROC,
TEXT("(n/a)%s"),
IsWindowUnicode(g_spyinfo_SWIex.swi.hwnd)? TEXT(" (Unicode)"):TEXT("") );
}
// GetMenu() can do more than GetDlgCtrlID() now,
// but according to MSDN, we can't assert what GetMenu will do in the futher.
// so...
if(g_spyinfo_SWIex.wi.dwStyle&WS_CHILD)
{
iBuf=GetDlgCtrlID(g_spyinfo_SWIex.swi.hwnd);
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_WNDID,
g_option.IsPrefix? TEXT("0x%08X (%d)"):TEXT("%08X (%d)"),
iBuf, iBuf);
}
else
{
iBuf=(INT)GetMenu(g_spyinfo_SWIex.swi.hwnd);
if(iBuf)
{
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_WNDID,
g_szFormat, iBuf);
}
else
{
SetDlgItemText(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_WNDID, STR_NONE);
}
}
HICON hIconBig, hIconSmall;
if( lstrcmpi(g_spyinfo_SWIex.swi.szClassName, TEXT("Static"))==0 &&
IS_FLAGS_MARKED(g_spyinfo_SWIex.wi.dwStyle, SS_ICON|WS_CHILD) )
{
SendMessageTimeout(g_spyinfo_SWIex.swi.hwnd,
STM_GETIMAGE, IMAGE_ICON, 0,
SMTO_NOTIMEOUTIFNOTHUNG, 100, (PDWORD_PTR)&hIconBig);
hIconSmall=hIconBig;
}
else
{
SendMessageTimeout(g_spyinfo_SWIex.swi.hwnd,
WM_GETICON, ICON_BIG, 0,
SMTO_NOTIMEOUTIFNOTHUNG, 100, (PDWORD_PTR)&hIconBig);
SendMessageTimeout(g_spyinfo_SWIex.swi.hwnd,
WM_GETICON, ICON_SMALL, 0,
SMTO_NOTIMEOUTIFNOTHUNG, 100, (PDWORD_PTR)&hIconSmall);
}
DoSetCtrlIcon(g_TabDlgHdr.CDI[1].hwnd, IDC_ICONBTN_BIG, hIconBig, 32);
DoSetCtrlIcon(g_TabDlgHdr.CDI[1].hwnd, IDC_ICONBTN_SMALL, hIconSmall, 16);
DlgItemPrintf(g_TabDlgHdr.CDI[2].hwnd, IDC_EDIT_WS,
g_szFormat, g_spyinfo_SWIex.wi.dwStyle);
DlgItemPrintf(g_TabDlgHdr.CDI[2].hwnd, IDC_EDIT_WSEX,
g_szFormat, g_spyinfo_SWIex.wi.dwExStyle);
SetDlgItemText(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_CLASS,
g_spyinfo_SWIex.swi.szClassName);
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_CLSATOM,
g_option.IsPrefix? TEXT("0x%04X"):TEXT("%04X"),
LOWORD(g_spyinfo_SWIex.wcex.lpszClassName));
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_CS,
g_szFormat, g_spyinfo_SWIex.wcex.style);
DoSetCtrlIcon(g_TabDlgHdr.CDI[3].hwnd, IDC_SICON_BIG, g_spyinfo_SWIex.wcex.hIcon, 32);
DoSetCtrlIcon(g_TabDlgHdr.CDI[3].hwnd, IDC_SICON_SMALL, g_spyinfo_SWIex.wcex.hIconSm, 16);
DoSetCtrlCursor(g_TabDlgHdr.CDI[3].hwnd, IDC_SICON_CURSOR, g_spyinfo_SWIex.wcex.hCursor, 32);
if( !g_spyinfo_SWIex.wcex.hIcon && !g_spyinfo_SWIex.wcex.hIconSm )
{
SetDlgItemText(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HICON, STR_NONE);
}
else if( g_spyinfo_SWIex.wcex.hIcon && g_spyinfo_SWIex.wcex.hIconSm )
{
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HICON,
g_option.IsPrefix? TEXT("0x%08X%s 0x%08X%s"):TEXT("%08X%s\t%08X%s"),
g_spyinfo_SWIex.wcex.hIcon, TEXT("(Big)"),
g_spyinfo_SWIex.wcex.hIconSm, TEXT("(Small)"));
}
else
{
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HICON,
g_option.IsPrefix? TEXT("0x%08X%s"):TEXT("%08X%s"),
g_spyinfo_SWIex.wcex.hIcon? g_spyinfo_SWIex.wcex.hIcon:g_spyinfo_SWIex.wcex.hIconSm,
g_spyinfo_SWIex.wcex.hIcon? TEXT("(Big)"):TEXT("(Small)"));
}
if(g_spyinfo_SWIex.wcex.hCursor)
{
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HCURSOR,
g_szFormat, g_spyinfo_SWIex.wcex.hCursor);
}
else
{
SetDlgItemText(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HCURSOR,
STR_NONE);
}
if(g_spyinfo_SWIex.wcex.hbrBackground)
{
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HBKBRUSH,
g_szFormat,
g_spyinfo_SWIex.wcex.hbrBackground);
}
else
{
SetDlgItemText(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HBKBRUSH, STR_NONE);
}
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_CLSWNDPROC,
g_szFormat, g_spyinfo_SWIex.wcex.lpfnWndProc);
DlgItemPrintf(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_HCLSMUDLE,
g_szFormat, g_spyinfo_SWIex.wcex.hInstance);
SetDlgItemText(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_MENUNAME,
g_spyinfo_SWIex.szClassMenuName);
SetDlgItemText(g_TabDlgHdr.CDI[3].hwnd, IDC_EDIT_MODULEFILE,
g_spyinfo_SWIex.szClassModuleName);
SetWindowVisible(g_TabDlgHdr.CDI[3].hwnd,IDC_BTN_LOCATE,
IsFileExists(g_spyinfo_SWIex.szClassModuleName));
SetWindowVisible(g_TabDlgHdr.CDI[4].hwnd,IDC_BTN_LOCATE1,
IsFileExists(g_spyinfo_SPI.pe32.szExeFile));
SetWindowVisible(g_TabDlgHdr.CDI[4].hwnd,IDC_BTN_LOCATE2,
IsFileExists(g_spyinfo_SWIex.szWndModuleName));
DlgItemPrintf(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_PID,
g_szFormat,
g_spyinfo_SPI.pe32.th32ProcessID);
DlgItemPrintf(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_TID,
g_szFormat,
g_spyinfo_SPI.dwThreadID);
DlgItemPrintf(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_PRIORITY,
g_option.IsPrefix? TEXT("(%d)-(0x%08X)"):TEXT("(%d)-(%08X)"),
g_spyinfo_SPI.pe32.pcPriClassBase,
g_spyinfo_SPI.pe32.dwFlags);
if(g_spyinfo_SPI.pe32.cntThreads)
{
DlgItemPrintf(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_THREADNUM,
TEXT("%d"), g_spyinfo_SPI.pe32.cntThreads);
}
else
{
SetDlgItemText(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_THREADNUM,
TEXT("(n/a)"));
}
SetDlgItemText(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_CURDIR,
g_spyinfo_SPI.ProcStrs.szCurrentDirectory);
SetDlgItemText(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_CMDLINE,
g_spyinfo_SPI.ProcStrs.szCommandLine);
SetDlgItemText(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_IMAGEFILE,
g_spyinfo_SPI.pe32.szExeFile);
SetDlgItemText(g_TabDlgHdr.CDI[4].hwnd, IDC_EDIT_WNDMODULE,
g_spyinfo_SWIex.szWndModuleName);
DlgItemPrintf(g_TabDlgHdr.CDI[5].hwnd, IDC_CBDL_HWND,
SndMsgOpt_IsDec(g_smHdr.SMO.dwFlagSMH)? TEXT("%u"):g_szFormat,
g_spyinfo_SWIex.swi.hwnd);
g_dwBitFlag|=BOOLEAN_BIT_TABS;
//if not Finder Tabpage, print all spyinfo at once...
if(g_TabDlgHdr.iCurrent)
{
SendMessage(g_TabDlgHdr.CDI[g_TabDlgHdr.iCurrent].hwnd, WM_SHOWWINDOW, TRUE, 0);
}
//////////////////////////////////////////////////////////////////////////
#ifdef _WNDSPY_ALWAYSSHOWMAINDLG
if( IsMainWndHidden(g_hwnd) )
{
ShowWindow(g_hwnd, SW_RESTORE);
}
#endif
//////////////////////////////////////////////////////////////////////////
return 0;
} //WM_MY_PRINT_SPYWNDINFO
case WM_TIMER:
{
switch (wParam)
{
case TIMER_FORWARD_HOOK_SPYWNDINFO:
{
KillTimer(hwnd, wParam);
iBuf=SpyLib_ReadWndInfoEx(&g_spyinfo_SPI, &g_spyinfo_SWIex);
SendMessage(hwnd, WM_MY_PRINT_SPYWNDINFO, (WPARAM)1, (LPARAM)0);
if( iBuf==0 || iBuf>SPYDLL_CMDLINE_STR_LEN )
{
if( g_siWinVer>WINVER_WIN9X )
{
SetTimer(hwnd, TIMER_FORWARD_SHOWLONGCMDLINE, USER_TIMER_MINIMUM, NULL);
}
}
return 0;
}
case TIMER_FORWARD_HOOK_SPYWNDINFO_TIMEOUT:
{
KillTimer(hwnd,wParam);
if(g_isHookSignal==FALSE)
{
SpyTryGetWndInfoEx(g_spyinfo_SWIex.swi.hwnd, &g_spyinfo_SPI, &g_spyinfo_SWIex);
}
return 0;
}
case TIMER_FORWARD_SHOWLONGCMDLINE:
{
KillTimer(hwnd,wParam);
GetProcessInfoDirStrs(g_spyinfo_SPI.pe32.th32ProcessID,
&g_spyinfo_SPI.ProcStrs, GetDlgItem(g_TabDlgHdr.CDI[TAB_PROCESS].hwnd, IDC_EDIT_CMDLINE));
return 0;
}
case IDC_EDIT_HWND:
{
if(g_spyinfo_SWIex.swi.hwnd && !IsWindow(g_spyinfo_SWIex.swi.hwnd) )
{
KillTimer(hwnd,wParam);
DlgItemPrintf(g_TabDlgHdr.CDI[0].hwnd, IDC_EDIT_HWND,
g_option.IsPrefix? TEXT("0x%08X %s"):TEXT("%08X %s"),
g_spyinfo_SWIex.swi.hwnd,TEXT("(Destroyed)"));
DlgItemPrintf(g_TabDlgHdr.CDI[1].hwnd, IDC_EDIT_HWND,
g_option.IsPrefix? TEXT("0x%08X %s"):TEXT("%08X %s"),
g_spyinfo_SWIex.swi.hwnd,TEXT("(Destroyed)"));
g_spyinfo_SWIex.IsSelf=0;
g_dwBitFlag|=BOOLEAN_BIT_TAB_MANI;
if(g_TabDlgHdr.iCurrent==5)
{
SendMessage(g_TabDlgHdr.CDI[5].hwnd,WM_SHOWWINDOW, TRUE, 0);
}
}
return 0;
}
case IDC_EDIT_OWNER:
case IDC_EDIT_PARENT:
case IDC_EDIT_CHILD:
case IDC_EDIT_NEXT:
case IDC_EDIT_PRE:
{
if( g_spyinfo_SWIex.swi.hwndArray[wParam-IDC_EDIT_OWNER] &&
!IsWindow(g_spyinfo_SWIex.swi.hwndArray[wParam-IDC_EDIT_OWNER]) )
{
KillTimer(hwnd,wParam);
DlgItemPrintf(g_TabDlgHdr.CDI[0].hwnd, wParam,
g_option.IsPrefix? TEXT("0x%08X %s"):TEXT("%08X %s"),
g_spyinfo_SWIex.swi.hwndArray[wParam-IDC_EDIT_OWNER],
TEXT("(Destroyed)"));
SendDlgItemMessage(g_TabDlgHdr.CDI[0].hwnd, wParam + IDC_BTN_OWNER-IDC_EDIT_OWNER,
STM_SETIMAGE, IMAGE_ICON, (LPARAM)hIconGreyGoBtn);
EnableWindow(GetDlgItem(g_TabDlgHdr.CDI[0].hwnd,
wParam + IDC_BTN_OWNER-IDC_EDIT_OWNER), FALSE);
}
return 0;
}
case TIMER_SHOW_LOADING:
{
KillTimer(hwnd,wParam);
DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_LOADING), g_hwnd, DlgProc_Loading);
return 0;
}
}// end switch(wParam) @ WM_TIMER ...
return 0;
} //WM_TIMER end...
case WM_MY_NOTIFYICON:
{
return OnMainTrayNotify(hwnd, lParam);
}
case WM_COMMAND:
{
switch( LOWORD(wParam) )
{
case ID_CMD_SPYTARGET:
{
if( IsWindow((HWND)lParam) )
{
g_spyinfo_SWIex.swi.hwnd=(HWND)lParam;
SetTimer(g_TabDlgHdr.CDI[TAB_FINDER].hwnd,
FINDER_TIMER_GETSPYINFOEX, USER_TIMER_MINIMUM, NULL);
DoPlayEventSound(g_option.IsPlaySound);
BringWindowToForeground(g_hwnd);
}
else
{
MessageBeep(0);
}
break;
}
}
return 0;
}
case WM_GETMINMAXINFO:
{
((LPMINMAXINFO)lParam)->ptMaxPosition.x = -1;
((LPMINMAXINFO)lParam)->ptMaxPosition.y = -1;
((LPMINMAXINFO)lParam)->ptMaxSize.x = 0;
((LPMINMAXINFO)lParam)->ptMaxSize.y = 0;
return 0;
}
//never let this window show...
case WM_SETFOCUS:
{
ShowWindow(hwnd, SW_HIDE);
break;
}
#ifdef APP_FUNC_ONSETTOOLTIPCOLOR
case WM_SYSCOLORCHANGE:
{
PostMessage(hwnd,WM_MY_COLORSET,0,0);
break;
}
case WM_MY_COLORSET:
{
OnSetTooltipColor();
return 0;
}
#endif //APP_FUNC_ONSETTOOLTIPCOLOR
case WM_DESTROY:
{
NotifyIconMessage(hwnd, ID_TRAYICON_MAIN, NIM_DELETE,
WM_MY_NOTIFYICON, NULL, NULL, NULL, NULL);
break;
}
} //switch(message) end...
return DefWindowProc(hwnd, message, wParam, lParam);
} //WndProc_MsgBackWnd() end...
//////////////////////////////////////////////////////////////////////////
LRESULT OnMainTrayNotify(HWND hwnd, LPARAM lParam)
{
TCHAR strBuf[MAX_PATH];
if( IsWindow(g_hwnd_TaskModal) &&
(lParam == WM_RBUTTONUP ||
lParam == WM_LBUTTONDBLCLK) )
{
MessageBeep(0);
BringWindowToForeground(g_hwnd_TaskModal);
return 1;
}
else if (lParam == WM_RBUTTONUP)
{
HMENU hMenu;
hMenu=CreatePopupMenu();
if( IsMainWndHidden(g_hwnd) )
{
if(!IsWindowVisible(g_hwnd))
{
LoadString(g_hInstance, IDS_SHOW_MAINDLG, strBuf, MAX_PATH);
}
else
{
GetMenuString(GetSystemMenu(g_hwnd,FALSE), SC_RESTORE,
strBuf, MAX_PATH, MF_BYCOMMAND);
}
AppendMenu(hMenu, MF_STRING, SC_RESTORE, strBuf);
AppendMenu(hMenu, MF_SEPARATOR, 0, NULL);
SetMenuDefaultItem(hMenu, SC_RESTORE, FALSE);
}
HMENU hSubMenu;
hSubMenu=LoadMenu(g_hInstance, MAKEINTRESOURCE(IDR_MAIN_MENU));
GetMenuString(hSubMenu, 1, strBuf, MAX_PATH, MF_BYPOSITION);
AppendMenu(hMenu, MF_POPUP, (UINT)GetSubMenu(hSubMenu,1), strBuf);
GetMenuString(hSubMenu, 2, strBuf, MAX_PATH, MF_BYPOSITION);
AppendMenu(hMenu, MF_POPUP, (UINT)GetSubMenu(hSubMenu,2), strBuf);
AppendMenu(hMenu, MF_SEPARATOR, 0, NULL) ;
GetMenuString(hSubMenu, ID_CMD_EXIT, strBuf, MAX_PATH, MF_BYCOMMAND);
AppendMenu(hMenu, MF_STRING, ID_CMD_EXIT, strBuf);
OnSetMenuState(hMenu);
POINT point;
GetCursorPos(&point);
SetForegroundWindow(hwnd);
lParam=TrackPopupMenu(hMenu, TPM_RETURNCMD|TPM_RIGHTBUTTON, point.x, point.y, 0, hwnd, NULL);
PostMessage(hwnd, WM_NULL, 0, 0);
DestroyMenu(hSubMenu);
DestroyMenu(hMenu);
if(lParam)
{
PostMessage(g_hwnd, WM_COMMAND, MAKELPARAM(lParam,0), 0);
}
}
else if (lParam == WM_LBUTTONDBLCLK)
{
// TODO: bring tool-windows to top...
BringWindowToForeground(g_hwnd);
if( IsWindow(g_hwndTC) )
{
SetForegroundWindow(g_hwndTC);
}
}
return 0;
}
//////////////////////////////////////////////////////////////////////////
BOOL CALLBACK DlgProc_Loading(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
#define PROGRESS_DEF_RANGE 1000
switch (message)
{
case WM_INITDIALOG:
{
g_hwnd_TaskModal=hwnd;
g_hTarget=(HANDLE)GetDlgItem(hwnd, IDC_PROGRESS);
MoveWndToWndCenter(hwnd, g_hwnd);
return TRUE;
}
case WM_MY_LOADING_STATE:
{
if(lParam==TRUE)
{
SendMessage((HWND)g_hTarget, PBM_SETRANGE32, 0, PROGRESS_DEF_RANGE);
SendMessage((HWND)g_hTarget, PBM_SETPOS, 0, 0);
SetTimer(hwnd,
TIMER_PROGRESS_EFFECT, USER_TIMER_MINIMUM, NULL);
}
else
{
SendMessage((HWND)g_hTarget, PBM_SETPOS,
(WPARAM)SendMessage((HWND)g_hTarget, PBM_GETRANGE, FALSE, NULL), 0);
EnableWindow(hwnd, FALSE);
Sleep(100);
EndDialog(hwnd, 0);
}
return TRUE;
}
case WM_TIMER:
{
// terrible bogus progress bar effect codes
// but still...
// just put them here...
INT iPos;
iPos = SendMessage((HWND)g_hTarget, PBM_GETPOS, 0, 0);
if( iPos >= PROGRESS_DEF_RANGE-1 )
{
KillTimer(hwnd, TIMER_PROGRESS_EFFECT);
}
else if( iPos >= PROGRESS_DEF_RANGE-400 && (iPos%50==0) )
{
SetTimer(hwnd, TIMER_PROGRESS_EFFECT, iPos/5, NULL);
}
else if( iPos > PROGRESS_DEF_RANGE-768 &&
iPos < PROGRESS_DEF_RANGE-384 )
{
if( 0 == (iPos%50) )
{
SetTimer(hwnd, TIMER_PROGRESS_EFFECT,
max(USER_TIMER_MINIMUM, iPos%32), NULL);
}
}
SendMessage((HWND)g_hTarget, PBM_SETPOS, min(PROGRESS_DEF_RANGE, iPos+1), 0);
return TRUE;
}
case WM_LBUTTONDOWN:
{
PostMessage(hwnd, WM_NCLBUTTONDOWN, (WPARAM)HTCAPTION, 0);
break;
}
case WM_DESTROY:
{
g_hTarget=NULL;
g_hwnd_TaskModal=NULL;
break;
}
}//switch message...
return FALSE;
} //DlgProc_Loading()
////////////////////////////////////////////////////////////////////////// | 28.593272 | 96 | 0.671925 | Skight |
299d2fa28bb07ff75bdc1f9b25d27f81564859c9 | 7,563 | cpp | C++ | modules/qtwidgets/src/qtwidgetssettings.cpp | tirpidz/inviwo | a0ef149fac0e566ef3f0298112e2031d344f2f97 | [
"BSD-2-Clause"
] | null | null | null | modules/qtwidgets/src/qtwidgetssettings.cpp | tirpidz/inviwo | a0ef149fac0e566ef3f0298112e2031d344f2f97 | [
"BSD-2-Clause"
] | null | null | null | modules/qtwidgets/src/qtwidgetssettings.cpp | tirpidz/inviwo | a0ef149fac0e566ef3f0298112e2031d344f2f97 | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2016-2020 Inviwo Foundation
* All rights reserved.
*
* 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 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.
*
*********************************************************************************/
#include <modules/qtwidgets/qtwidgetssettings.h>
#include <modules/qtwidgets/inviwoqtutils.h>
#include <warn/push>
#include <warn/ignore/all>
#include <QFontDatabase>
#include <warn/pop>
namespace inviwo {
namespace {
std::vector<std::string> getMonoSpaceFonts() {
std::vector<std::string> fonts;
QFontDatabase fontdb;
for (auto& font : fontdb.families()) {
if (fontdb.isFixedPitch(font)) {
fonts.push_back(utilqt::fromQString(font));
}
}
return fonts;
}
size_t getDefaultFontIndex() {
const auto fonts = getMonoSpaceFonts();
const QFont fixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont);
auto it = std::find(fonts.begin(), fonts.end(), utilqt::fromQString(fixedFont.family()));
if (it != fonts.end()) {
return it - fonts.begin();
} else {
return 0;
}
}
#include <warn/push>
#include <warn/ignore/unused-variable>
const ivec4 ghost_white(248, 248, 240, 255);
const ivec4 light_ghost_white(248, 248, 242, 255);
const ivec4 light_gray(204, 204, 204, 255);
const ivec4 gray(136, 136, 136, 255);
const ivec4 brown_gray(73, 72, 62, 255);
const ivec4 dark_gray(43, 44, 39, 255);
const ivec4 yellow(230, 219, 116, 255);
const ivec4 blue(102, 217, 239, 255);
const ivec4 pink(249, 38, 114, 255);
const ivec4 purple(174, 129, 255, 255);
const ivec4 brown(117, 113, 94, 255);
const ivec4 orange(253, 151, 31, 255);
const ivec4 light_orange(255, 213, 105, 255);
const ivec4 green(166, 226, 46, 255);
const ivec4 sea_green(166, 228, 48, 255);
#include <warn/pop>
} // namespace
QtWidgetsSettings::QtWidgetsSettings()
: Settings("Syntax Highlighting")
, font_("font", "Font", getMonoSpaceFonts(), getDefaultFontIndex())
, fontSize_("fontSize", "Size", 11, 1, 72)
, glslSyntax_("glslSyntax", "GLSL Syntax Highlighting")
, glslTextColor_("glslTextColor", "Text", light_ghost_white, ivec4(0), ivec4(255), ivec4(1),
InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslBackgroundColor_("glslBackgroundColor", "Background", dark_gray, ivec4(0), ivec4(255),
ivec4(1), InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslBackgroundHighLightColor_("glslBackgroundHighLightColor", "High Light",
ivec4{33, 34, 29, 255}, ivec4(0), ivec4(255), ivec4(1),
InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslQualifierColor_("glslQualifierColor", "Qualifiers", pink, ivec4(0), ivec4(255), ivec4(1),
InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslBuiltinsColor_("glslBultinsColor", "Builtins", orange, ivec4(0), ivec4(255), ivec4(1),
InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslTypeColor_("glslTypeColor", "Types", blue, ivec4(0), ivec4(255), ivec4(1),
InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslGlslBuiltinsColor_("glslGlslBultinsColor", "GLSL Builtins", blue, ivec4(0), ivec4(255),
ivec4(1), InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslCommentColor_("glslCommentColor", "Comments", gray, ivec4(0), ivec4(255), ivec4(1),
InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslPreProcessorColor_("glslPreProcessorColor", "Pre Processor", pink, ivec4(0), ivec4(255),
ivec4(1), InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslConstantsColor_("glslConstantsColor", "Constants", purple, ivec4(0), ivec4(255), ivec4(1),
InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, glslVoidMainColor_("glslVoidMainColor", "void main", sea_green, ivec4(0), ivec4(255),
ivec4(1), InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, pythonSyntax_("pythonSyntax", "Python Syntax Highlighting")
, pyBGColor_("pyBGColor", "Background", ivec4(0xb0, 0xb0, 0xbc, 255), ivec4(0), ivec4(255),
ivec4(1), InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, pyBGHighLightColor_("pyBGHighLightColor", "High Light", ivec4(0xd0, 0xd0, 0xdc, 255),
ivec4(0), ivec4(255), ivec4(1), InvalidationLevel::InvalidOutput,
PropertySemantics::Color)
, pyTextColor_("pyTextColor", "Text", ivec4(0x11, 0x11, 0x11, 255), ivec4(0), ivec4(255),
ivec4(1), InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, pyTypeColor_("pyTypeColor", "Types", ivec4(0x14, 0x3C, 0xA6, 255), ivec4(0), ivec4(255),
ivec4(1), InvalidationLevel::InvalidOutput, PropertySemantics::Color)
, pyCommentsColor_("pyCommentsColor", "Comments", ivec4(0x00, 0x66, 0x00, 255), ivec4(0),
ivec4(255), ivec4(1), InvalidationLevel::InvalidOutput,
PropertySemantics::Color) {
addProperty(font_);
addProperty(fontSize_);
addProperty(glslSyntax_);
glslSyntax_.addProperty(glslBackgroundColor_);
glslSyntax_.addProperty(glslBackgroundHighLightColor_);
glslSyntax_.addProperty(glslTextColor_);
glslSyntax_.addProperty(glslCommentColor_);
glslSyntax_.addProperty(glslTypeColor_);
glslSyntax_.addProperty(glslQualifierColor_);
glslSyntax_.addProperty(glslBuiltinsColor_);
glslSyntax_.addProperty(glslGlslBuiltinsColor_);
glslSyntax_.addProperty(glslPreProcessorColor_);
glslSyntax_.addProperty(glslConstantsColor_);
glslSyntax_.addProperty(glslVoidMainColor_);
addProperty(pythonSyntax_);
pythonSyntax_.addProperty(pyBGColor_);
pythonSyntax_.addProperty(pyBGHighLightColor_);
pythonSyntax_.addProperty(pyTextColor_);
pythonSyntax_.addProperty(pyCommentsColor_);
pythonSyntax_.addProperty(pyTypeColor_);
load();
}
} // namespace inviwo
| 48.171975 | 100 | 0.681211 | tirpidz |
299da166914227846b3a70efe07e728dce8a61bc | 2,651 | cpp | C++ | QUEUES/Stack using two queues - EASY.cpp | Srutiverma123/Hacktoberfest-2021 | 9e2e30d7629cac8e3f2d03d3212c5f5e841e5a4a | [
"MIT"
] | 1 | 2021-10-02T05:40:26.000Z | 2021-10-02T05:40:26.000Z | QUEUES/Stack using two queues - EASY.cpp | Srutiverma123/Hacktoberfest-2021 | 9e2e30d7629cac8e3f2d03d3212c5f5e841e5a4a | [
"MIT"
] | null | null | null | QUEUES/Stack using two queues - EASY.cpp | Srutiverma123/Hacktoberfest-2021 | 9e2e30d7629cac8e3f2d03d3212c5f5e841e5a4a | [
"MIT"
] | null | null | null | /*
Stack using two queues
Easy Accuracy: 40.49% Submissions: 71675 Points: 2
Implement a Stack using two queues q1 and q2.
Example 1:
Input:
push(2)
push(3)
pop()
push(4)
pop()
Output: 3 4
Explanation:
push(2) the stack will be {2}
push(3) the stack will be {2 3}
pop() poped element will be 3 the
stack will be {2}
push(4) the stack will be {2 4}
pop() poped element will be 4
Example 2:
Input:
push(2)
pop()
pop()
push(3)
Output: 2 -1
Your Task:
Since this is a function problem, you don't need to take inputs. You are required to complete the two methods push() which takes an integer 'x' as
input denoting the element to be pushed into the stack and pop() which returns the integer poped out from the stack(-1 if the stack is empty).
Expected Time Complexity: O(1) for push() and O(N) for pop() (or vice-versa).
Expected Auxiliary Space: O(1) for both push() and pop().
Constraints:
1 <= Number of queries <= 100
1 <= values of the stack <= 100
*/
#include<bits/stdc++.h>
using namespace std;
class QueueStack{
private:
queue<int> q1;
queue<int> q2;
public:
void push(int);
int pop();
};
int main()
{
int T;
cin>>T;
while(T--)
{
QueueStack *qs = new QueueStack();
int Q;
cin>>Q;
while(Q--){
int QueryType=0;
cin>>QueryType;
if(QueryType==1)
{
int a;
cin>>a;
qs->push(a);
}else if(QueryType==2){
cout<<qs->pop()<<" ";
}
}
cout<<endl;
}
}
// } Driver Code Ends
/* The structure of the class is
class QueueStack{
private:
queue<int> q1;
queue<int> q2;
public:
void push(int);
int pop();
};
*/
/* The method push to push element into the stack */
void QueueStack :: push(int x)
{
// Your Code
q1.push(x);
}
/*The method pop which return the element poped out of the stack*/
int QueueStack :: pop()
{
// Your Code
if(q1.empty()){
return -1;
}
else{
// Transfer from q1 to q2 till only 1 element left
while(q1.size()!=1){
int ele=q1.front();
q1.pop();
q2.push(ele);
}
// Last element left is to be popped
int elementDeleted=q1.front();
q1.pop();
// Swap q1 and q2
swap(q1,q2);
return elementDeleted;
}
}
| 20.550388 | 148 | 0.516409 | Srutiverma123 |
299dfc2582c7385750daa61987b30351807b0c75 | 1,514 | hpp | C++ | include/tnt/linear/impl/discrete_cosine_transform_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | null | null | null | include/tnt/linear/impl/discrete_cosine_transform_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | 1 | 2018-06-09T04:40:01.000Z | 2018-06-09T04:40:01.000Z | include/tnt/linear/impl/discrete_cosine_transform_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | null | null | null | #ifndef TNT_LINEAR_DISCRETE_COSINE_TRANSFORM_IMPL_HPP
#define TNT_LINEAR_DISCRETE_COSINE_TRANSFORM_IMPL_HPP
#include <tnt/linear/discrete_cosine_transform.hpp>
#include <tnt/utils/testing.hpp>
#include <tnt/utils/simd.hpp>
namespace tnt
{
namespace detail
{
constexpr static int dct_forward_coeffs[64] = {
1, 1, 1, 1, 1, 1, 1, 1,
15, 101, 35, 1, -1, -35, -101, -15,
3, 1, -1, -3, -3, -1, 1, 3,
1, 3, -11, -1, 1, 11, -3, -1,
1, -1, -1, 1, 1, -1, -1, 1,
1, -23, -1, 1, -1, 1, 23, -1,
1, -1, 1, -1, -1, 1, -1, 1,
1, -21, 13, -1, 1, -13, 21, -1
};
constexpr static int dct_forward_shifts[64] = {
0, 0, 0, 0, 0, 0, 0, 0,
4, 7, 6, 2, 2, 6, 7, 4,
2, 1, 1, 2, 2, 1, 1, 2,
1, 5, 4, 1, 1, 4, 5, 1,
1, 1, 1, 1, 1, 1, 1, 1,
0, 4, 3, 0, 0, 3, 4, 0,
1, 0, 0, 1, 1, 0, 0, 1,
2, 5, 4, 0, 0, 4, 5, 2
};
template <typename DataType>
struct OptimizedDCT<DataType, void>
{
using VecType = typename SIMDType<DataType>::VecType;
static Tensor<DataType> eval(const Tensor<DataType>& tensor)
{
}
};
} // namespace detail
} // namespace tnt
#endif // TNT_LINEAR_DISCRETE_COSINE_TRANSFORM_IMPL_HPP
| 28.566038 | 64 | 0.437913 | JordanCheney |
299e10e3b23d88354c036e099fdf25bff771e74e | 813 | cpp | C++ | test2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | test2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | test2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
typedef unsigned long long ll;
typedef pair<int, int> ii;
const int N = 1010;
int n, g[N][N];
bool cows[N][N];
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int main() {
cin >> n;
int ans = 0;
for (int i = 0; i < n; i++) {
int x, y; cin >> x >> y;
cows[x][y] = true;
for (int j = 0; j < 4; j++) {
int nx = x + dx[j];
int ny = y + dy[j];
if (nx >= 0 && nx <= 1000 && ny >= 0 && ny <= 1000) {
g[nx][ny]++;
if (cows[nx][ny] && g[nx][ny] == 3) ans++;
if (cows[nx][ny] && g[nx][ny] == 4) ans--;
}
}
if (g[x][y] == 3) ans++;
cout << ans << endl;
}
} | 22.583333 | 65 | 0.403444 | birdhumming |
299e9ec05d1220124beb61c68950dfb8b2e914c0 | 881 | cpp | C++ | src/nexus/dispatcher/batch_size_estimator.cpp | dengwxn/nexuslb | 4b19116f09fad414bd40538de0105eb728fc4b51 | [
"BSD-3-Clause"
] | 6 | 2021-07-01T23:03:28.000Z | 2022-02-07T03:24:42.000Z | src/nexus/dispatcher/batch_size_estimator.cpp | dengwxn/nexuslb | 4b19116f09fad414bd40538de0105eb728fc4b51 | [
"BSD-3-Clause"
] | null | null | null | src/nexus/dispatcher/batch_size_estimator.cpp | dengwxn/nexuslb | 4b19116f09fad414bd40538de0105eb728fc4b51 | [
"BSD-3-Clause"
] | 2 | 2021-04-06T11:09:35.000Z | 2021-04-13T06:59:34.000Z | #include "nexus/dispatcher/batch_size_estimator.h"
namespace nexus {
namespace dispatcher {
BatchSizeEstimator::BatchSizeEstimator(double rps_multiplier,
double std_multiplier)
: xrps_(rps_multiplier), xstd_(std_multiplier) {}
uint32_t BatchSizeEstimator::Estimate(const ModelProfile& profile,
double time_budget, double rps,
double std) const {
// (0) l(b) = alpha * b + beta
// (1) n * (b / l(b)) == xrps * r
// (2) l(b) * (1 + 1 / n) < SLO
double r = rps + std * xstd_;
for (uint32_t bs = 2;; ++bs) {
double l = profile.GetForwardLatency(bs) * 1e-6;
double t = bs / l;
double n = xrps_ * r / t;
if (l * (1 + 1 / n) > time_budget) {
return bs - 1;
}
}
return 1;
}
} // namespace dispatcher
} // namespace nexus
| 29.366667 | 69 | 0.544835 | dengwxn |
299ff19dae424ffb3e837720712ea9bb0bdf9d47 | 66,157 | cpp | C++ | src/libawkward/array/RecordArray.cpp | HenryDayHall/awkward-1.0 | 4a860e775502f9adb953524c35c5a2de8f7a3181 | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/array/RecordArray.cpp | HenryDayHall/awkward-1.0 | 4a860e775502f9adb953524c35c5a2de8f7a3181 | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/array/RecordArray.cpp | HenryDayHall/awkward-1.0 | 4a860e775502f9adb953524c35c5a2de8f7a3181 | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS("src/libawkward/array/RecordArray.cpp", line)
#define FILENAME_C(line) FILENAME_FOR_EXCEPTIONS_C("src/libawkward/array/RecordArray.cpp", line)
#include <sstream>
#include <algorithm>
#include "awkward/kernels.h"
#include "awkward/kernel-utils.h"
#include "awkward/type/RecordType.h"
#include "awkward/Reducer.h"
#include "awkward/array/Record.h"
#include "awkward/io/json.h"
#include "awkward/array/EmptyArray.h"
#include "awkward/array/IndexedArray.h"
#include "awkward/array/UnionArray.h"
#include "awkward/array/ByteMaskedArray.h"
#include "awkward/array/BitMaskedArray.h"
#include "awkward/array/UnmaskedArray.h"
#include "awkward/array/NumpyArray.h"
#include "awkward/array/VirtualArray.h"
#include "awkward/array/RecordArray.h"
namespace awkward {
////////// RecordForm
RecordForm::RecordForm(bool has_identities,
const util::Parameters& parameters,
const FormKey& form_key,
const util::RecordLookupPtr& recordlookup,
const std::vector<FormPtr>& contents)
: Form(has_identities, parameters, form_key)
, recordlookup_(recordlookup)
, contents_(contents) {
if (recordlookup.get() != nullptr &&
recordlookup.get()->size() != contents.size()) {
throw std::invalid_argument(
std::string("recordlookup (if provided) and contents must have the same length")
+ FILENAME(__LINE__));
}
}
const util::RecordLookupPtr
RecordForm::recordlookup() const {
return recordlookup_;
}
const std::vector<FormPtr>
RecordForm::contents() const {
return contents_;
}
bool
RecordForm::istuple() const {
return recordlookup_.get() == nullptr;
}
const FormPtr
RecordForm::content(int64_t fieldindex) const {
if (fieldindex >= numfields()) {
throw std::invalid_argument(
std::string("fieldindex ") + std::to_string(fieldindex)
+ std::string(" for record with only ") + std::to_string(numfields())
+ std::string(" fields") + FILENAME(__LINE__));
}
return contents_[(size_t)fieldindex];
}
const FormPtr
RecordForm::content(const std::string& key) const {
return contents_[(size_t)fieldindex(key)];
}
const std::vector<std::pair<std::string, FormPtr>>
RecordForm::items() const {
std::vector<std::pair<std::string, FormPtr>> out;
if (recordlookup_.get() != nullptr) {
size_t cols = contents_.size();
for (size_t j = 0; j < cols; j++) {
out.push_back(
std::pair<std::string, FormPtr>(recordlookup_.get()->at(j),
contents_[j]));
}
}
else {
size_t cols = contents_.size();
for (size_t j = 0; j < cols; j++) {
out.push_back(
std::pair<std::string, FormPtr>(std::to_string(j),
contents_[j]));
}
}
return out;
}
const TypePtr
RecordForm::type(const util::TypeStrs& typestrs) const {
std::vector<TypePtr> types;
for (auto item : contents_) {
types.push_back(item.get()->type(typestrs));
}
return std::make_shared<RecordType>(
parameters_,
util::gettypestr(parameters_, typestrs),
types,
recordlookup_);
}
void
RecordForm::tojson_part(ToJson& builder, bool verbose) const {
builder.beginrecord();
builder.field("class");
builder.string("RecordArray");
builder.field("contents");
if (recordlookup_.get() == nullptr) {
builder.beginlist();
for (auto x : contents_) {
x.get()->tojson_part(builder, verbose);
}
builder.endlist();
}
else {
builder.beginrecord();
for (size_t i = 0; i < recordlookup_.get()->size(); i++) {
builder.field(recordlookup_.get()->at(i));
contents_[i].get()->tojson_part(builder, verbose);
}
builder.endrecord();
}
identities_tojson(builder, verbose);
parameters_tojson(builder, verbose);
form_key_tojson(builder, verbose);
builder.endrecord();
}
const FormPtr
RecordForm::shallow_copy() const {
return std::make_shared<RecordForm>(has_identities_,
parameters_,
form_key_,
recordlookup_,
contents_);
}
const FormPtr
RecordForm::with_form_key(const FormKey& form_key) const {
return std::make_shared<RecordForm>(has_identities_,
parameters_,
form_key,
recordlookup_,
contents_);
}
const std::string
RecordForm::purelist_parameter(const std::string& key) const {
return parameter(key);
}
bool
RecordForm::purelist_isregular() const {
return true;
}
int64_t
RecordForm::purelist_depth() const {
return 1;
}
bool
RecordForm::dimension_optiontype() const {
return false;
}
const std::pair<int64_t, int64_t>
RecordForm::minmax_depth() const {
if (contents_.empty()) {
return std::pair<int64_t, int64_t>(0, 0);
}
int64_t min = kMaxInt64;
int64_t max = 0;
for (auto content : contents_) {
std::pair<int64_t, int64_t> minmax = content.get()->minmax_depth();
if (minmax.first < min) {
min = minmax.first;
}
if (minmax.second > max) {
max = minmax.second;
}
}
return std::pair<int64_t, int64_t>(min, max);
}
const std::pair<bool, int64_t>
RecordForm::branch_depth() const {
if (contents_.empty()) {
return std::pair<bool, int64_t>(false, 1);
}
else {
bool anybranch = false;
int64_t mindepth = -1;
for (auto content : contents_) {
std::pair<bool, int64_t> content_depth = content.get()->branch_depth();
if (mindepth == -1) {
mindepth = content_depth.second;
}
if (content_depth.first || mindepth != content_depth.second) {
anybranch = true;
}
if (mindepth > content_depth.second) {
mindepth = content_depth.second;
}
}
return std::pair<bool, int64_t>(anybranch, mindepth);
}
}
int64_t
RecordForm::numfields() const {
return (int64_t)contents_.size();
}
int64_t
RecordForm::fieldindex(const std::string& key) const {
return util::fieldindex(recordlookup_, key, numfields());
}
const std::string
RecordForm::key(int64_t fieldindex) const {
return util::key(recordlookup_, fieldindex, numfields());
}
bool
RecordForm::haskey(const std::string& key) const {
return util::haskey(recordlookup_, key, numfields());
}
const std::vector<std::string>
RecordForm::keys() const {
return util::keys(recordlookup_, numfields());
}
bool
RecordForm::equal(const FormPtr& other,
bool check_identities,
bool check_parameters,
bool check_form_key,
bool compatibility_check) const {
if (compatibility_check) {
if (VirtualForm* raw = dynamic_cast<VirtualForm*>(other.get())) {
if (raw->form().get() != nullptr) {
return equal(raw->form(),
check_identities,
check_parameters,
check_form_key,
compatibility_check);
}
}
}
if (check_identities &&
has_identities_ != other.get()->has_identities()) {
return false;
}
if (check_parameters &&
!util::parameters_equal(parameters_, other.get()->parameters(), false)) {
return false;
}
if (check_form_key &&
!form_key_equals(other.get()->form_key())) {
return false;
}
if (RecordForm* t = dynamic_cast<RecordForm*>(other.get())) {
if (recordlookup_.get() == nullptr &&
t->recordlookup().get() != nullptr) {
return false;
}
else if (recordlookup_.get() != nullptr &&
t->recordlookup().get() == nullptr) {
return false;
}
else if (recordlookup_.get() != nullptr &&
t->recordlookup().get() != nullptr) {
util::RecordLookupPtr one = recordlookup_;
util::RecordLookupPtr two = t->recordlookup();
if (one.get()->size() != two.get()->size()) {
return false;
}
for (int64_t i = 0; i < (int64_t)one.get()->size(); i++) {
int64_t j = 0;
for (; j < (int64_t)one.get()->size(); j++) {
if (one.get()->at((uint64_t)i) == two.get()->at((uint64_t)j)) {
break;
}
}
if (j == (int64_t)one.get()->size()) {
return false;
}
if (!content(i).get()->equal(t->content(j),
check_identities,
check_parameters,
check_form_key,
compatibility_check)) {
return false;
}
}
return true;
}
else {
if (numfields() != t->numfields()) {
return false;
}
for (int64_t i = 0; i < numfields(); i++) {
if (!content(i).get()->equal(t->content(i),
check_identities,
check_parameters,
check_form_key,
compatibility_check)) {
return false;
}
}
return true;
}
}
else {
return false;
}
}
const FormPtr
RecordForm::getitem_field(const std::string& key) const {
return content(key);
}
const FormPtr
RecordForm::getitem_fields(const std::vector<std::string>& keys) const {
util::RecordLookupPtr recordlookup(nullptr);
if (recordlookup_.get() != nullptr) {
recordlookup = std::make_shared<util::RecordLookup>();
}
std::vector<FormPtr> contents;
for (auto key : keys) {
if (recordlookup_.get() != nullptr) {
recordlookup.get()->push_back(key);
}
contents.push_back(contents_[(size_t)fieldindex(key)]);
}
return std::make_shared<RecordForm>(has_identities_,
util::Parameters(),
FormKey(nullptr),
recordlookup,
contents);
}
////////// RecordArray
RecordArray::RecordArray(const IdentitiesPtr& identities,
const util::Parameters& parameters,
const ContentPtrVec& contents,
const util::RecordLookupPtr& recordlookup,
int64_t length,
const std::vector<ArrayCachePtr>& caches)
: Content(identities, parameters)
, contents_(contents)
, recordlookup_(recordlookup)
, length_(length)
, caches_(caches) {
if (recordlookup_.get() != nullptr &&
recordlookup_.get()->size() != contents_.size()) {
throw std::invalid_argument(
std::string("recordlookup and contents must have the same number of fields")
+ FILENAME(__LINE__));
}
}
const std::vector<ArrayCachePtr>
fillcache(const ContentPtrVec& contents) {
std::vector<ArrayCachePtr> out;
for (auto content : contents) {
content.get()->caches(out);
}
return out;
}
RecordArray::RecordArray(const IdentitiesPtr& identities,
const util::Parameters& parameters,
const ContentPtrVec& contents,
const util::RecordLookupPtr& recordlookup,
int64_t length)
: Content(identities, parameters)
, contents_(contents)
, recordlookup_(recordlookup)
, length_(length)
, caches_(fillcache(contents)) { }
int64_t
minlength(const ContentPtrVec& contents) {
if (contents.empty()) {
return 0;
}
else {
int64_t out = -1;
for (auto x : contents) {
int64_t len = x.get()->length();
if (out < 0 || out > len) {
out = len;
}
}
return out;
}
}
RecordArray::RecordArray(const IdentitiesPtr& identities,
const util::Parameters& parameters,
const ContentPtrVec& contents,
const util::RecordLookupPtr& recordlookup)
: RecordArray(identities,
parameters,
contents,
recordlookup,
minlength(contents)) { }
const ContentPtrVec
RecordArray::contents() const {
return contents_;
}
const util::RecordLookupPtr
RecordArray::recordlookup() const {
return recordlookup_;
}
bool
RecordArray::istuple() const {
return recordlookup_.get() == nullptr;
}
const ContentPtr
RecordArray::setitem_field(int64_t where, const ContentPtr& what) const {
if (where < 0) {
throw std::invalid_argument(
std::string("where must be non-negative") + FILENAME(__LINE__));
}
if (what.get()->length() != length()) {
throw std::invalid_argument(
std::string("array of length ") + std::to_string(what.get()->length())
+ std::string(" cannot be assigned to record array of length ")
+ std::to_string(length()) + FILENAME(__LINE__));
}
ContentPtrVec contents;
for (size_t i = 0; i < contents_.size(); i++) {
if (where == (int64_t)i) {
contents.push_back(what);
}
contents.push_back(contents_[i]);
}
if (where >= numfields()) {
contents.push_back(what);
}
util::RecordLookupPtr recordlookup(nullptr);
if (recordlookup_.get() != nullptr) {
recordlookup = std::make_shared<util::RecordLookup>();
for (size_t i = 0; i < contents_.size(); i++) {
if (where == (int64_t)i) {
recordlookup.get()->push_back(std::to_string(where));
}
recordlookup.get()->push_back(recordlookup_.get()->at(i));
}
if (where >= numfields()) {
recordlookup.get()->push_back(std::to_string(where));
}
}
std::vector<ArrayCachePtr> caches(caches_);
what.get()->caches(caches);
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup,
minlength(contents),
caches);
}
const ContentPtr
RecordArray::setitem_field(const std::string& where,
const ContentPtr& what) const {
if (what.get()->length() != length()) {
throw std::invalid_argument(
std::string("array of length ") + std::to_string(what.get()->length())
+ std::string(" cannot be assigned to record array of length ")
+ std::to_string(length()) + FILENAME(__LINE__));
}
ContentPtrVec contents(contents_.begin(), contents_.end());
contents.push_back(what);
util::RecordLookupPtr recordlookup;
if (recordlookup_.get() != nullptr) {
recordlookup = std::make_shared<util::RecordLookup>();
recordlookup.get()->insert(recordlookup.get()->end(),
recordlookup_.get()->begin(),
recordlookup_.get()->end());
recordlookup.get()->push_back(where);
}
else {
recordlookup = util::init_recordlookup(numfields());
recordlookup.get()->push_back(where);
}
std::vector<ArrayCachePtr> caches(caches_);
what.get()->caches(caches);
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup,
minlength(contents),
caches);
}
const std::string
RecordArray::classname() const {
return "RecordArray";
}
void
RecordArray::setidentities() {
int64_t len = length();
if (len <= kMaxInt32) {
IdentitiesPtr newidentities =
std::make_shared<Identities32>(Identities::newref(),
Identities::FieldLoc(),
1,
len);
Identities32* rawidentities =
reinterpret_cast<Identities32*>(newidentities.get());
struct Error err = kernel::new_Identities<int32_t>(
kernel::lib::cpu, // DERIVE
rawidentities->data(),
len);
util::handle_error(err, classname(), identities_.get());
setidentities(newidentities);
}
else {
IdentitiesPtr newidentities =
std::make_shared<Identities64>(Identities::newref(),
Identities::FieldLoc(),
1, len);
Identities64* rawidentities =
reinterpret_cast<Identities64*>(newidentities.get());
struct Error err = kernel::new_Identities<int64_t>(
kernel::lib::cpu, // DERIVE
rawidentities->data(),
len);
util::handle_error(err, classname(), identities_.get());
setidentities(newidentities);
}
}
void
RecordArray::setidentities(const IdentitiesPtr& identities) {
if (identities.get() == nullptr) {
for (auto content : contents_) {
content.get()->setidentities(identities);
}
}
else {
if (length() != identities.get()->length()) {
util::handle_error(
failure("content and its identities must have the same length",
kSliceNone,
kSliceNone,
FILENAME_C(__LINE__)),
classname(),
identities_.get());
}
if (istuple()) {
Identities::FieldLoc original = identities.get()->fieldloc();
for (size_t j = 0; j < contents_.size(); j++) {
Identities::FieldLoc fieldloc(original.begin(), original.end());
fieldloc.push_back(
std::pair<int64_t, std::string>(identities.get()->width() - 1,
std::to_string(j)));
contents_[j].get()->setidentities(
identities.get()->withfieldloc(fieldloc));
}
}
else {
Identities::FieldLoc original = identities.get()->fieldloc();
for (size_t j = 0; j < contents_.size(); j++) {
Identities::FieldLoc fieldloc(original.begin(), original.end());
fieldloc.push_back(std::pair<int64_t, std::string>(
identities.get()->width() - 1, recordlookup_.get()->at(j)));
contents_[j].get()->setidentities(
identities.get()->withfieldloc(fieldloc));
}
}
}
identities_ = identities;
}
const TypePtr
RecordArray::type(const util::TypeStrs& typestrs) const {
return form(true).get()->type(typestrs);
}
const FormPtr
RecordArray::form(bool materialize) const {
std::vector<FormPtr> contents;
for (auto x : contents_) {
contents.push_back(x.get()->form(materialize));
}
return std::make_shared<RecordForm>(identities_.get() != nullptr,
parameters_,
FormKey(nullptr),
recordlookup_,
contents);
}
kernel::lib
RecordArray::kernels() const {
kernel::lib last = kernel::lib::size;
for (auto content : contents_) {
if (last == kernel::lib::size) {
last = content.get()->kernels();
}
else if (last != content.get()->kernels()) {
return kernel::lib::size;
}
}
if (identities_.get() == nullptr) {
if (last == kernel::lib::size) {
return kernel::lib::cpu;
}
else {
return last;
}
}
else {
if (last == kernel::lib::size) {
return identities_.get()->ptr_lib();
}
else if (last == identities_.get()->ptr_lib()) {
return last;
}
else {
return kernel::lib::size;
}
}
}
void
RecordArray::caches(std::vector<ArrayCachePtr>& out) const {
out.insert(out.end(), caches_.begin(), caches_.end());
}
const std::string
RecordArray::tostring_part(const std::string& indent,
const std::string& pre,
const std::string& post) const {
std::stringstream out;
out << indent << pre << "<" << classname() << " length=\"" << length_ << "\"";
out << ">\n";
if (identities_.get() != nullptr) {
out << identities_.get()->tostring_part(
indent + std::string(" "), "", "\n");
}
if (!parameters_.empty()) {
out << parameters_tostring(indent + std::string(" "), "", "\n");
}
for (size_t j = 0; j < contents_.size(); j++) {
out << indent << " <field index=\"" << j << "\"";
if (!istuple()) {
out << " key=\"" << recordlookup_.get()->at(j) << "\">";
}
else {
out << ">";
}
out << "\n";
out << contents_[j].get()->tostring_part(
indent + std::string(" "), "", "\n");
out << indent << " </field>\n";
}
out << indent << "</" << classname() << ">" << post;
return out.str();
}
void
RecordArray::tojson_part(ToJson& builder, bool include_beginendlist) const {
int64_t rows = length();
size_t cols = contents_.size();
util::RecordLookupPtr keys = recordlookup_;
if (istuple()) {
keys = std::make_shared<util::RecordLookup>();
for (size_t j = 0; j < cols; j++) {
keys.get()->push_back(std::to_string(j));
}
}
check_for_iteration();
if (include_beginendlist) {
builder.beginlist();
}
for (int64_t i = 0; i < rows; i++) {
builder.beginrecord();
for (size_t j = 0; j < cols; j++) {
builder.field(keys.get()->at(j).c_str());
contents_[j].get()->getitem_at_nowrap(i).get()->tojson_part(builder,
true);
}
builder.endrecord();
}
if (include_beginendlist) {
builder.endlist();
}
}
void
RecordArray::nbytes_part(std::map<size_t, int64_t>& largest) const {
for (auto x : contents_) {
x.get()->nbytes_part(largest);
}
if (identities_.get() != nullptr) {
identities_.get()->nbytes_part(largest);
}
}
int64_t
RecordArray::length() const {
return length_;
}
const ContentPtr
RecordArray::shallow_copy() const {
return std::make_shared<RecordArray>(identities_,
parameters_,
contents_,
recordlookup_,
length_,
caches_);
}
const ContentPtr
RecordArray::deep_copy(bool copyarrays,
bool copyindexes,
bool copyidentities) const {
ContentPtrVec contents;
for (auto x : contents_) {
contents.push_back(x.get()->deep_copy(copyarrays,
copyindexes,
copyidentities));
}
IdentitiesPtr identities = identities_;
if (copyidentities && identities_.get() != nullptr) {
identities = identities_.get()->deep_copy();
}
return std::make_shared<RecordArray>(identities,
parameters_,
contents,
recordlookup_,
length_,
caches_);
}
void
RecordArray::check_for_iteration() const {
if (identities_.get() != nullptr &&
identities_.get()->length() < length()) {
util::handle_error(
failure("len(identities) < len(array)",
kSliceNone,
kSliceNone,
FILENAME_C(__LINE__)),
identities_.get()->classname(),
nullptr);
}
}
const ContentPtr
RecordArray::getitem_nothing() const {
return getitem_range_nowrap(0, 0);
}
const ContentPtr
RecordArray::getitem_at(int64_t at) const {
int64_t regular_at = at;
int64_t len = length();
if (regular_at < 0) {
regular_at += len;
}
if (!(0 <= regular_at && regular_at < len)) {
util::handle_error(
failure("index out of range",
kSliceNone,
at,
FILENAME_C(__LINE__)),
classname(),
identities_.get());
}
return getitem_at_nowrap(regular_at);
}
const ContentPtr
RecordArray::getitem_at_nowrap(int64_t at) const {
return std::make_shared<Record>(shared_from_this(), at);
}
const ContentPtr
RecordArray::getitem_range(int64_t start, int64_t stop) const {
int64_t regular_start = start;
int64_t regular_stop = stop;
kernel::regularize_rangeslice(®ular_start, ®ular_stop,
true, start != Slice::none(), stop != Slice::none(), length_);
if (identities_.get() != nullptr &&
regular_stop > identities_.get()->length()) {
util::handle_error(
failure("index out of range",
kSliceNone,
stop,
FILENAME_C(__LINE__)),
identities_.get()->classname(),
nullptr);
}
return getitem_range_nowrap(regular_start, regular_stop);
}
const ContentPtr
RecordArray::getitem_range_nowrap(int64_t start, int64_t stop) const {
IdentitiesPtr identities(nullptr);
if (identities_.get() != nullptr) {
identities = identities_.get()->getitem_range_nowrap(start, stop);
}
if (contents_.empty()) {
return std::make_shared<RecordArray>(identities,
parameters_,
contents_,
recordlookup_,
stop - start,
caches_);
}
else if (start == 0 && stop == length_) {
return shallow_copy();
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->getitem_range_nowrap(start, stop));
}
return std::make_shared<RecordArray>(identities,
parameters_,
contents,
recordlookup_,
stop - start,
caches_);
}
}
const ContentPtr
RecordArray::getitem_field(const std::string& key) const {
return field(key).get()->getitem_range_nowrap(0, length());
}
const ContentPtr
RecordArray::getitem_field(const std::string& key,
const Slice& only_fields) const {
SliceItemPtr nexthead = only_fields.head();
Slice nexttail = only_fields.tail();
ContentPtr next = field(key).get()->getitem_range_nowrap(0, length());
if (SliceField* raw = dynamic_cast<SliceField*>(nexthead.get())) {
next = next.get()->getitem_field(raw->key(), nexttail);
}
else if (SliceFields* raw = dynamic_cast<SliceFields*>(nexthead.get())) {
next = next.get()->getitem_fields(raw->keys(), nexttail);
}
return next;
}
const ContentPtr
RecordArray::getitem_fields(const std::vector<std::string>& keys) const {
ContentPtrVec contents;
util::RecordLookupPtr recordlookup(nullptr);
if (recordlookup_.get() != nullptr) {
recordlookup = std::make_shared<util::RecordLookup>();
}
for (auto key : keys) {
contents.push_back(field(key));
if (recordlookup.get() != nullptr) {
recordlookup.get()->push_back(key);
}
}
return std::make_shared<RecordArray>(identities_,
util::Parameters(),
contents,
recordlookup,
length_,
caches_);
}
const ContentPtr
RecordArray::getitem_fields(const std::vector<std::string>& keys,
const Slice& only_fields) const {
SliceItemPtr nexthead = only_fields.head();
Slice nexttail = only_fields.tail();
ContentPtrVec contents;
util::RecordLookupPtr recordlookup(nullptr);
if (recordlookup_.get() != nullptr) {
recordlookup = std::make_shared<util::RecordLookup>();
}
for (auto key : keys) {
ContentPtr next = field(key);
if (SliceField* raw = dynamic_cast<SliceField*>(nexthead.get())) {
next = next.get()->getitem_field(raw->key(), nexttail);
}
else if (SliceFields* raw = dynamic_cast<SliceFields*>(nexthead.get())) {
next = next.get()->getitem_fields(raw->keys(), nexttail);
}
contents.push_back(next);
if (recordlookup.get() != nullptr) {
recordlookup.get()->push_back(key);
}
}
return std::make_shared<RecordArray>(identities_,
util::Parameters(),
contents,
recordlookup,
length_,
caches_);
}
const ContentPtr
RecordArray::carry(const Index64& carry, bool allow_lazy) const {
if (!allow_lazy && carry.iscontiguous()) {
if (carry.length() == length()) {
return shallow_copy();
}
else {
return getitem_range_nowrap(0, carry.length());
}
}
IdentitiesPtr identities(nullptr);
if (identities_.get() != nullptr) {
identities = identities_.get()->getitem_carry_64(carry);
}
if (allow_lazy) {
return std::make_shared<IndexedArray64>(identities,
util::Parameters(),
carry,
shallow_copy());
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->carry(carry, allow_lazy));
}
return std::make_shared<RecordArray>(identities,
parameters_,
contents,
recordlookup_,
carry.length(),
caches_);
}
}
int64_t
RecordArray::purelist_depth() const {
return 1;
}
const std::pair<int64_t, int64_t>
RecordArray::minmax_depth() const {
if (contents_.empty()) {
return std::pair<int64_t, int64_t>(0, 0);
}
int64_t min = kMaxInt64;
int64_t max = 0;
for (auto content : contents_) {
std::pair<int64_t, int64_t> minmax = content.get()->minmax_depth();
if (minmax.first < min) {
min = minmax.first;
}
if (minmax.second > max) {
max = minmax.second;
}
}
return std::pair<int64_t, int64_t>(min, max);
}
const std::pair<bool, int64_t>
RecordArray::branch_depth() const {
if (contents_.empty()) {
return std::pair<bool, int64_t>(false, 1);
}
else {
bool anybranch = false;
int64_t mindepth = -1;
for (auto content : contents_) {
std::pair<bool, int64_t> content_depth = content.get()->branch_depth();
if (mindepth == -1) {
mindepth = content_depth.second;
}
if (content_depth.first || mindepth != content_depth.second) {
anybranch = true;
}
if (mindepth > content_depth.second) {
mindepth = content_depth.second;
}
}
return std::pair<bool, int64_t>(anybranch, mindepth);
}
}
int64_t
RecordArray::numfields() const {
return (int64_t)contents_.size();
}
int64_t
RecordArray::fieldindex(const std::string& key) const {
return util::fieldindex(recordlookup_, key, numfields());
}
const std::string
RecordArray::key(int64_t fieldindex) const {
return util::key(recordlookup_, fieldindex, numfields());
}
bool
RecordArray::haskey(const std::string& key) const {
return util::haskey(recordlookup_, key, numfields());
}
const std::vector<std::string>
RecordArray::keys() const {
return util::keys(recordlookup_, numfields());
}
const std::string
RecordArray::validityerror(const std::string& path) const {
const std::string paramcheck = validityerror_parameters(path);
if (paramcheck != std::string("")) {
return paramcheck;
}
for (int64_t i = 0; i < numfields(); i++) {
if (field(i).get()->length() < length_) {
return (std::string("at ") + path + std::string(" (") + classname()
+ std::string("): len(field(")
+ std::to_string(i) + (")) < len(recordarray)")
+ FILENAME(__LINE__));
}
}
for (int64_t i = 0; i < numfields(); i++) {
std::string sub = field(i).get()->validityerror(
path + std::string(".field(") + std::to_string(i) + (")"));
if (!sub.empty()) {
return sub;
}
}
return std::string();
}
const ContentPtr
RecordArray::shallow_simplify() const {
return shallow_copy();
}
const ContentPtr
RecordArray::num(int64_t axis, int64_t depth) const {
int64_t posaxis = axis_wrap_if_negative(axis);
if (posaxis == depth) {
Index64 single(1);
single.setitem_at_nowrap(0, length_);
ContentPtr singleton = std::make_shared<NumpyArray>(single);
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(singleton);
}
std::vector<ArrayCachePtr> caches;
ContentPtr record = std::make_shared<RecordArray>(Identities::none(),
util::Parameters(),
contents,
recordlookup_,
1,
caches);
return record.get()->getitem_at_nowrap(0);
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->num(posaxis, depth));
}
return std::make_shared<RecordArray>(Identities::none(),
util::Parameters(),
contents,
recordlookup_,
length_);
}
}
const std::pair<Index64, ContentPtr>
RecordArray::offsets_and_flattened(int64_t axis, int64_t depth) const {
int64_t posaxis = axis_wrap_if_negative(axis);
if (posaxis == depth) {
throw std::invalid_argument(
std::string("axis=0 not allowed for flatten") + FILENAME(__LINE__));
}
else if (posaxis == depth + 1) {
throw std::invalid_argument(
std::string("arrays of records cannot be flattened (but their contents can be; "
"try a different 'axis')") + FILENAME(__LINE__));
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
ContentPtr trimmed = content.get()->getitem_range(0, length());
std::pair<Index64, ContentPtr> pair =
trimmed.get()->offsets_and_flattened(posaxis, depth);
if (pair.first.length() != 0) {
throw std::runtime_error(
std::string("RecordArray content with axis > depth + 1 returned a non-empty "
"offsets from offsets_and_flattened") + FILENAME(__LINE__));
}
contents.push_back(pair.second);
}
return std::pair<Index64, ContentPtr>(
Index64(0),
std::make_shared<RecordArray>(Identities::none(),
util::Parameters(),
contents,
recordlookup_));
}
}
bool
RecordArray::mergeable(const ContentPtr& other, bool mergebool) const {
if (VirtualArray* raw = dynamic_cast<VirtualArray*>(other.get())) {
return mergeable(raw->array(), mergebool);
}
if (!parameters_equal(other.get()->parameters(), false)) {
return false;
}
if (dynamic_cast<EmptyArray*>(other.get()) ||
dynamic_cast<UnionArray8_32*>(other.get()) ||
dynamic_cast<UnionArray8_U32*>(other.get()) ||
dynamic_cast<UnionArray8_64*>(other.get())) {
return true;
}
else if (IndexedArray32* rawother =
dynamic_cast<IndexedArray32*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
else if (IndexedArrayU32* rawother =
dynamic_cast<IndexedArrayU32*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
else if (IndexedArray64* rawother =
dynamic_cast<IndexedArray64*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
else if (IndexedOptionArray32* rawother =
dynamic_cast<IndexedOptionArray32*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
else if (IndexedOptionArray64* rawother =
dynamic_cast<IndexedOptionArray64*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
else if (ByteMaskedArray* rawother =
dynamic_cast<ByteMaskedArray*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
else if (BitMaskedArray* rawother =
dynamic_cast<BitMaskedArray*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
else if (UnmaskedArray* rawother =
dynamic_cast<UnmaskedArray*>(other.get())) {
return mergeable(rawother->content(), mergebool);
}
if (RecordArray* rawother =
dynamic_cast<RecordArray*>(other.get())) {
if (istuple() && rawother->istuple()) {
if (numfields() == rawother->numfields()) {
for (int64_t i = 0; i < numfields(); i++) {
if (!field(i).get()->mergeable(rawother->field(i), mergebool)) {
return false;
}
}
return true;
}
}
else if (!istuple() && !rawother->istuple()) {
std::vector<std::string> self_keys = keys();
std::vector<std::string> other_keys = rawother->keys();
std::sort(self_keys.begin(), self_keys.end());
std::sort(other_keys.begin(), other_keys.end());
if (self_keys == other_keys) {
for (auto key : self_keys) {
if (!field(key).get()->mergeable(rawother->field(key),
mergebool)) {
return false;
}
}
return true;
}
}
return false;
}
else {
return false;
}
}
bool
RecordArray::referentially_equal(const ContentPtr& other) const {
if (identities_.get() == nullptr && other.get()->identities().get() != nullptr) {
return false;
}
if (identities_.get() != nullptr && other.get()->identities().get() == nullptr) {
return false;
}
if (identities_.get() != nullptr && other.get()->identities().get() != nullptr) {
if (!identities_.get()->referentially_equal(other->identities())) {
return false;
}
}
if (RecordArray* raw = dynamic_cast<RecordArray*>(other.get())) {
if (length_ != raw->length() ||
parameters_ != raw->parameters()) {
return false;
}
if (recordlookup_.get() == nullptr && raw->recordlookup().get() != nullptr) {
return false;
}
if (recordlookup_.get() != nullptr && raw->recordlookup().get() == nullptr) {
return false;
}
if (recordlookup_.get() != nullptr && raw->recordlookup().get() != nullptr) {
if (recordlookup_.get() != raw->recordlookup().get()) {
return false;
}
}
if (numfields() != raw->numfields()) {
return false;
}
for (int64_t i = 0; i < numfields(); i++) {
if (!field(i).get()->referentially_equal(raw->field(i))) {
return false;
}
}
return true;
}
else {
return false;
}
}
const ContentPtr
RecordArray::mergemany(const ContentPtrVec& others) const {
if (others.empty()) {
return shallow_copy();
}
std::pair<ContentPtrVec, ContentPtrVec> head_tail = merging_strategy(others);
ContentPtrVec head = head_tail.first;
ContentPtrVec tail = head_tail.second;
util::Parameters parameters(parameters_);
ContentPtrVec headless(head.begin() + 1, head.end());
std::vector<ContentPtrVec> for_each_field;
for (auto field : contents_) {
ContentPtr trimmed = field.get()->getitem_range_nowrap(0, length_);
for_each_field.push_back(ContentPtrVec({ field }));
}
if (istuple()) {
for (auto array : headless) {
util::merge_parameters(parameters, array.get()->parameters());
if (VirtualArray* raw = dynamic_cast<VirtualArray*>(array.get())) {
array = raw->array();
}
if (RecordArray* raw = dynamic_cast<RecordArray*>(array.get())) {
if (istuple()) {
if (numfields() == raw->numfields()) {
for (size_t i = 0; i < contents_.size(); i++) {
ContentPtr field = raw->field((int64_t)i);
for_each_field[i].push_back(field.get()->getitem_range_nowrap(0, raw->length()));
}
}
else {
throw std::invalid_argument(
std::string("cannot merge tuples with different numbers of fields")
+ FILENAME(__LINE__));
}
}
else {
throw std::invalid_argument(
std::string("cannot merge tuple with non-tuple record")
+ FILENAME(__LINE__));
}
}
else if (EmptyArray* raw = dynamic_cast<EmptyArray*>(array.get())) {
;
}
else {
throw std::invalid_argument(
std::string("cannot merge ") + classname() + std::string(" with ")
+ array.get()->classname() + FILENAME(__LINE__));
}
}
}
else {
std::vector<std::string> these_keys = keys();
std::sort(these_keys.begin(), these_keys.end());
for (auto array : headless) {
if (VirtualArray* raw = dynamic_cast<VirtualArray*>(array.get())) {
array = raw->array();
}
if (RecordArray* raw = dynamic_cast<RecordArray*>(array.get())) {
if (!istuple()) {
std::vector<std::string> those_keys = raw->keys();
std::sort(those_keys.begin(), those_keys.end());
if (these_keys == those_keys) {
for (size_t i = 0; i < contents_.size(); i++) {
ContentPtr field = raw->field(key((int64_t)i));
ContentPtr trimmed = field.get()->getitem_range_nowrap(0, raw->length());
for_each_field[i].push_back(trimmed);
}
}
else {
throw std::invalid_argument(
std::string("cannot merge records with different sets of field names")
+ FILENAME(__LINE__));
}
}
else {
throw std::invalid_argument(
std::string("cannot merge non-tuple record with tuple")
+ FILENAME(__LINE__));
}
}
else if (EmptyArray* raw = dynamic_cast<EmptyArray*>(array.get())) {
;
}
else {
throw std::invalid_argument(
std::string("cannot merge ") + classname() + std::string(" with ")
+ array.get()->classname() + FILENAME(__LINE__));
}
}
}
ContentPtrVec nextcontents;
int64_t minlength = -1;
for (auto forfield : for_each_field) {
ContentPtrVec tail_forfield(forfield.begin() + 1, forfield.end());
ContentPtr merged = forfield[0].get()->mergemany(tail_forfield);
nextcontents.push_back(merged);
if (minlength == -1 || merged.get()->length() < minlength) {
minlength = merged.get()->length();
}
}
ContentPtr next = std::make_shared<RecordArray>(Identities::none(),
parameters,
nextcontents,
recordlookup_,
minlength);
if (tail.empty()) {
return next;
}
ContentPtr reversed = tail[0].get()->reverse_merge(next);
if (tail.size() == 1) {
return reversed;
}
else {
return reversed.get()->mergemany(ContentPtrVec(tail.begin() + 1, tail.end()));
}
}
const SliceItemPtr
RecordArray::asslice() const {
throw std::invalid_argument(
std::string("cannot use records as a slice") + FILENAME(__LINE__));
}
const ContentPtr
RecordArray::fillna(const ContentPtr& value) const {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->fillna(value));
}
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup_,
length_);
}
const ContentPtr
RecordArray::rpad(int64_t target, int64_t axis, int64_t depth) const {
int64_t posaxis = axis_wrap_if_negative(axis);
if (posaxis == depth) {
return rpad_axis0(target, false);
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->rpad(target, posaxis, depth));
}
if (contents.empty()) {
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup_,
length_);
}
else {
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup_);
}
}
}
const ContentPtr
RecordArray::rpad_and_clip(int64_t target,
int64_t axis,
int64_t depth) const {
int64_t posaxis = axis_wrap_if_negative(axis);
if (posaxis == depth) {
return rpad_axis0(target, true);
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(
content.get()->rpad_and_clip(target, posaxis, depth));
}
if (contents.empty()) {
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup_,
length_);
}
else {
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup_);
}
}
}
const ContentPtr
RecordArray::reduce_next(const Reducer& reducer,
int64_t negaxis,
const Index64& starts,
const Index64& shifts,
const Index64& parents,
int64_t outlength,
bool mask,
bool keepdims) const {
ContentPtrVec contents;
for (auto content : contents_) {
ContentPtr trimmed = content.get()->getitem_range_nowrap(0, length());
ContentPtr next = trimmed.get()->reduce_next(reducer,
negaxis,
starts,
shifts,
parents,
outlength,
mask,
keepdims);
contents.push_back(next);
}
return std::make_shared<RecordArray>(Identities::none(),
util::Parameters(),
contents,
recordlookup_,
outlength);
}
const ContentPtr
RecordArray::localindex(int64_t axis, int64_t depth) const {
int64_t posaxis = axis_wrap_if_negative(axis);
if (posaxis == depth) {
return localindex_axis0();
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->localindex(posaxis, depth));
}
return std::make_shared<RecordArray>(identities_,
util::Parameters(),
contents,
recordlookup_,
length_);
}
}
const ContentPtr
RecordArray::combinations(int64_t n,
bool replacement,
const util::RecordLookupPtr& recordlookup,
const util::Parameters& parameters,
int64_t axis,
int64_t depth) const {
if (n < 1) {
throw std::invalid_argument(
std::string("in combinations, 'n' must be at least 1") + FILENAME(__LINE__));
}
int64_t posaxis = axis_wrap_if_negative(axis);
if (posaxis == depth) {
return combinations_axis0(n, replacement, recordlookup, parameters);
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->combinations(n,
replacement,
recordlookup,
parameters,
posaxis,
depth));
}
return std::make_shared<RecordArray>(identities_,
util::Parameters(),
contents,
recordlookup_,
length_);
}
}
const ContentPtr
RecordArray::field(int64_t fieldindex) const {
if (fieldindex >= numfields()) {
throw std::invalid_argument(
std::string("fieldindex ") + std::to_string(fieldindex)
+ std::string(" for record with only " + std::to_string(numfields()))
+ std::string(" fields") + FILENAME(__LINE__));
}
return contents_[(size_t)fieldindex];
}
const ContentPtr
RecordArray::field(const std::string& key) const {
return contents_[(size_t)fieldindex(key)];
}
const ContentPtrVec
RecordArray::fields() const {
return ContentPtrVec(contents_);
}
const std::vector<std::pair<std::string, ContentPtr>>
RecordArray::fielditems() const {
std::vector<std::pair<std::string, ContentPtr>> out;
if (istuple()) {
size_t cols = contents_.size();
for (size_t j = 0; j < cols; j++) {
out.push_back(
std::pair<std::string, ContentPtr>(std::to_string(j), contents_[j]));
}
}
else {
size_t cols = contents_.size();
for (size_t j = 0; j < cols; j++) {
out.push_back(
std::pair<std::string, ContentPtr>(recordlookup_.get()->at(j),
contents_[j]));
}
}
return out;
}
const std::shared_ptr<RecordArray>
RecordArray::astuple() const {
return std::make_shared<RecordArray>(identities_,
parameters_,
contents_,
util::RecordLookupPtr(nullptr),
length_,
caches_);
}
const ContentPtr
RecordArray::sort_next(int64_t negaxis,
const Index64& starts,
const Index64& parents,
int64_t outlength,
bool ascending,
bool stable,
bool keepdims) const {
if (length() == 0) {
return shallow_copy();
}
std::vector<ContentPtr> contents;
for (auto content : contents_) {
ContentPtr trimmed = content.get()->getitem_range_nowrap(0, length());
ContentPtr next = trimmed.get()->sort_next(negaxis,
starts,
parents,
outlength,
ascending,
stable,
keepdims);
contents.push_back(next);
}
return std::make_shared<RecordArray>(Identities::none(),
parameters_,
contents,
recordlookup_,
outlength);
}
const ContentPtr
RecordArray::argsort_next(int64_t negaxis,
const Index64& starts,
const Index64& parents,
int64_t outlength,
bool ascending,
bool stable,
bool keepdims) const {
if (length() == 0) {
return shallow_copy();
}
std::vector<ContentPtr> contents;
for (auto content : contents_) {
ContentPtr trimmed = content.get()->getitem_range_nowrap(0, length());
ContentPtr next = trimmed.get()->argsort_next(negaxis,
starts,
parents,
outlength,
ascending,
stable,
keepdims);
contents.push_back(next);
}
return std::make_shared<RecordArray>(
Identities::none(),
util::Parameters(),
contents,
recordlookup_,
outlength);
}
const ContentPtr
RecordArray::getitem_next(const SliceItemPtr& head,
const Slice& tail,
const Index64& advanced) const {
if (head.get() == nullptr) {
return shallow_copy();
}
else if (SliceField* field =
dynamic_cast<SliceField*>(head.get())) {
return Content::getitem_next(*field, tail, advanced);
}
else if (SliceFields* fields =
dynamic_cast<SliceFields*>(head.get())) {
return Content::getitem_next(*fields, tail, advanced);
}
else if (const SliceMissing64* missing =
dynamic_cast<SliceMissing64*>(head.get())) {
return Content::getitem_next(*missing, tail, advanced);
}
else {
SliceItemPtr nexthead = tail.head();
Slice nexttail = tail.tail();
Slice emptytail;
emptytail.become_sealed();
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->getitem_next(head,
emptytail,
advanced));
}
util::Parameters parameters;
if (head.get()->preserves_type(advanced)) {
parameters = parameters_;
}
RecordArray out(Identities::none(), parameters, contents, recordlookup_);
return out.getitem_next(nexthead, nexttail, advanced);
}
}
const ContentPtr
RecordArray::getitem_next(const SliceAt& at,
const Slice& tail,
const Index64& advanced) const {
throw std::invalid_argument(
std::string("undefined operation: RecordArray::getitem_next(at)")
+ FILENAME(__LINE__));
}
const ContentPtr
RecordArray::getitem_next(const SliceRange& range,
const Slice& tail,
const Index64& advanced) const {
throw std::invalid_argument(
std::string("undefined operation: RecordArray::getitem_next(range)")
+ FILENAME(__LINE__));
}
const ContentPtr
RecordArray::getitem_next(const SliceArray64& array,
const Slice& tail,
const Index64& advanced) const {
throw std::invalid_argument(
std::string("undefined operation: RecordArray::getitem_next(array)")
+ FILENAME(__LINE__));
}
const ContentPtr
RecordArray::getitem_next(const SliceField& field,
const Slice& tail,
const Index64& advanced) const {
SliceItemPtr nexthead = tail.head();
Slice nexttail = tail.tail();
return getitem_field(field.key()).get()->getitem_next(nexthead,
nexttail,
advanced);
}
const ContentPtr
RecordArray::getitem_next(const SliceFields& fields,
const Slice& tail,
const Index64& advanced) const {
Slice only_fields = tail.only_fields();
Slice not_fields = tail.not_fields();
SliceItemPtr nexthead = not_fields.head();
Slice nexttail = not_fields.tail();
return getitem_fields(fields.keys(), only_fields).get()->getitem_next(nexthead,
nexttail,
advanced);
}
const ContentPtr
RecordArray::getitem_next(const SliceJagged64& jagged,
const Slice& tail,
const Index64& advanced) const {
throw std::invalid_argument(
std::string("undefined operation: RecordArray::getitem_next(jagged)")
+ FILENAME(__LINE__));
}
const ContentPtr
RecordArray::getitem_next_jagged(const Index64& slicestarts,
const Index64& slicestops,
const SliceArray64& slicecontent,
const Slice& tail) const {
return getitem_next_jagged_generic<SliceArray64>(slicestarts,
slicestops,
slicecontent,
tail);
}
const ContentPtr
RecordArray::getitem_next_jagged(const Index64& slicestarts,
const Index64& slicestops,
const SliceMissing64& slicecontent,
const Slice& tail) const {
return getitem_next_jagged_generic<SliceMissing64>(slicestarts,
slicestops,
slicecontent,
tail);
}
const ContentPtr
RecordArray::getitem_next_jagged(const Index64& slicestarts,
const Index64& slicestops,
const SliceJagged64& slicecontent,
const Slice& tail) const {
return getitem_next_jagged_generic<SliceJagged64>(slicestarts,
slicestops,
slicecontent,
tail);
}
const ContentPtr
RecordArray::getitem_next_jagged(const Index64& slicestarts,
const Index64& slicestops,
const SliceVarNewAxis& slicecontent,
const Slice& tail) const {
return getitem_next_jagged_generic<SliceVarNewAxis>(slicestarts,
slicestops,
slicecontent,
tail);
}
const ContentPtr
RecordArray::getitem_next(const SliceVarNewAxis& varnewaxis,
const Slice& tail,
const Index64& advanced) const {
throw std::invalid_argument(
std::string("cannot slice records by a newaxis (length-1 regular dimension)")
+ FILENAME(__LINE__));
}
const SliceJagged64
RecordArray::varaxis_to_jagged(const SliceVarNewAxis& varnewaxis) const {
throw std::invalid_argument(
std::string("cannot slice records by a newaxis (length-1 regular dimension)")
+ FILENAME(__LINE__));
}
const ContentPtr
RecordArray::copy_to(kernel::lib ptr_lib) const {
ContentPtrVec contents;
for (auto content : contents_) {
contents.push_back(content.get()->copy_to(ptr_lib));
}
IdentitiesPtr identities(nullptr);
if (identities_.get() != nullptr) {
identities = identities_.get()->copy_to(ptr_lib);
}
return std::make_shared<RecordArray>(identities,
parameters_,
contents,
recordlookup_,
length_,
caches_);
}
const ContentPtr
RecordArray::numbers_to_type(const std::string& name) const {
ContentPtrVec contents;
for (auto x : contents_) {
contents.push_back(x.get()->numbers_to_type(name));
}
IdentitiesPtr identities = identities_;
if (identities_.get() != nullptr) {
identities = identities_.get()->deep_copy();
}
return std::make_shared<RecordArray>(identities,
parameters_,
contents,
recordlookup_,
length_);
}
template <typename S>
const ContentPtr
RecordArray::getitem_next_jagged_generic(const Index64& slicestarts,
const Index64& slicestops,
const S& slicecontent,
const Slice& tail) const {
if (contents_.empty()) {
return shallow_copy();
}
else {
ContentPtrVec contents;
for (auto content : contents_) {
ContentPtr trimmed = content.get()->getitem_range_nowrap(0, length());
contents.push_back(trimmed.get()->getitem_next_jagged(slicestarts,
slicestops,
slicecontent,
tail));
}
return std::make_shared<RecordArray>(identities_,
parameters_,
contents,
recordlookup_);
}
}
bool
RecordArray::is_unique() const {
if (contents_.empty()) {
return true;
}
else {
int64_t non_unique_count = 0;
for (auto content : contents_) {
if (!content.get()->is_unique()) {
non_unique_count++;
}
else if (non_unique_count == 0) {
return true;
}
}
if (non_unique_count <= 1) {
return true;
}
else {
throw std::runtime_error(
std::string("FIXME: RecordArray::is_unique operation on a RecordArray ")
+ std::string("with more than one non-unique content is not implemented yet")
+ FILENAME(__LINE__));
}
}
return false;
}
const ContentPtr
RecordArray::unique() const {
throw std::runtime_error(
std::string("FIXME: operation not yet implemented: RecordArray::unique")
+ FILENAME(__LINE__));
}
bool
RecordArray::is_subrange_equal(const Index64& start, const Index64& stop) const {
throw std::runtime_error(
std::string("FIXME: operation not yet implemented: RecordArray::is_subrange_equal")
+ FILENAME(__LINE__));
}
}
| 34.331604 | 97 | 0.513899 | HenryDayHall |
29a2fe32e5520157091b3026f0aa2fb78657ff68 | 40,489 | cpp | C++ | Src/Base/AMReX_DistributionMapping.cpp | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | 8 | 2020-01-21T11:12:38.000Z | 2022-02-12T12:35:45.000Z | Src/Base/AMReX_DistributionMapping.cpp | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/Base/AMReX_DistributionMapping.cpp | ylunalin/amrex | 5715b2fc8a77e0db17bfe7907982e29ec44811ca | [
"BSD-3-Clause-LBNL"
] | 2 | 2020-11-27T03:07:52.000Z | 2021-03-01T16:40:31.000Z |
#include <AMReX_BoxArray.H>
#include <AMReX_MultiFab.H>
#include <AMReX_DistributionMapping.H>
#include <AMReX_ParmParse.H>
#include <AMReX_BLProfiler.H>
#include <AMReX_FArrayBox.H>
#if !defined(BL_NO_FORT)
#include <AMReX_Geometry.H>
#endif
#include <AMReX_VisMF.H>
#include <AMReX_Utility.H>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <map>
#include <vector>
#include <queue>
#include <algorithm>
#include <numeric>
#include <string>
#include <cstring>
#include <iomanip>
namespace {
int flag_verbose_mapper;
}
namespace amrex {
bool initialized = false;
//
// Set default values for these in Initialize()!!!
//
int verbose;
int sfc_threshold;
Real max_efficiency;
int node_size;
// We default to SFC.
DistributionMapping::Strategy DistributionMapping::m_Strategy = DistributionMapping::SFC;
DistributionMapping::PVMF DistributionMapping::m_BuildMap = 0;
const Vector<int>&
DistributionMapping::ProcessorMap () const
{
return m_ref->m_pmap;
}
DistributionMapping::Strategy
DistributionMapping::strategy ()
{
return DistributionMapping::m_Strategy;
}
void
DistributionMapping::strategy (DistributionMapping::Strategy how)
{
DistributionMapping::m_Strategy = how;
switch (how)
{
case ROUNDROBIN:
m_BuildMap = &DistributionMapping::RoundRobinProcessorMap;
break;
case KNAPSACK:
m_BuildMap = &DistributionMapping::KnapSackProcessorMap;
break;
case SFC:
m_BuildMap = &DistributionMapping::SFCProcessorMap;
break;
case RRSFC:
m_BuildMap = &DistributionMapping::RRSFCProcessorMap;
break;
default:
amrex::Error("Bad DistributionMapping::Strategy");
}
}
void
DistributionMapping::SFC_Threshold (int n)
{
sfc_threshold = std::min(n,1);
}
int
DistributionMapping::SFC_Threshold ()
{
return sfc_threshold;
}
bool
DistributionMapping::operator== (const DistributionMapping& rhs) const
{
return m_ref == rhs.m_ref || m_ref->m_pmap == rhs.m_ref->m_pmap;
}
bool
DistributionMapping::operator!= (const DistributionMapping& rhs) const
{
return !operator==(rhs);
}
void
DistributionMapping::Initialize ()
{
if (initialized) return;
//
// Set defaults here!!!
//
verbose = 0;
sfc_threshold = 0;
max_efficiency = 0.9;
node_size = 0;
flag_verbose_mapper = 0;
ParmParse pp("DistributionMapping");
pp.query("v" , verbose);
pp.query("verbose", verbose);
pp.query("efficiency", max_efficiency);
pp.query("sfc_threshold", sfc_threshold);
pp.query("node_size", node_size);
pp.query("verbose_mapper", flag_verbose_mapper);
std::string theStrategy;
if (pp.query("strategy", theStrategy))
{
if (theStrategy == "ROUNDROBIN")
{
strategy(ROUNDROBIN);
}
else if (theStrategy == "KNAPSACK")
{
strategy(KNAPSACK);
}
else if (theStrategy == "SFC")
{
strategy(SFC);
}
else if (theStrategy == "RRSFC")
{
strategy(RRSFC);
}
else
{
std::string msg("Unknown strategy: ");
msg += theStrategy;
amrex::Warning(msg.c_str());
}
}
else
{
strategy(m_Strategy); // default
}
amrex::ExecOnFinalize(DistributionMapping::Finalize);
initialized = true;
}
void
DistributionMapping::Finalize ()
{
initialized = false;
m_Strategy = SFC;
DistributionMapping::m_BuildMap = 0;
}
void
DistributionMapping::Sort (std::vector<LIpair>& vec,
bool reverse)
{
if (vec.size() > 1)
{
if (reverse) {
std::stable_sort(vec.begin(), vec.end(), LIpairGT());
}
else {
std::stable_sort(vec.begin(), vec.end(), LIpairLT());
}
}
}
void
DistributionMapping::LeastUsedCPUs (int nprocs,
Vector<int>& result)
{
result.resize(nprocs);
#ifdef BL_USE_MPI
BL_PROFILE("DistributionMapping::LeastUsedCPUs()");
AMREX_ASSERT(nprocs <= ParallelContext::NProcsSub());
Vector<long> bytes(ParallelContext::NProcsSub());
long thisbyte = amrex::TotalBytesAllocatedInFabs()/1024;
ParallelAllGather::AllGather(thisbyte, bytes.dataPtr(), ParallelContext::CommunicatorSub());
std::vector<LIpair> LIpairV;
LIpairV.reserve(nprocs);
for (int i(0); i < nprocs; ++i)
{
LIpairV.push_back(LIpair(bytes[i],i));
}
bytes.clear();
Sort(LIpairV, false);
for (int i(0); i < nprocs; ++i)
{
result[i] = LIpairV[i].second;
}
if (flag_verbose_mapper) {
Print() << "LeastUsedCPUs:" << std::endl;
for (const auto &p : LIpairV) {
Print() << " Rank " << p.second << " contains " << p.first << std::endl;
}
}
#else
for (int i(0); i < nprocs; ++i)
{
result[i] = i;
}
#endif
}
void
DistributionMapping::LeastUsedTeams (Vector<int> & rteam,
Vector<Vector<int> >& rworker,
int nteams,
int nworkers)
{
#ifdef BL_USE_MPI
BL_PROFILE("DistributionMapping::LeastUsedTeams()");
AMREX_ALWAYS_ASSERT(ParallelContext::CommunicatorSub() == ParallelDescriptor::Communicator());
Vector<long> bytes(ParallelContext::NProcsSub());
long thisbyte = amrex::TotalBytesAllocatedInFabs()/1024;
ParallelAllGather::AllGather(thisbyte, bytes.dataPtr(), ParallelContext::CommunicatorSub());
std::vector<LIpair> LIpairV;
std::vector<LIpair> LIworker;
LIpairV.reserve(nteams);
LIworker.resize(nworkers);
rteam.resize(nteams);
rworker.resize(nteams);
for (int i(0); i < nteams; ++i)
{
rworker[i].resize(nworkers);
long teambytes = 0;
int offset = i*nworkers;
for (int j = 0; j < nworkers; ++j)
{
int globalrank = offset+j;
long b = bytes[globalrank];
teambytes += b;
LIworker[j] = LIpair(b,j);
}
Sort(LIworker, false);
for (int j = 0; j < nworkers; ++j)
{
rworker[i][j] = LIworker[j].second;
}
LIpairV.push_back(LIpair(teambytes,i));
}
bytes.clear();
Sort(LIpairV, false);
for (int i(0); i < nteams; ++i)
{
rteam[i] = LIpairV[i].second;
}
#else
rteam.clear();
rteam.push_back(0);
rworker.clear();
rworker.push_back(Vector<int>(1,0));
#endif
}
DistributionMapping::DistributionMapping ()
:
m_ref(std::make_shared<Ref>())
{
}
DistributionMapping::DistributionMapping (const DistributionMapping& rhs)
:
m_ref(rhs.m_ref)
{
}
DistributionMapping&
DistributionMapping::operator= (const DistributionMapping& rhs)
{
m_ref = rhs.m_ref;
return *this;
}
DistributionMapping::DistributionMapping (DistributionMapping&& rhs) noexcept
:
m_ref(std::move(rhs.m_ref))
{
}
DistributionMapping::DistributionMapping (const Vector<int>& pmap)
:
m_ref(std::make_shared<Ref>(pmap))
{
}
DistributionMapping::DistributionMapping (Vector<int>&& pmap) noexcept
:
m_ref(std::make_shared<Ref>(std::move(pmap)))
{
}
DistributionMapping::DistributionMapping (const BoxArray& boxes,
int nprocs)
:
m_ref(std::make_shared<Ref>(boxes.size()))
{
define(boxes,nprocs);
}
DistributionMapping::DistributionMapping (const DistributionMapping& d1,
const DistributionMapping& d2)
:
m_ref(std::make_shared<Ref>())
{
m_ref->m_pmap = d1.ProcessorMap();
const auto& p2 = d2.ProcessorMap();
m_ref->m_pmap.insert(m_ref->m_pmap.end(), p2.begin(), p2.end());
}
void
DistributionMapping::define (const BoxArray& boxes,
int nprocs)
{
m_ref->clear();
m_ref->m_pmap.resize(boxes.size());
BL_ASSERT(m_BuildMap != 0);
(this->*m_BuildMap)(boxes,nprocs);
}
void
DistributionMapping::define (const Vector<int>& pmap)
{
m_ref->clear();
m_ref->m_pmap = pmap;
}
void
DistributionMapping::define (Vector<int>&& pmap) noexcept
{
m_ref->clear();
m_ref->m_pmap = std::move(pmap);
}
DistributionMapping::~DistributionMapping () { }
void
DistributionMapping::RoundRobinDoIt (int nboxes,
int /* nprocs */,
std::vector<LIpair>* LIpairV)
{
if (flag_verbose_mapper) {
Print() << "DM: RoundRobinDoIt called..." << std::endl;
}
int nprocs = ParallelContext::NProcsSub();
// If team is not use, we are going to treat it as a special case in which
// the number of teams is nprocs and the number of workers is 1.
int nteams = nprocs;
int nworkers = 1;
#if defined(BL_USE_TEAM)
nteams = ParallelDescriptor::NTeams();
nworkers = ParallelDescriptor::TeamSize();
#endif
Vector<int> ord;
Vector<Vector<int> > wrkerord;
if (nteams == nprocs) {
LeastUsedCPUs(nprocs,ord);
wrkerord.resize(nprocs);
for (int i = 0; i < nprocs; ++i) {
wrkerord[i].resize(1);
wrkerord[i][0] = 0;
}
} else {
LeastUsedTeams(ord,wrkerord,nteams,nworkers);
}
Vector<int> w(nteams,0);
if (LIpairV)
{
BL_ASSERT(static_cast<int>(LIpairV->size()) == nboxes);
for (int i = 0; i < nboxes; ++i)
{
int tid = ord[i%nteams];
int wid = (w[tid]++) % nworkers;
int rank = tid*nworkers + wrkerord[tid][wid];
m_ref->m_pmap[(*LIpairV)[i].second] = ParallelContext::local_to_global_rank(rank);
if (flag_verbose_mapper) {
Print() << " Mapping box " << (*LIpairV)[i].second << " of size "
<< (*LIpairV)[i].first << " to rank " << rank << std::endl;
}
}
}
else
{
for (int i = 0; i < nboxes; ++i)
{
int tid = ord[i%nteams];
int wid = (w[tid]++) % nworkers;
int rank = tid*nworkers + wrkerord[tid][wid];
m_ref->m_pmap[i] = ParallelContext::local_to_global_rank(rank);
if (flag_verbose_mapper) {
Print() << " Mapping box " << i << " to rank " << rank << std::endl;
}
}
}
}
void
DistributionMapping::RoundRobinProcessorMap (int nboxes, int nprocs)
{
BL_ASSERT(nboxes > 0);
m_ref->clear();
m_ref->m_pmap.resize(nboxes);
RoundRobinDoIt(nboxes, nprocs);
}
void
DistributionMapping::RoundRobinProcessorMap (const BoxArray& boxes, int nprocs)
{
BL_ASSERT(boxes.size() > 0);
BL_ASSERT(m_ref->m_pmap.size() == boxes.size());
//
// Create ordering of boxes from largest to smallest.
// When we round-robin the boxes we want to go from largest
// to smallest box, starting from the CPU having the least
// amount of FAB data to the one having the most. This "should"
// help even out the FAB data distribution when running on large
// numbers of CPUs, where the lower levels of the calculation are
// using RoundRobin to lay out fewer than NProc boxes across
// the CPUs.
//
std::vector<LIpair> LIpairV;
const int N = boxes.size();
LIpairV.reserve(N);
for (int i = 0; i < N; ++i)
{
LIpairV.push_back(LIpair(boxes[i].numPts(),i));
}
Sort(LIpairV, true);
RoundRobinDoIt(boxes.size(), nprocs, &LIpairV);
}
void
DistributionMapping::RoundRobinProcessorMap (const std::vector<long>& wgts,
int nprocs)
{
BL_ASSERT(wgts.size() > 0);
m_ref->clear();
m_ref->m_pmap.resize(wgts.size());
//
// Create ordering of boxes from "heaviest" to "lightest".
// When we round-robin the boxes we want to go from heaviest
// to lightest box, starting from the CPU having the least
// amount of FAB data to the one having the most. This "should"
// help even out the FAB data distribution when running on large
// numbers of CPUs, where the lower levels of the calculation are
// using RoundRobin to lay out fewer than NProc boxes across
// the CPUs.
//
std::vector<LIpair> LIpairV;
const int N = wgts.size();
LIpairV.reserve(N);
for (int i = 0; i < N; ++i)
{
LIpairV.push_back(LIpair(wgts[i],i));
}
Sort(LIpairV, true);
RoundRobinDoIt(wgts.size(), nprocs, &LIpairV);
}
class WeightedBox
{
int m_boxid;
long m_weight;
public:
WeightedBox (int b, int w) : m_boxid(b), m_weight(w) {}
long weight () const { return m_weight; }
int boxid () const { return m_boxid; }
bool operator< (const WeightedBox& rhs) const
{
return weight() > rhs.weight();
}
};
class WeightedBoxList
{
Vector<WeightedBox>* m_lb;
long m_weight;
public:
WeightedBoxList (long w) : m_lb(nullptr), m_weight(w) {}
WeightedBoxList (Vector<WeightedBox>* lb) : m_lb(lb), m_weight(0) {}
long weight () const
{
return m_weight;
}
void addWeight (long dw) { m_weight += dw; }
void erase (Vector<WeightedBox>::iterator& it)
{
m_weight -= it->weight();
m_lb->erase(it);
}
void push_back (const WeightedBox& bx)
{
m_weight += bx.weight();
m_lb->push_back(bx);
}
int size () const { return m_lb->size(); }
Vector<WeightedBox>::const_iterator begin () const { return m_lb->begin(); }
Vector<WeightedBox>::iterator begin () { return m_lb->begin(); }
Vector<WeightedBox>::const_iterator end () const { return m_lb->end(); }
Vector<WeightedBox>::iterator end () { return m_lb->end(); }
bool operator< (const WeightedBoxList& rhs) const
{
return weight() > rhs.weight();
}
};
static
void
knapsack (const std::vector<long>& wgts,
int nprocs,
std::vector< std::vector<int> >& result,
Real& efficiency,
bool do_full_knapsack,
int nmax)
{
BL_PROFILE("knapsack()");
//
// Sort balls by size largest first.
//
result.resize(nprocs);
Vector<WeightedBox> lb;
lb.reserve(wgts.size());
for (unsigned int i = 0, N = wgts.size(); i < N; ++i)
{
lb.push_back(WeightedBox(i, wgts[i]));
}
std::sort(lb.begin(), lb.end());
//
// For each ball, starting with heaviest, assign ball to the lightest bin.
//
std::priority_queue<WeightedBoxList> wblq;
Vector<std::unique_ptr<Vector<WeightedBox> > > raii_vwb(nprocs);
for (int i = 0; i < nprocs; ++i)
{
raii_vwb[i].reset(new Vector<WeightedBox>);
wblq.push(WeightedBoxList(raii_vwb[i].get()));
}
Vector<WeightedBoxList> wblv;
wblv.reserve(nprocs);
for (unsigned int i = 0, N = wgts.size(); i < N; ++i)
{
WeightedBoxList wbl = wblq.top();
wblq.pop();
wbl.push_back(lb[i]);
if (wbl.size() < nmax) {
wblq.push(wbl);
} else {
wblv.push_back(wbl);
}
}
Real max_weight = 0;
Real sum_weight = 0;
for (auto const& wbl : wblv)
{
Real wgt = wbl.weight();
sum_weight += wgt;
max_weight = std::max(wgt, max_weight);
}
while (!wblq.empty())
{
WeightedBoxList wbl = wblq.top();
wblq.pop();
if (wbl.size() > 0) {
Real wgt = wbl.weight();
sum_weight += wgt;
max_weight = std::max(wgt, max_weight);
wblv.push_back(wbl);
}
}
efficiency = sum_weight/(nprocs*max_weight);
std::sort(wblv.begin(), wblv.end());
if (efficiency < max_efficiency && do_full_knapsack
&& wblv.size() > 1 && wblv.begin()->size() > 1)
{
BL_PROFILE_VAR("knapsack()swap", swap);
top: ;
if (efficiency < max_efficiency && wblv.begin()->size() > 1)
{
auto bl_top = wblv.begin();
auto bl_bottom = wblv.end()-1;
long w_top = bl_top->weight();
long w_bottom = bl_bottom->weight();
for (auto ball_1 = bl_top->begin(); ball_1 != bl_top->end(); ++ball_1)
{
for (auto ball_2 = bl_bottom->begin(); ball_2 != bl_bottom->end(); ++ball_2)
{
// should we swap ball 1 and ball 2?
long dw = ball_1->weight() - ball_2->weight();
long w_top_new = w_top - dw;
long w_bottom_new = w_bottom + dw;
if (w_top_new < w_top && w_bottom_new < w_top)
{
std::swap(*ball_1, *ball_2);
bl_top->addWeight(-dw);
bl_bottom->addWeight(dw);
if (bl_top+1 == bl_bottom) // they are next to each other
{
if (*bl_bottom < *bl_top) {
std::swap(*bl_top, *bl_bottom);
}
}
else
{
// bubble up
auto it = std::lower_bound(bl_top+1, bl_bottom, *bl_bottom);
std::rotate(it, bl_bottom, bl_bottom+1);
// sink down
it = std::lower_bound(bl_top+1, bl_bottom+1, *bl_top);
std::rotate(bl_top, bl_top+1, it);
}
max_weight = bl_top->weight();
efficiency = sum_weight / (nprocs*max_weight);
goto top;
}
}
}
}
BL_ASSERT(std::is_sorted(wblv.begin(), wblv.end()));
}
for (int i = 0, N = wblv.size(); i < N; ++i)
{
const WeightedBoxList& wbl = wblv[i];
result[i].reserve(wbl.size());
for (auto const& wb : wbl)
{
result[i].push_back(wb.boxid());
}
}
}
void
DistributionMapping::KnapSackDoIt (const std::vector<long>& wgts,
int /* nprocs */,
Real& efficiency,
bool do_full_knapsack,
int nmax)
{
if (flag_verbose_mapper) {
Print() << "DM: KnapSackDoIt called..." << std::endl;
}
BL_PROFILE("DistributionMapping::KnapSackDoIt()");
int nprocs = ParallelContext::NProcsSub();
// If team is not use, we are going to treat it as a special case in which
// the number of teams is nprocs and the number of workers is 1.
int nteams = nprocs;
int nworkers = 1;
#if defined(BL_USE_TEAM)
nteams = ParallelDescriptor::NTeams();
nworkers = ParallelDescriptor::TeamSize();
#endif
std::vector< std::vector<int> > vec;
efficiency = 0;
knapsack(wgts,nteams,vec,efficiency,do_full_knapsack,nmax);
if (flag_verbose_mapper) {
for (int i = 0; i < vec.size(); ++i) {
Print() << " Bucket " << i << " contains boxes:" << std::endl;
for (int j = 0; j < vec[i].size(); ++j) {
Print() << " " << vec[i][j] << std::endl;
}
}
}
BL_ASSERT(static_cast<int>(vec.size()) == nteams);
std::vector<LIpair> LIpairV;
LIpairV.reserve(nteams);
for (int i = 0; i < nteams; ++i)
{
long wgt = 0;
for (std::vector<int>::const_iterator lit = vec[i].begin(), End = vec[i].end();
lit != End; ++lit)
{
wgt += wgts[*lit];
}
LIpairV.push_back(LIpair(wgt,i));
}
Sort(LIpairV, true);
if (flag_verbose_mapper) {
for (const auto &p : LIpairV) {
Print() << " Bucket " << p.second << " total weight: " << p.first << std::endl;
}
}
Vector<int> ord;
Vector<Vector<int> > wrkerord;
if (nteams == nprocs) {
LeastUsedCPUs(nprocs,ord);
wrkerord.resize(nprocs);
for (int i = 0; i < nprocs; ++i) {
wrkerord[i].resize(1);
wrkerord[i][0] = 0;
}
} else {
LeastUsedTeams(ord,wrkerord,nteams,nworkers);
}
for (int i = 0; i < nteams; ++i)
{
const int idx = LIpairV[i].second;
const int tid = ord[i];
const std::vector<int>& vi = vec[idx];
const int N = vi.size();
if (flag_verbose_mapper) {
Print() << " Mapping bucket " << idx << " to rank " << tid << std::endl;
}
if (nteams == nprocs) {
for (int j = 0; j < N; ++j)
{
m_ref->m_pmap[vi[j]] = ParallelContext::local_to_global_rank(tid);
}
} else {
#ifdef BL_USE_TEAM
int leadrank = tid * nworkers;
for (int w = 0; w < nworkers; ++w)
{
ParallelDescriptor::team_for(0, N, w, [&] (int j) {
m_ref->m_pmap[vi[j]] = leadrank + wrkerord[i][w];
});
}
#endif
}
}
if (verbose)
{
amrex::Print() << "KNAPSACK efficiency: " << efficiency << '\n';
}
}
void
DistributionMapping::KnapSackProcessorMap (const std::vector<long>& wgts,
int nprocs,
Real* efficiency,
bool do_full_knapsack,
int nmax)
{
BL_ASSERT(wgts.size() > 0);
m_ref->clear();
m_ref->m_pmap.resize(wgts.size());
if (static_cast<int>(wgts.size()) <= nprocs || nprocs < 2)
{
RoundRobinProcessorMap(wgts.size(),nprocs);
if (efficiency) *efficiency = 1;
}
else
{
Real eff = 0;
KnapSackDoIt(wgts, nprocs, eff, do_full_knapsack, nmax);
if (efficiency) *efficiency = eff;
}
}
void
DistributionMapping::KnapSackProcessorMap (const BoxArray& boxes,
int nprocs)
{
BL_ASSERT(boxes.size() > 0);
BL_ASSERT(m_ref->m_pmap.size() == boxes.size());
if (boxes.size() <= nprocs || nprocs < 2)
{
RoundRobinProcessorMap(boxes,nprocs);
}
else
{
std::vector<long> wgts(boxes.size());
for (unsigned int i = 0, N = boxes.size(); i < N; ++i)
wgts[i] = boxes[i].numPts();
Real effi = 0;
bool do_full_knapsack = true;
KnapSackDoIt(wgts, nprocs, effi, do_full_knapsack);
}
}
namespace
{
struct SFCToken
{
class Compare
{
public:
bool operator () (const SFCToken& lhs,
const SFCToken& rhs) const;
};
SFCToken (int box, const IntVect& idx, Real vol)
:
m_box(box), m_idx(idx), m_vol(vol) {}
int m_box;
IntVect m_idx;
Real m_vol;
static int MaxPower;
};
}
int SFCToken::MaxPower = 64;
bool
SFCToken::Compare::operator () (const SFCToken& lhs,
const SFCToken& rhs) const
{
for (int i = SFCToken::MaxPower - 1; i >= 0; --i)
{
const int N = (1<<i);
for (int j = AMREX_SPACEDIM-1; j >= 0; --j)
{
const int il = lhs.m_idx[j]/N;
const int ir = rhs.m_idx[j]/N;
if (il < ir)
{
return true;
}
else if (il > ir)
{
return false;
}
}
}
return false;
}
static
void
Distribute (const std::vector<SFCToken>& tokens,
int nprocs,
Real volpercpu,
std::vector< std::vector<int> >& v)
{
BL_PROFILE("DistributionMapping::Distribute()");
if (flag_verbose_mapper) {
Print() << "Distribute:" << std::endl;
Print() << " volpercpu: " << volpercpu << std::endl;
Print() << " Sorted SFC Tokens:" << std::endl;
int idx = 0;
for (const auto &t : tokens) {
Print() << " " << idx++ << ": "
<< t.m_box << ": "
<< t.m_idx << ": "
<< t.m_vol << std::endl;
}
}
BL_ASSERT(static_cast<int>(v.size()) == nprocs);
int K = 0;
Real totalvol = 0;
for (int i = 0; i < nprocs; ++i)
{
int cnt = 0;
Real vol = 0;
for ( int TSZ = static_cast<int>(tokens.size());
K < TSZ && (i == (nprocs-1) || (vol < volpercpu));
++K)
{
vol += tokens[K].m_vol;
++cnt;
v[i].push_back(tokens[K].m_box);
}
totalvol += vol;
if ((totalvol/(i+1)) > volpercpu && // Too much for this bin.
cnt > 1 && // More than one box in this bin.
i < nprocs-1) // Not the last bin, which has to take all.
{
--K;
v[i].pop_back();
totalvol -= tokens[K].m_vol;
}
}
if (flag_verbose_mapper) {
Print() << "Distributed SFC Tokens:" << std::endl;
int idx = 0;
for (int i = 0; i < nprocs; ++i) {
Print() << " Rank/Team " << i << ":" << std::endl;
Real rank_vol = 0;
for (const auto &box : v[i]) {
const auto &t = tokens[idx];
BL_ASSERT(box == t.m_box);
Print() << " " << idx << ": "
<< t.m_box << ": "
<< t.m_idx << ": "
<< t.m_vol << std::endl;
rank_vol += t.m_vol;
idx++;
}
Print() << " Total Rank Vol: " << rank_vol << std::endl;
}
}
#ifdef AMREX_DEBUG
int cnt = 0;
for (int i = 0; i < nprocs; ++i) {
cnt += v[i].size();
}
BL_ASSERT(cnt == static_cast<int>(tokens.size()));
#endif
}
void
DistributionMapping::SFCProcessorMapDoIt (const BoxArray& boxes,
const std::vector<long>& wgts,
int /* nprocs */,
bool sort)
{
if (flag_verbose_mapper) {
Print() << "DM: SFCProcessorMapDoIt called..." << std::endl;
}
BL_PROFILE("DistributionMapping::SFCProcessorMapDoIt()");
int nprocs = ParallelContext::NProcsSub();
int nteams = nprocs;
int nworkers = 1;
#if defined(BL_USE_TEAM)
nteams = ParallelDescriptor::NTeams();
nworkers = ParallelDescriptor::TeamSize();
#else
if (node_size > 0) {
nteams = nprocs/node_size;
nworkers = node_size;
if (nworkers*nteams != nprocs) {
nteams = nprocs;
nworkers = 1;
}
}
#endif
if (flag_verbose_mapper) {
Print() << " (nprocs, nteams, nworkers) = ("
<< nprocs << ", " << nteams << ", " << nworkers << ")\n";
}
std::vector<SFCToken> tokens;
const int N = boxes.size();
tokens.reserve(N);
int maxijk = 0;
for (int i = 0; i < N; ++i)
{
const Box& bx = boxes[i];
tokens.push_back(SFCToken(i,bx.smallEnd(),wgts[i]));
const SFCToken& token = tokens.back();
AMREX_D_TERM(maxijk = std::max(maxijk, token.m_idx[0]);,
maxijk = std::max(maxijk, token.m_idx[1]);,
maxijk = std::max(maxijk, token.m_idx[2]););
}
//
// Set SFCToken::MaxPower for BoxArray.
//
int m = 0;
for ( ; (1 << m) <= maxijk; ++m) {
; // do nothing
}
SFCToken::MaxPower = m;
//
// Put'm in Morton space filling curve order.
//
std::sort(tokens.begin(), tokens.end(), SFCToken::Compare());
//
// Split'm up as equitably as possible per team.
//
Real volperteam = 0;
for (const SFCToken& tok : tokens) {
volperteam += tok.m_vol;
}
volperteam /= nteams;
std::vector< std::vector<int> > vec(nteams);
Distribute(tokens,nteams,volperteam,vec);
// vec has a size of nteams and vec[] holds a vector of box ids.
tokens.clear();
std::vector<LIpair> LIpairV;
LIpairV.reserve(nteams);
for (int i = 0; i < nteams; ++i)
{
long wgt = 0;
const std::vector<int>& vi = vec[i];
for (int j = 0, M = vi.size(); j < M; ++j)
wgt += wgts[vi[j]];
LIpairV.push_back(LIpair(wgt,i));
}
if (sort) Sort(LIpairV, true);
if (flag_verbose_mapper) {
for (const auto &p : LIpairV) {
Print() << " Bucket " << p.second << " contains " << p.first << std::endl;
}
}
// LIpairV has a size of nteams and LIpairV[] is pair whose first is weight
// and second is an index into vec. LIpairV is sorted by weight such that
// LIpairV is the heaviest.
Vector<int> ord;
Vector<Vector<int> > wrkerord;
if (nteams == nprocs) {
if (sort) {
LeastUsedCPUs(nprocs,ord);
} else {
ord.resize(nprocs);
std::iota(ord.begin(), ord.end(), 0);
}
} else {
if (sort) {
LeastUsedTeams(ord,wrkerord,nteams,nworkers);
} else {
ord.resize(nteams);
std::iota(ord.begin(), ord.end(), 0);
wrkerord.resize(nteams);
for (auto& v : wrkerord) {
v.resize(nworkers);
std::iota(v.begin(), v.end(), 0);
}
}
}
// ord is a vector of process (or team) ids, sorted from least used to more heavily used.
// wrkerord is a vector of sorted worker ids.
for (int i = 0; i < nteams; ++i)
{
const int tid = ord[i]; // tid is team id
const int ivec = LIpairV[i].second; // index into vec
const std::vector<int>& vi = vec[ivec]; // this vector contains boxes assigned to this team
const int Nbx = vi.size(); // # of boxes assigned to this team
if (flag_verbose_mapper) {
Print() << "Mapping bucket " << LIpairV[i].second << " to rank " << ord[i] << std::endl;
}
if (nteams == nprocs) { // In this case, team id is process id.
for (int j = 0; j < Nbx; ++j)
{
m_ref->m_pmap[vi[j]] = ParallelContext::local_to_global_rank(tid);
}
}
else // We would like to do knapsack within the team workers
{
std::vector<long> local_wgts;
for (int j = 0; j < Nbx; ++j) {
local_wgts.push_back(wgts[vi[j]]);
}
std::vector<std::vector<int> > kpres;
Real kpeff;
knapsack(local_wgts, nworkers, kpres, kpeff, true, N);
// kpres has a size of nworkers. kpres[] contains a vector of indices into vi.
// sort the knapsacked chunks
std::vector<LIpair> ww;
for (int w = 0; w < nworkers; ++w) {
long wgt = 0;
for (std::vector<int>::const_iterator it = kpres[w].begin();
it != kpres[w].end(); ++it)
{
wgt += local_wgts[*it];
}
ww.push_back(LIpair(wgt,w));
}
Sort(ww,true);
// ww is a sorted vector of pair whose first is the weight and second is a index
// into kpres.
const Vector<int>& sorted_workers = wrkerord[i];
const int leadrank = tid * nworkers;
for (int w = 0; w < nworkers; ++w)
{
const int cpu = leadrank + sorted_workers[w];
int ikp = ww[w].second;
const std::vector<int>& js = kpres[ikp];
for (std::vector<int>::const_iterator it = js.begin(); it!=js.end(); ++it)
m_ref->m_pmap[vi[*it]] = cpu;
}
}
}
if (verbose)
{
Real sum_wgt = 0, max_wgt = 0;
for (int i = 0; i < nteams; ++i)
{
const long W = LIpairV[i].first;
if (W > max_wgt)
max_wgt = W;
sum_wgt += W;
}
amrex::Print() << "SFC efficiency: " << (sum_wgt/(nteams*max_wgt)) << '\n';
}
}
void
DistributionMapping::SFCProcessorMap (const BoxArray& boxes,
int nprocs)
{
BL_ASSERT(boxes.size() > 0);
m_ref->clear();
m_ref->m_pmap.resize(boxes.size());
if (boxes.size() < sfc_threshold*nprocs)
{
KnapSackProcessorMap(boxes,nprocs);
}
else
{
std::vector<long> wgts;
wgts.reserve(boxes.size());
for (int i = 0, N = boxes.size(); i < N; ++i)
{
wgts.push_back(boxes[i].volume());
}
SFCProcessorMapDoIt(boxes,wgts,nprocs);
}
}
void
DistributionMapping::SFCProcessorMap (const BoxArray& boxes,
const std::vector<long>& wgts,
int nprocs,
bool sort)
{
BL_ASSERT(boxes.size() > 0);
BL_ASSERT(boxes.size() == static_cast<int>(wgts.size()));
m_ref->clear();
m_ref->m_pmap.resize(wgts.size());
if (boxes.size() < sfc_threshold*nprocs)
{
KnapSackProcessorMap(wgts,nprocs);
}
else
{
SFCProcessorMapDoIt(boxes,wgts,nprocs,sort);
}
}
void
DistributionMapping::RRSFCDoIt (const BoxArray& boxes,
int nprocs)
{
BL_PROFILE("DistributionMapping::RRSFCDoIt()");
#if defined (BL_USE_TEAM)
amrex::Abort("Team support is not implemented yet in RRSFC");
#endif
std::vector<SFCToken> tokens;
const int nboxes = boxes.size();
tokens.reserve(nboxes);
int maxijk = 0;
for (int i = 0; i < nboxes; ++i)
{
const Box& bx = boxes[i];
tokens.push_back(SFCToken(i,bx.smallEnd(),0.0));
const SFCToken& token = tokens.back();
AMREX_D_TERM(maxijk = std::max(maxijk, token.m_idx[0]);,
maxijk = std::max(maxijk, token.m_idx[1]);,
maxijk = std::max(maxijk, token.m_idx[2]););
}
//
// Set SFCToken::MaxPower for BoxArray.
//
int m = 0;
for ( ; (1 << m) <= maxijk; ++m) {
; // do nothing
}
SFCToken::MaxPower = m;
//
// Put'm in Morton space filling curve order.
//
std::sort(tokens.begin(), tokens.end(), SFCToken::Compare());
Vector<int> ord;
LeastUsedCPUs(nprocs,ord);
// Distribute boxes using roundrobin
for (int i = 0; i < nboxes; ++i) {
m_ref->m_pmap[i] = ParallelContext::local_to_global_rank(ord[i%nprocs]);
}
}
void
DistributionMapping::RRSFCProcessorMap (const BoxArray& boxes,
int nprocs)
{
BL_ASSERT(boxes.size() > 0);
m_ref->clear();
m_ref->m_pmap.resize(boxes.size());
RRSFCDoIt(boxes,nprocs);
}
DistributionMapping
DistributionMapping::makeKnapSack (const Vector<Real>& rcost)
{
BL_PROFILE("makeKnapSack");
DistributionMapping r;
Vector<long> cost(rcost.size());
Real wmax = *std::max_element(rcost.begin(), rcost.end());
Real scale = (wmax == 0) ? 1.e9 : 1.e9/wmax;
for (int i = 0; i < rcost.size(); ++i) {
cost[i] = long(rcost[i]*scale) + 1L;
}
int nprocs = ParallelContext::NProcsSub();
Real eff;
r.KnapSackProcessorMap(cost, nprocs, &eff, true);
return r;
}
DistributionMapping
DistributionMapping::makeKnapSack (const MultiFab& weight, int nmax)
{
BL_PROFILE("makeKnapSack");
DistributionMapping r;
Vector<long> cost(weight.size());
#if BL_USE_MPI
{
Vector<Real> rcost(cost.size(), 0.0);
#ifdef _OPENMP
#pragma omp parallel
#endif
for (MFIter mfi(weight); mfi.isValid(); ++mfi) {
int i = mfi.index();
rcost[i] = weight[mfi].sum(mfi.validbox(),0);
}
ParallelAllReduce::Sum(&rcost[0], rcost.size(), ParallelContext::CommunicatorSub());
Real wmax = *std::max_element(rcost.begin(), rcost.end());
Real scale = (wmax == 0) ? 1.e9 : 1.e9/wmax;
for (int i = 0; i < rcost.size(); ++i) {
cost[i] = long(rcost[i]*scale) + 1L;
}
}
#endif
int nprocs = ParallelContext::NProcsSub();
Real eff;
r.KnapSackProcessorMap(cost, nprocs, &eff, true, nmax);
return r;
}
DistributionMapping
DistributionMapping::makeRoundRobin (const MultiFab& weight)
{
DistributionMapping r;
Vector<long> cost(weight.size());
#if BL_USE_MPI
{
Vector<Real> rcost(cost.size(), 0.0);
#ifdef _OPENMP
#pragma omp parallel
#endif
for (MFIter mfi(weight); mfi.isValid(); ++mfi) {
int i = mfi.index();
rcost[i] = weight[mfi].sum(mfi.validbox(),0);
}
ParallelAllReduce::Sum(&rcost[0], rcost.size(), ParallelContext::CommunicatorSub());
Real wmax = *std::max_element(rcost.begin(), rcost.end());
Real scale = (wmax == 0) ? 1.e9 : 1.e9/wmax;
for (int i = 0; i < rcost.size(); ++i) {
cost[i] = long(rcost[i]*scale) + 1L;
}
}
#endif
int nprocs = ParallelContext::NProcsSub();
r.RoundRobinProcessorMap(cost, nprocs);
return r;
}
DistributionMapping
DistributionMapping::makeSFC (const MultiFab& weight, bool sort)
{
DistributionMapping r;
Vector<long> cost(weight.size());
#if BL_USE_MPI
{
Vector<Real> rcost(cost.size(), 0.0);
#ifdef _OPENMP
#pragma omp parallel
#endif
for (MFIter mfi(weight); mfi.isValid(); ++mfi) {
int i = mfi.index();
rcost[i] = weight[mfi].sum(mfi.validbox(),0);
}
ParallelAllReduce::Sum(&rcost[0], rcost.size(), ParallelContext::CommunicatorSub());
Real wmax = *std::max_element(rcost.begin(), rcost.end());
Real scale = (wmax == 0) ? 1.e9 : 1.e9/wmax;
for (int i = 0; i < rcost.size(); ++i) {
cost[i] = long(rcost[i]*scale) + 1L;
}
}
#endif
int nprocs = ParallelContext::NProcsSub();
r.SFCProcessorMap(weight.boxArray(), cost, nprocs, sort);
return r;
}
std::vector<std::vector<int> >
DistributionMapping::makeSFC (const BoxArray& ba, bool use_box_vol)
{
std::vector<SFCToken> tokens;
const int N = ba.size();
tokens.reserve(N);
int maxijk = 0;
Real vol_sum = 0;
for (int i = 0; i < N; ++i)
{
const Box& bx = ba[i];
const auto & bx_vol = (use_box_vol ? bx.volume() : 1);
tokens.push_back(SFCToken(i,bx.smallEnd(),bx_vol));
vol_sum += bx_vol;
const SFCToken& token = tokens.back();
AMREX_D_TERM(maxijk = std::max(maxijk, token.m_idx[0]);,
maxijk = std::max(maxijk, token.m_idx[1]);,
maxijk = std::max(maxijk, token.m_idx[2]););
}
//
// Set SFCToken::MaxPower for BoxArray.
//
int m = 0;
for ( ; (1 << m) <= maxijk; ++m) {
; // do nothing
}
SFCToken::MaxPower = m;
//
// Put'm in Morton space filling curve order.
//
std::sort(tokens.begin(), tokens.end(), SFCToken::Compare());
const int nprocs = ParallelContext::NProcsSub();
Real volper;
volper = vol_sum / nprocs;
std::vector< std::vector<int> > r(nprocs);
Distribute(tokens, nprocs, volper, r);
return r;
}
const Vector<int>&
DistributionMapping::getIndexArray ()
{
if (m_ref->m_index_array.empty())
{
int myProc = ParallelDescriptor::MyProc();
for(int i = 0, N = m_ref->m_pmap.size(); i < N; ++i) {
int rank = m_ref->m_pmap[i];
if (ParallelDescriptor::sameTeam(rank)) {
// If Team is not used (i.e., team size == 1), distributionMap[i] == myProc
m_ref->m_index_array.push_back(i);
m_ref->m_ownership.push_back(myProc == rank);
}
}
}
return m_ref->m_index_array;
}
const std::vector<bool>&
DistributionMapping::getOwnerShip ()
{
if (m_ref->m_ownership.empty())
{
int myProc = ParallelDescriptor::MyProc();
for(int i = 0, N = m_ref->m_pmap.size(); i < N; ++i) {
int rank = m_ref->m_pmap[i];
if (ParallelDescriptor::sameTeam(rank)) {
// If Team is not used (i.e., team size == 1), distributionMap[i] == myProc
m_ref->m_index_array.push_back(i);
m_ref->m_ownership.push_back(myProc == rank);
}
}
}
return m_ref->m_ownership;
}
std::ostream&
operator<< (std::ostream& os,
const DistributionMapping& pmap)
{
os << "(DistributionMapping" << '\n';
for (int i = 0; i < pmap.ProcessorMap().size(); ++i)
{
os << "m_pmap[" << i << "] = " << pmap.ProcessorMap()[i] << '\n';
}
os << ')' << '\n';
if (os.fail())
amrex::Error("operator<<(ostream &, DistributionMapping &) failed");
return os;
}
std::ostream&
operator<< (std::ostream& os, const DistributionMapping::RefID& id)
{
os << id.data;
return os;
}
}
| 25.448774 | 101 | 0.541826 | ylunalin |
29a327f104fa81e5637e6803b8eb8821c8da5f7e | 2,782 | cpp | C++ | src/around_the_world_ygm.cpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | null | null | null | src/around_the_world_ygm.cpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | 4 | 2022-03-21T18:20:51.000Z | 2022-03-31T23:52:51.000Z | src/around_the_world_ygm.cpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | 2 | 2022-03-21T17:37:45.000Z | 2022-03-22T23:08:39.000Z | // Copyright 2019-2021 Lawrence Livermore National Security, LLC and other YGM
// Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: MIT
#include <algorithm>
#include <string>
#include <ygm/comm.hpp>
#include <ygm/utility.hpp>
static int num_trips;
static int curr_trip = 0;
struct around_the_world_functor {
public:
template <typename Comm>
void operator()(Comm *world) {
if (curr_trip < num_trips) {
world->async((world->rank() + 1) % world->size(),
around_the_world_functor());
++curr_trip;
}
}
};
int main(int argc, char **argv) {
ygm::comm world(&argc, &argv);
num_trips = atoi(argv[1]);
int num_trials{atoi(argv[2])};
bool wait_until{false};
const char *wait_until_tmp = std::getenv("YGM_BENCH_ATW_WAIT_UNTIL");
std::string wait_until_str(wait_until_tmp ? wait_until_tmp : "false");
std::transform(
wait_until_str.begin(), wait_until_str.end(), wait_until_str.begin(),
[](unsigned char c) -> unsigned char { return std::tolower(c); });
if (wait_until_str == "true") {
wait_until = true;
}
if (world.rank0()) {
std::cout << world.layout().node_size() << ", "
<< world.layout().local_size() << ", " << world.routing_protocol()
<< ", " << num_trips << ", " << wait_until_str;
}
world.barrier();
for (int trial = 0; trial < num_trials; ++trial) {
curr_trip = 0;
world.barrier();
world.stats_reset();
world.set_track_stats(true);
ygm::timer trip_timer{};
if (world.rank0()) {
world.async(1, around_the_world_functor());
}
if (wait_until) {
world.wait_until([]() { return curr_trip >= num_trips; });
}
world.barrier();
world.set_track_stats(false);
double elapsed = trip_timer.elapsed();
auto trial_stats = world.stats_snapshot();
// world.cout0("Went around the world ", num_trips, " times in ", elapsed,
//" seconds\nAverage trip time: ", elapsed / num_trips);
size_t message_bytes{0};
size_t header_bytes{0};
for (const auto &bytes : trial_stats.get_destination_message_bytes_sum()) {
message_bytes += bytes;
}
for (const auto &bytes : trial_stats.get_destination_header_bytes_sum()) {
header_bytes += bytes;
}
message_bytes = world.all_reduce_sum(message_bytes);
header_bytes = world.all_reduce_sum(header_bytes);
if (world.rank0()) {
auto total_hops = num_trips * world.size();
std::cout << ", " << elapsed << ", " << total_hops / elapsed << ", "
<< header_bytes << ", " << message_bytes << ", "
<< trial_stats.get_all_reduce_count();
}
}
if (world.rank0()) {
std::cout << std::endl;
}
return 0;
}
| 26.245283 | 80 | 0.619698 | steiltre |
29a52f6f691e7a8f94744c268a96a215c2133a20 | 6,344 | cpp | C++ | toonz/sources/stdfx/channelmixerfx.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 3,710 | 2016-03-26T00:40:48.000Z | 2022-03-31T21:35:12.000Z | toonz/sources/stdfx/channelmixerfx.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 4,246 | 2016-03-26T01:21:45.000Z | 2022-03-31T23:10:47.000Z | toonz/sources/stdfx/channelmixerfx.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 633 | 2016-03-26T00:42:25.000Z | 2022-03-17T02:55:13.000Z |
#include "stdfx.h"
#include "tfxparam.h"
//#include "trop.h"
#include <math.h>
#include "tpixelutils.h"
#include "globalcontrollablefx.h"
//==================================================================
class ChannelMixerFx final : public GlobalControllableFx {
FX_PLUGIN_DECLARATION(ChannelMixerFx)
TRasterFxPort m_input;
TDoubleParamP m_r_r;
TDoubleParamP m_g_r;
TDoubleParamP m_b_r;
TDoubleParamP m_m_r;
TDoubleParamP m_r_g;
TDoubleParamP m_g_g;
TDoubleParamP m_b_g;
TDoubleParamP m_m_g;
TDoubleParamP m_r_b;
TDoubleParamP m_g_b;
TDoubleParamP m_b_b;
TDoubleParamP m_m_b;
TDoubleParamP m_r_m;
TDoubleParamP m_g_m;
TDoubleParamP m_b_m;
TDoubleParamP m_m_m;
public:
ChannelMixerFx()
: m_r_r(1.0)
, m_g_r(0.0)
, m_b_r(0.0)
, m_m_r(0.0)
, m_r_g(0.0)
, m_g_g(1.0)
, m_b_g(0.0)
, m_m_g(0.0)
, m_r_b(0.0)
, m_g_b(0.0)
, m_b_b(1.0)
, m_m_b(0.0)
, m_r_m(0.0)
, m_g_m(0.0)
, m_b_m(0.0)
, m_m_m(1.0)
{
addInputPort("Source", m_input);
bindParam(this, "red_to_red", m_r_r);
bindParam(this, "green_to_red", m_g_r);
bindParam(this, "blue_to_red", m_b_r);
bindParam(this, "matte_to_red", m_m_r);
bindParam(this, "red_to_green", m_r_g);
bindParam(this, "green_to_green", m_g_g);
bindParam(this, "blue_to_green", m_b_g);
bindParam(this, "matte_to_green", m_m_g);
bindParam(this, "red_to_blue", m_r_b);
bindParam(this, "green_to_blue", m_g_b);
bindParam(this, "blue_to_blue", m_b_b);
bindParam(this, "matte_to_blue", m_m_b);
bindParam(this, "red_to_matte", m_r_m);
bindParam(this, "green_to_matte", m_g_m);
bindParam(this, "blue_to_matte", m_b_m);
bindParam(this, "matte_to_matte", m_m_m);
m_r_r->setValueRange(0, 1);
m_r_g->setValueRange(0, 1);
m_r_b->setValueRange(0, 1);
m_r_m->setValueRange(0, 1);
m_g_r->setValueRange(0, 1);
m_g_g->setValueRange(0, 1);
m_g_b->setValueRange(0, 1);
m_g_m->setValueRange(0, 1);
m_b_r->setValueRange(0, 1);
m_b_g->setValueRange(0, 1);
m_b_b->setValueRange(0, 1);
m_b_m->setValueRange(0, 1);
m_m_r->setValueRange(0, 1);
m_m_g->setValueRange(0, 1);
m_m_b->setValueRange(0, 1);
m_m_m->setValueRange(0, 1);
}
~ChannelMixerFx(){};
bool doGetBBox(double frame, TRectD &bBox,
const TRenderSettings &info) override {
if (m_input.isConnected())
return m_input->doGetBBox(frame, bBox, info);
else {
bBox = TRectD();
return false;
}
};
void doCompute(TTile &tile, double frame, const TRenderSettings &ri) override;
bool canHandle(const TRenderSettings &info, double frame) override {
return true;
}
};
namespace {
template <typename PIXEL, typename CHANNEL_TYPE>
void depremult(PIXEL *pix) {
if (!pix->m) return;
double depremult = (double)PIXEL::maxChannelValue / pix->m;
pix->r = (CHANNEL_TYPE)(pix->r * depremult);
pix->g = (CHANNEL_TYPE)(pix->g * depremult);
pix->b = (CHANNEL_TYPE)(pix->b * depremult);
}
} // namespace
template <typename PIXEL, typename CHANNEL_TYPE>
void doChannelMixer(TRasterPT<PIXEL> ras, double r_r, double r_g, double r_b,
double r_m, double g_r, double g_g, double g_b, double g_m,
double b_r, double b_g, double b_b, double b_m, double m_r,
double m_g, double m_b, double m_m) {
double aux = (double)PIXEL::maxChannelValue;
int j;
ras->lock();
for (j = 0; j < ras->getLy(); j++) {
PIXEL *pix = ras->pixels(j);
PIXEL *endPix = pix + ras->getLx();
while (pix < endPix) {
depremult<PIXEL, CHANNEL_TYPE>(pix); // if removed, a black line appears
// in the edge of a level (default
// values, not black lines)
double red = pix->r * r_r + pix->g * g_r + pix->b * b_r + pix->m * m_r;
double green = pix->r * r_g + pix->g * g_g + pix->b * b_g + pix->m * m_g;
double blue = pix->r * r_b + pix->g * g_b + pix->b * b_b + pix->m * m_b;
double matte = pix->r * r_m + pix->g * g_m + pix->b * b_m + pix->m * m_m;
red = tcrop(red, 0.0, aux);
green = tcrop(green, 0.0, aux);
blue = tcrop(blue, 0.0, aux);
matte = tcrop(matte, 0.0, aux);
pix->r = (CHANNEL_TYPE)red;
pix->g = (CHANNEL_TYPE)green;
pix->b = (CHANNEL_TYPE)blue;
pix->m = (CHANNEL_TYPE)matte;
*pix = premultiply(*pix); // if removed, a white edged line appears in
// the edge of a level (if m>r, g, b)
pix++;
}
}
ras->unlock();
}
//------------------------------------------------------------------------------
void ChannelMixerFx::doCompute(TTile &tile, double frame,
const TRenderSettings &ri) {
if (!m_input.isConnected()) return;
m_input->compute(tile, frame, ri);
double r_r = m_r_r->getValue(frame);
double r_g = m_r_g->getValue(frame);
double r_b = m_r_b->getValue(frame);
double r_m = m_r_m->getValue(frame);
double g_r = m_g_r->getValue(frame);
double g_g = m_g_g->getValue(frame);
double g_b = m_g_b->getValue(frame);
double g_m = m_g_m->getValue(frame);
double b_r = m_b_r->getValue(frame);
double b_g = m_b_g->getValue(frame);
double b_b = m_b_b->getValue(frame);
double b_m = m_b_m->getValue(frame);
double m_r = m_m_r->getValue(frame);
double m_g = m_m_g->getValue(frame);
double m_b = m_m_b->getValue(frame);
double m_m = m_m_m->getValue(frame);
TRaster32P raster32 = tile.getRaster();
if (raster32)
doChannelMixer<TPixel32, UCHAR>(raster32, r_r, r_g, r_b, r_m, g_r, g_g, g_b,
g_m, b_r, b_g, b_b, b_m, m_r, m_g, m_b,
m_m);
else {
TRaster64P raster64 = tile.getRaster();
if (raster64)
doChannelMixer<TPixel64, USHORT>(raster64, r_r, r_g, r_b, r_m, g_r, g_g,
g_b, g_m, b_r, b_g, b_b, b_m, m_r, m_g,
m_b, m_m);
else
throw TException("Brightness&Contrast: unsupported Pixel Type");
}
}
FX_PLUGIN_IDENTIFIER(ChannelMixerFx, "channelMixerFx")
| 33.21466 | 80 | 0.584016 | rozhuk-im |
29a603fb54da5e32d67f16238b519000b88f27ab | 7,084 | cpp | C++ | src/caffe/syncedmem.cpp | Amanda-Barbara/nvcaffe | 5155a708b235a818ce300aa3f9fc235ece9a35fb | [
"BSD-2-Clause"
] | 758 | 2015-03-08T20:54:38.000Z | 2022-01-11T03:14:51.000Z | src/caffe/syncedmem.cpp | Matsuko9/caffe | 17e347e42e664b87d80f63bfbbb89bec5e559242 | [
"BSD-2-Clause"
] | 493 | 2015-04-28T00:08:53.000Z | 2021-08-04T07:26:54.000Z | src/caffe/syncedmem.cpp | Matsuko9/caffe | 17e347e42e664b87d80f63bfbbb89bec5e559242 | [
"BSD-2-Clause"
] | 389 | 2015-03-05T12:11:44.000Z | 2022-03-13T21:49:42.000Z | #include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/type.hpp"
#include "caffe/util/gpu_memory.hpp"
#include "caffe/util/math_functions.hpp"
#define MAX_ELEM_TO_SHOW 20UL
namespace caffe {
// If CUDA is available and in GPU mode, host memory will be allocated pinned,
// using cudaMallocHost. It avoids dynamic pinning for transfers (DMA).
// The improvement in performance seems negligible in the single GPU case,
// but might be more significant for parallel training. Most importantly,
// it improved stability for large models on many GPUs.
void SyncedMemory::MallocHost(void** ptr, size_t size, bool* use_cuda) {
if (Caffe::mode() == Caffe::GPU) {
CUDA_CHECK(cudaMallocHost(ptr, size));
*use_cuda = true;
} else {
*ptr = malloc(size);
*use_cuda = false;
}
}
void SyncedMemory::FreeHost(void* ptr, bool use_cuda) {
if (use_cuda) {
CUDA_CHECK(cudaFreeHost(ptr));
} else {
free(ptr);
}
}
SyncedMemory::~SyncedMemory() {
if (cpu_ptr_ && own_cpu_data_) {
FreeHost(cpu_ptr_, cpu_malloc_use_cuda_);
}
if (gpu_ptr_ && own_gpu_data_) {
//#ifdef DEBUG
// cudaPointerAttributes attr;
// cudaError_t status = cudaPointerGetAttributes(&attr, gpu_ptr_);
// if (status == cudaSuccess) {
// CHECK_EQ(attr.memoryType, cudaMemoryTypeDevice);
// CHECK_EQ(attr.device, device_);
// }
//#endif
GPUMemory::deallocate(gpu_ptr_, device_);
}
}
void SyncedMemory::to_cpu(bool copy_from_gpu, int group) {
switch (head_) {
case UNINITIALIZED:
MallocHost(&cpu_ptr_, size_, &cpu_malloc_use_cuda_);
caffe_memset(size_, 0, cpu_ptr_);
head_ = HEAD_AT_CPU;
own_cpu_data_ = true;
break;
case HEAD_AT_GPU:
if (cpu_ptr_ == NULL) {
MallocHost(&cpu_ptr_, size_, &cpu_malloc_use_cuda_);
own_cpu_data_ = true;
}
if (copy_from_gpu) {
caffe_gpu_memcpy(size_, gpu_ptr_, cpu_ptr_, group);
head_ = SYNCED;
} else {
head_ = HEAD_AT_CPU;
}
break;
case HEAD_AT_CPU:
case SYNCED:
break;
}
}
void SyncedMemory::to_gpu(bool copy_from_cpu, int group) {
switch (head_) {
case UNINITIALIZED:
CUDA_CHECK(cudaGetDevice(&device_));
pstream_ = Caffe::thread_pstream(group);
GPUMemory::allocate(&gpu_ptr_, size_, device_, pstream_);
caffe_gpu_memset(size_, 0, gpu_ptr_, group);
head_ = HEAD_AT_GPU;
own_gpu_data_ = true;
break;
case HEAD_AT_CPU:
if (gpu_ptr_ == NULL) {
CUDA_CHECK(cudaGetDevice(&device_));
pstream_ = Caffe::thread_pstream(group);
GPUMemory::allocate(&gpu_ptr_, size_, device_, pstream_);
own_gpu_data_ = true;
}
if (copy_from_cpu) {
caffe_gpu_memcpy(size_, cpu_ptr_, gpu_ptr_, group);
head_ = SYNCED;
} else {
head_ = HEAD_AT_GPU;
}
break;
case HEAD_AT_GPU:
case SYNCED:
break;
}
}
const void* SyncedMemory::cpu_data() {
to_cpu();
return (const void*) cpu_ptr_;
}
void SyncedMemory::set_cpu_data(void* data) {
CHECK(data);
if (own_cpu_data_) {
FreeHost(cpu_ptr_, cpu_malloc_use_cuda_);
}
cpu_ptr_ = data;
head_ = HEAD_AT_CPU;
own_cpu_data_ = false;
}
const void* SyncedMemory::gpu_data(int group) {
to_gpu(true, group);
return (const void*) gpu_ptr_;
}
void SyncedMemory::set_gpu_data(void* data) {
CHECK(data);
if (gpu_ptr_ && own_gpu_data_) {
GPUMemory::deallocate(gpu_ptr_, device_);
}
gpu_ptr_ = data;
head_ = HEAD_AT_GPU;
own_gpu_data_ = false;
}
void* SyncedMemory::mutable_cpu_data(bool copy_from_gpu, int group) {
to_cpu(copy_from_gpu, group);
head_ = HEAD_AT_CPU;
return cpu_ptr_;
}
void* SyncedMemory::mutable_gpu_data(bool copy_from_cpu, int group) {
to_gpu(copy_from_cpu, group);
head_ = HEAD_AT_GPU;
return gpu_ptr_;
}
std::string SyncedMemory::to_string(int indent, Type type) { // debug helper
const std::string idt(indent, ' ');
std::ostringstream os;
os << idt << "SyncedMem " << this << ", size: " << size_ << ", type: " << Type_Name(type)
<< std::endl;
os << idt << "head_: ";
switch (head_) {
case UNINITIALIZED:
os << "UNINITIALIZED";
break;
case HEAD_AT_CPU:
os << "HEAD_AT_CPU";
break;
case HEAD_AT_GPU:
os << "HEAD_AT_GPU";
break;
case SYNCED:
os << "SYNCED";
break;
default:
os << "???";
break;
}
os << std::endl;
os << idt << "cpu_ptr_, gpu_ptr_: " << cpu_ptr_ << " " << gpu_ptr_ << std::endl;
os << idt << "own_cpu_data_, own_gpu_data_: " << own_cpu_data_ << " " << own_gpu_data_
<< std::endl;
os << idt << "cpu_malloc_use_cuda_, gpu_device_: " << cpu_malloc_use_cuda_ << " " << device_
<< std::endl;
os << idt << "valid_: " << valid_ << std::endl;
const void* data = cpu_data();
if (is_type<float>(type)) {
const float* fdata = static_cast<const float*>(data);
size_t n = std::min(size_ / sizeof(float), MAX_ELEM_TO_SHOW);
os << idt << "First " << n << " elements:";
for (size_t i = 0; i < n; ++i) {
os << " " << fdata[i];
}
os << std::endl;
os << idt << "First corrupted elements (if any):";
int j = 0;
for (size_t i = 0; i < size_ / sizeof(float) && j < MAX_ELEM_TO_SHOW; ++i) {
if (std::isinf(fdata[i]) || std::isnan(fdata[i])) {
os << idt << i << "->" << fdata[i] << " ";
++j;
}
}
os << std::endl;
} else if (is_type<float16>(type)) {
const float16* fdata = static_cast<const float16*>(data);
size_t n = std::min(size_ / sizeof(float16), MAX_ELEM_TO_SHOW);
os << idt << "First " << n << " elements:";
for (size_t i = 0; i < n; ++i) {
os << " " << float(fdata[i]);
}
os << std::endl;
os << idt << "First corrupted elements (if any):";
int j = 0;
for (size_t i = 0; i < size_ / sizeof(float16) && j < MAX_ELEM_TO_SHOW; ++i) {
if (std::isinf(fdata[i]) || std::isnan(fdata[i])) {
os << i << "->" << float(fdata[i]) << " ";
++j;
}
}
os << std::endl;
} else if (is_type<double>(type)) {
const double* fdata = static_cast<const double*>(data);
size_t n = std::min(size_ / sizeof(double), MAX_ELEM_TO_SHOW);
os << idt << "First " << n << " elements:";
for (size_t i = 0; i < n; ++i) {
os << " " << fdata[i];
}
} else if (is_type<unsigned int>(type)) {
const unsigned int* fdata = static_cast<const unsigned int*>(data);
size_t n = std::min(size_ / sizeof(unsigned int), MAX_ELEM_TO_SHOW);
os << idt << "First " << n << " elements:";
for (size_t i = 0; i < n; ++i) {
os << " " << fdata[i];
}
} else if (is_type<int>(type)) {
const int* fdata = static_cast<const int*>(data);
size_t n = std::min(size_ / sizeof(int), MAX_ELEM_TO_SHOW);
os << idt << "First " << n << " elements:";
for (size_t i = 0; i < n; ++i) {
os << " " << fdata[i];
}
} else {
LOG(FATAL) << "Unsupported data type: " << Type_Name(type);
}
os << std::endl;
return os.str();
}
} // namespace caffe
| 29.032787 | 94 | 0.600085 | Amanda-Barbara |
29a70f50fbea4c6ffa18e9527367ee4e49a69d32 | 126 | cpp | C++ | src/sylvan/queens.cpp | SSoelvsten/bdd-benchmark | f1176feb1584ed8a40bbd6ca975c5d8770d5786c | [
"MIT"
] | 3 | 2021-02-05T10:03:53.000Z | 2022-03-24T08:31:40.000Z | src/sylvan/queens.cpp | SSoelvsten/bdd-benchmark | f1176feb1584ed8a40bbd6ca975c5d8770d5786c | [
"MIT"
] | 7 | 2020-11-20T13:48:01.000Z | 2022-03-05T16:52:12.000Z | src/sylvan/queens.cpp | SSoelvsten/bdd-benchmark | f1176feb1584ed8a40bbd6ca975c5d8770d5786c | [
"MIT"
] | 1 | 2021-04-25T07:06:17.000Z | 2021-04-25T07:06:17.000Z | #include "../queens.cpp"
#include "package_mgr.h"
int main(int argc, char** argv)
{
run_queens<sylvan_mgr>(argc, argv);
}
| 14 | 37 | 0.674603 | SSoelvsten |
29a8e7b253d82f06641e89c5b659108250fed228 | 3,316 | cc | C++ | neighborhood-sgd.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | neighborhood-sgd.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | neighborhood-sgd.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | #include "Application.hh"
#include "GradientChart.hh"
#include "ParseController.hh"
#include "PV.hh"
#include "SGD.hh"
APPLICATION
using namespace Permute;
class NeighborhoodSGD : public Application {
private:
static Core::ParameterFloat paramLearningRate;
double LEARNING_RATE;
static Core::ParameterInt paramPartK;
static Core::ParameterInt paramPartMod;
int K, MOD;
public:
NeighborhoodSGD () :
Application ("neighborhood-sgd")
{}
virtual void getParameters () {
Application::getParameters ();
LEARNING_RATE = paramLearningRate (config);
K = paramPartK (config);
MOD = paramPartMod (config);
}
virtual void printParameterDescription (std::ostream & out) const {
paramLearningRate.printShortHelp (out);
paramPartK.printShortHelp (out);
paramPartMod.printShortHelp (out);
}
int main (const std::vector <std::string> & args) {
this -> getParameters ();
UpdateSGD update_sgd (LEARNING_RATE);
PV pv;
if (! this -> readPV (pv)) {
return EXIT_FAILURE;
}
std::vector <WRef> weights (pv.size ());
std::transform (pv.begin (), pv.end (),
weights.begin (),
std::select2nd <PV::value_type> ());
std::vector <double> values (weights.size ());
std::vector <double> weightSum (weights.size (), 0.0);
double count = 0.0;
Permutation source, target, pos, labels;
std::vector <int> parents;
ParseControllerRef controller (CubicParseController::create ());
std::istream & input = this -> input ();
for (int sentence = 0;
sentence < SENTENCES && readPermutationWithAlphabet (source, input);
++ sentence) {
std::cerr << sentence << " " << source.size () << std::endl;
readPermutationWithAlphabet (pos, input);
if (DEPENDENCY) {
readParents (parents, input);
readPermutationWithAlphabet (labels, input);
}
target = source;
readAlignment (target, input);
if (sentence % MOD == K) {
// Copies the current parameter values so gradients can be accumulated
// in place.
std::copy (weights.begin (), weights.end (),
values.begin ());
// Computes the gradient of the parameters with respect to the log
// likelihood of the current target permutation given its neighborhood.
SumBeforeCostRef bc (new SumBeforeCost (source.size (), "NeighborhoodSGD"));
this -> sumBeforeCost (bc, pv, source, pos, parents, labels);
GradientScorer scorer (bc, target);
GradientChart chart (target);
chart.parse (controller, scorer, pv);
// Updates the parameters: values holds the current parameters, and
// weights holds their gradients. Transforms the pair using UpdateSGD
// and assigns to weights.
std::transform(values.begin (), values.end (),
weights.begin (),
weights.begin (),
update_sgd);
update (weightSum, weights);
++ count;
}
}
Permute::set (weights, weightSum, 1.0 / count);
this -> writePV (pv);
return EXIT_SUCCESS;
}
} app;
Core::ParameterFloat NeighborhoodSGD::paramLearningRate ("rate", "the learning rate for SGD", 1.0, 0.0);
Core::ParameterInt NeighborhoodSGD::paramPartK ("k", "the remainder (mod --mod) of the sentences to use for training", 0, 0);
Core::ParameterInt NeighborhoodSGD::paramPartMod ("mod", "the number of parts in use for training", 1, 1);
| 30.145455 | 125 | 0.674005 | lemrobotry |
29ab1c9fa868820a033c2e0e664eca05cd71dd31 | 19,832 | cpp | C++ | Source/Director.cpp | bptigg/CovidSim | 6709bafdce0dfb35f3515f47a5a5199b2c3363f3 | [
"MIT"
] | 2 | 2020-07-15T12:36:55.000Z | 2020-08-02T09:53:54.000Z | Source/Director.cpp | bptigg/CovidSim | 6709bafdce0dfb35f3515f47a5a5199b2c3363f3 | [
"MIT"
] | 1 | 2020-07-04T09:23:50.000Z | 2020-07-04T09:31:27.000Z | Source/Director.cpp | bptigg/CovidSim | 6709bafdce0dfb35f3515f47a5a5199b2c3363f3 | [
"MIT"
] | null | null | null | #include "Director.h"
bool Director::task_permission(Actor::State state)
{
if (state == Actor::idle && m_current_tasks.size() <= max_actors_not_idle && sleep_active == false)
{
return true;
}
else
{
return false;
}
}
void Director::change_actor_location(Actor* actor, Task task, bool task_end)
{
auto [public_Buildings, education_Buildings, public_transport_building, house, generic_work] = task.location_type;
if (task_end != true)
{
if (std::get<0>(task.location_type) != NULL)
{
std::get<0>(task.location_type)->add_people_buiding(actor);
actor->set_location_state(Actor::public_building);
return;
}
if (std::get<1>(task.location_type) != NULL)
{
std::get<1>(task.location_type)->add_people_buiding(actor);
actor->set_location_state(Actor::work);
return;
}
if (std::get<2>(task.location_type) != NULL)
{
std::get<2>(task.location_type)->add_people_buiding(actor);
actor->set_location_state(Actor::work);
return;
}
if (std::get<3>(task.location_type) != NULL)
{
std::get<3>(task.location_type)->add_people_buiding(actor);
actor->set_location_state(Actor::home);
return;
}
if (std::get<4>(task.location_type) != NULL)
{
std::get<4>(task.location_type)->add_people_buiding(actor);
actor->set_location_state(Actor::work);
return;
}
}
else
{
if (std::get<0>(task.location_type) != NULL)
{
std::get<0>(task.location_type)->remove_people_building(actor);
actor->set_location_state(Actor::outside);
std::get<0>(task.location_type)->assigned_tasks = std::get<0>(task.location_type)->assigned_tasks - 1;
return;
}
if (std::get<1>(task.location_type) != NULL)
{
std::get<1>(task.location_type)->remove_people_building(actor);
actor->set_location_state(Actor::outside);
std::get<1>(task.location_type)->assigned_tasks = std::get<1>(task.location_type)->assigned_tasks - 1;
return;
}
if (std::get<2>(task.location_type) != NULL)
{
std::get<2>(task.location_type)->remove_people_building(actor);
actor->set_location_state(Actor::outside);
return;
}
if (std::get<3>(task.location_type) != NULL)
{
std::get<3>(task.location_type)->remove_people_building(actor);
actor->set_location_state(Actor::outside);
return;
}
if (std::get<4>(task.location_type) != NULL)
{
std::get<4>(task.location_type)->remove_people_building(actor);
actor->set_location_state(Actor::outside);
return;
}
}
}
void Director::world_task(mandatory_task task_type, int length)
{
clear_task_vector();
mandatorytask = true;
if (task_type != mandatory_task::sleep)
{
for (auto actor : m_population)
{
if (task_type == mandatory_task::go_home)
{
Task* task = new Task;
task->location_type = { NULL, NULL, NULL, actor->Home, NULL };
task->location = actor->House_Location();
task->task_length = length;
int delay = Random::random_number(0, 10, {});
actor->set_state(Actor::waiting);
m_current_tasks.push_back({ task, actor, delay });
}
else if (task_type == mandatory_task::go_to_work)
{
Task* task = new Task;
task->task_length = length;
//int x = std::get<0>(actor->Work_Location());
//int y = std::get<1>(actor->Work_Location());
//int tile_num = std::get<2>(actor->Work_Location());
//Generic_work* work = new Generic_work;
//Education_Buildings* school = new Education_Buildings;
//Public_Buildings* Work = new Public_Buildings;
//Public_transport_building* work_public_transport = new Public_transport_building;
if (actor->trasnport_work != NULL)
{
task->location_type = { NULL, NULL, actor->trasnport_work, NULL, NULL };
}
else if (actor->public_work != NULL)
{
task->location_type = { actor->public_work, NULL, NULL, NULL, NULL };
}
else if (actor->edu_work != NULL)
{
task->location_type = { NULL, actor->edu_work, NULL, NULL, NULL };
}
else if (actor->gen_work != NULL)
{
task->location_type = { NULL, NULL, NULL, NULL, actor->gen_work };
}
/*
bool found = false;
int a = 0;
for (int i = 0; i < m_tiles[tile_num]->Generic_work.size(); i++)
{
if (std::find(m_tiles[tile_num]->Generic_work[i]->Get_employees().begin(), m_tiles[tile_num]->Generic_work[i]->Get_employees().end(), actor) != m_tiles[tile_num]->Generic_work[i]->Get_employees().end())
{
found = true;
}
a++;
}
if (found == true)
{
task->location_type = { NULL, NULL, NULL, NULL, m_tiles[tile_num]->Generic_work[a] };
if (m_tiles[tile_num]->Generic_work[a]->closed == true)
{
delete task;
continue;
}
}
else
{
a = 0;
for (int i = 0; i < m_tiles[tile_num]->edu_buildings.size(); i++)
{
if (m_tiles[tile_num]->edu_buildings[i]->Get_Location() == actor->Work_Location())
{
found = true;
}
a++;
}
if (found == true)
{
task->location_type = { NULL, m_tiles[tile_num]->edu_buildings[a], NULL, NULL, NULL };
if (m_tiles[tile_num]->edu_buildings[a]->closed == true)
{
delete task;
continue;
}
}
else
{
a = 0;
for (int i = 0; i < m_tiles[tile_num]->Pub_buildings.size(); i++)
{
if (m_tiles[tile_num]->Pub_buildings[i]->Get_Location() == actor->Work_Location())
{
found = true;
}
a++;
}
if (found == true)
{
task->location_type = { m_tiles[tile_num]->Pub_buildings[a], NULL, NULL, NULL, NULL };
if (m_tiles[tile_num]->Pub_buildings[a]->closed == true)
{
delete task;
continue;
}
}
else
{
a = 0;
for (int i = 0; i < m_tiles[tile_num]->public_transport.size(); i++)
{
if (m_tiles[tile_num]->public_transport[i]->Get_Location() == actor->Work_Location())
{
found = true;
}
a++;
}
if (found == true)
{
task->location_type = { NULL, NULL, m_tiles[tile_num]->public_transport[a], NULL, NULL };
}
}
}
}
*/
task->location = actor->Work_Location();
int delay = Random::random_number(0, 10, {});
std::tuple<int, int, int> null_tuple = { 0,0,0 };
if (task->location != null_tuple)
{
actor->set_state(Actor::waiting);
m_current_tasks.push_back({ task, actor, delay });
}
else
{
delete task;
}
}
else if (task_type == mandatory_task::idle)
{
mandatorytask = false;
int x = 0;
if (actor->state_check() != Actor::idle)
{
actor->set_state(Actor::idle);
actor->idle_counts = 0;
if (actor->state_check() == Actor::in_transit && m_transit.size() != 0)
{
find_in_vector(m_transit, x, actor);
m_transit.erase(m_transit.begin() + x);
m_idle.push_back(actor);
//actor->set_state(Actor::idle);
}
if (actor->state_check() == Actor::doing_task && m_doing_task.size() != 0)
{
find_in_vector(m_doing_task, x, actor);
m_doing_task.erase(m_doing_task.begin() + x);
m_idle.push_back(actor);
//actor->set_state(Actor::idle);
}
}
}
}
}
else if (task_type == mandatory_task::sleep)
{
mandatorytask = false;
if (sleep_active == false)
{
sleep_active = true;
}
else
{
sleep_active = false;
}
}
}
void Director::run_tasks()
{
Log log_tasks(Log::LogLevelWarning);
for (int i = 0; i < m_current_tasks.size(); i++)
{
if (std::get<2>(m_current_tasks[i]) == 0)
{
Actor* agent = std::get<1>(m_current_tasks[i]);
if (agent->Get_Location() != std::get<0>(m_current_tasks[i])->location)
{
agent->go_to_place(std::get<0>(m_current_tasks[i])->location, m_transport_net, m_tile_matrix);
if (agent->A_star_found == false)
{
delete std::get<0>(m_current_tasks[i]);
agent->set_state(Actor::idle);
m_current_tasks.erase(m_current_tasks.begin() + i);
log_tasks.LogFucntion(Log::LogLevelWarning, 4);
failed++;
continue;
}
continue;
}
if (agent->Get_Location() == std::get<0>(m_current_tasks[i])->location && agent->task_dest == false)
{
change_actor_location(agent, *std::get<0>(m_current_tasks[i]), false);
agent->set_state(Actor::doing_task);
agent->task_dest = true;
int x = 0;
//find_in_vector(m_transit, x, agent);
//m_doing_task.push_back(agent);
continue;
}
if (std::get<0>(m_current_tasks[i])->run_time == std::get<0>(m_current_tasks[i])->task_length)
{
change_actor_location(agent, *std::get<0>(m_current_tasks[i]), true);
agent->set_state(Actor::idle);
agent->task_dest = false;
m_current_tasks.erase(m_current_tasks.begin() + i);
//m_idle.push_back(agent);
continue;
}
else
{
std::get<0>(m_current_tasks[i])->run_time = std::get<0>(m_current_tasks[i])->run_time + 1;
}
}
else
{
/*auto [task, agent, delay] = m_current_tasks[i];
m_current_tasks.erase(m_current_tasks.begin() + i);
m_current_tasks.push_back({ task, agent, delay - 1 });*/
std::get<2>(m_current_tasks[i]) += -1;
}
}
//std::cin.get();
}
void Director::go_to_hospital(std::vector<Actor*>& patients)
{
for (int i = 0; i < patients.size(); i++)
{
uint32_t tile = 0;
uint32_t tile_1 = tile;
tile = std::get<2>(patients[i]->House_coord);
bool hospital = false;
bool no_hospital = false;
while(hospital == false && no_hospital == false)
{
for (int e = 0; e < m_tiles[tile]->Pub_buildings.size(); e++)
{
if (m_tiles[tile]->Pub_buildings[e]->Get_Type() == Public_Buildings::Hospital)
{
if (m_tiles[tile]->Pub_buildings[e]->Get_people_currently_in_buildling().size() != m_tiles[tile]->Pub_buildings[e]->Get_capacity())
{
m_tiles[tile]->Pub_buildings[e]->patients.push_back(patients[i]);
m_tiles[tile]->Pub_buildings[e]->add_people_buiding(patients[i]);
patients[i]->m_x = std::get<0>(m_tiles[tile]->Pub_buildings[e]->Get_Location());
patients[i]->m_y = std::get<1>(m_tiles[tile]->Pub_buildings[e]->Get_Location());
patients[i]->m_tilenum = std::get<2>(m_tiles[tile]->Pub_buildings[e]->Get_Location());
hospital = true;
break;
}
}
}
tile++;
if (tile == m_tiles.size())
{
tile = 0;
}
if (tile == tile_1)
{
no_hospital = true;
}
}
if (no_hospital == true)
{
patients[i]->hospital = false;
break;
}
}
}
unsigned int Director::generate_random_task(Actor::Age_Catagory age_cat, Tasks::Time_of_day time)
{
std::vector<unsigned int> task;
if (age_cat == Actor::zero_to_four)
{
std::vector<double> weights = task_weight_vector(m_tasks.task0_4, time);
task = Random::Discrete_distribution(weights, 1);
return task[0];
}
else if (age_cat == Actor::five_to_seventeen)
{
std::vector<double> weights = task_weight_vector(m_tasks.task5_17, time);
task = Random::Discrete_distribution(weights, 1);
return task[0];
}
else if (age_cat == Actor::eighteen_to_fortynine || age_cat == Actor::fifty_to_sixtyfour)
{
std::vector<double> weights = task_weight_vector(m_tasks.task18_64, time);
task = Random::Discrete_distribution(weights, 1);
return task[0];
}
else
{
std::vector<double> weights = task_weight_vector(m_tasks.task65, time);
task = Random::Discrete_distribution(weights, 1);
return task[0];
}
}
std::tuple<std::tuple<int, int, int>, Public_Buildings*> Director::public_task_setup(int& actor_tile, Tasks::Destination_Types location_type)
{
int num_of_building_type = 0;
std::vector<Public_Buildings*> public_buildings;
switch (location_type)
{
case 0:
for (int i = 0; i < m_tiles[actor_tile]->Pub_buildings.size(); i++)
{
if (m_tiles[actor_tile]->Pub_buildings[i]->Get_Type() == Public_Buildings::Hospital)
{
public_buildings.push_back(m_tiles[actor_tile]->Pub_buildings[i]);
}
}
break;
case 1:
for (int i = 0; i < m_tiles[actor_tile]->Pub_buildings.size(); i++)
{
if (m_tiles[actor_tile]->Pub_buildings[i]->Get_Type() == Public_Buildings::Place_of_worship)
{
public_buildings.push_back(m_tiles[actor_tile]->Pub_buildings[i]);
}
}
break;
case 2:
for (int i = 0; i < m_tiles[actor_tile]->Pub_buildings.size(); i++)
{
if (m_tiles[actor_tile]->Pub_buildings[i]->Get_Type() == Public_Buildings::restuarant)
{
public_buildings.push_back(m_tiles[actor_tile]->Pub_buildings[i]);
}
}
break;
case 3:
for (int i = 0; i < m_tiles[actor_tile]->Pub_buildings.size(); i++)
{
if (m_tiles[actor_tile]->Pub_buildings[i]->Get_Type() == Public_Buildings::cinema)
{
public_buildings.push_back(m_tiles[actor_tile]->Pub_buildings[i]);
}
}
break;
case 4:
for (int i = 0; i < m_tiles[actor_tile]->Pub_buildings.size(); i++)
{
if (m_tiles[actor_tile]->Pub_buildings[i]->Get_Type() == Public_Buildings::shopping_center)
{
public_buildings.push_back(m_tiles[actor_tile]->Pub_buildings[i]);
}
}
break;
case 5:
for (int i = 0; i < m_tiles[actor_tile]->Pub_buildings.size(); i++)
{
if (m_tiles[actor_tile]->Pub_buildings[i]->Get_Type() == Public_Buildings::parks)
{
public_buildings.push_back(m_tiles[actor_tile]->Pub_buildings[i]);
}
}
break;
}
int random_building = Random::random_number(0, public_buildings.size() + 1, {});
if (random_building < public_buildings.size())
{
return { m_tiles[actor_tile]->Pub_buildings[random_building]->Get_Location(), m_tiles[actor_tile]->Pub_buildings[random_building] };
}
else
{
std::vector<std::vector<Public_Buildings*>> public_buildings_tile;
for (int32_t a = 0; a < m_tiles.size(); a++)
{
if (a == actor_tile)
{
continue;
}
public_buildings.clear();
switch (location_type)
{
case 0:
for (int i = 0; i < m_tiles[a]->Pub_buildings.size(); i++)
{
if (m_tiles[a]->Pub_buildings[i]->Get_Type() == Public_Buildings::Hospital)
{
public_buildings.push_back(m_tiles[a]->Pub_buildings[i]);
}
}
//public_buildings_tile.push_back(public_buildings);
break;
case 1:
for (int i = 0; i < m_tiles[a]->Pub_buildings.size(); i++)
{
if (m_tiles[a]->Pub_buildings[i]->Get_Type() == Public_Buildings::Place_of_worship)
{
public_buildings.push_back(m_tiles[a]->Pub_buildings[i]);
}
}
//public_buildings_tile.push_back(public_buildings);
break;
case 2:
for (int i = 0; i < m_tiles[a]->Pub_buildings.size(); i++)
{
if (m_tiles[a]->Pub_buildings[i]->Get_Type() == Public_Buildings::restuarant)
{
public_buildings.push_back(m_tiles[a]->Pub_buildings[i]);
}
}
//public_buildings_tile.push_back(public_buildings);
break;
case 3:
for (int i = 0; i < m_tiles[a]->Pub_buildings.size(); i++)
{
if (m_tiles[a]->Pub_buildings[i]->Get_Type() == Public_Buildings::cinema)
{
public_buildings.push_back(m_tiles[a]->Pub_buildings[i]);
}
}
//public_buildings_tile.push_back(public_buildings);
break;
case 4:
for (int i = 0; i < m_tiles[a]->Pub_buildings.size(); i++)
{
if (m_tiles[a]->Pub_buildings[i]->Get_Type() == Public_Buildings::shopping_center)
{
public_buildings.push_back(m_tiles[a]->Pub_buildings[i]);
}
}
//public_buildings_tile.push_back(public_buildings);
break;
case 5:
for (int i = 0; i < m_tiles[a]->Pub_buildings.size(); i++)
{
if (m_tiles[a]->Pub_buildings[i]->Get_Type() == Public_Buildings::parks)
{
public_buildings.push_back(m_tiles[a]->Pub_buildings[i]);
}
}
break;
}
if (public_buildings.size() != 0)
{
public_buildings_tile.push_back(public_buildings);
}
}
bool empty_vec = true;
int random_vec;
std::vector<unsigned int> used_numbers = {};
if (public_buildings_tile.size() == 0)
{
return { {0,0,0}, NULL };
}
while (empty_vec == true)
{
random_vec = Random::random_number(0, public_buildings_tile.size() - 1, used_numbers);
if (public_buildings_tile[random_vec].size() != 0)
{
empty_vec = false;
}
used_numbers.push_back(random_vec);
}
random_building = Random::random_number(0, public_buildings_tile[random_vec].size() - 1, {});
return { public_buildings_tile[random_vec][random_building]->Get_Location(), public_buildings_tile[random_vec][random_building] };
}
return { {0,0,0}, NULL };
}
bool Director::find_in_vector(const std::vector<Actor*>& vector, int& position, const Actor* value)
{
bool found = false;
while (found == false)
{
if (position == vector.size())
{
return false;
}
else if (value == vector[position])
{
return true;
}
else
{
position++;
}
}
return false;
}
std::vector<double> Director::task_weight_vector(const std::vector<std::tuple<Tasks::Destination_Types, std::vector<Tasks::Time_of_day>>>& task_vector, const Tasks::Time_of_day& time)
{
std::vector<double> weight_vector;
std::vector<int> extra;
double extra_prob = 0;
for (int i = 0; i < task_vector.size(); i++)
{
double a = 1 / task_vector.size();
if (std::find(std::get<1>(task_vector[i]).begin(), std::get<1>(task_vector[i]).end(), time) != std::get<1>(task_vector[i]).end() || std::get<1>(task_vector[i])[0] == Tasks::all)
{
extra.push_back(i);
extra_prob = extra_prob + get_time_modifier();
}
}
double a = (1 - extra_prob) / 6;
for (int i = 0; i < 6; i++)
{
if (std::find(extra.begin(), extra.end(), i) == extra.end())
{
weight_vector.push_back(a);
}
else
{
weight_vector.push_back(a + get_time_modifier());
}
}
return weight_vector;
}
void Director::clear_task_vector()
{
for (int i = 0; i < m_current_tasks.size(); i++)
{
delete std::get<0>(m_current_tasks[i]);
}
m_current_tasks.clear();
}
Director::Director(std::vector<Actor*>& population, std::vector<Tile*>& tiles, Matrix<int>& tile_matrix, Transport_Net& net)
:m_population(population), m_tiles(tiles), m_tile_matrix(tile_matrix), m_transport_net(&net), m_idle(population)
{
for (int i = 0; i < population.size(); i++)
{
m_transit.push_back(NULL);
}
for (int i = 0; i < population.size(); i++)
{
m_doing_task.push_back(NULL);
}
for (int i = 0; i < population.size(); i++)
{
m_outside.push_back(NULL);
}
m_outside.clear();
m_transit.clear();
m_doing_task.clear();
}
Director::~Director()
{
}
void Director::request_task(Actor* requestee)
{
bool permission = false;
unsigned int task_value = 0;
permission = task_permission(requestee->state_check());
if (permission == true)
{
task_value = generate_random_task(requestee->Get_age(), world_time);
int tile_number = std::get<2>(requestee->Get_Location());
auto [location, building] = public_task_setup(tile_number, (Tasks::Destination_Types)task_value);
int task_length = Random::random_number(20, 300, {});
if (building == NULL || building->closed == true)
{
int num = Random::random_number(0, 1, {});
if (num == 1)
{
go_home(requestee);
}
}
else
{
Task* task = new Task;
task->destination = (Tasks::Destination_Types)task_value;
task->location_type = { building, NULL, NULL, NULL, NULL };
task->location = location;
task->task_length = task_length;
if (building->assigned_tasks >= building->Get_capacity() + 1)
{
delete task;
int num = Random::random_number(0, 1, {});
if (num == 1)
{
go_home(requestee);
}
}
else
{
building->assigned_tasks = building->assigned_tasks + 1;
m_current_tasks.push_back({ task, requestee, 0 });
requestee->set_state(Actor::waiting);
}
}
}
}
void Director::go_home(Actor* requestee)
{
Task* task = new Task;
task->location_type = { NULL, NULL, NULL, requestee->Home, NULL };
task->location = requestee->House_Location();
requestee->set_state(Actor::waiting);
m_current_tasks.push_back({ task, requestee, 0});
}
| 27.62117 | 207 | 0.636799 | bptigg |
29ad11fbfd2e7730c78c35718fb734dac1628d67 | 1,124 | hpp | C++ | Firmware/src/application/launchpad/LcdGui.hpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 59 | 2018-03-17T10:32:48.000Z | 2022-03-19T17:59:29.000Z | Firmware/src/application/launchpad/LcdGui.hpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 3 | 2019-11-12T09:49:59.000Z | 2020-12-09T11:55:00.000Z | Firmware/src/application/launchpad/LcdGui.hpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 10 | 2019-03-14T22:53:39.000Z | 2021-12-26T13:42:20.000Z | #ifndef APPLICATION_LAUNCHPAD_LCD_GUI_HPP_
#define APPLICATION_LAUNCHPAD_LCD_GUI_HPP_
#include <stdint.h>
namespace lcd
{
class LcdInterface;
}
namespace application
{
namespace launchpad
{
struct TimedDisplay
{
bool isOn;
uint32_t timeToDisable;
};
class Launchpad;
class LcdGui
{
public:
LcdGui( Launchpad& launchpad, lcd::LcdInterface& lcd );
void initialize();
void refresh();
void registerMidiInputActivity();
void registerMidiOutputActivity();
void displayRotaryControlValues();
static const int16_t refreshPeriodMs = 250;
private:
void refreshStatusBar();
void refreshMainArea();
void displayLaunchpad95Info();
void displayClipName();
void displayDeviceName();
void displayTrackName();
void displayMode();
void displaySubmode();
void displayStatus();
void displayTimingStatus();
Launchpad& launchpad_;
lcd::LcdInterface& lcd_;
TimedDisplay midiInputActivityIcon_;
TimedDisplay midiOutputActivityIcon_;
TimedDisplay rotaryControlValues_;
};
}
} // namespace
#endif // APPLICATION_LAUNCHPAD_LCD_GUI_HPP_
| 17.84127 | 59 | 0.732206 | zukaitis |
29ada8a4a0396f889eb2583c3b3ff622050125af | 702 | cpp | C++ | 3rdparty/libprocess/3rdparty/stout/tests/json_tests.cpp | jeid64/mesos | 3a69423b850cdc2f8fc4a334c72a38c8580f44c2 | [
"Apache-2.0"
] | null | null | null | 3rdparty/libprocess/3rdparty/stout/tests/json_tests.cpp | jeid64/mesos | 3a69423b850cdc2f8fc4a334c72a38c8580f44c2 | [
"Apache-2.0"
] | null | null | null | 3rdparty/libprocess/3rdparty/stout/tests/json_tests.cpp | jeid64/mesos | 3a69423b850cdc2f8fc4a334c72a38c8580f44c2 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <string>
#include <stout/json.hpp>
#include <stout/stringify.hpp>
using std::string;
TEST(JsonTest, BinaryData)
{
JSON::String s(string("\"\\/\b\f\n\r\t\x00\x19 !#[]\x7F\xFF", 17));
EXPECT_EQ("\"\\\"\\\\\\/\\b\\f\\n\\r\\t\\u0000\\u0019 !#[]\\u007F\\u00FF\"",
stringify(s));
}
TEST(JsonTest, NumberFormat)
{
// Test whole numbers.
EXPECT_EQ("0", stringify(JSON::Number(0.0)));
EXPECT_EQ("1", stringify(JSON::Number(1.0)));
// Negative.
EXPECT_EQ("-1", stringify(JSON::Number(-1.0)));
// Expect at least 15 digits of precision.
EXPECT_EQ("1234567890.12345", stringify(JSON::Number(1234567890.12345)));
}
| 20.647059 | 78 | 0.625356 | jeid64 |
29ae781f42b2e00e5ae9562c1082a8e060393355 | 37,161 | cpp | C++ | src/VEF/Operateurs/Op_VEF_Face.cpp | pledac/trust-code | 46ab5c5da3f674185f53423090f526a38ecdbad1 | [
"BSD-3-Clause"
] | 1 | 2021-10-04T09:20:19.000Z | 2021-10-04T09:20:19.000Z | src/VEF/Operateurs/Op_VEF_Face.cpp | pledac/trust-code | 46ab5c5da3f674185f53423090f526a38ecdbad1 | [
"BSD-3-Clause"
] | null | null | null | src/VEF/Operateurs/Op_VEF_Face.cpp | pledac/trust-code | 46ab5c5da3f674185f53423090f526a38ecdbad1 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
* Copyright (c) 2019, CEA
* All rights reserved.
*
* 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.
* 3. 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.
*
*****************************************************************************/
//////////////////////////////////////////////////////////////////////////////
//
// File: Op_VEF_Face.cpp
// Directory: $TRUST_ROOT/src/VEF/Operateurs
// Version: /main/53
//
//////////////////////////////////////////////////////////////////////////////
#include <Op_VEF_Face.h>
#include <Matrice_Morse.h>
#include <Equation_base.h>
#include <Champ_Inc.h>
#include <Sortie.h>
#include <Operateur.h>
#include <Probleme_base.h>
#include <Champ_Don.h>
#include <Champ_Uniforme.h>
#include <Schema_Temps_base.h>
#include <Milieu_base.h>
#include <Operateur_base.h>
#include <Operateur_Diff_base.h>
#include <Op_Conv_VEF_base.h>
#include <EcrFicPartage.h>
#include <SFichier.h>
#include <Debog.h>
#include <communications.h>
#include <DoubleTrav.h>
#include <Matrice_Morse_Diag.h>
// Description
// Dimensionnement de la matrice qui devra recevoir les coefficients provenant de
// la convection, de la diffusion pour le cas des faces.
// Cette matrice a une structure de matrice morse.
// Nous commencons par calculer les tailles des tableaux tab1 et tab2.
void Op_VEF_Face::dimensionner(const Zone_VEF& la_zone,
const Zone_Cl_VEF& la_zone_cl,
Matrice_Morse& la_matrice) const
{
// Dimensionnement de la matrice qui devra recevoir les coefficients provenant de
// la convection, de la diffusion pour le cas des faces.
// Cette matrice a une structure de matrice morse.
// Nous commencons par calculer les tailles des tableaux tab1 et tab2.
// Pour ce faire il faut chercher les faces voisines de la face consideree.
int num_face;
int ndeb = 0;
int nfin = la_zone.nb_faces();
int nnnn = la_zone.nb_faces_tot();
nfin=nnnn;
int i,j,k,kk;
int elem1,elem2;
int nb_faces_elem = la_zone.zone().nb_faces_elem();
//const Conds_lim& les_cl = la_zone_cl.les_conditions_limites();
int nb_comp = 1;
const DoubleTab& champ_inconnue = la_zone_cl.equation().inconnue().valeurs();
if (champ_inconnue.nb_dim() == 2) nb_comp = champ_inconnue.dimension(1);
la_matrice.dimensionner(nfin*nb_comp,nfin*nb_comp,0);
IntVect& tab1=la_matrice.get_set_tab1();
IntVect& tab2=la_matrice.get_set_tab2();
DoubleVect& coeff = la_matrice.get_set_coeff();
coeff=0;
const IntTab& elem_faces = la_zone.elem_faces();
const IntTab& face_voisins = la_zone.face_voisins();
// A chaque face on associe un tableau d'entiers et une liste de reels:
// voisines[i] = {j t.q j>i et M(i,j) est non nul }
// IntVect rang_voisin(nfin*nb_comp);
IntVect rang_voisin(nnnn*nb_comp);
rang_voisin=nb_comp;
// On traite toutes les faces
for (num_face= 0; num_face<nfin; num_face++)
{
elem1 = face_voisins(num_face,0);
elem2 = face_voisins(num_face,1);
for (i=0; i<nb_faces_elem; i++)
{
if ( (j=elem_faces(elem1,i)) != num_face )
{
for (k=0; k<nb_comp; k++)
{
rang_voisin(num_face*nb_comp+k)+=nb_comp;
}
}
if (elem2!=-1)
if ( (j=elem_faces(elem2,i)) != num_face )
{
for (k=0; k<nb_comp; k++)
{
rang_voisin(num_face*nb_comp+k)+=nb_comp;
}
}
}
}
// les faces voisines de num_face etant desormais comtabilisees
// nous dimensionnons tab1 et tab2 au nombre de faces
tab1(0)=1;
for (num_face=ndeb; num_face<nfin; num_face++)
{
for (k=0; k< nb_comp; k++)
{
tab1(num_face*nb_comp+1+k)=rang_voisin(num_face*nb_comp+k)+tab1(num_face*nb_comp+k);
}
}
la_matrice.dimensionner(nfin*nb_comp,tab1(nfin*nb_comp)-1);
for (num_face = 0; num_face < nfin; num_face++ )
{
for (k=0; k< nb_comp; k++)
{
for (kk=0; kk<nb_comp; kk++)
{
int modulo = (k+kk)%nb_comp;
tab2[tab1[num_face*nb_comp+k]-1+kk]=num_face*nb_comp+1+modulo;
}
rang_voisin[num_face*nb_comp+k]=tab1[num_face*nb_comp+k]+nb_comp-1;
}
}
// On traite toutes les faces
for (num_face= 0; num_face<nfin; num_face++)
{
elem1 = face_voisins(num_face,0);
elem2 = face_voisins(num_face,1);
for (i=0; i<nb_faces_elem; i++)
{
if ( (j=elem_faces(elem1,i)) != num_face )
{
for (k=0; k<nb_comp; k++)
{
for (kk=0; kk<nb_comp; kk++)
{
int modulo = (k+kk)%nb_comp;
tab2[rang_voisin[num_face*nb_comp+k]+kk]=j*nb_comp+1+modulo;
}
rang_voisin[num_face*nb_comp+k]+=nb_comp;
}
}
if (elem2!=-1)
if ( (j=elem_faces(elem2,i)) != num_face )
{
for (k=0; k<nb_comp; k++)
{
for (kk=0; kk<nb_comp; kk++)
{
int modulo = (k+kk)%nb_comp;
tab2[rang_voisin[num_face*nb_comp+k]+kk]=j*nb_comp+1+modulo;
}
rang_voisin[num_face*nb_comp+k]+=nb_comp;
}
}
}
}
}
// Description
// Modification des coef de la matrice et du second membre pour les conditions
// de Dirichlet
void Op_VEF_Face::modifier_pour_Cl(const Zone_VEF& la_zone,
const Zone_Cl_VEF& la_zone_cl,
Matrice_Morse& la_matrice, DoubleTab& secmem) const
{
// Dimensionnement de la matrice qui devra recevoir les coefficients provenant de
// la convection, de la diffusion pour le cas des faces.
// Cette matrice a une structure de matrice morse.
// Nous commencons par calculer les tailles des tableaux tab1 et tab2.
const Conds_lim& les_cl = la_zone_cl.les_conditions_limites();
const IntVect& tab1=la_matrice.get_tab1();
DoubleVect& coeff = la_matrice.get_set_coeff();
int nb_comp = 1;
const DoubleTab& champ_inconnue = la_zone_cl.equation().inconnue().valeurs();
if (champ_inconnue.nb_dim() == 2) nb_comp = champ_inconnue.dimension(1);
ArrOfDouble normale(nb_comp);
int size = les_cl.size();
for (int i=0; i<size; i++)
{
const Cond_lim& la_cl = les_cl[i];
if (sub_type(Dirichlet,la_cl.valeur()))
{
const Dirichlet& la_cl_Dirichlet = ref_cast(Dirichlet,la_cl.valeur());
const Front_VF& la_front_dis = ref_cast(Front_VF,la_cl.frontiere_dis());
int nfaces = la_front_dis.nb_faces();
for (int ind_face=0; ind_face < nfaces; ind_face++)
{
int face = la_front_dis.num_face(ind_face);
for (int comp=0; comp<nb_comp; comp++)
{
int idiag = tab1[face*nb_comp+comp]-1;
coeff[idiag]=1;
// pour les voisins
int nbvois = tab1[face*nb_comp+1+comp] - tab1[face*nb_comp+comp];
for (int k=1; k < nbvois; k++)
{
coeff[idiag+k]=0;
}
// pour le second membre
if (nb_comp == 1)
secmem(face) = la_cl_Dirichlet.val_imp(ind_face,0);
else
secmem(face,comp)= la_cl_Dirichlet.val_imp(ind_face,comp);
}
}
}
if (sub_type(Dirichlet_homogene,la_cl.valeur()))
{
const Dirichlet_homogene& la_cl_Dirichlet_homogene = ref_cast(Dirichlet_homogene,la_cl.valeur());
const Front_VF& la_front_dis = ref_cast(Front_VF,la_cl.frontiere_dis());
int nfaces = la_front_dis.nb_faces_tot();
for (int ind_face=0; ind_face < nfaces; ind_face++)
{
int face = la_front_dis.num_face(ind_face);
for (int comp=0; comp<nb_comp; comp++)
{
int idiag = tab1[face*nb_comp+comp]-1;
coeff[idiag]=1;
// pour les voisins
int nbvois = tab1[face*nb_comp+1+comp] - tab1[face*nb_comp+comp];
for (int k=1; k < nbvois; k++)
{
coeff[idiag+k]=0;
}
// pour le second membre
if (nb_comp == 1)
secmem(face) = la_cl_Dirichlet_homogene.val_imp(ind_face,0);
else
secmem(face,comp)= la_cl_Dirichlet_homogene.val_imp(ind_face,comp);
}
}
}
if (sub_type(Symetrie,la_cl.valeur()))
if (la_zone_cl.equation().inconnue().valeur().nature_du_champ()==vectoriel)
{
const IntVect& tab2=la_matrice.get_tab2();
const Front_VF& la_front_dis = ref_cast(Front_VF,la_cl.frontiere_dis());
const DoubleTab& face_normales = la_zone.face_normales();
int nfaces = la_front_dis.nb_faces_tot();
ArrOfDouble somme(la_matrice.nb_colonnes()); // On dimensionne au plus grand
for (int ind_face=0; ind_face < nfaces; ind_face++)
{
int face = la_front_dis.num_face(ind_face);
double max_coef=0;
int ind_max=-1;
double n2=0;
for (int comp=0; comp<nb_comp; comp++)
{
normale[comp]=face_normales(face,comp);
if (dabs(normale[comp])>dabs(max_coef))
{
max_coef=normale[comp];
ind_max=comp;
}
n2+=normale[comp]*normale[comp];
}
normale/=sqrt(n2);
max_coef=normale[ind_max];
// On commence par recalculer secmem=secmem-A *present pour pouvoir modifier A (on en profite pour projeter)
int nb_coeff_ligne=tab1[face*nb_comp+1] - tab1[face*nb_comp];
for (int k=0; k<nb_coeff_ligne; k++)
{
for (int comp=0; comp<nb_comp; comp++)
{
int j=tab2[tab1[face*nb_comp+comp]-1+k]-1;
//assert(j!=(face*nb_comp+comp));
//if ((j>=(face*nb_comp))&&(j<(face*nb_comp+nb_comp)))
const double& coef_ij=la_matrice(face*nb_comp+comp,j);
int face2=j/nb_comp;
int comp2=j-face2*nb_comp;
secmem(face,comp)-=coef_ij*champ_inconnue(face2,comp2);
}
}
double somme_b=0;
for (int comp=0; comp<nb_comp; comp++)
somme_b+=secmem(face,comp)*normale[comp];
// on retire secmem.n n
for (int comp=0; comp<nb_comp; comp++)
secmem(face,comp)-=somme_b*normale[comp];
// on doit remettre la meme diagonale partout on prend la moyenne
double ref=0;
for (int comp=0; comp<nb_comp; comp++)
{
int j0=face*nb_comp+comp;
ref+=la_matrice(j0,j0);
}
ref/=nb_comp;
for (int comp=0; comp<nb_comp; comp++)
{
int j0=face*nb_comp+comp;
double rap=ref/la_matrice(j0,j0);
for (int k=0; k<nb_coeff_ligne; k++)
{
int j=tab2[tab1[j0]-1+k]-1;
la_matrice(j0,j)*=rap;
}
assert(est_egal(la_matrice(j0,j0),ref));
}
// on annule tous les coef extra diagonaux du bloc
//
for (int k=1; k<nb_coeff_ligne; k++)
{
for (int comp=0; comp<nb_comp; comp++)
{
int j=tab2[tab1[face*nb_comp+comp]-1+k]-1;
assert(j!=(face*nb_comp+comp));
if ((j>=(face*nb_comp))&&(j<(face*nb_comp+nb_comp)))
la_matrice(face*nb_comp+comp,j)=0;
}
}
// pour les blocs extra diagonaux on assure que Aij.ni=0
//ArrOfDouble somme(nb_coeff_ligne);
for (int k=0; k<nb_coeff_ligne; k++)
{
somme(k)=0;
int j=tab2[tab1[face*nb_comp]-1+k]-1;
// le coeff j doit exister sur les nb_comp lignes
double dsomme=0;
for (int comp=0; comp<nb_comp; comp++)
dsomme+=la_matrice(face*nb_comp+comp,j)*normale[comp];
// on retire somme ni
for (int comp=0; comp<nb_comp; comp++)
// on modifie que les coefficients ne faisant pas intervenir u(face,comp)
if ((j<(face*nb_comp))||(j>=(face*nb_comp+nb_comp)))
la_matrice(face*nb_comp+comp,j)-=(dsomme)*normale[comp];
}
// Finalement on recalcule secmem=secmem+A*champ_inconnue (A a ete beaucoup modiife)
for (int k=0; k<nb_coeff_ligne; k++)
{
for (int comp=0; comp<nb_comp; comp++)
{
int j=tab2[tab1[face*nb_comp+comp]-1+k]-1;
int face2=j/nb_comp;
int comp2=j-face2*nb_comp;
const double& coef_ij=la_matrice(face*nb_comp+comp,j);
secmem(face,comp)+=coef_ij*champ_inconnue(face2,comp2);
}
}
{
// verification
double somme_c=0;
for (int comp=0; comp<nb_comp; comp++)
somme_c+=secmem(face,comp)*normale[comp];
// on retire secmem.n n
for (int comp=0; comp<nb_comp; comp++)
secmem(face,comp)-=somme_c*normale[comp];
}
}
}
}
}
void Op_VEF_Face::modifier_flux( const Operateur_base& op) const
{
controle_modifier_flux_=1;
DoubleTab& flux_bords_=op.flux_bords();
if (flux_bords_.nb_dim()!=2)
return;
const Probleme_base& pb=op.equation().probleme();
const Zone_VEF& la_zone_vef=ref_cast(Zone_VEF,op.equation().zone_dis().valeur());
int nb_compo=flux_bords_.dimension(1);
// On multiplie le flux au bord par rho*Cp sauf si c'est un operateur de diffusion avec la conductivite comme champ
if (op.equation().inconnue().le_nom()=="temperature"
&& !( sub_type(Operateur_Diff_base,op) && ref_cast(Operateur_Diff_base,op).diffusivite().le_nom() == "conductivite" ) )
{
const Champ_Don& rho = (op.equation()).milieu().masse_volumique();
const Champ_Don& Cp = (op.equation()).milieu().capacite_calorifique();
int rho_uniforme=(sub_type(Champ_Uniforme,rho.valeur()) ? 1:0);
int cp_uniforme=(sub_type(Champ_Uniforme,Cp.valeur()) ? 1:0);
double Cp_=0,rho_=0;
int is_rho_u=pb.is_QC();
if (is_rho_u)
{
is_rho_u=0;
if (sub_type(Op_Conv_VEF_base,op))
{
if (ref_cast(Op_Conv_VEF_base,op).vitesse().le_nom()=="rho_u")
is_rho_u=1;
}
}
const int& nb_faces_bords=la_zone_vef.nb_faces_bord();
for (int face=0; face<nb_faces_bords; face++)
{
if (cp_uniforme) Cp_=Cp(0,0);
else
{
if (Cp.nb_comp()==1) Cp_=Cp(face);
else Cp_=Cp(face,0);
}
if (rho_uniforme) rho_=rho(0,0);
else
{
if (rho.nb_comp()==1) rho_=rho(face);
else rho_=rho(face,0);
}
// si on est en QC temperature et si on a calcule div(rhou * T)
// il ne faut pas remultiplier par rho
if (is_rho_u) rho_=1;
flux_bords_(face,0) *= (rho_*Cp_);
}
}
// On multiplie par rho si Navier Stokes incompressible
Nom nom_eqn=op.equation().que_suis_je();
if (nom_eqn.debute_par("Navier_Stokes") && pb.milieu().que_suis_je()=="Fluide_Incompressible")
{
const Champ_Don& rho = op.equation().milieu().masse_volumique();
if (sub_type(Champ_Uniforme,rho.valeur()))
{
double coef = rho(0,0);
int nb_faces_bord=la_zone_vef.nb_faces_bord();
for (int face=0; face<nb_faces_bord; face++)
for(int k=0; k<nb_compo; k++)
flux_bords_(face,k) *= coef;
}
}
}
// Description
// Impression des flux d'un operateur VEF aux faces (ie: diffusion, convection)
//
int Op_VEF_Face::impr(Sortie& os, const Operateur_base& op) const
{
const Zone_VEF& la_zone_vef=ref_cast(Zone_VEF,op.equation().zone_dis().valeur());
DoubleTab& flux_bords_=op.flux_bords();
if (flux_bords_.nb_dim()!=2)
{
Cout << "L'impression des flux n'est pas codee pour l'operateur " << op.que_suis_je() << finl;
return 1;
}
if (controle_modifier_flux_==0)
if (max_abs_array(flux_bords_)!=0)
{
Cerr<<op.que_suis_je()<<" appelle Op_VEF_Face::impr sans avoir appeler Op_VEF_Face::modifier_flux, on arrete tout "<<finl;
Process::exit();
}
int nb_compo=flux_bords_.dimension(1);
const Probleme_base& pb=op.equation().probleme();
const Schema_Temps_base& sch=pb.schema_temps();
// On n'imprime les moments que si demande et si on traite l'operateur de diffusion de la vitesse
int impr_mom=0;
if (la_zone_vef.zone().Moments_a_imprimer() && sub_type(Operateur_Diff_base,op) && op.equation().inconnue().le_nom()=="vitesse")
impr_mom=1;
const int impr_sum=(la_zone_vef.zone().Bords_a_imprimer_sum().est_vide() ? 0:1);
const int impr_bord=(la_zone_vef.zone().Bords_a_imprimer().est_vide() ? 0:1);
// Calcul des moments
const int nb_faces = la_zone_vef.nb_faces_tot();
DoubleTab xgr(nb_faces,Objet_U::dimension);
xgr=0.;
if (impr_mom)
{
const DoubleTab& xgrav = la_zone_vef.xv();
const ArrOfDouble& c_grav=la_zone_vef.zone().cg_moments();
for (int num_face=0; num_face <nb_faces; num_face++)
for (int i=0; i<Objet_U::dimension; i++)
xgr(num_face,i)=xgrav(num_face,i)-c_grav(i);
}
// On parcours les frontieres pour sommer les flux par frontiere dans le tableau flux_bord
DoubleVect bilan(nb_compo);
bilan = 0;
int nb_cl = la_zone_vef.nb_front_Cl();
DoubleTrav flux_bords(4,nb_cl,nb_compo);
flux_bords=0.;
/*
flux_bord(k) -> flux_bords(0,num_cl,k)
flux_bord_perio1(k) -> flux_bords(1,num_cl,k)
flux_bord_perio2(k) -> flux_bords(2,num_cl,k)
moment(k) -> flux_bords(3,num_cl,k)
*/
for (int num_cl=0; num_cl<nb_cl; num_cl++)
{
const Cond_lim& la_cl = op.equation().zone_Cl_dis().les_conditions_limites(num_cl);
const Front_VF& frontiere_dis = ref_cast(Front_VF,la_cl.frontiere_dis());
int ndeb = frontiere_dis.num_premiere_face();
int nfin = ndeb + frontiere_dis.nb_faces();
int perio = (sub_type(Periodique,la_cl.valeur())?1:0);
for (int face=ndeb; face<nfin; face++)
{
for(int k=0; k<nb_compo; k++)
{
flux_bords(0,num_cl,k)+=flux_bords_(face, k);
if(perio)
{
if(face<(ndeb+frontiere_dis.nb_faces()/2))
flux_bords(1,num_cl,k)+=flux_bords_(face, k);
else
flux_bords(2,num_cl,k)+=flux_bords_(face, k);
}
}
if (impr_mom)
{
// Calcul du moment exerce par le fluide sur le bord (OM/\F)
if (Objet_U::dimension==2)
flux_bords(3,num_cl,0)+=flux_bords_(face,1)*xgr(face,0)-flux_bords_(face,0)*xgr(face,1);
else
{
flux_bords(3,num_cl,0)+=flux_bords_(face,2)*xgr(face,1)-flux_bords_(face,1)*xgr(face,2);
flux_bords(3,num_cl,1)+=flux_bords_(face,0)*xgr(face,2)-flux_bords_(face,2)*xgr(face,0);
flux_bords(3,num_cl,2)+=flux_bords_(face,1)*xgr(face,0)-flux_bords_(face,0)*xgr(face,1);
}
}
} // fin for face
} // fin for num_cl
// On somme les contributions de chaque processeur
mp_sum_for_each_item(flux_bords);
// Ecriture dans les fichiers
if (Process::je_suis_maitre())
{
// Open files if needed
SFichier Flux;
op.ouvrir_fichier(Flux,"",1);
SFichier Flux_moment;
op.ouvrir_fichier(Flux_moment,"moment",impr_mom);
SFichier Flux_sum;
op.ouvrir_fichier(Flux_sum,"sum",impr_sum);
// Write time
Flux.add_col(sch.temps_courant());
if (impr_mom) Flux_moment.add_col(sch.temps_courant());
if (impr_sum) Flux_sum.add_col(sch.temps_courant());
// Write flux on boundaries
for (int num_cl=0; num_cl<nb_cl; num_cl++)
{
const Frontiere_dis_base& la_fr = op.equation().zone_Cl_dis().les_conditions_limites(num_cl).frontiere_dis();
const Cond_lim& la_cl = op.equation().zone_Cl_dis().les_conditions_limites(num_cl);
int perio = (sub_type(Periodique,la_cl.valeur())?1:0);
for(int k=0; k<nb_compo; k++)
{
if(perio)
{
Flux.add_col(flux_bords(1,num_cl,k));
Flux.add_col(flux_bords(2,num_cl,k));
}
else
Flux.add_col(flux_bords(0,num_cl,k));
if (impr_mom) Flux_moment.add_col(flux_bords(3,num_cl,k));
if (la_zone_vef.zone().Bords_a_imprimer_sum().contient(la_fr.le_nom())) Flux_sum.add_col(flux_bords(0,num_cl,k));
// On somme les flux de toutes les frontieres pour mettre dans le tableau bilan
bilan(k)+=flux_bords(0,num_cl,k);
}
}
// On imprime les bilans et on va a la ligne
for(int k=0; k<nb_compo; k++)
Flux.add_col(bilan(k));
Flux << finl;
if (impr_mom) Flux_moment << finl;
if (impr_sum) Flux_sum << finl;
}
const LIST(Nom)& Liste_Bords_a_imprimer = la_zone_vef.zone().Bords_a_imprimer();
if (!Liste_Bords_a_imprimer.est_vide())
{
EcrFicPartage Flux_face;
op.ouvrir_fichier_partage(Flux_face,"",impr_bord);
// Impression sur chaque face si demande
for (int num_cl=0; num_cl<nb_cl; num_cl++)
{
const Frontiere_dis_base& la_fr = op.equation().zone_Cl_dis().les_conditions_limites(num_cl).frontiere_dis();
const Cond_lim& la_cl = op.equation().zone_Cl_dis().les_conditions_limites(num_cl);
const Front_VF& frontiere_dis = ref_cast(Front_VF,la_cl.frontiere_dis());
int ndeb = frontiere_dis.num_premiere_face();
int nfin = ndeb + frontiere_dis.nb_faces();
// Impression sur chaque face
if (Liste_Bords_a_imprimer.contient(la_fr.le_nom()))
{
Flux_face << "# Flux par face sur " << la_fr.le_nom() << " au temps ";
sch.imprimer_temps_courant(Flux_face);
Flux_face << " : " << finl;
const DoubleTab& xv=la_zone_vef.xv();
for (int face=ndeb; face<nfin; face++)
{
if (Objet_U::dimension==2)
Flux_face << "# Face a x= " << xv(face,0) << " y= " << xv(face,1) ;
else if (Objet_U::dimension==3)
Flux_face << "# Face a x= " << xv(face,0) << " y= " << xv(face,1) << " z= " << xv(face,2) ;
for(int k=0; k<nb_compo; k++)
Flux_face << " surface_face(m2)= " << la_zone_vef.face_surfaces(face) << " flux_par_surface(W/m2)= " << flux_bords_(face, k)/la_zone_vef.face_surfaces(face) << " flux(W)= " << flux_bords_(face, k) ;
Flux_face << finl;
}
Flux_face.syncfile();
}
}
}
return 1;
}
/////////////////////////////////////////
// Methode pour l'implicite
/////////////////////////////////////////
void modif_matrice_pour_periodique_avant_contribuer(Matrice_Morse& matrice,const Equation_base& eqn)
{
int nb_comp=1;
{
const DoubleTab& inconnue=eqn.inconnue().valeurs();
int nb_dim=inconnue.nb_dim();
if(nb_dim==2)
nb_comp=inconnue.dimension(1);
}
const Zone_Cl_dis_base& zone_Cl_VEF=eqn.zone_Cl_dis().valeur();
const Zone_VF& zone_VEF= ref_cast(Zone_VF,eqn.zone_dis().valeur());
int nb_bords=zone_VEF.nb_front_Cl();
const IntTab& elem_faces = zone_VEF.elem_faces();
const IntTab& face_voisins = zone_VEF.face_voisins();
int nb_faces_elem = elem_faces.dimension(1);
for (int n_bord=0; n_bord<nb_bords; n_bord++)
{
const Cond_lim& la_cl = zone_Cl_VEF.les_conditions_limites(n_bord);
if (sub_type(Periodique,la_cl.valeur()))
{
const Periodique& la_cl_perio = ref_cast(Periodique,la_cl.valeur());
// on ne parcourt que la moitie des faces periodiques
// on copiera a la fin le resultat dans la face associe..
const Front_VF& le_bord = ref_cast(Front_VF,la_cl.frontiere_dis());
int num1 = le_bord.num_premiere_face();
int num2=num1+le_bord.nb_faces()/2;
for (int dir=0; dir<2; dir++)
for (int num_face=num1; num_face<num2; num_face++)
{
int elem1 = face_voisins(num_face,dir);
int fac_asso = la_cl_perio.face_associee(num_face-num1)+num1;
for (int i=0; i<nb_faces_elem; i++)
{
int j=elem_faces(elem1,i);
for (int nc=0; nc<nb_comp; nc++)
{
int n0=num_face*nb_comp+nc;
int n0perio=fac_asso*nb_comp+nc;
if (((j==num_face)||(j==fac_asso)))
{
if (dir==0)
{
assert(matrice(n0,n0perio)==0);
assert(matrice(n0perio,n0)==0);
assert(matrice(n0,n0)==matrice(n0perio,n0perio));
double titi=(matrice(n0,n0))/2.;
matrice(n0,n0)=titi;
matrice(n0perio,n0perio)=titi;
}
}
else
{
for (int nc2=0; nc2<nb_comp; nc2++)
{
int j20=j*nb_comp+nc2;
assert(matrice(n0,j20)==matrice(n0perio,j20));
double titi=(matrice(n0,j20)/2.);
matrice(n0,j20)=titi;
matrice(n0perio,j20)=titi;
}
}
}
}
}
}
}
// matrice.imprimer(Cerr);
}
void modif_matrice_pour_periodique_apres_contribuer(Matrice_Morse& matrice,const Equation_base& eqn)
{
int nb_comp=1;
{
const DoubleTab& inconnue=eqn.inconnue().valeurs();
int nb_dim=inconnue.nb_dim();
if(nb_dim==2)
nb_comp=inconnue.dimension(1);
}
const Zone_Cl_dis_base& zone_Cl_VEF=eqn.zone_Cl_dis().valeur();
const Zone_VF& zone_VEF= ref_cast(Zone_VF,eqn.zone_dis().valeur());
int nb_bords=zone_VEF.nb_front_Cl();
const IntTab& elem_faces = zone_VEF.elem_faces();
const IntTab& face_voisins = zone_VEF.face_voisins();
int nb_faces_elem = elem_faces.dimension(1);
for (int n_bord=0; n_bord<nb_bords; n_bord++)
{
const Cond_lim& la_cl = zone_Cl_VEF.les_conditions_limites(n_bord);
if (sub_type(Periodique,la_cl.valeur()))
{
const Periodique& la_cl_perio = ref_cast(Periodique,la_cl.valeur());
// on ne parcourt que la moitie des faces periodiques
// on copiera a la fin le resultat dans la face associe..
const Front_VF& le_bord = ref_cast(Front_VF,la_cl.frontiere_dis());
int num1 = le_bord.num_premiere_face();
int num2 = num1+le_bord.nb_faces()/2;
for (int dir=0; dir<2; dir++)
for (int num_face=num1; num_face<num2; num_face++)
{
int elem1 = face_voisins(num_face,dir);
int fac_asso = la_cl_perio.face_associee(num_face-num1)+num1;
for (int i=0; i<nb_faces_elem; i++)
{
int j=elem_faces(elem1,i);
//if (j!=num_face)
for (int nc=0; nc<nb_comp; nc++)
{
int n0=num_face*nb_comp+nc;
// int j0=j*nb_comp+nc;
int n0perio=fac_asso*nb_comp+nc;
if (((j==num_face)||(j==fac_asso)))
{
if (dir==0)
{
for (int nc2=0; nc2<nb_comp; nc2++)
{
int j0=num_face*nb_comp+nc2;
int j0perio=fac_asso*nb_comp+nc2;
matrice(n0,j0)+=matrice(n0,j0perio);
matrice(n0,j0perio)=0;
matrice(n0perio,j0perio)+=matrice(n0perio,j0);
matrice(n0perio,j0)=0;
double titi=(matrice(n0,j0)+matrice(n0perio,j0perio));
matrice(n0,j0)=titi;
if (nc!=nc2)
{
matrice(n0perio,j0)=titi;
matrice(n0perio,j0perio)=0;
}
else
matrice(n0perio,j0perio)=titi;
}
}
}
else
{
for (int nc2=0; nc2<nb_comp; nc2++)
{
int j20=j*nb_comp+nc2;
double titi=(matrice(n0,j20)+matrice(n0perio,j20));
matrice(n0,j20)=titi;
matrice(n0perio,j20)=titi;
}
}
}
}
}
}
}
// matrice.imprimer(Cerr);
}
// Description: divise les coefficients sur les ligne des faces periodiques par 2 en prevision
// de l'application modifier_matrice_pour_periodique_apres_contribuer qui va sommer les 2 lignes des faces periodiques associees
void Op_VEF_Face::modifier_matrice_pour_periodique_avant_contribuer(Matrice_Morse& matrice,const Equation_base& eqn) const
{
// si matrice_morse_diag pas de contribution n0 n0perio
if (sub_type(Matrice_Morse_Diag,matrice))
return;
modif_matrice_pour_periodique_avant_contribuer(matrice,eqn);
}
// Description: Somme les 2 lignes des faces periodiques associees
// permet de calculer dans le code sans se poser de question pour retrouver la face_associee
// on ne parcourt que la moitiee des faces periodiques dans contribuer_a_avec (en general).
void Op_VEF_Face::modifier_matrice_pour_periodique_apres_contribuer(Matrice_Morse& matrice,const Equation_base& eqn) const
{
// si matrice_morse_diag pas de contribution n0 n0perio
if (sub_type(Matrice_Morse_Diag,matrice))
return;
modif_matrice_pour_periodique_apres_contribuer(matrice,eqn);
// verification que la matrice est bien periodique
#ifndef NDEBUG
//
int nb_comp=1;
{
const DoubleTab& inconnue=eqn.inconnue().valeurs();
int nb_dim=inconnue.nb_dim();
if(nb_dim==2)
nb_comp=inconnue.dimension(1);
}
const Zone_Cl_dis_base& zone_Cl_VEF=eqn.zone_Cl_dis().valeur();
const Zone_VF& zone_VEF= ref_cast(Zone_VF,eqn.zone_dis().valeur());
int nb_bords=zone_VEF.nb_front_Cl();
const IntVect& tab1=matrice.get_tab1();
const IntVect& tab2=matrice.get_tab2();
for (int n_bord=0; n_bord<nb_bords; n_bord++)
{
const Cond_lim& la_cl = zone_Cl_VEF.les_conditions_limites(n_bord);
const Front_VF& le_bord = ref_cast(Front_VF,la_cl.frontiere_dis());
int num1 = le_bord.num_premiere_face();
// int num2 = num1 + le_bord.nb_faces();
if (sub_type(Periodique,la_cl.valeur()))
{
const Periodique& la_cl_perio = ref_cast(Periodique,la_cl.valeur());
int fac_asso;
// on ne parcourt que la moitie des faces periodiques
// on copiera a la fin le resultat dans la face associe..
int num2=num1+le_bord.nb_faces()/2;
for (int num_face=num1; num_face<num2; num_face++)
for (int nc=0; nc<nb_comp; nc++)
{
fac_asso = la_cl_perio.face_associee(num_face-num1)+num1;
int n0=num_face*nb_comp+nc;
int n0perio=fac_asso*nb_comp+nc;
// on verifie que les 2 lignes sont identiques ( sauf la case diagonale qui n'est pas au meme endroit)
for (int j=tab1[n0]-1; j<tab1[n0+1]-1; j++)
{
int c=tab2[j]-1;
if ((c!=n0)&&(c!=n0perio))
{
double test=matrice(n0,c)-matrice(n0perio,c);
if (test!=0)
{
Cerr<< "Pb matrice non periodique face"<<num_face<<" composante "<<nc<<" colonne " <<c<<finl;
Cerr<<" diff "<<test<<" coef1 "<<matrice(n0,c)<<" coef2 "<<matrice(n0perio,c)<<finl;
Process::exit();
}
}
}
if ((matrice(n0,n0perio)!=0)||(matrice(n0perio,n0)!=0))
{
Cerr<< "Pb matrice non periodique face"<<num_face<<" composante "<<nc<<finl;
Cerr<<" coef non nul"<<matrice(n0,n0perio)<<" "<<matrice(n0perio,n0)<<finl;
Process::exit();
}
if (matrice(n0,n0)!=matrice(n0perio,n0perio))
{
double test= matrice(n0,n0perio)-matrice(n0perio,n0);
Cerr<< "Pb matrice non periodique face"<<num_face<<" composante "<<nc<<finl;
Cerr<<" diff "<<test<<" coef different "<<matrice(n0,n0)<<" "<<matrice(n0perio,n0perio)<<finl;
Process::exit();
}
}
}
}
/*
Matrice_Morse es(matrice);
modif_matrice_pour_periodique_avant_contribuer(es,eqn);
modif_matrice_pour_periodique_apres_contribuer(es,eqn);
es.coeff_-=(matrice.coeff_);
Cerr<<" erreur apres modifier_matrice_pour_periodique_apres_contribuer"<< mp_max_abs_vect(es.coeff_)<<finl;
assert(mp_max_abs_vect(es.coeff_)<1e-9);
*/
#endif
}
| 41.335929 | 260 | 0.541374 | pledac |
29ae839a125c655da171de74a411fa9c261d85be | 1,544 | cpp | C++ | buildcc/lib/target/src/target/pch.cpp | d-winsor/build_in_cpp | 581c827fd8c69a7258175e360847676861a5c7b0 | [
"Apache-2.0"
] | null | null | null | buildcc/lib/target/src/target/pch.cpp | d-winsor/build_in_cpp | 581c827fd8c69a7258175e360847676861a5c7b0 | [
"Apache-2.0"
] | null | null | null | buildcc/lib/target/src/target/pch.cpp | d-winsor/build_in_cpp | 581c827fd8c69a7258175e360847676861a5c7b0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Niket Naidu. All rights reserved.
*
* 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 "target/target.h"
namespace buildcc::base {
void Target::AddPchAbsolute(const fs::path &absolute_filepath) {
LockedAfterBuild();
const auto file_ext_type = ext_.GetType(absolute_filepath);
env::assert_fatal(FileExt::IsValidHeader(file_ext_type),
fmt::format("{} does not have a valid header extension",
absolute_filepath.string()));
state_.contains_pch = true;
const fs::path absolute_pch = fs::path(absolute_filepath).make_preferred();
storer_.current_pch_files.user.insert(absolute_pch);
}
void Target::AddPch(const fs::path &relative_filename,
const fs::path &relative_to_target_path) {
env::log_trace(name_, __FUNCTION__);
// Compute the absolute source path
fs::path absolute_pch =
target_root_dir_ / relative_to_target_path / relative_filename;
AddPchAbsolute(absolute_pch);
}
} // namespace buildcc::base
| 34.311111 | 77 | 0.718264 | d-winsor |
29aecab0fdaff757970b13b0bd7f3aa78af863a6 | 1,063 | cpp | C++ | Solution/PhoenixEngine/Source/GameObject/GameObject.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | 2 | 2017-11-09T20:05:36.000Z | 2018-07-05T00:55:01.000Z | Solution/PhoenixEngine/Source/GameObject/GameObject.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | Solution/PhoenixEngine/Source/GameObject/GameObject.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | #include "Stdafx.h"
#include "GameObject/GameObject.h"
#include "Core/GameScene.h"
using namespace Phoenix;
FGameObject::FGameObject()
{
}
FGameObject::FGameObject(FGameScene& inGameScene, ID inId) :
Id(inId),
GameScene(&inGameScene)
{
}
FGameObject::~FGameObject()
{
}
void FGameObject::AddComponent(BaseComponent* inComponent, TypeId inComponentTypeId)
{
GameScene->GameObjectAttributes.Storage.AddComponent(this, inComponent, inComponentTypeId);
}
const FGameObject::ID& FGameObject::GetId() const
{
return Id;
}
BaseComponent& FGameObject::GetComponent(TypeId InTypeId) const
{
return GameScene->GameObjectAttributes.Storage.GetComponent(*this, InTypeId);
}
void FGameObject::SetActive(const bool InActive)
{
GameScene->ActivateGameObject(*this, InActive);
}
bool FGameObject::operator==(const FGameObject& GameObject) const
{
return Id == GameObject.Id && GameObject.GameScene == GameScene;
}
void FGameObject::RemoveComponent(TypeId InComponentTypeId)
{
GameScene->GameObjectAttributes.Storage.RemoveComponent(*this, InComponentTypeId);
}
| 21.26 | 92 | 0.78269 | rohunb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.